[Libreoffice-commits] .: i18npool/source
Eike Rathke
erack at kemper.freedesktop.org
Mon Apr 30 06:12:16 PDT 2012
i18npool/source/localedata/LocaleNode.cxx | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
New commits:
commit 6ac33c3c123bba66b8a63707ad13a53382e4ad69
Author: Eike Rathke <erack at redhat.com>
Date: Mon Apr 30 15:12:06 2012 +0200
be more specific in locale data date acceptance pattern check output
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index cd021e9..af8e936 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -1178,13 +1178,16 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
if (((nDetected & 7) != 7) || aPattern.getLength() < 5)
{
incErrorStr( "failed to extract full date acceptance pattern", aPattern);
- fprintf( stderr, " with DateSeparator '%s' from FormatCode '%s'\n",
- OSTR( OUString( cDateSep)), OSTR( sTheDateEditFormat));
+ fprintf( stderr, " with DateSeparator '%s' from FormatCode '%s' (formatindex=\"%d\")\n",
+ OSTR( OUString( cDateSep)), OSTR( sTheDateEditFormat),
+ (int)cssi::NumberFormatIndex::DATE_SYS_DDMMYYYY);
}
else
{
- fprintf( stderr, "Generated date acceptance pattern: '%s' from '%s'\n",
- OSTR( aPattern), OSTR( sTheDateEditFormat));
+ fprintf( stderr, "Generated date acceptance pattern: '%s' from '%s' (formatindex=\"%d\" and defined DateSeparator '%s')\n",
+ OSTR( aPattern), OSTR( sTheDateEditFormat),
+ (int)cssi::NumberFormatIndex::DATE_SYS_DDMMYYYY,
+ OSTR( OUString( cDateSep)));
// Insert at front so full date pattern is first in checks.
theDateAcceptancePatterns.insert( theDateAcceptancePatterns.begin(), aPattern);
}
@@ -1194,13 +1197,15 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
if (aPattern2.getLength() < 5)
{
incErrorStr( "failed to extract 2nd date acceptance pattern", aPattern2);
- fprintf( stderr, " with DateSeparator '%s' from FormatCode '%s'\n",
- OSTR( OUString( cDateSep2)), OSTR( sTheDateEditFormat));
+ fprintf( stderr, " with DateSeparator '%s' from FormatCode '%s' (formatindex=\"%d\")\n",
+ OSTR( OUString( cDateSep2)), OSTR( sTheDateEditFormat),
+ (int)cssi::NumberFormatIndex::DATE_SYS_DDMMYYYY);
}
else
{
- fprintf( stderr, "Generated 2nd acceptance pattern: '%s' from '%s'\n",
- OSTR( aPattern2), OSTR( sTheDateEditFormat));
+ fprintf( stderr, "Generated 2nd acceptance pattern: '%s' from '%s' (formatindex=\"%d\")\n",
+ OSTR( aPattern2), OSTR( sTheDateEditFormat),
+ (int)cssi::NumberFormatIndex::DATE_SYS_DDMMYYYY);
theDateAcceptancePatterns.insert( theDateAcceptancePatterns.begin(), aPattern2);
}
}
More information about the Libreoffice-commits
mailing list