fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / svtools / source / misc / langhelp.cxx
blobc7edaa60fcae9f9abf4e997bc2a087c1e9b68681
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 <rtl/ustring.hxx>
16 void localizeWebserviceURI( OUString& rURI )
18 OUString aLang = Application::GetSettings().GetUILanguageTag().getLanguage();
19 if ( aLang.equalsIgnoreAsciiCase("pt")
20 && Application::GetSettings().GetUILanguageTag().getCountry().equalsIgnoreAsciiCase("br") )
22 aLang = OUString("pt-br");
24 if ( aLang.equalsIgnoreAsciiCase("zh") )
26 if ( Application::GetSettings().GetUILanguageTag().getCountry().equalsIgnoreAsciiCase("cn") )
27 aLang = OUString("zh-cn");
28 if ( Application::GetSettings().GetUILanguageTag().getCountry().equalsIgnoreAsciiCase("tw") )
29 aLang = OUString("zh-tw");
32 rURI += aLang;
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */