unotools/source/i18n/resmgr.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit a32d22ee3879ef7077923d3c6598387089dbd9b2 Author: Caolán McNamara <caol...@redhat.com> Date: Thu Mar 1 14:22:33 2018 +0000 hook up gettext to native dialog Change-Id: Ie5ca8882c8e4c41a8ee41379edc37c4c07e18033 Reviewed-on: https://gerrit.libreoffice.org/50581 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits