Adding five new official languages to the "-l" flag in Xastir.

This commit is contained in:
Curt Mills 2008-08-30 23:30:34 +00:00
parent c6700c571e
commit 21ebe3889d
11 changed files with 87 additions and 24 deletions

View file

@ -1430,6 +1430,7 @@ file that are useful for debugging in case Xastir crashes.
Current choices are:
Dutch English French German Italian Portuguese Spanish
ElmerFudd MuppetsChef OldeEnglish PigLatin PirateEnglish
This option will be stored in the users config file for the next time
Xastir is run. On new installs Xastir will default to English unless

View file

@ -557,6 +557,11 @@ you'll see this:
-l Italian Set the language to Italian
-l Portuguese Set the language to Portuguese
-l Spanish Set the language to Spanish
-l ElmerFudd Set the language to ElmerFudd
-l MuppetsChef Set the language to MuppetsChef
-l OldeEnglish Set the language to OldeEnglish
-l PigLatin Set the language to PigLatin
-l PirateEnglish Set the language to PirateEnglish
-m Deselect Maps
-p Disable popups
-t Internal SIGSEGV handler enabled

View file

@ -499,6 +499,7 @@ this command line instead from inside an Xterm:
Current choices are:
Dutch English French German Italian Portuguese Spanish
ElmerFudd MuppetsChef OldeEnglish PigLatin PirateEnglish
This option will be stored in the users config file for the next
time Xastir is run. On new installs Xastir will default to English

View file

@ -9,20 +9,20 @@
# order to generate the needed configure/makefiles
#
echo " 6) Removing autom4te.cache directory..."
echo " 7) Removing autom4te.cache directory..."
rm -rf autom4te.cache
echo " 5) Running aclocal..."
echo " 6) Running aclocal..."
aclocal
echo " 4) Running autoheader..."
echo " 5) Running autoheader..."
autoheader
echo " 3) Running autoconf..."
echo " 4) Running autoconf..."
autoconf
# Cygwin needs these parameters to be separate.
echo " 2) Running automake..."
echo " 3) Running automake..."
automake -a -c
# Automake-1.9 on SuSE 10 doesn't copy over "mkinstalldirs" if
@ -30,9 +30,9 @@ automake -a -c
# if so.
if test -x "mkinstalldirs"
then
echo " 1) Checking for 'mkinstalldirs'... Found!"
echo " 2) Checking for 'mkinstalldirs'... Found!"
else
echo " 1) Checking for 'mkinstalldirs'... Not Found"
echo " 2) Checking for 'mkinstalldirs'... Not Found"
echo " Attempting to copy it from system directories'"
(cp /usr/local/share/automake*/mkinstalldirs . 2>/dev/null)
# Did we succeed?
@ -51,5 +51,19 @@ else
fi
fi
# Generate derived language files
echo -n " 1) Generating derived language files"
(cd config; ../scripts/langPigLatin.pl <language-English.sys >language-PigLatin.sys)
echo -n "."
(cd config; ../scripts/langElmerFudd.pl <language-English.sys >language-ElmerFudd.sys)
echo -n "."
(cd config; ../scripts/langMuppetsChef.pl <language-English.sys >language-MuppetsChef.sys)
echo -n "."
(cd config; ../scripts/langOldeEnglish.pl <language-English.sys >language-OldeEnglish.sys)
echo -n "."
(cd config; ../scripts/langPirateEnglish.pl <language-English.sys >language-PirateEnglish.sys)
echo "."
echo "Bootstrap complete."

View file

@ -13,6 +13,11 @@ EXTRA_DIST = \
language-Italian.sys \
language-Portuguese.sys \
language-Spanish.sys \
language-ElmerFudd.sys \
language-MuppetsChef.sys \
language-OldeEnglish.sys \
language-PigLatin.sys \
language-PirateEnglish.sys \
xastir.rgb \
gps_wpt.dbfawk \
24kgrid.dbfawk \

View file

@ -249,13 +249,18 @@ change the current language choice, call Xastir with the option '-l':
xastir -lEnglish
Language options are:
xastir -lDutch
xastir -lEnglish
xastir -lFrench
xastir -lGerman
xastir -lItalian
xastir -lPortuguese
xastir -lSpanish
xastir -l Dutch
xastir -l English
xastir -l French
xastir -l German
xastir -l Italian
xastir -l Portuguese
xastir -l Spanish
xastir -l ElmerFudd
xastir -l MuppetsSwedishChef
xastir -l OldeEnglish
xastir -l PigLatin
xastir -l PirateEnglish
The chosen language will be stored in your config file, so it is preserved
for the next time you call Xastir. For new installs Xastir will default to

