unotools/source/i18n/calendarwrapper.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 75b789a8f542e729e9e5e21031b7baf452a8c174
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Fri Jul 16 15:43:00 2021 +0200
Commit:     Eike Rathke <er...@redhat.com>
CommitDate: Fri Jul 16 16:41:32 2021 +0200

    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 <er...@redhat.com>
    Tested-by: Jenkins

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) );
     }
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to