From eec1db5a0776d7f99084236ce2707cc6ea212c40 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Thu, 15 Apr 2010 12:21:17 +0000 Subject: [PATCH] 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 --- src/kits/locale/Language.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/locale/Language.cpp b/src/kits/locale/Language.cpp index 22a22dd9f9..fec69317f4 100644 --- a/src/kits/locale/Language.cpp +++ b/src/kits/locale/Language.cpp @@ -136,7 +136,7 @@ BLanguage::GetName(BString* name) // 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. UnicodeString s; - fICULocale->getDisplayLanguage(s); + fICULocale->getDisplayName(s); BStringByteSink converter(name); s.toUTF8(converter); return B_OK;