View file

@ -255,11 +255,16 @@ Sie k
xastir -lGerman
Weitere Möglichkeiten sind:
xastir -lDutch
xastir -lEnglish
xastir -lFrench
xastir -lItalian
xastir -lSpanish
xastir -l Dutch
xastir -l English
xastir -l French
xastir -l Italian
xastir -l Spanish
xastir -l ElmerFudd
xastir -l MuppetsSwedishChef
xastir -l OldeEnglish
xastir -l PigLatin
xastir -l PirateEnglish
Die so gewählte Sprache wird in der Konfigurationsdatei des Benutzers
gespeichert und auch beim nächsten Aufruf ohne diese Option verwendet.

View file

@ -174,6 +174,8 @@ cambiare il linguaggio usato da xastir bisogna utilizzare la seguente sintassi:
xastir -l
Attualmente le scelte sono: English Dutch French German Spanish Italian
ElmerFudd MuppetsSwedishChef OldeEnglish PigLatin
PirateEnglish
Questa opzione viene memorizzata nel file di configurazione dell'utente e resa
disponibile per i seguenti usi del programma. Per le nuove installazioni

View file

@ -145,11 +145,16 @@ change the current language choice, call Xastir with the option '-l':
xastir -lEnglish
Other language options are:
xastir -lDutch
xastir -lFrench
xastir -lGerman
xastir -lItalian
xastir -lSpanish
xastir -l Dutch
xastir -l French
xastir -l German
xastir -l Italian
xastir -l Spanish
xastir -l ElmerFudd
xastir -l MuppetsSwedishChef
xastir -l OldeEnglish
xastir -l PigLatin
xastir -l PirateEnglish
The chosen language will be stored in your config file, so it is
preserved for the next time you call Xastir without this option.

View file

@ -159,6 +159,11 @@ Franc
Holandés (Dutch)
Inglés (English)
Italiano (Italian)
ElmerFudd (English)
MuppetsSwedishChef (English)
OldeEnglish (English)
PigLatin (English)
PirateEnglish (English)
Si Usted quieres correr el Xastir en español use ésta línea:

View file

@ -27317,6 +27317,16 @@ int main(int argc, char *argv[], char *envp[]) {
xastir_snprintf(lang_to_use_or, sizeof(lang_to_use_or), "Italian");
} else if (strncasecmp(optarg,"PORTUGUESE",10) == 0) {
xastir_snprintf(lang_to_use_or, sizeof(lang_to_use_or), "Portuguese");
} else if (strncasecmp(optarg,"ELMERFUDD",10) == 0) {
xastir_snprintf(lang_to_use_or, sizeof(lang_to_use_or), "ElmerFudd");
} else if (strncasecmp(optarg,"MUPPETSCHEF",10) == 0) {
xastir_snprintf(lang_to_use_or, sizeof(lang_to_use_or), "MuppetsChef");
} else if (strncasecmp(optarg,"OLDEENGLISH",10) == 0) {
xastir_snprintf(lang_to_use_or, sizeof(lang_to_use_or), "OldeEnglish");
} else if (strncasecmp(optarg,"PIGLATIN",10) == 0) {
xastir_snprintf(lang_to_use_or, sizeof(lang_to_use_or), "PigLatin");
} else if (strncasecmp(optarg,"PIRATEENGLISH",10) == 0) {
xastir_snprintf(lang_to_use_or, sizeof(lang_to_use_or), "PirateEnglish");
} else {
ag_error++;
fprintf(stderr," INVALID");
@ -27367,6 +27377,11 @@ int main(int argc, char *argv[], char *envp[]) {
fprintf(stderr,"-l Italian Set the language to Italian\n");
fprintf(stderr,"-l Portuguese Set the language to Portuguese\n");
fprintf(stderr,"-l Spanish Set the language to Spanish\n");
fprintf(stderr,"-l ElmerFudd Set the language to ElmerFudd\n");
fprintf(stderr,"-l MuppetsChef Set the language to MuppetsChef\n");
fprintf(stderr,"-l OldeEnglish Set the language to OldeEnglish\n");
fprintf(stderr,"-l PigLatin Set the language to PigLatin\n");
fprintf(stderr,"-l PirateEnglish Set the language to PirateEnglish\n");
fprintf(stderr,"-m Deselect Maps\n");
fprintf(stderr,"-p Disable popups\n");
fprintf(stderr,"-t Internal SIGSEGV handler enabled\n");