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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue