summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2021-07-16 15:15:48 +0200
committerEike Rathke <erack@redhat.com>2021-07-16 16:31:01 +0200
commit627a069822c8bd106fc05e1549997179143c6916 (patch)
tree70f02397667194170db4096dc6721e727c7c3084 /desktop/source
parentff93afcc76d5f82e74174825173075cd938a230c (diff)
Output proper language tag instead of Language+Country concatenation
That way also for more complex tags with 'qlt' language you get a meaningful output. It's only stderr, but.. Change-Id: I3c6e2451ace5ac9f192a11c97e95376c17046f17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119068 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 4060af238700..58ac041a78ab 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -6056,7 +6056,7 @@ static void preloadData()
uno::Sequence< css::lang::Locale > aLocales = xSpellLocales->getLocales();
for (auto &it : aLocales)
{
- std::cerr << it.Language << "_" << it.Country << " ";
+ std::cerr << LanguageTag::convertToBcp47(it) << " ";
css::beans::PropertyValues aNone;
xSpellChecker->isValid("forcefed", it, aNone);
}
@@ -6077,7 +6077,7 @@ static void preloadData()
std::cerr << "Preloading thesauri: ";
for (auto &it : aLocales)
{
- std::cerr << it.Language << "_" << it.Country << " ";
+ std::cerr << LanguageTag::convertToBcp47(it) << " ";
css::beans::PropertyValues aNone;
xThesaurus->queryMeanings("forcefed", it, aNone);
}