[Libreoffice-commits] core.git: comphelper/source include/sal
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Nov 12 14:09:21 UTC 2018
comphelper/source/misc/lok.cxx | 4 ++++
include/sal/log-areas.dox | 1 +
2 files changed, 5 insertions(+)
New commits:
commit 88f55bea92cee46738b7fe6f206f0597edfadce5
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Mon Nov 12 16:01:22 2018 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Mon Nov 12 16:02:22 2018 +0200
Add a SAL_INFO() when changing the global "lok" language tag
Change-Id: I229bb2cce38c3f67724802e31edff73e313b7457
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()
diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox
index 7acc54463d0e..c2ff84627248 100644
--- a/include/sal/log-areas.dox
+++ b/include/sal/log-areas.dox
@@ -98,6 +98,7 @@ certain functionality.
@li @c comphelper.backupfilehelper
@li @c comphelper.container - EmbeddedObjectContainer
@li @c comphelper.crypto
+ at li @c comphelper.lok
@section cppu
More information about the Libreoffice-commits
mailing list