diff options
-rw-r--r-- | scp2/macros/macro.pl | 16 | ||||
-rw-r--r-- | scp2/source/ooo/file_ooo.scp | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/scp2/macros/macro.pl b/scp2/macros/macro.pl index 43a00f4fe411..91089c901cef 100644 --- a/scp2/macros/macro.pl +++ b/scp2/macros/macro.pl @@ -64,6 +64,7 @@ write_DIR_ISOLANGUAGE_ALL_LANG(); write_DIR_ISOLANGUAGE_ALL_LANG_LPROJ(); write_DIR_IDENT_ALL_LANG(); write_EXTRA_ALL_LANG(); +write_EXTRA_ALL_LANG_BUT_EN_US(); write_EXTRA_ALL_GOOD_HELP_LOCALIZATIONS_LANG(); write_EXTRA_IDENT_ALL_LANG(); write_RESFILE_ALL_LANG(); @@ -146,6 +147,21 @@ sub write_EXTRA_ALL_LANG print OUTFILE "\n\n"; } +sub write_EXTRA_ALL_LANG_BUT_EN_US +{ + print OUTFILE "#define EXTRA_ALL_LANG_BUT_EN_US(name,ext) "; + my $first = 1; + foreach $lang (@completelangiso) { + if ($lang ne "en-US") { + print OUTFILE "; " unless $first; + $first = 0; + print OUTFILE + "\\\n\tName ($lang) = CONFIGLANGFILENAME(name,_$lang,ext)"; + } + } + print OUTFILE "\n\n"; +} + sub write_EXTRA_ALL_GOOD_HELP_LOCALIZATIONS_LANG { my $first = 1; diff --git a/scp2/source/ooo/file_ooo.scp b/scp2/source/ooo/file_ooo.scp index ea65ee2d7135..4f21eb5d6280 100644 --- a/scp2/source/ooo/file_ooo.scp +++ b/scp2/source/ooo/file_ooo.scp @@ -1218,7 +1218,7 @@ End File gid_File_Registry_Lang Dir = gid_Dir_Share_Registry_Res; TXT_FILE_BODY; - EXTRA_ALL_LANG(registry,xcd); + EXTRA_ALL_LANG_BUT_EN_US(registry,xcd); End File gid_File_Registry_Filter_Zip |