diff options
author | Eike Rathke <erack@redhat.com> | 2021-07-16 15:43:00 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2021-07-16 16:41:32 +0200 |
commit | 75b789a8f542e729e9e5e21031b7baf452a8c174 (patch) | |
tree | 4cb549c12ea675f1eaff48f7ca7921500c8067ec | |
parent | 627a069822c8bd106fc05e1549997179143c6916 (diff) |
Output proper language tag instead of Language+Country concatenation
Change-Id: I83d7f94cf304a58f2ff68b2a667ba66de262f4f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119070
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
-rw-r--r-- | unotools/source/i18n/calendarwrapper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unotools/source/i18n/calendarwrapper.cxx b/unotools/source/i18n/calendarwrapper.cxx index 7f0cc753a2c5..fd5d166fdcf9 100644 --- a/unotools/source/i18n/calendarwrapper.cxx +++ b/unotools/source/i18n/calendarwrapper.cxx @@ -19,6 +19,7 @@ #include <sal/log.hxx> #include <unotools/calendarwrapper.hxx> +#include <i18nlangtag/languagetag.hxx> #include <com/sun/star/i18n/LocaleCalendar2.hpp> #include <tools/diagnose_ex.h> @@ -62,7 +63,7 @@ void CalendarWrapper::loadCalendar( const OUString& rUniqueID, const css::lang:: catch (const Exception&) { TOOLS_WARN_EXCEPTION( "unotools.i18n", "loadCalendar: " - << rUniqueID << " Locale: " << rLocale.Language << "_" << rLocale.Country ); + << rUniqueID << " Locale: " << LanguageTag::convertToBcp47(rLocale) ); } } |