mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-28 15:50:17 +08:00
Add test case for locale tag with script part
This test checks that a locale tag that includes an explicit script part (like `sr-Latn-RS`) is correctly parsed and located in the internal language database.
This commit is contained in:
@@ -415,6 +415,8 @@ TEST_CASE("wxUILocale::FindLanguageInfo", "[uilocale]")
|
||||
CheckFindLanguage("English", "en");
|
||||
CheckFindLanguage("English_United States", "en_US");
|
||||
CheckFindLanguage("English_United States.utf8", "en_US");
|
||||
// Test tag that includes an explicit script
|
||||
CheckFindLanguage("sr-Latn-RS", "sr_RS@latin");
|
||||
}
|
||||
|
||||
// Test which can be used to check if the given locale tag is supported.
|
||||
|
||||
Reference in New Issue
Block a user