From d9a00ace2ce3423c1ac08eee0bd1fd36dace8d3e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 25 Jun 2012 23:10:14 +0100 Subject: tidy some resource strings Change-Id: I611a276d048121084ec842d062129e042f3baea5 --- unotools/source/i18n/localedatawrapper.cxx | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'unotools') diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index 67663acec8cf..976793b77ad6 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -296,24 +296,20 @@ void LocaleDataWrapper::invalidateData() { if (areChecksEnabled()) { - String aMsg( RTL_CONSTASCII_USTRINGPARAM( - "LocaleDataWrapper::getInstalledLanguageTypes: Variants not supported, locale\n")); - aMsg += aDebugLocale; - outputCheckMessage( aMsg ); + rtl::OUStringBuffer aMsg("LocaleDataWrapper::getInstalledLanguageTypes: Variants not supported, locale\n"); + aMsg.append(aDebugLocale); + outputCheckMessage(aMsg.makeStringAndClear()); } continue; } LanguageType eLang = MsLangId::convertLocaleToLanguage( xLoc[i] ); // In checks, exclude known problems because no MS-LCID defined. - if (areChecksEnabled() && eLang == LANGUAGE_DONTKNOW -// && !aDebugLocale.EqualsAscii( "br_AE" ) // ?!? Breton in United Arabic Emirates - ) + if (areChecksEnabled() && eLang == LANGUAGE_DONTKNOW) { - String aMsg( RTL_CONSTASCII_USTRINGPARAM( - "ConvertIsoNamesToLanguage: unknown MS-LCID for locale\n")); - aMsg += aDebugLocale; - outputCheckMessage( aMsg ); + rtl::OUStringBuffer aMsg("ConvertIsoNamesToLanguage: unknown MS-LCID for locale\n"); + aMsg.append(aDebugLocale); + outputCheckMessage(aMsg.makeStringAndClear()); } switch ( eLang ) @@ -622,8 +618,7 @@ void LocaleDataWrapper::getCurrSymbolsImpl() if ( nElem >= nCnt ) { if (areChecksEnabled()) - outputCheckMessage( String( RTL_CONSTASCII_USTRINGPARAM( - "LocaleDataWrapper::getCurrSymbolsImpl: no currency at all, using ShellsAndPebbles"))); + outputCheckMessage(rtl::OUString("LocaleDataWrapper::getCurrSymbolsImpl: no currency at all, using ShellsAndPebbles")); aCurrSymbol = rtl::OUString("ShellsAndPebbles"); aCurrBankSymbol = aCurrSymbol; nCurrPositiveFormat = nCurrNegativeFormat = nCurrFormatDefault; -- cgit