LibreOffice Module unotools (master) 1
defaultencoding.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#include <sal/config.h>
11
14#include <officecfg/Office/Linguistic.hxx>
15#include <officecfg/Setup.hxx>
16#include <officecfg/System.hxx>
17
19{
21 return "en-US";
22 // First try document default language
24 // Fallback to LO locale
25 if (result.isEmpty())
27 // Fallback to system locale
28 if (result.isEmpty())
30 return result;
31}
32
33/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static bool IsFuzzing()
Definition: configmgr.cxx:181
OUString utl_getLocaleForGlobalDefaultEncoding()
Determines which locale should be used by default in filters when importing non-unicode strings.
OUString get(TranslateId sContextAndId, const std::locale &loc)
Definition: resmgr.cxx:211
Any result