Hi, I have submitted a patch for review:
https://gerrit.libreoffice.org/3672 To pull it, you can do: git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/72/3672/1 removed commented out code that wouldn't be correct anyway Change-Id: I1fc5f6b7e779ae0c9ac5f30934c2c5d75757581d --- M lotuswordpro/source/filter/lwptools.cxx 1 file changed, 0 insertions(+), 45 deletions(-) diff --git a/lotuswordpro/source/filter/lwptools.cxx b/lotuswordpro/source/filter/lwptools.cxx index 9ef4ec5..77eb3dc 100644 --- a/lotuswordpro/source/filter/lwptools.cxx +++ b/lotuswordpro/source/filter/lwptools.cxx @@ -262,29 +262,7 @@ style = icu::DateFormat::FULL;//system full date format else style = icu::DateFormat::SHORT;//system short date format -/* ::com::sun::star::lang::Locale aLocale=Application::GetSettings().GetLocale(); - OUString strLang = aLocale.Language; - OUString strCountry = aLocale.Country; - strLang = strLang + A2OUSTR("_"); - OUString strLocale = strLang + strCountry; - int32_t nLength = 0; - int32_t nLengthNeed; - UErrorCode status = U_ZERO_ERROR; - UChar* pattern = NULL; - - UDateFormat* fmt= udat_open(UDAT_FULL, UDAT_FULL, - (char*)(OUStringToOString(strLocale,RTL_TEXTENCODING_MS_1252).getStr()), NULL, 0, NULL, 0, &status); - - nLengthNeed = udat_toPattern(fmt,true,NULL,nLength,&status); - if (status == U_BUFFER_OVERFLOW_ERROR) - { - status = U_ZERO_ERROR; - nLength = nLengthNeed +1; - pattern = (UChar*)malloc(sizeof(UChar)*nLength); - udat_toPattern(fmt,true,pattern,nLength,&status); - } -*/ //1 get locale for system icu::Locale aLocale( LanguageTagIcu::getIcuLocale( Application::GetSettings().GetLanguageTag())); //2 get icu format pattern by locale @@ -671,29 +649,6 @@ */ XFTimeStyle* LwpTools::GetSystemTimeStyle() { -/* ::com::sun::star::lang::Locale aLocale=Application::GetSettings().GetLocale(); - OUString strLang = aLocale.Language; - OUString strCountry = aLocale.Country; - strLang = strLang + A2OUSTR("_"); - OUString strLocale = strLang + strCountry; - - int32_t nLength = 0; - int32_t nLengthNeed; - UErrorCode status = U_ZERO_ERROR; - UChar* pattern = NULL; - - UDateFormat* fmt= udat_open(UDAT_FULL, UDAT_FULL, - (char*)(OUStringToOString(strLocale,RTL_TEXTENCODING_MS_1252).getStr()), NULL, 0, NULL, 0, &status); - - nLengthNeed = udat_toPattern(fmt,true,NULL,nLength,&status); - if (status == U_BUFFER_OVERFLOW_ERROR) - { - status = U_ZERO_ERROR; - nLength = nLengthNeed +1; - pattern = (UChar*)malloc(sizeof(UChar)*nLength); - udat_toPattern(fmt,true,pattern,nLength,&status); - } -*/ //1 get locale for system icu::Locale aLocale( LanguageTagIcu::getIcuLocale( Application::GetSettings().GetLanguageTag())); //2 get icu format pattern by locale -- To view, visit https://gerrit.libreoffice.org/3672 To unsubscribe, visit https://gerrit.libreoffice.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1fc5f6b7e779ae0c9ac5f30934c2c5d75757581d Gerrit-PatchSet: 1 Gerrit-Project: core Gerrit-Branch: master Gerrit-Owner: Eike Rathke <er...@redhat.com> _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice