summaryrefslogtreecommitdiff
path: root/rsc/source/parser/rscibas.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-20 17:42:07 +0100
committerEike Rathke <erack@redhat.com>2012-11-20 17:44:07 +0100
commit6a9f0cdc021bdc591cb140bb3c2d609723430b0c (patch)
tree1760e41b38537bdce8909c5276084ebd97c19180 /rsc/source/parser/rscibas.cxx
parent9a320f283f32f421e7fd14c030dbba2ad981d05f (diff)
use LanguageTag
Change-Id: I9aa7ff4a1aedee6fa029e3d94301788be1a3761a
Diffstat (limited to 'rsc/source/parser/rscibas.cxx')
-rw-r--r--rsc/source/parser/rscibas.cxx3
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));