24#ifdef WITH_INTERNATIONAL
42#ifdef WITH_INTERNATIONAL
49 if (
const std::optional<StringRefNull> translation =
locale::translate(0, msgctxt, msgid)) {
53 return BPY_app_translations_py_pgettext(msgctxt, msgid);
65 const std::optional<StringRefNull> translation =
pgettext(msgctxt, msgid);
69 return translation->c_str();
74 const std::optional<StringRefNull> translation =
pgettext(msgctxt, msgid);
83#ifdef WITH_INTERNATIONAL
92#ifdef WITH_INTERNATIONAL
101#ifdef WITH_INTERNATIONAL
110#ifdef WITH_INTERNATIONAL
119#ifdef WITH_INTERNATIONAL
126template<
typename StringT> StringT
translate_do(StringT msgctxt, StringT msgid)
128#ifdef WITH_INTERNATIONAL
153#ifdef WITH_INTERNATIONAL
178#ifdef WITH_INTERNATIONAL
203#ifdef WITH_INTERNATIONAL
228#ifdef WITH_INTERNATIONAL
#define BLT_I18NCONTEXT_DEFAULT
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
constexpr bool is_empty() const
std::optional< StringRefNull > translate(const int domain, const StringRef context, const StringRef key)
StringT translate_do_report(StringT msgctxt, StringT msgid)
StringT translate_do_tooltip(StringT msgctxt, StringT msgid)
bool BLT_translate_tooltips()
StringT translate_do_iface(StringT msgctxt, StringT msgid)
StringT translate_do_new_dataname(StringT msgctxt, StringT msgid)
bool BLT_is_default_context(StringRef msgctxt)
bool BLT_translate_new_dataname()
const char * BLT_pgettext(const char *msgctxt, const char *msgid)
const char * BLT_translate_do(const char *msgctxt, const char *msgid)
const char * BLT_translate_do_report(const char *msgctxt, const char *msgid)
StringT translate_do(StringT msgctxt, StringT msgid)
const char * BLT_translate_do_iface(const char *msgctxt, const char *msgid)
bool BLT_translate_reports()
static std::optional< StringRefNull > pgettext(StringRef msgctxt, const StringRef msgid)
bool BLT_translate_iface()
const char * BLT_translate_do_new_dataname(const char *msgctxt, const char *msgid)
const char * BLT_translate_do_tooltip(const char *msgctxt, const char *msgid)