LibreOffice Module svtools (master) 1
Functions | Variables
langhelp.cxx File Reference
#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>
Include dependency graph for langhelp.cxx:

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< IdlexLangpackInstaller
 

Function Documentation

◆ getInstalledLocaleForLanguage()

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().

◆ getInstalledLocaleForSystemUILanguage()

OUString getInstalledLocaleForSystemUILanguage ( const css::uno::Sequence< OUString > &  rLocaleElementNames,
bool  bRequestInstallIfMissing,
const OUString &  rPreferredLocale 
)

◆ localizeWebserviceURI()

void localizeWebserviceURI ( OUString &  io_rURI)

Localize a URI to one of the foundation's webservices.

Parameters
io_rURIURI 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().

Variable Documentation

◆ xLangpackInstaller

std::unique_ptr<Idle> xLangpackInstaller
static

Definition at line 65 of file langhelp.cxx.

Referenced by getInstalledLocaleForSystemUILanguage().