mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 11:15:59 +01:00
* Reenabled flags via the new BLocaleRoster::GetFlagIconForLanguage() method.
+alpha (also for the previous commit) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41745 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
702526b17f
commit
e78a1b6a6f
@ -63,20 +63,14 @@ public:
|
||||
BStringItem(label),
|
||||
fLanguage(language)
|
||||
{
|
||||
// Don't use *country* flags for *languages*. Can be re-enabled and adjusted
|
||||
// accordingly once we have language icons.
|
||||
#if 0
|
||||
fIcon = new(std::nothrow) BBitmap(BRect(0, 0, 15, 15), B_RGBA32);
|
||||
if (fIcon != NULL
|
||||
&& (!fIcon->IsValid()
|
||||
|| BLocaleRoster::Default()->GetFlagIconForCountry(fIcon,
|
||||
|| BLocaleRoster::Default()->GetFlagIconForLanguage(fIcon,
|
||||
language) != B_OK)) {
|
||||
delete fIcon;
|
||||
fIcon = NULL;
|
||||
}
|
||||
#else
|
||||
fIcon = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
~LanguageItem()
|
||||
@ -313,7 +307,7 @@ BootPromptWindow::_PopulateLanguages()
|
||||
|
||||
// Try to instantiate a BCatalog for each language, it will only work
|
||||
// for translations of this application. So the list of languages will be
|
||||
// limited to catalogs written for this application, which is on purpose!
|
||||
// limited to catalogs written for this application, which is on purpose!
|
||||
|
||||
const char* languageID;
|
||||
LanguageItem* currentItem = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user