From 20f957176073064c3f94fd53343bc8d74a8a3b0d Mon Sep 17 00:00:00 2001 From: 0tkl <118708188+0tkl@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:16:12 +0800 Subject: [PATCH] Only string literals are allowed in _(s) macros --- src/auto4_lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auto4_lua.cpp b/src/auto4_lua.cpp index 22764371f6..38348e7f16 100644 --- a/src/auto4_lua.cpp +++ b/src/auto4_lua.cpp @@ -121,7 +121,7 @@ namespace { int get_translation(lua_State *L) { wxString str(check_wxstring(L, 1)); - push_value(L, std::string(_(str).utf8_str())); + push_value(L, std::string(wxGetTranslation(str).utf8_str())); return 1; }