[ http://jira.codehaus.org/browse/MPIR-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=171677#action_171677 ]
Rémy Sanlaville commented on MPIR-59: ------------------------------------- For information, it does not work with UTF-8 encoding Cf . [MPIR-136|http://jira.codehaus.org/browse/MPIR-136] > Site generation exception for french language, error with simple quote in > translation "S'inscrire" for mailing list > -------------------------------------------------------------------------------------------------------------------- > > Key: MPIR-59 > URL: http://jira.codehaus.org/browse/MPIR-59 > Project: Maven 2.x Project Info Reports Plugin > Issue Type: Bug > Affects Versions: 2.0.1 > Environment: linux Debian sarge > jdk 1.6 > maven 2.0.4 > Reporter: Benjamin POUSSIN > Assignee: Arnaud Heritier > Priority: Blocker > Fix For: 2.1 > > Attachments: MPIR-french-translation.patch > > > When we try to generate site in french <locales>fr</locales> in site plugin > we have exception: > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Unmatched braces in the pattern in '{S'incrire, > http://lists.labs.libre-entreprise.org/mailman/listinfo/lutinutil-cvscommit}' > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.IllegalArgumentException: Unmatched braces in the pattern. > at > org.apache.maven.reporting.AbstractMavenReportRenderer.applyPattern(AbstractMavenReportRenderer.java:619) > at > org.apache.maven.reporting.AbstractMavenReportRenderer.linkPatternedText(AbstractMavenReportRenderer.java:353) > at > org.apache.maven.reporting.AbstractMavenReportRenderer.tableCell(AbstractMavenReportRenderer.java:213) > at > org.apache.maven.reporting.AbstractMavenReportRenderer.tableCell(AbstractMavenReportRenderer.java:193) > at > org.apache.maven.reporting.AbstractMavenReportRenderer.tableRow(AbstractMavenReportRenderer.java:225) > at > org.apache.maven.report.projectinfo.MailingListsReport$MailingListsRenderer.renderBody(MailingListsReport.java:238) > at > org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65) > at > org.apache.maven.report.projectinfo.MailingListsReport.executeReport(MailingListsReport.java:65) > at > org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:101) > ... > in applyPattern some test is done to know if simple quote \' are opened but > this test is not good for some translation as: > report.mailing-lists.column.subscribe = S'incrire > because this become: > {S'incrire, > http://lists.labs.libre-entreprise.org/mailman/listinfo/lutinutil-cvscommit} > and applyPattern method think that quote is nether close. > quick fix is to put two simple quote: S''incrire > but this render two simple quote in html page. > I think applyPattern must be rewritten to correct this problem -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira