summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-08-31 13:41:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-08-31 13:42:26 +0100
commitf7347f2eddb9e0b1dc1e3478e9f1efe07355067e (patch)
tree25d8499989c9b3d18bc236c78375b808a45e3113 /i18npool
parentfab0a2c6068577081abdad90a3b1191b6fc5df29 (diff)
stuff in a mechanism to find the liblangtag share dir during unit tests
Change-Id: Idf67c3dfbff7ee5c13831159a913ce8a517732ca
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/languagetag/languagetag.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/i18npool/source/languagetag/languagetag.cxx b/i18npool/source/languagetag/languagetag.cxx
index 9c64b7c11b85..df1533bd998f 100644
--- a/i18npool/source/languagetag/languagetag.cxx
+++ b/i18npool/source/languagetag/languagetag.cxx
@@ -114,7 +114,8 @@ void LiblantagDataRef::setupDataPath()
{
// maDataPath is assumed to be empty here.
OUString aURL;
- if (!rtl::Bootstrap::get( "BRAND_BASE_DIR", aURL))
+
+ if (!rtl::Bootstrap::get("BRAND_BASE_DIR", aURL) && !rtl::Bootstrap::get("LIBLANGTAG_SHARE", aURL))
OSL_FAIL( "LiblantagDataRef: can't get BRAND_BASE_DIR");
else
{