* Move the locale-related stuff away from BCountry to BLocale.
* Remove the be_locale global object and go through the be_locale_roster instead * Rework the storage of data for the be_locale_roster, since BLocale already holds a BCountry and a BLanguage. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37907 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -188,8 +188,9 @@ TranslationComparator(const void* left, const void* right)
|
||||
language->GetTranslatedName(rightName);
|
||||
delete language;
|
||||
|
||||
return be_locale->Collator()->Compare(leftName.String(),
|
||||
rightName.String());
|
||||
BCollator collator;
|
||||
be_locale_roster->GetDefaultCollator(&collator);
|
||||
return collator.Compare(leftName.String(), rightName.String());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user