godot-module-template/tests/core/string
Dan Nicholson 2dd409fd70 Improve locale comparison
Since 9456454109, country specific locales are always preferred over
country-less locales even when the OS locale country doesn't match. For
example, running the Godot editor with locale es_ES will result in the
es_AR locale being chosen even though the es locale would be better.

The change happened because the score of the es_AR locale and the es
locale are the same when comparing to es_ES. Change this by parsing
locale strings into a Locale structure and decreasing the score when
script, country or variant are set in both but not matched. For the
es_ES case, this causes the es_AR score to be decreased since the
countries don't match. On the other hand, the es locale is not decreased
since it doesn't specify a country.
2024-11-12 06:06:50 -07:00
..
test_node_path.h Merge pull request #81822 from nlupugla/nodepath-slice 2024-02-29 13:53:34 +01:00
test_string.h Merge pull request #47502 from KoBeWi/add_0 2024-10-31 20:14:39 -05:00
test_translation.h Split TranslationServer into its own file 2024-08-15 15:00:47 +08:00
test_translation_server.h Improve locale comparison 2024-11-12 06:06:50 -07:00