tdf#131069 always produce utf-8 from gettext
Change-Id: I311e647f08b4d541825e7790d971b98b5b5bfe40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90668 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
b913cec377
commit
49d1325ecb
1 changed files with 3 additions and 0 deletions
|
@ -138,7 +138,10 @@ namespace Translate
|
|||
#endif
|
||||
gen.add_messages_path(sPath.getStr());
|
||||
#if defined UNX && !defined MACOSX && !defined IOS && !defined ANDROID
|
||||
// allow gettext to find these .mo files e.g. so gtk dialogs can use them
|
||||
bindtextdomain(pPrefixName, sPath.getStr());
|
||||
// tdf#131069 gtk, and anything sane, always wants utf-8 strings as output
|
||||
bind_textdomain_codeset(pPrefixName, "UTF-8");
|
||||
#endif
|
||||
gen.add_messages_domain(pPrefixName);
|
||||
|
||||
|
|
Loading…
Reference in a new issue