summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/about.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/about.cxx')
-rw-r--r--cui/source/dialogs/about.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index b9e3306e2048..2c39df8e2c1d 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -240,9 +240,14 @@ OUString AboutDialog::GetLocaleString()
osl_getProcessLocale( &pLocale );
- if ( pLocale && pLocale->Language && pLocale->Country )
+ if ( pLocale && pLocale->Language )
{
- pLocaleStr = OUString(pLocale->Language) + "_" + OUString(pLocale->Country);
+ if (pLocale->Country && rtl_uString_getLength( pLocale->Country) > 0)
+ pLocaleStr = OUString(pLocale->Language) + "_" + OUString(pLocale->Country);
+ else
+ pLocaleStr = OUString(pLocale->Language);
+ if (pLocale->Variant && rtl_uString_getLength( pLocale->Variant) > 0)
+ pLocaleStr += OUString(pLocale->Variant);
}
return pLocaleStr;