diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-01 14:22:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-01 21:19:11 +0100 |
commit | a32d22ee3879ef7077923d3c6598387089dbd9b2 (patch) | |
tree | 94405419b8a8af03a643f7e2454902cfdda5f23c /unotools | |
parent | f203f834b1855dc1dc90766d19082f7f91bec074 (diff) |
hook up gettext to native dialog
Change-Id: Ie5ca8882c8e4c41a8ee41379edc37c4c07e18033
Reviewed-on: https://gerrit.libreoffice.org/50581
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/i18n/resmgr.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/unotools/source/i18n/resmgr.cxx b/unotools/source/i18n/resmgr.cxx index ce5bc28f8896..19f33a85b558 100644 --- a/unotools/source/i18n/resmgr.cxx +++ b/unotools/source/i18n/resmgr.cxx @@ -114,7 +114,11 @@ namespace Translate rtl::Bootstrap::expandMacros(uri); OUString path; osl::File::getSystemPathFromFileURL(uri, path); - gen.add_messages_path(OUStringToOString(path, osl_getThreadTextEncoding()).getStr()); + OString sPath(OUStringToOString(path, osl_getThreadTextEncoding())); + gen.add_messages_path(sPath.getStr()); +#if defined UNX && !defined MACOSX + bindtextdomain(pPrefixName, sPath.getStr()); +#endif gen.add_messages_domain(pPrefixName); std::locale aRet(gen(sIdentifier.getStr())); aCache[sUnique] = aRet; |