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:
Adrien Destugues 2009-09-21 20:29:24 +00:00
parent d36235a21f
commit 9ac21cc7b2

View File

@ -513,12 +513,7 @@ BLocaleRoster::GetInstalledLanguages(BMessage *languages) const
// Loop over the strings and add them to an std::set to remove duplicates
for (i = 0; i < localeCount; i++) {
UnicodeString ICULanguageName;
BString LanguageName;
BStringByteSink StringConverter(&LanguageName);
icuLocaleList[i].getDisplayLanguage(ICULanguageName);
ICULanguageName.toUTF8(StringConverter);
languageSet.insert(LanguageName);
languageSet.insert(icuLocaleList[i].getLanguage());
}
#endif