[Libreoffice-commits] core.git: desktop/source

Eike Rathke (via logerrit) logerrit at kemper.freedesktop.org
Fri Jul 16 14:31:36 UTC 2021


 desktop/source/lib/init.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 627a069822c8bd106fc05e1549997179143c6916
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Fri Jul 16 15:15:48 2021 +0200
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Fri Jul 16 16:31:01 2021 +0200

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

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);
     }


More information about the Libreoffice-commits mailing list