diff options
author | Nebuleon Fumika | 2013-02-14 04:05:35 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2013-02-14 04:05:35 -0500 |
commit | a1b2ff6e8760d3b7579998309e598797ad1c80f5 (patch) | |
tree | 9dcbf9a426e2bbe125bf6915a01f74007f700915 /source/nds | |
parent | a8c2fcdb2c3fa0211581cc82ea8e2d93d225fd7d (diff) | |
parent | 5a8a513b66845b582b37fc93df1413c0c6a094f4 (diff) | |
download | snes9x2005-a1b2ff6e8760d3b7579998309e598797ad1c80f5.tar.gz snes9x2005-a1b2ff6e8760d3b7579998309e598797ad1c80f5.tar.bz2 snes9x2005-a1b2ff6e8760d3b7579998309e598797ad1c80f5.zip |
Merge pull request #35 from alexinfurs/master
Add an Italian translation
Diffstat (limited to 'source/nds')
-rw-r--r-- | source/nds/gui.c | 9 | ||||
-rw-r--r-- | source/nds/message.h | 5 |
2 files changed, 10 insertions, 4 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c index b7ab69e..db3bd07 100644 --- a/source/nds/gui.c +++ b/source/nds/gui.c @@ -51,7 +51,7 @@ char argv[2][MAX_PATH]; // If adding a language, make sure you update the size of the array in // message.h too. -char *lang[6] = +char *lang[7] = { "English", // 0 "简体中文", // 1 @@ -59,9 +59,10 @@ char *lang[6] = "Deutsch", // 3 "Nederlands", // 4 "Español", // 5 + "Italiano" // 6 }; -char *language_options[] = { (char *) &lang[0], (char *) &lang[1], (char *) &lang[2], (char *) &lang[3], (char *) &lang[4], (char *) &lang[5] }; +char *language_options[] = { (char *) &lang[0], (char *) &lang[1], (char *) &lang[2], (char *) &lang[3], (char *) &lang[4], (char *) &lang[5], (char *) &lang[6] }; /****************************************************************************** * Macro definition @@ -4229,6 +4230,10 @@ int load_language_msg(char *filename, u32 language) strcpy(start, "STARTSPANISH"); strcpy(end, "ENDSPANISH"); break; + case ITALIAN: + strcpy(start, "STARTITALIAN"); + strcpy(end, "ENDITALIAN"); + break; } u32 cmplen = strlen(start); diff --git a/source/nds/message.h b/source/nds/message.h index 2799b4e..73686e8 100644 --- a/source/nds/message.h +++ b/source/nds/message.h @@ -152,10 +152,11 @@ enum LANGUAGE { FRENCH, GERMAN, DUTCH, - SPANISH + SPANISH, + ITALIAN }; -extern char* lang[6]; // Allocated in gui.c, needs to match the languages ^ +extern char* lang[7]; // Allocated in gui.c, needs to match the languages ^ char *msg[MSG_END+1]; char msg_data[32 * 1024]; |