aboutsummaryrefslogtreecommitdiff
path: root/source/nds
diff options
context:
space:
mode:
Diffstat (limited to 'source/nds')
-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];