OUString utl_getLocaleForGlobalDefaultEncoding()
{ if (comphelper::IsFuzzing()) return u"en-US"_ustr; // First try document default language
OUString result(officecfg::Office::Linguistic::General::DefaultLocale::get()); // Fallback to LO locale if (result.isEmpty())
result = officecfg::Setup::L10N::ooSetupSystemLocale::get(); // Fallback to system locale if (result.isEmpty())
result = officecfg::System::L10N::Locale::get(); return result;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.