summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-11-12 16:01:22 +0200
committerTor Lillqvist <tml@collabora.com>2018-11-12 16:02:22 +0200
commit88f55bea92cee46738b7fe6f206f0597edfadce5 (patch)
tree11c2954b46a6af0ee610c0e4b7cd0f868bad3adf /comphelper
parent9c5d3e5c59a9d0ffcb5fd99f5d4c98b0f6b5560e (diff)
Add a SAL_INFO() when changing the global "lok" language tag
Change-Id: I229bb2cce38c3f67724802e31edff73e313b7457
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/lok.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index 2f6a2c151370..5934ed58c297 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -9,6 +9,7 @@
#include <comphelper/lok.hxx>
#include <i18nlangtag/languagetag.hxx>
+#include <sal/log.hxx>
#include <iostream>
#include <sstream>
@@ -133,7 +134,10 @@ bool isLocalRendering()
void setLanguageTag(const LanguageTag& languageTag)
{
if (g_aLanguageTag != languageTag)
+ {
+ SAL_INFO("comphelper.lok", "setLanguageTag: from " << g_aLanguageTag.getBcp47() << " to " << languageTag.getBcp47());
g_aLanguageTag = languageTag;
+ }
}
const LanguageTag& getLanguageTag()