summaryrefslogtreecommitdiff
path: root/i18npool/source
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-04-30 15:12:06 +0200
committerEike Rathke <erack@redhat.com>2012-04-30 15:12:06 +0200
commit6ac33c3c123bba66b8a63707ad13a53382e4ad69 (patch)
tree043b12e4c3bf9d533eeb20a3bd2ee8cc19c14be4 /i18npool/source
parent284b421f40078275e5e647a4f7e82e4ef7fec6a7 (diff)
be more specific in locale data date acceptance pattern check output
Diffstat (limited to 'i18npool/source')
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx21
1 files changed, 13 insertions, 8 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index cd021e9335ba..af8e9369c16a 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);
}
}