diff options
Diffstat (limited to 'src/log')
-rwxr-xr-x | src/log/create_wolfmsg.pl | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/log/create_wolfmsg.pl b/src/log/create_wolfmsg.pl index 3da27bd..035ef5c 100755 --- a/src/log/create_wolfmsg.pl +++ b/src/log/create_wolfmsg.pl @@ -2,6 +2,12 @@ use strict; +# configuration + +my %gettext_lang = ( + "German" => "../po/de.po" +); + # header declaring the langages print <<EOF; ;// messages file for wolf messages @@ -24,6 +30,13 @@ LanguageNames = ( EOF +# read all gettext translations +my $lang; +my %gettext = (); +foreach $lang ( keys %gettext_lang ) { +# my $msg = $gettext{"${lang}_${formatstr_c}"}; +} + print <<EOF; MessageId = 0x1 SymbolicName = WOLF_CATEGORY_1 @@ -142,9 +155,10 @@ $formatstr_win . EOF } else { + my $msg = $gettext{"${lang}_${formatstr_c}"}; print <<EOF; Language = $lang -TODO: Gettext here.. +$msg . EOF } |