LibreOffice Module svtools (master) 1
|
#include <sal/config.h>
#include <string_view>
#include <comphelper/sequence.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <officecfg/Office/Common.hxx>
#include <officecfg/System.hxx>
#include <o3tl/string_view.hxx>
#include <org/freedesktop/PackageKit/SyncDbusSessionHelper.hpp>
#include <rtl/ustring.hxx>
#include <svtools/langhelp.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <vcl/idle.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <config_langs.h>
#include <config_vendor.h>
Go to the source code of this file.
Functions | |
void | localizeWebserviceURI (OUString &rURI) |
Localize a URI to one of the foundation's webservices. More... | |
OUString | getInstalledLocaleForLanguage (css::uno::Sequence< OUString > const &installed, OUString const &locale) |
OUString | getInstalledLocaleForSystemUILanguage (const css::uno::Sequence< OUString > &rLocaleElementNames, bool bRequestInstallIfMissing, const OUString &rPreferredLocale) |
Variables | |
static std::unique_ptr< Idle > | xLangpackInstaller |
OUString getInstalledLocaleForLanguage | ( | css::uno::Sequence< OUString > const & | installed, |
OUString const & | locale | ||
) |
Definition at line 49 of file langhelp.cxx.
References comphelper::findValue().
Referenced by getInstalledLocaleForSystemUILanguage().
OUString getInstalledLocaleForSystemUILanguage | ( | const css::uno::Sequence< OUString > & | rLocaleElementNames, |
bool | bRequestInstallIfMissing, | ||
const OUString & | rPreferredLocale | ||
) |
Definition at line 106 of file langhelp.cxx.
References comphelper::containerToSequence(), eType, getInstalledLocaleForLanguage(), LanguageTag::getLanguage(), LanguageTag::getLanguageType(), o3tl::getToken(), Application::IsHeadlessModeEnabled(), MsLangId::isSimplifiedChinese(), MsLangId::isTraditionalChinese(), nIndex, u, and xLangpackInstaller.
void localizeWebserviceURI | ( | OUString & | io_rURI | ) |
Localize a URI to one of the foundation's webservices.
io_rURI | URI to localize - depending on your UI locale, a country local part is appended to the URI (like "en", or "fr", or "es") |
Definition at line 30 of file langhelp.cxx.
References equalsIgnoreAsciiCase(), LanguageTag::getCountry(), LanguageTag::getLanguage(), Application::GetSettings(), and AllSettings::GetUILanguageTag().
|
static |
Definition at line 65 of file langhelp.cxx.
Referenced by getInstalledLocaleForSystemUILanguage().