update emoji autocorrect entries from po-files
[LibreOffice.git] / svtools / source / misc / langhelp.cxx
blob16a3a1d8191c9f71bb5cfe0434fd4884033adad8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
11 #include <svtools/langhelp.hxx>
13 #include <vcl/svapp.hxx>
14 #include <vcl/settings.hxx>
15 #include <rtl/ustring.hxx>
17 void localizeWebserviceURI( OUString& rURI )
19 OUString aLang = Application::GetSettings().GetUILanguageTag().getLanguage();
20 if ( aLang.equalsIgnoreAsciiCase("pt")
21 && Application::GetSettings().GetUILanguageTag().getCountry().equalsIgnoreAsciiCase("br") )
23 aLang = "pt-br";
25 if ( aLang.equalsIgnoreAsciiCase("zh") )
27 if ( Application::GetSettings().GetUILanguageTag().getCountry().equalsIgnoreAsciiCase("cn") )
28 aLang = "zh-cn";
29 if ( Application::GetSettings().GetUILanguageTag().getCountry().equalsIgnoreAsciiCase("tw") )
30 aLang = "zh-tw";
33 rURI += aLang;
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */