aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSignZ2013-02-07 04:56:34 -0500
committerNebuleon Fumika2013-02-07 04:56:34 -0500
commitea8ff33951d53f0e71801052c540dcc1bd0f7f42 (patch)
treeef4b7ea08b46d2ebe84a275f410776d73b778b01 /source
parent55895f01f73ba1b4fab7095fa5cb8cf7884846ed (diff)
downloadsnes9x2005-ea8ff33951d53f0e71801052c540dcc1bd0f7f42.tar.gz
snes9x2005-ea8ff33951d53f0e71801052c540dcc1bd0f7f42.tar.bz2
snes9x2005-ea8ff33951d53f0e71801052c540dcc1bd0f7f42.zip
EN: Added a German translation. DE: Deutsche Übersetzung hinzugefügt.
Diffstat (limited to 'source')
-rw-r--r--source/nds/gui.c11
-rw-r--r--source/nds/message.h7
2 files changed, 12 insertions, 6 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index f0671b0..190fcc9 100644
--- a/source/nds/gui.c
+++ b/source/nds/gui.c
@@ -50,14 +50,15 @@ char argv[2][MAX_PATH];
// If adding a language, make sure you update the size of the array in
// message.h too.
-char *lang[3] =
+char *lang[4] =
{
"English", // 0
"简体中文", // 1
- "Français", // 2
+ "Français", // 2
+ "Deutsch", // 3
};
-char *language_options[] = { (char *) &lang[0], (char *) &lang[1], (char *) &lang[2] };
+char *language_options[] = { (char *) &lang[0], (char *) &lang[1], (char *) &lang[2], (char *) &lang[3] };
/******************************************************************************
* Macro definition
@@ -4105,6 +4106,10 @@ int load_language_msg(char *filename, u32 language)
strcpy(start, "STARTFRENCH");
strcpy(end, "ENDFRENCH");
break;
+ case GERMAN:
+ strcpy(start, "STARTGERMAN");
+ strcpy(end, "ENDGERMAN");
+ break;
}
u32 cmplen = strlen(start);
diff --git a/source/nds/message.h b/source/nds/message.h
index c7e79b8..538bc3b 100644
--- a/source/nds/message.h
+++ b/source/nds/message.h
@@ -145,13 +145,14 @@ enum MSG
enum LANGUAGE {
ENGLISH,
CHINESE_SIMPLIFIED,
- FRENCH
+ FRENCH,
+ GERMAN
};
-extern char* lang[3]; // Allocated in gui.c, needs to match the languages ^
+extern char* lang[4]; // Allocated in gui.c, needs to match the languages ^
char *msg[MSG_END+1];
-char msg_data[16 * 1024];
+char msg_data[32 * 1024];
#endif //__MESSAGE_H__