Fix language display i ReadOnlyBootPrompt :

* On a simple language like "fr", it will display "French"
 * On more complex things like "pt_BR", it will display "Portuguese (Brazil)"


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36288 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues 2010-04-15 12:21:17 +00:00
parent 0223612e7e
commit eec1db5a07
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ BLanguage::GetName(BString* name)
// TODO: This will return the language not in the current be_app_catalog, // TODO: This will return the language not in the current be_app_catalog,
// but in the current system wide language! Don't know the exact reason. // but in the current system wide language! Don't know the exact reason.
UnicodeString s; UnicodeString s;
fICULocale->getDisplayLanguage(s); fICULocale->getDisplayName(s);
BStringByteSink converter(name); BStringByteSink converter(name);
s.toUTF8(converter); s.toUTF8(converter);
return B_OK; return B_OK;