diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-22 11:23:01 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-22 11:23:01 +0100 |
commit | 7bfd21ca7cddbb24bf46a1414cff7e1228dda070 (patch) | |
tree | 0ee8118ae5b8953aa0db86177850338efc6915b1 /src/log | |
parent | 6ed5e5ee7d3a4da05d73e32eab1c200a65aad3a0 (diff) | |
download | wolfbones-7bfd21ca7cddbb24bf46a1414cff7e1228dda070.tar.gz wolfbones-7bfd21ca7cddbb24bf46a1414cff7e1228dda070.tar.bz2 |
added quite some German translations
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 } |