Add missing languages for getLanguageName, and if a language is missing, show
it in the assert. Fixes #673. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7869 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
17d2c4f000
commit
383d8612be
|
@ -63,6 +63,7 @@ static const struct
|
||||||
{ "fy", N_("Frisian"), LANG_FRISIAN, SUBLANG_FRISIAN_NETHERLANDS },
|
{ "fy", N_("Frisian"), LANG_FRISIAN, SUBLANG_FRISIAN_NETHERLANDS },
|
||||||
{ "ga", N_("Irish"), LANG_IRISH, SUBLANG_DEFAULT },
|
{ "ga", N_("Irish"), LANG_IRISH, SUBLANG_DEFAULT },
|
||||||
{ "it", N_("Italian"), LANG_ITALIAN, SUBLANG_DEFAULT },
|
{ "it", N_("Italian"), LANG_ITALIAN, SUBLANG_DEFAULT },
|
||||||
|
{ "la", N_("Latin"), LANG_LATIN, SUBLANG_DEFAULT },
|
||||||
{ "lt", N_("Lithuanian"), LANG_LITHUANIAN, SUBLANG_DEFAULT },
|
{ "lt", N_("Lithuanian"), LANG_LITHUANIAN, SUBLANG_DEFAULT },
|
||||||
{ "lv", N_("Latvian"), LANG_LATVIAN, SUBLANG_DEFAULT },
|
{ "lv", N_("Latvian"), LANG_LATVIAN, SUBLANG_DEFAULT },
|
||||||
{ "nb", N_("Norwegian"), LANG_NORWEGIAN, SUBLANG_DEFAULT },
|
{ "nb", N_("Norwegian"), LANG_NORWEGIAN, SUBLANG_DEFAULT },
|
||||||
|
@ -83,6 +84,7 @@ static const struct
|
||||||
{ "tr", N_("Turkish"), LANG_TURKISH, SUBLANG_DEFAULT },
|
{ "tr", N_("Turkish"), LANG_TURKISH, SUBLANG_DEFAULT },
|
||||||
{ "uz", N_("Uzbek (Cyrillic)"), LANG_UZBEK, SUBLANG_UZBEK_CYRILLIC },
|
{ "uz", N_("Uzbek (Cyrillic)"), LANG_UZBEK, SUBLANG_UZBEK_CYRILLIC },
|
||||||
{ "zh_CN", N_("Simplified Chinese"), LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED },
|
{ "zh_CN", N_("Simplified Chinese"), LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED },
|
||||||
|
{ "zh_TW", N_("Traditional Chinese"), LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL },
|
||||||
# endif
|
# endif
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
|
@ -131,6 +133,7 @@ static const struct
|
||||||
{ "tr", N_("Turkish"), "tr.UTF-8", "tr" },
|
{ "tr", N_("Turkish"), "tr.UTF-8", "tr" },
|
||||||
{ "uz", N_("Uzbek (Cyrillic)"), "uz.UTF-8", "uz" },
|
{ "uz", N_("Uzbek (Cyrillic)"), "uz.UTF-8", "uz" },
|
||||||
{ "zh_CN", N_("Simplified Chinese"), "zh_CN.UTF-8", "zh_CN" },
|
{ "zh_CN", N_("Simplified Chinese"), "zh_CN.UTF-8", "zh_CN" },
|
||||||
|
{ "zh_TW", N_("Traditional Chinese"), "zh_TW.UTF-8", "zh_TW" },
|
||||||
# endif
|
# endif
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@ -211,7 +214,7 @@ const char* getLanguageName(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(false, "getLanguageName: Unknown language");
|
ASSERT(false, "getLanguageName: Unknown language %s", language);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue