summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-02-26 21:38:52 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-02-26 21:38:52 +0100
commiteddd009cd885093cb79e085c3499bdd52882e8b8 (patch)
tree588265e0533ad7ee5c072fd50bde4200c1eca18e
parent2abf462ca10c4ac8c4f815e608cad31851e966e3 (diff)
Small I18N changes
-rw-r--r--lib/JWebmail/I18N/de.pm8
-rw-r--r--lib/JWebmail/Plugin/I18N2.pm2
-rw-r--r--lib/JWebmail/Plugin/I18N2/Maketext.pm2
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/JWebmail/I18N/de.pm b/lib/JWebmail/I18N/de.pm
index 1b364fb..725244b 100644
--- a/lib/JWebmail/I18N/de.pm
+++ b/lib/JWebmail/I18N/de.pm
@@ -14,14 +14,14 @@ our %Lexicon = (
## writemail
# qw(subject send back)
- 'send to' => 'senden an',
- 'answer_to' => 'antworten gehen an',
+ 'send to' => 'Senden an',
+ 'answer_to' => 'Antworten an',
'content' => 'Inhalt',
'attach file' => 'Datei anhängen',
## readmail
# qw(subject date size)
- 'content-type' => 'inhaltsart',
+ 'content-type' => 'Inhalts-Art',
'back' => 'zurück',
'from' => 'von',
'to' => 'für',
@@ -77,7 +77,7 @@ our %Lexicon = (
## login
'login' => 'anmelden',
- 'userid' => 'nuzerkennung',
+ 'userid' => 'nutzerkennung',
'password' => 'passwort',
## Controller
diff --git a/lib/JWebmail/Plugin/I18N2.pm b/lib/JWebmail/Plugin/I18N2.pm
index 68dcc15..fa80282 100644
--- a/lib/JWebmail/Plugin/I18N2.pm
+++ b/lib/JWebmail/Plugin/I18N2.pm
@@ -57,7 +57,7 @@ sub register {
my $translator = $conf->{translator} ||
sub { require JWebmail::Plugin::I18N2::Maketext; JWebmail::Plugin::I18N2::Maketext->new(@_) };
my $defaultLang = $conf->{default_language} || 'en';
- my $fileLocation = $conf->{directory}; # ? Mojo::File->new($conf->{directory}) : $app->home->child('lang');
+ my $fileLocation = $conf->{directory};
my $t = $translator->(
default_language => $defaultLang,
diff --git a/lib/JWebmail/Plugin/I18N2/Maketext.pm b/lib/JWebmail/Plugin/I18N2/Maketext.pm
index a38bba7..ef3b08d 100644
--- a/lib/JWebmail/Plugin/I18N2/Maketext.pm
+++ b/lib/JWebmail/Plugin/I18N2/Maketext.pm
@@ -16,7 +16,7 @@ sub new {
my $class = shift;
my $conf = @_ == 1 ? shift : {@_};
- my $lexica = $conf->{directory} || [fileparse(__FILE__)]->[1] . '../I18N';
+ my $lexica = $conf->{directory};
my @languages = keys %{$conf->{languages} // {}};