From 7523b3b3c59187711baa8f6e4e793cf338786a2f Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 2 Dec 2016 19:59:50 +0100 Subject: 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 --- test/source/screenshot_test.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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() -- cgit