Merge pull request #16702 from godotengine/locales-iw-in
Add locale renames for Hebrew and Indonesian on Windows
This commit is contained in:
commit
3d4bf5a90e
1 changed files with 18 additions and 1 deletions
|
@ -34,6 +34,14 @@
|
||||||
#include "os/os.h"
|
#include "os/os.h"
|
||||||
#include "project_settings.h"
|
#include "project_settings.h"
|
||||||
|
|
||||||
|
// ISO 639-1 language codes, with the addition of glibc locales with their
|
||||||
|
// regional identifiers. This list must match the language names (in English)
|
||||||
|
// of locale_names.
|
||||||
|
//
|
||||||
|
// References:
|
||||||
|
// - https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|
||||||
|
// - https://lh.2xlibre.net/locales/
|
||||||
|
|
||||||
static const char *locale_list[] = {
|
static const char *locale_list[] = {
|
||||||
"aa", // Afar
|
"aa", // Afar
|
||||||
"aa_DJ", // Afar (Djibouti)
|
"aa_DJ", // Afar (Djibouti)
|
||||||
|
@ -756,8 +764,17 @@ static const char *locale_names[] = {
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Windows has some weird locale identifiers which do not honor the ISO 639-1
|
||||||
|
// standardized nomenclature. Whenever those don't conflict with existing ISO
|
||||||
|
// identifiers, we override them.
|
||||||
|
//
|
||||||
|
// Reference:
|
||||||
|
// - https://msdn.microsoft.com/en-us/library/windows/desktop/ms693062(v=vs.85).aspx
|
||||||
|
|
||||||
static const char *locale_renames[][2] = {
|
static const char *locale_renames[][2] = {
|
||||||
{ "no", "nb" },
|
{ "in", "id" }, // Indonesian
|
||||||
|
{ "iw", "he" }, // Hebrew
|
||||||
|
{ "no", "nb" }, // Norwegian Bokmål
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue