[Libreoffice-commits] .: rsc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Nov 20 08:45:02 PST 2012
rsc/source/parser/rscibas.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 6a9f0cdc021bdc591cb140bb3c2d609723430b0c
Author: Eike Rathke <erack at redhat.com>
Date: Tue Nov 20 17:42:07 2012 +0100
use LanguageTag
Change-Id: I9aa7ff4a1aedee6fa029e3d94301788be1a3761a
diff --git a/rsc/source/parser/rscibas.cxx b/rsc/source/parser/rscibas.cxx
index 0f54ff7..d162f1e 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));
More information about the Libreoffice-commits
mailing list