[cal10n-dev] [JIRA] Commented: (CAL-13) Single quote causes bad parsing

Gilles (JIRA) noreply-jira at qos.ch
Wed Mar 31 16:10:16 CEST 2010


    [ http://jira.qos.ch/browse/CAL-13?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11699#action_11699 ] 

Gilles commented on CAL-13:
---------------------------

Alternatively the parser code could check whether the single quote actually quotes a left curly bracket and, if not, append a second single quote.
Hence one could use single quote normally (from the point of view of someone writing localized messages).
And if a left bracket is needed in the output, the pattern string should be: <'{'> (without the enclosing angle brackets).

This would depart from the "MessageFormat" convention and be somewhat asymmetric since to obtain
  {0}
in the output, one would need a pattern such as
  '{'0}
However this will happen much less often than the use of single quotes.


> Single quote causes bad parsing
> -------------------------------
>
>                 Key: CAL-13
>                 URL: http://jira.qos.ch/browse/CAL-13
>             Project: CAL10N
>          Issue Type: Bug
>            Reporter: Gilles
>            Assignee: Ceki Gulcu
>
> When in a "properties" file containing the localized message patterns, there                        
> is a single quote in a pattern, it doesn't appear in the output and prevents                        
> the conversion of the curly-braced variables that follow it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cal10n-dev mailing list