aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorDiego Liberal2013-02-14 15:28:38 -0500
committerNebuleon Fumika2013-02-14 15:28:38 -0500
commite156b475034a2059f10e1208dbfad62128620518 (patch)
tree9226b25bf2d0194539b62f22d06a88b109c137db /source
parent03e8e8863a4fb9aea9da2d849cbc058d2c9159bc (diff)
downloadsnes9x2005-e156b475034a2059f10e1208dbfad62128620518.tar.gz
snes9x2005-e156b475034a2059f10e1208dbfad62128620518.tar.bz2
snes9x2005-e156b475034a2059f10e1208dbfad62128620518.zip
Add a Brazilian Portuguese localisation.
Diffstat (limited to 'source')
-rw-r--r--source/nds/gui.c11
-rw-r--r--source/nds/message.h5
2 files changed, 11 insertions, 5 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index db3bd07..0bb3ccb 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[7] =
+char *lang[8] =
{
"English", // 0
"简体中文", // 1
@@ -59,10 +59,11 @@ char *lang[7] =
"Deutsch", // 3
"Nederlands", // 4
"Español", // 5
- "Italiano" // 6
+ "Italiano", // 6
+ "Português (br.)", // 7
};
-char *language_options[] = { (char *) &lang[0], (char *) &lang[1], (char *) &lang[2], (char *) &lang[3], (char *) &lang[4], (char *) &lang[5], (char *) &lang[6] };
+char *language_options[] = { (char *) &lang[0], (char *) &lang[1], (char *) &lang[2], (char *) &lang[3], (char *) &lang[4], (char *) &lang[5], (char *) &lang[6], (char *) &lang[7] };
/******************************************************************************
* Macro definition
@@ -4234,6 +4235,10 @@ int load_language_msg(char *filename, u32 language)
strcpy(start, "STARTITALIAN");
strcpy(end, "ENDITALIAN");
break;
+ case PORTUGUESE_BRAZILIAN:
+ strcpy(start, "STARTPORTUGUESEBR");
+ strcpy(end, "ENDPORTUGUESEBR");
+ break;
}
u32 cmplen = strlen(start);
diff --git a/source/nds/message.h b/source/nds/message.h
index 73686e8..c9e9704 100644
--- a/source/nds/message.h
+++ b/source/nds/message.h
@@ -153,10 +153,11 @@ enum LANGUAGE {
GERMAN,
DUTCH,
SPANISH,
- ITALIAN
+ ITALIAN,
+ PORTUGUESE_BRAZILIAN
};
-extern char* lang[7]; // Allocated in gui.c, needs to match the languages ^
+extern char* lang[8]; // Allocated in gui.c, needs to match the languages ^
char *msg[MSG_END+1];
char msg_data[32 * 1024];