LibreOffice Module svtools (master) 1
Functions
langhelp.hxx File Reference
#include <svtools/svtdllapi.h>
#include <com/sun/star/uno/Sequence.hxx>
#include <rtl/ustring.hxx>
Include dependency graph for langhelp.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

SVT_DLLPUBLIC void localizeWebserviceURI (OUString &io_rURI)
 Localize a URI to one of the foundation's webservices. More...
 
OUString SVT_DLLPUBLIC getInstalledLocaleForLanguage (css::uno::Sequence< OUString > const &installed, OUString const &locale)
 
OUString SVT_DLLPUBLIC getInstalledLocaleForSystemUILanguage (css::uno::Sequence< OUString > const &installed, bool bRequestInstallIfMissing, const OUString &rPreferredLocale=OUString())
 

Function Documentation

◆ getInstalledLocaleForLanguage()

OUString SVT_DLLPUBLIC 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 SVT_DLLPUBLIC getInstalledLocaleForSystemUILanguage ( css::uno::Sequence< OUString > const &  installed,
bool  bRequestInstallIfMissing,
const OUString &  rPreferredLocale = OUString() 
)

◆ localizeWebserviceURI()

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