Add a SAL_INFO() when changing the global "lok" language tag

Change-Id: I229bb2cce38c3f67724802e31edff73e313b7457
This commit is contained in:
Tor Lillqvist
2018-11-12 16:01:22 +02:00
parent 9c5d3e5c59
commit 88f55bea92
2 changed files with 5 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
#include <comphelper/lok.hxx> #include <comphelper/lok.hxx>
#include <i18nlangtag/languagetag.hxx> #include <i18nlangtag/languagetag.hxx>
#include <sal/log.hxx>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
@@ -133,7 +134,10 @@ bool isLocalRendering()
void setLanguageTag(const LanguageTag& languageTag) void setLanguageTag(const LanguageTag& languageTag)
{ {
if (g_aLanguageTag != languageTag) if (g_aLanguageTag != languageTag)
{
SAL_INFO("comphelper.lok", "setLanguageTag: from " << g_aLanguageTag.getBcp47() << " to " << languageTag.getBcp47());
g_aLanguageTag = languageTag; g_aLanguageTag = languageTag;
}
} }
const LanguageTag& getLanguageTag() const LanguageTag& getLanguageTag()

View File

@@ -98,6 +98,7 @@ certain functionality.
@li @c comphelper.backupfilehelper @li @c comphelper.backupfilehelper
@li @c comphelper.container - EmbeddedObjectContainer @li @c comphelper.container - EmbeddedObjectContainer
@li @c comphelper.crypto @li @c comphelper.crypto
@li @c comphelper.lok
@section cppu @section cppu