godot/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 Merge pull request #98091 from AThousandShips/improve_err_prints_core 2024-10-31 20:14:36 -05:00
crypto [Core] Improve error messages with vformat 2024-10-30 15:55:51 +01:00
debugger [Core] Improve error messages with vformat 2024-10-30 15:55:51 +01:00
error Fix race conditions in breadcrumbs 2024-10-22 22:08:46 -03:00
extension Merge pull request #47502 from KoBeWi/add_0 2024-10-31 20:14:39 -05:00
input Merge pull request #98091 from AThousandShips/improve_err_prints_core 2024-10-31 20:14:36 -05:00
io [Core] Improve error messages with vformat 2024-10-30 15:55:51 +01:00
math Merge pull request #47502 from KoBeWi/add_0 2024-10-31 20:14:39 -05:00
object [Core] Improve error messages with vformat 2024-10-30 15:55:51 +01:00
os [Core] Improve error messages with vformat 2024-10-30 15:55:51 +01:00
string Improve locale comparison 2024-11-12 06:06:50 -07:00
templates Merge pull request #98652 from stuartcarnie/2d_texture_state_fixes 2024-10-29 19:25:54 -05:00
variant Merge pull request #47502 from KoBeWi/add_0 2024-10-31 20:14:39 -05:00
core_bind.compat.inc Add support for non-blocking IO mode to OS.execute_with_pipe. 2024-09-06 14:16:39 +03:00
core_bind.cpp Merge pull request #98679 from Bromeon/qol/rename-static-call 2024-10-31 20:14:44 -05:00
core_bind.h Rename ClassDB::class_call_static_method -> class_call_static 2024-10-30 19:07:28 +01:00
core_builders.py
core_constants.cpp Add @export_tool_button annotation for easily creating inspector buttons 2024-09-27 22:24:15 +01:00
core_constants.h
core_globals.cpp
core_globals.h
core_string_names.cpp
core_string_names.h
doc_data.cpp Implement typed dictionaries 2024-09-04 10:27:26 -05:00
doc_data.h Docs: Add missing deprecated/experimental tag support for theme items 2024-09-04 17:49:05 +03:00
register_core_types.cpp Add translation domain 2024-09-17 13:09:44 +08:00
register_core_types.h
SCsub SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
typedefs.h Set clang-format RemoveSemicolon rule to true 2024-10-25 13:49:43 -04:00
version.h