1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

(Language) Fix language detection in Canada to English

Canada's default language is often picked up as `en_CA.UTF-8`, which inadvertently gets discovered as `ca`, or Catalan. This means that if you're in Canada, you would end up getting Catalan as your default language.

Adding `en_CA` to the language list as British English fixes the language detection for Canadians. This must be indexed above Catalan's `ca` so that it uses English instead of Catalan.
This commit is contained in:
Rob Loach 2023-08-31 15:06:06 -04:00 committed by GitHub
parent 77ca6f7566
commit a45ca11b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7266,6 +7266,7 @@ enum retro_language retroarch_get_language_from_iso(const char *iso639)
{"uk", RETRO_LANGUAGE_UKRAINIAN},
{"cs", RETRO_LANGUAGE_CZECH},
{"ca_ES@valencia", RETRO_LANGUAGE_CATALAN_VALENCIA},
{"en_CA", RETRO_LANGUAGE_BRITISH_ENGLISH}, // Canada must be indexed before Catalan's "ca".
{"ca", RETRO_LANGUAGE_CATALAN},
{"en_GB", RETRO_LANGUAGE_BRITISH_ENGLISH},
{"en", RETRO_LANGUAGE_ENGLISH},