1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00
Files
godot/core
Rémi Verschelde 0fcb68ffa1 Translation: Refactor locale matching to use proper language code
The previous code only parsed the first two characters (potentially reading
out of bounds if input was invalid), but some locales use a 3-letter language
code (e.g. 'nah_MX').

So I refactored the logic a bit to properly parse the locale and extract the
part left of the regional code, if provided (supports both 'en_US' and 'en-US'
style).

I made TranslationServer::get_language_code() public as I'll use it in a
follow up commit.
2019-12-04 16:53:08 +01:00
..
2019-09-24 21:33:09 +02:00
2019-09-14 13:08:28 -07:00
2019-08-08 11:58:57 +03:00
2019-08-08 11:58:57 +03:00
2019-09-25 10:28:50 +02:00
2019-05-09 06:25:32 -04:00
2019-09-28 18:15:23 +03:00
2019-01-30 06:43:56 +01:00
2019-05-30 10:28:03 +02:00
2019-09-04 12:17:07 +08:00
2019-09-04 12:17:07 +08:00
2019-01-01 12:58:10 +01:00
2019-08-12 04:26:38 -05:00
2019-11-03 10:37:48 -06:00
2019-08-12 04:26:38 -05:00
2019-08-12 04:26:38 -05:00