summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-10-05 11:20:08 +0200
committerGitHub <noreply@github.com>2021-10-05 11:20:08 +0200
commit2ac320681ab6ba3067d5358843d4d82d3e86f4a8 (patch)
tree7464d117505d80b9d6170107bc45cf8838ca0f21 /core
parent6637207c70ddda76ff8a3892d525084e8dd99b2b (diff)
parent1cbec150846a52119bb5280c549c46c29b397a8f (diff)
Merge pull request #53225 from aaronfranke/c-locale
Diffstat (limited to 'core')
-rw-r--r--core/string/translation.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/string/translation.cpp b/core/string/translation.cpp
index 37dc8915ab..cf61467d08 100644
--- a/core/string/translation.cpp
+++ b/core/string/translation.cpp
@@ -809,9 +809,12 @@ static const char *locale_names[] = {
// - https://msdn.microsoft.com/en-us/library/windows/desktop/ms693062(v=vs.85).aspx
static const char *locale_renames[][2] = {
- { "in", "id" }, // Indonesian
- { "iw", "he" }, // Hebrew
- { "no", "nb" }, // Norwegian Bokmål
+ { "in", "id" }, // Indonesian
+ { "iw", "he" }, // Hebrew
+ { "no", "nb" }, // Norwegian Bokmål
+ { "C", "en" }, // "C" is the simple/default/untranslated Computer locale.
+ // ASCII-only, English, no currency symbols. Godot treats this as "en".
+ // See https://unix.stackexchange.com/a/87763/164141 "The C locale is"...
{ nullptr, nullptr }
};