summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-12-02 19:59:50 +0100
committerEike Rathke <erack@redhat.com>2016-12-02 20:36:24 +0100
commit7523b3b3c59187711baa8f6e4e793cf338786a2f (patch)
tree3def4a3640a74fde04bb2fd69ddeacaace709206 /test
parent52d591ffde5e449332f9249de83561184650e408 (diff)
use SvtSysLocaleOptions::GetRealUILanguageTag(), not GetLocaleConfigString()
Assuming that the screenshots directory suffix * should match the configured UI locale instead of the work locale * should not be empty if configuration says "Default - ..." * actually ScreenshotTest::implSaveScreenshot() explicitly tests (maCurrentLanguage == "en-US") and then sets the suffix to empty, so no other locale should exhibit the same Change-Id: Ie4561315b67c3ade20f3947772af45e471d0752f
Diffstat (limited to 'test')
-rw-r--r--test/source/screenshot_test.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx
index 28788d0548a9..0a3c4f9840e9 100644
--- a/test/source/screenshot_test.cxx
+++ b/test/source/screenshot_test.cxx
@@ -40,7 +40,7 @@ ScreenshotTest::ScreenshotTest()
maKnownDialogs()
{
SvtSysLocaleOptions localeOptions;
- maCurrentLanguage = localeOptions.GetLocaleConfigString();
+ maCurrentLanguage = localeOptions.GetRealUILanguageTag().getBcp47();
}
ScreenshotTest::~ScreenshotTest()