cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31887] New: - I18nTransformer: translation with param substitution
Date Mon, 25 Oct 2004 22:44:16 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31887>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31887

I18nTransformer: translation with param substitution

           Summary: I18nTransformer: translation with param substitution
           Product: Cocoon 2
           Version: Current SVN 2.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: nbacon@pinnaclesoftware.com.au


The i18n transformer does this occasionally:
    throw new SAXException("Unclosed '}'");

A FIXME comment on the characters() method in:
    src/java/org/apache/cocoon/xml/ParamSaxBuffer.java 1.6
indicates that the code doesn't handle the situation where the parser
provides the opening '{' for an i18n parameter placeholder in one call
to characters() and the closing '}' in a subsequent call.

This doesn't seem to have itched anyone else, but we have some big
translation files and its itching us, so I'll attach a patch in an attachment.

(a tidier fix would be to always just buffer the text from characters() and
process it later in endElement())

Mime
View raw message