From 1cbec150846a52119bb5280c549c46c29b397a8f Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Tue, 28 Sep 2021 12:53:51 -0500 Subject: [PATCH] Add locale rename for the "C" locale --- core/string/translation.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/string/translation.cpp b/core/string/translation.cpp index 5c0eb388f5f..af27219a609 100644 --- a/core/string/translation.cpp +++ b/core/string/translation.cpp @@ -810,9 +810,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 } };