[Libreoffice-commits] core.git: i18npool/source
Caolán McNamara
caolanm at redhat.com
Fri Mar 3 17:04:22 UTC 2017
i18npool/source/breakiterator/breakiteratorImpl.cxx | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
New commits:
commit 3e5d94266e7f60c2b3ebd7009579373fddb400cd
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Mar 3 16:58:44 2017 +0000
extend with-locale hack to the service instantiation
Change-Id: I6e4403074a758a80c3b44b442021a2c0d2176146
diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx
index 3a8da9ab..a81c107 100644
--- a/i18npool/source/breakiterator/breakiteratorImpl.cxx
+++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx
@@ -16,6 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_locales.h>
#include <breakiteratorImpl.hxx>
#include <cppuhelper/supportsservice.hxx>
@@ -530,6 +531,23 @@ bool SAL_CALL BreakIteratorImpl::createLocaleSpecificBreakIterator(const OUStrin
}
}
+#if !WITH_LOCALE_ALL && !WITH_LOCALE_ja
+ if (aLocaleName == "ja")
+ return false;
+#endif
+#if !WITH_LOCALE_ALL && !WITH_LOCALE_zh
+ if (aLocaleName == "zh" || aLocaleName == "zh_TW")
+ return false;
+#endif
+#if !WITH_LOCALE_ALL && !WITH_LOCALE_ko
+ if (aLocaleName == "ko")
+ return false;
+#endif
+#if !WITH_LOCALE_ALL && !WITH_LOCALE_th
+ if (aLocaleName == "th")
+ return false;
+#endif
+
Reference < uno::XInterface > xI = m_xContext->getServiceManager()->createInstanceWithContext(
"com.sun.star.i18n.BreakIterator_" + aLocaleName, m_xContext);
More information about the Libreoffice-commits
mailing list