diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-20 17:42:07 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-20 17:44:07 +0100 |
commit | 6a9f0cdc021bdc591cb140bb3c2d609723430b0c (patch) | |
tree | 1760e41b38537bdce8909c5276084ebd97c19180 /rsc | |
parent | 9a320f283f32f421e7fd14c030dbba2ad981d05f (diff) |
use LanguageTag
Change-Id: I9aa7ff4a1aedee6fa029e3d94301788be1a3761a
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/parser/rscibas.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rsc/source/parser/rscibas.cxx b/rsc/source/parser/rscibas.cxx index 0f54ff7fc03e..d162f1eb2971 100644 --- a/rsc/source/parser/rscibas.cxx +++ b/rsc/source/parser/rscibas.cxx @@ -25,6 +25,7 @@ #include <string.h> #include <i18npool/mslangid.hxx> +#include <i18npool/languagetag.hxx> #include <comphelper/string.hxx> #include <tools/rc.h> #include <tools/color.hxx> @@ -94,7 +95,7 @@ void RscLangEnum::Init( RscNameTable& rNames ) fprintf( stderr, "ISO Language in : %d\n", (int)nIndex, pLangEntry->mnLang, - MsLangId::convertLanguageToIsoByteString( pLangEntry->mnLang ).getStr() ); + OUStringToOString( LanguageTag( pLangEntry->mnLang ).getBcp47(), RTL_TEXTENCODING_ASCII_US).getStr() ); #endif rtl::OString aLang(pLangEntry->maLangStr, strlen(pLangEntry->maLangStr)); rtl::OString aCountry(pLangEntry->maCountry, strlen(pLangEntry->maCountry)); |