Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2038189A8 for ; Fri, 9 Sep 2011 18:00:13 +0000 (UTC) Received: (qmail 61558 invoked by uid 500); 9 Sep 2011 18:00:12 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 61510 invoked by uid 500); 9 Sep 2011 18:00:12 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 61503 invoked by uid 99); 9 Sep 2011 18:00:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 18:00:11 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [148.87.113.117] (HELO rcsinet15.oracle.com) (148.87.113.117) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 18:00:04 +0000 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p89HxfKK028446 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 9 Sep 2011 17:59:43 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p89Hxd8V017819 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 9 Sep 2011 17:59:40 GMT Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p89HxY1F015342 for ; Fri, 9 Sep 2011 12:59:34 -0500 Received: from [130.35.102.137] (/130.35.102.137) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 09 Sep 2011 10:59:34 -0700 Message-ID: <4E6A5404.40804@oracle.com> Date: Fri, 09 Sep 2011 10:59:32 -0700 From: Pavitra Subramaniam User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: "Scott O'Bryan (JIRA)" Subject: Re: [jira] [Closed] (TRINIDAD-2116) ResourceBundles Strings containing doubled single quotes are not properly formatted by FastMessageFormat on display... References: <51043145.8396.1315582029597.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <51043145.8396.1315582029597.JavaMail.tomcat@hel.zones.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090209.4E6A540F.004E,ss=1,re=0.000,fgs=0 Hi Scott, This fix should not gone in. We decided to wait until Abrams to fix it in a different way. I am sorry about the confusion. Can this be rolled back? Thanks pavitra On 9/9/2011 8:27 AM, Scott O'Bryan (JIRA) wrote: > [ https://issues.apache.org/jira/browse/TRINIDAD-2116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] > > Scott O'Bryan closed TRINIDAD-2116. > ----------------------------------- > > > >> ResourceBundles Strings containing doubled single quotes are not properly formatted by FastMessageFormat on display... >> ----------------------------------------------------------------------------------------------------------------------- >> >> Key: TRINIDAD-2116 >> URL: https://issues.apache.org/jira/browse/TRINIDAD-2116 >> Project: MyFaces Trinidad >> Issue Type: Bug >> Affects Versions: 1.2.12-core >> Reporter: Pavitra Subramaniam >> Assignee: Scott O'Bryan >> Fix For: 2.0.1 >> >> Attachments: jira-2116-1.2.12.6.0.patch, jira2116-trunk.patch >> >> >> The translations tool used by the WPTG team that provides translations for the Strings in the ResourceBundle uses special processing for single quotation marks, common in languages such as French. In ResourceBundle files, if a message contains an argument placeholder, e.g. {0} or {1}, it is assumed to be a format pattern for MessageFormat and the translation tool automatically doubles all single quotes inside such a message. If the message contains no arguments, it is expected to be used directly after loading from the bundle, without processing with MessageFormat. Therefore, no quotes are doubled automatically in such a message. This code change accounts for the presence of doubled quotes. >> Now FastMessageFormat.java and its counterpart on the client TrFastMessageFormatUtils object (Locale.js) assumes simple formatting rules and does not account for the presence of doubled single quotes. So this means that for some messages French users continue to see doubled quotes when single quotes are more the norm, For e.g., instead of >> Entrez une date avec le même format que l'exemple suivant : 01/02/2011 >> they see something like >> Entrez une date avec le même format que l''exemple suivant : 01/02/2011 >> (Notice the doubled quotes in l''exemple) >> > -- > This message is automatically generated by JIRA. > For more information on JIRA, see: http://www.atlassian.com/software/jira > > >