Blender
V4.5
source
blender
blentranslation
intern
messages.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2025 Blender Authors
2
*
3
* SPDX-License-Identifier: BSL-1.0 */
4
11
#include <optional>
12
#include <string>
13
14
#include "
BLI_string_ref.hh
"
15
#include "
BLI_vector.hh
"
16
17
namespace
blender::locale
{
18
19
void
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. */
22
void
free
();
23
24
std::optional<StringRefNull>
translate
(
int
domain, StringRef context, StringRef
key
);
25
const
char
*
full_name
();
26
27
#if defined(__APPLE__) && !defined(WITH_HEADLESS) && !defined(WITH_GHOST_SDL)
28
std::string
macos_user_locale
();
29
#endif
30
31
}
// namespace blender::locale
key
int key
Definition
BLI_set_test.cc:631
BLI_string_ref.hh
BLI_vector.hh
Vector
float[3] Vector
Definition
BlenderTypes.h:11
init
void init()
blender::locale
Definition
messages.cc:36
blender::locale::translate
std::optional< StringRefNull > translate(const int domain, const StringRef context, const StringRef key)
Definition
messages.cc:618
blender::locale::free
void free()
Definition
messages.cc:612
blender::locale::full_name
const char * full_name()
Definition
messages.cc:629
blender::locale::macos_user_locale
std::string macos_user_locale()
Definition
messages_apple.mm:20
Generated on Fri Apr 3 2026 06:33:18 for Blender by
doxygen
1.11.0