[Libreoffice-commits] core.git: unotools/source
Caolán McNamara
caolanm at redhat.com
Thu Mar 1 20:19:39 UTC 2018
unotools/source/i18n/resmgr.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit a32d22ee3879ef7077923d3c6598387089dbd9b2
Author: Caolán McNamara <caolanm at 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 <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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;
More information about the Libreoffice-commits
mailing list