diff options
Diffstat (limited to 'cui/source/dialogs/about.cxx')
-rw-r--r-- | cui/source/dialogs/about.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index f5761d3093ff..ed4fcc337396 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -239,9 +239,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; |