Fix for https://github.com/libretro/RetroArch/issues/15097 and a minor change to recognize en_GB better. (#15105)

This commit is contained in:
zoltanvb 2023-03-18 23:05:32 +01:00 committed by GitHub
parent 8d12ff3cf1
commit ca11479f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ const char *get_user_language_iso639_1(bool limit)
case RETRO_LANGUAGE_CATALAN_VALENCIA:
if (limit)
return "ca";
return "ca_valencia";
return "ca_ES@valencia";
case RETRO_LANGUAGE_CATALAN:
return "ca";
case RETRO_LANGUAGE_BRITISH_ENGLISH:

View File

@ -7058,7 +7058,6 @@ enum retro_language retroarch_get_language_from_iso(const char *iso639)
const struct lang_pair pairs[] =
{
{"en", RETRO_LANGUAGE_ENGLISH},
{"ja", RETRO_LANGUAGE_JAPANESE},
{"fr", RETRO_LANGUAGE_FRENCH},
{"es", RETRO_LANGUAGE_SPANISH},
@ -7090,9 +7089,10 @@ enum retro_language retroarch_get_language_from_iso(const char *iso639)
{"sv", RETRO_LANGUAGE_SWEDISH},
{"uk", RETRO_LANGUAGE_UKRAINIAN},
{"cs", RETRO_LANGUAGE_CZECH},
{"ca_valencia", RETRO_LANGUAGE_CATALAN_VALENCIA},
{"ca_ES@valencia", RETRO_LANGUAGE_CATALAN_VALENCIA},
{"ca", RETRO_LANGUAGE_CATALAN},
{"en_GB", RETRO_LANGUAGE_BRITISH_ENGLISH},
{"en", RETRO_LANGUAGE_ENGLISH},
{"hu", RETRO_LANGUAGE_HUNGARIAN},
};