diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-05-30 15:00:23 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-05-30 16:41:40 -0500 |
commit | 1488171272e5e9d11f751482e3e372e5db58418b (patch) | |
tree | 1481a108540cf562bdaec78584bb8e0af9201d7d /i18npool/source/localedata/LocaleNode.cxx | |
parent | 8016dced31517e1695af932efedcf9f83a28d741 (diff) |
targeted string re-work
Change-Id: I1efff8e09079267f4129c474872d3fc49adeb831
Diffstat (limited to 'i18npool/source/localedata/LocaleNode.cxx')
-rw-r--r-- | i18npool/source/localedata/LocaleNode.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx index af8e9369c16a..2590e7e05702 100644 --- a/i18npool/source/localedata/LocaleNode.cxx +++ b/i18npool/source/localedata/LocaleNode.cxx @@ -711,13 +711,13 @@ void LCFormatNode::generateCode (const OFileWriter &of) const OUString aKey( aUsage + OUString( sal_Unicode(',')) + aType); if (!aDefaultsSet.insert( aKey).second) { - OUString aStr( RTL_CONSTASCII_USTRINGPARAM( "Duplicated default for usage=\"")); + OUString aStr( "Duplicated default for usage=\""); aStr += aUsage; - aStr += OUString( RTL_CONSTASCII_USTRINGPARAM( "\" type=\"")); + aStr += OUString( "\" type=\""); aStr += aType; - aStr += OUString( RTL_CONSTASCII_USTRINGPARAM( "\": formatindex=\"")); + aStr += OUString( "\": formatindex=\""); aStr += aFormatIndex; - aStr += OUString( RTL_CONSTASCII_USTRINGPARAM( "\".")); + aStr += OUString( "\"."); incError( aStr); } } @@ -786,10 +786,10 @@ void LCFormatNode::generateCode (const OFileWriter &of) const if (strcmp( of.getLocale(), "en_US") != 0) { OUString aCode( n->getValue()); - OUString aPar1( RTL_CONSTASCII_USTRINGPARAM( "0)" )); - OUString aPar2( RTL_CONSTASCII_USTRINGPARAM( "-)" )); - OUString aPar3( RTL_CONSTASCII_USTRINGPARAM( " )" )); - OUString aPar4( RTL_CONSTASCII_USTRINGPARAM( "])" )); + OUString aPar1( "0)"); + OUString aPar2( "-)" ); + OUString aPar3( " )" ); + OUString aPar4( "])" ); if (aCode.indexOf( aPar1 ) > 0 || aCode.indexOf( aPar2 ) > 0 || aCode.indexOf( aPar3 ) > 0 || aCode.indexOf( aPar4 ) > 0) fprintf( stderr, "Warning: FormatCode formatindex=\"%d\" for currency uses parentheses for negative amounts, which probably is not correct for locales not based on en_US.\n", formatindex); @@ -1586,7 +1586,7 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const } } if (!ref_name.isEmpty() && daysNode == NULL) { - of.writeParameter("dayRef", OUString(RTL_CONSTASCII_USTRINGPARAM("ref")), i); + of.writeParameter("dayRef", OUString("ref"), i); of.writeParameter("dayRefName", ref_name, i); nbOfDays[i] = 0; } else { @@ -1618,7 +1618,7 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const } } if (!ref_name.isEmpty() && monthsNode == NULL) { - of.writeParameter("monthRef", OUString(RTL_CONSTASCII_USTRINGPARAM("ref")), i); + of.writeParameter("monthRef", OUString("ref"), i); of.writeParameter("monthRefName", ref_name, i); nbOfMonths[i] = 0; } else { @@ -1653,7 +1653,7 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const } } if (!ref_name.isEmpty() && genitiveMonthsNode == NULL) { - of.writeParameter("genitiveMonthRef", OUString(RTL_CONSTASCII_USTRINGPARAM("ref")), i); + of.writeParameter("genitiveMonthRef", OUString("ref"), i); of.writeParameter("genitiveMonthRefName", ref_name, i); nbOfGenitiveMonths[i] = 0; } else { @@ -1689,7 +1689,7 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const } } if (!ref_name.isEmpty() && partitiveMonthsNode == NULL) { - of.writeParameter("partitiveMonthRef", OUString(RTL_CONSTASCII_USTRINGPARAM("ref")), i); + of.writeParameter("partitiveMonthRef", OUString("ref"), i); of.writeParameter("partitiveMonthRefName", ref_name, i); nbOfPartitiveMonths[i] = 0; } else { @@ -1721,7 +1721,7 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const } } if (!ref_name.isEmpty() && erasNode == NULL) { - of.writeParameter("eraRef", OUString(RTL_CONSTASCII_USTRINGPARAM("ref")), i); + of.writeParameter("eraRef", OUString("ref"), i); of.writeParameter("eraRefName", ref_name, i); nbOfEras[i] = 0; } else { |