Skip to content

Commit

Permalink
Only string literals are allowed in _(s) macros
Browse files Browse the repository at this point in the history
  • Loading branch information
0tkl committed Jan 13, 2025
1 parent cead4e2 commit 20f9571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auto4_lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 20f9571

Please sign in to comment.