aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBoriar2013-02-08 17:04:32 -0500
committerNebuleon Fumika2013-02-08 17:04:32 -0500
commit267da6d5e11a285b5172983de540f6f9219c21db (patch)
tree685f13eb6473f45342d08bea354acc89aefed121 /source
parentfa19e1551a584a48202677c5215b062895e4f34f (diff)
downloadsnes9x2005-267da6d5e11a285b5172983de540f6f9219c21db.tar.gz
snes9x2005-267da6d5e11a285b5172983de540f6f9219c21db.tar.bz2
snes9x2005-267da6d5e11a285b5172983de540f6f9219c21db.zip
Add a Spanish translation.
Diffstat (limited to 'source')
-rw-r--r--source/nds/gui.c9
-rw-r--r--source/nds/message.h5
2 files changed, 10 insertions, 4 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index 8c63bc4..6d67ba1 100644
--- a/source/nds/gui.c
+++ b/source/nds/gui.c
@@ -50,16 +50,17 @@ char argv[2][MAX_PATH];
// If adding a language, make sure you update the size of the array in
// message.h too.
-char *lang[5] =
+char *lang[6] =
{
"English", // 0
"简体中文", // 1
"Français", // 2
"Deutsch", // 3
"Nederlands", // 4
+ "Español", // 5
};
-char *language_options[] = { (char *) &lang[0], (char *) &lang[1], (char *) &lang[2], (char *) &lang[3], (char *) &lang[4] };
+char *language_options[] = { (char *) &lang[0], (char *) &lang[1], (char *) &lang[2], (char *) &lang[3], (char *) &lang[4], (char *) &lang[5] };
/******************************************************************************
* Macro definition
@@ -4116,6 +4117,10 @@ int load_language_msg(char *filename, u32 language)
strcpy(start, "STARTDUTCH");
strcpy(end, "ENDDUTCH");
break;
+ case SPANISH:
+ strcpy(start, "STARTSPANISH");
+ strcpy(end, "ENDSPANISH");
+ break;
}
u32 cmplen = strlen(start);
diff --git a/source/nds/message.h b/source/nds/message.h
index 93b8313..bab9292 100644
--- a/source/nds/message.h
+++ b/source/nds/message.h
@@ -147,10 +147,11 @@ enum LANGUAGE {
CHINESE_SIMPLIFIED,
FRENCH,
GERMAN,
- DUTCH
+ DUTCH,
+ SPANISH
};
-extern char* lang[5]; // Allocated in gui.c, needs to match the languages ^
+extern char* lang[6]; // Allocated in gui.c, needs to match the languages ^
char *msg[MSG_END+1];
char msg_data[32 * 1024];