cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Johnston (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COCOON-1315) I18nTransformer: translation with param substitution
Date Mon, 23 Apr 2007 18:26:15 GMT

     [ https://issues.apache.org/jira/browse/COCOON-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jason Johnston closed COCOON-1315.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2-dev (Current SVN)
                   2.1.11-dev (Current SVN)

Followup fix applied to trunk and 2.1.x branch. I've verified this resolves the issue with
garbage characters as I was seeing it in one of my projects. Thanks Gunnar for the fix!

> I18nTransformer: translation with param substitution
> ----------------------------------------------------
>
>                 Key: COCOON-1315
>                 URL: https://issues.apache.org/jira/browse/COCOON-1315
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Components: Sitemap
>    Affects Versions: 2.2-dev (Current SVN)
>         Environment: Operating System: All
> Platform: All
>            Reporter: Neil Bacon
>         Assigned To: Cocoon Developers Team
>             Fix For: 2.1.11-dev (Current SVN), 2.2-dev (Current SVN)
>
>         Attachments: ParamSaxBuffer.java.patch
>
>
> 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())

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message