Next step of Locale Kit refactoring:
* BLocale now keeps language and country completely separate and mixes the formatting conventions into the current language's locale when formatting dates and times (needs to be done for number- and currency-formatting, too, since the digits may not be in the preferred language) * optimized fetching of the flag icons such that they are all loaded in one go (by the locale roster) - this alone speeds up the Locale preflet considerably * worked on fixing the language confusion in the Locale preflet * fixed a couple of bugs in the Locale preflet that would lead to illegal characters being displayed in the date-subpart menus git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39013 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -182,7 +182,7 @@ TranslationComparator(const void* left, const void* right)
|
||||
BString leftName;
|
||||
if (be_locale_roster->GetLanguage(leftTranslation->languageCode, &language)
|
||||
== B_OK) {
|
||||
language->GetTranslatedName(leftName);
|
||||
language->GetName(leftName);
|
||||
delete language;
|
||||
} else
|
||||
leftName = leftTranslation->languageCode;
|
||||
@@ -190,7 +190,7 @@ TranslationComparator(const void* left, const void* right)
|
||||
BString rightName;
|
||||
if (be_locale_roster->GetLanguage(rightTranslation->languageCode, &language)
|
||||
== B_OK) {
|
||||
language->GetTranslatedName(rightName);
|
||||
language->GetName(rightName);
|
||||
delete language;
|
||||
} else
|
||||
rightName = rightTranslation->languageCode;
|
||||
@@ -1101,7 +1101,7 @@ AboutView::_CreateCreditsView()
|
||||
langName.Truncate(0);
|
||||
if (be_locale_roster->GetLanguage(translation.languageCode, &lang)
|
||||
== B_OK) {
|
||||
lang->GetTranslatedName(langName);
|
||||
lang->GetName(langName);
|
||||
delete lang;
|
||||
} else {
|
||||
// We failed to get the localized readable name,
|
||||
|
||||
Reference in New Issue
Block a user