godot/tests/core
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
..
config Set clang-format RemoveSemicolon rule to true 2024-10-25 13:49:43 -04:00
input Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
io Merge pull request #95931 from pafuent/adding_packet_peer_tests 2024-10-01 17:30:36 +02:00
math Always add decimal when printing float 2024-10-23 15:00:21 +02:00
object Set clang-format RemoveSemicolon rule to true 2024-10-25 13:49:43 -04:00
os [Tests] Fix unit tests in template builds 2024-06-29 18:35:50 +02:00
string Improve locale comparison 2024-11-12 06:06:50 -07:00
templates Implement array based hash map 2024-10-24 21:34:12 +03:00
threads WorkerThreadPool: Support daemon-like tasks (via yield semantics) 2024-04-10 18:47:42 +02:00
variant Always add decimal when printing float 2024-10-23 15:00:21 +02:00
test_crypto.h Add const lvalue ref to core/* container parameters 2024-02-14 11:20:36 -03:00
test_hashing_context.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_time.h Explicitly cast to Variant's int type in Time tests 2023-02-20 14:46:21 -06:00