* 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:
Adrien Destugues
2010-08-04 18:45:06 +00:00
parent afbbc97abf
commit 5c3a303486
21 changed files with 870 additions and 808 deletions
+3 -2
View File
@@ -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());
}