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:
@@ -1587,7 +1587,7 @@ MainWin::_SetupTrackMenus(BMenu* audioTrackMenu, BMenu* videoTrackMenu,
|
||||
if (languageString != NULL) {
|
||||
BLanguage language(languageString);
|
||||
BString languageName;
|
||||
if (language.GetTranslatedName(languageName) == B_OK)
|
||||
if (language.GetName(languageName) == B_OK)
|
||||
languageString = languageName.String();
|
||||
snprintf(s, sizeof(s), "%s", languageString);
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user