diff options
Diffstat (limited to 'desktop/source/app/langselect.cxx')
-rw-r--r-- | desktop/source/app/langselect.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx index ea3f605c6bcc..3af3652de083 100644 --- a/desktop/source/app/langselect.cxx +++ b/desktop/source/app/langselect.cxx @@ -70,31 +70,6 @@ void setMsLangIdFallback(OUString const & locale) { } -OUString getEmergencyLocale() { - if (!foundLocale.isEmpty()) { - return foundLocale; - } - try { - css::uno::Sequence<OUString> inst( - officecfg::Setup::Office::InstalledLocales::get()-> - getElementNames()); - OUString locale( - getInstalledLocaleForLanguage( - inst, - officecfg::Office::Linguistic::General::UILocale::get())); - if (!locale.isEmpty()) { - return locale; - } - locale = getInstalledLocaleForSystemUILanguage(inst); - if (!locale.isEmpty()) { - return locale; - } - } catch (css::uno::Exception & e) { - SAL_WARN("desktop.app", "ignoring Exception \"" << e.Message << "\""); - } - return OUString(); -} - bool prepareLocale() { // #i42730# Get the windows 16Bit locale, it should be preferred over the UI // locale: |