mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 03:46:02 +00:00
Force codeset rebinding everytime a string has to been translated.
Otherwise binary serialized strings may not have a codeset-binded textdomain, since they don't go through the parser.
This commit is contained in:
parent
37dee1c8c3
commit
ee891ffdfc
@ -25,6 +25,7 @@ const char* sgettext (const char *msgid)
|
||||
|
||||
const char* dsgettext (const char * domainname, const char *msgid)
|
||||
{
|
||||
bind_textdomain_codeset(domainname, "UTF-8");
|
||||
const char *msgval = dgettext (domainname, msgid);
|
||||
if (msgval == msgid) {
|
||||
msgval = strrchr (msgid, '^');
|
||||
|
Loading…
x
Reference in New Issue
Block a user