Fixed the language listing so the preflet allows you to select your preferred languages in a working way.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33230 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -513,12 +513,7 @@ BLocaleRoster::GetInstalledLanguages(BMessage *languages) const
|
|||||||
|
|
||||||
// Loop over the strings and add them to an std::set to remove duplicates
|
// Loop over the strings and add them to an std::set to remove duplicates
|
||||||
for (i = 0; i < localeCount; i++) {
|
for (i = 0; i < localeCount; i++) {
|
||||||
UnicodeString ICULanguageName;
|
languageSet.insert(icuLocaleList[i].getLanguage());
|
||||||
BString LanguageName;
|
|
||||||
BStringByteSink StringConverter(&LanguageName);
|
|
||||||
icuLocaleList[i].getDisplayLanguage(ICULanguageName);
|
|
||||||
ICULanguageName.toUTF8(StringConverter);
|
|
||||||
languageSet.insert(LanguageName);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user