Blender V5.0
messages.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: BSL-1.0 */
4
10
11#include <optional>
12#include <string>
13
14#include "BLI_string_ref.hh"
15#include "BLI_vector.hh"
16
17namespace blender::locale {
18
19void init(const StringRef locale_full_name, /* Local name. */
20 const Vector<std::string> &domains, /* Application names. */
21 const Vector<std::string> &paths); /* Search paths for .mo files. */
22void free();
23
24std::optional<StringRefNull> translate(int domain, StringRef context, StringRef key);
25const char *full_name();
26
27#if defined(__APPLE__) && !defined(WITH_HEADLESS) && !defined(WITH_GHOST_SDL)
28std::string macos_user_locale();
29#endif
30
31} // namespace blender::locale
void init()
std::optional< StringRefNull > translate(const int domain, const StringRef context, const StringRef key)
Definition messages.cc:620
const char * full_name()
Definition messages.cc:631
std::string macos_user_locale()