summaryrefslogtreecommitdiffstats
path: root/i18npool/source/localedata/localedata.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/localedata/localedata.cxx')
-rw-r--r--i18npool/source/localedata/localedata.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx
index 709dc03ec78f..7433a2b85582 100644
--- a/i18npool/source/localedata/localedata.cxx
+++ b/i18npool/source/localedata/localedata.cxx
@@ -1520,7 +1520,7 @@ LocaleData::getAllInstalledLocaleNames() throw(RuntimeException)
if (lcl_LookupTableStatic::get().getFunctionSymbolByName( name, "getLocaleItem", &pCachedItem )) {
if( pCachedItem )
cachedItem.reset( pCachedItem );
- seq[nInstalled++] = LanguageTag::convertToLocale( name.replaceAll( "_", "-"), false);
+ seq[nInstalled++] = LanguageTag::convertToLocale( name.replace( under, '-'), false);
}
else
{
@@ -1628,7 +1628,7 @@ LocaleData::getSupportedServiceNames() throw( RuntimeException )
OUString LocaleData::getFirstLocaleServiceName( const com::sun::star::lang::Locale & rLocale )
{
if (rLocale.Language == I18NLANGTAG_QLT)
- return rLocale.Variant.replaceAll( "-", "_");
+ return rLocale.Variant.replace( '-', under);
else if (!rLocale.Country.isEmpty())
return rLocale.Language + "_" + rLocale.Country;
else
@@ -1645,7 +1645,7 @@ OUString LocaleData::getFirstLocaleServiceName( const com::sun::star::lang::Loca
aVec.erase( aVec.begin());
for (::std::vector< OUString >::iterator it(aVec.begin()); it != aVec.end(); ++it)
{
- *it = (*it).replaceAll( "-", "_");
+ *it = (*it).replace( '-', under);
}
}
else if (!rLocale.Country.isEmpty())