[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tptp-monitoring-tools-dev] Translatability report issues

Just to clarify.  Each *.properties file must contain one of the following
comments to indicate the type of quotes used:

# NLS_MESSAGEFORMAT_ALL
# NLS_MESSAGEFORMAT_NONE
# NLS_MESSAGEFORMAT_VAR

Choose which comment to use based on this criteria:
                                                                           
 NLS_MESSAGEF Each string is assumed to be processed by the                
 ORMAT_ALL    java.text.MessageFormat class (single quote must be coded as 
              2 consecutive single quotes '').                             
                                                                           
 NLS_MESSAGEF All strings are assumed to NOT be processed by the           
 ORMAT_NONE   java.text.MessageFormat class (single quote must be coded as 
              1 single quote ').                                           
                                                                           
 NLS_MESSAGEF Strings which contain replacement variables are processed by 
 ORMAT_VAR    the MessageFormat class (single quote must be coded as 2     
              consecutive single quotes ''). Strings which do NOT contain  
              replacement variables are NOT processed by the MessageFormat 
              class (single quote must be coded as 1 single quote ').      
                                                                           


NLS_MESSAGEFORMAT_VAR is the most common choice, so in order to reduce the
amount of work for the developers, it has been added to all *.properties
files missing this comment.  However, this choice may or may not be correct
for your plugin.  So, I'm asking all plugin owners to look into their code
and make sure that NLS_MESSAGEFORMAT_VAR is indeed the correct choice.  If
not, please change it to the correct value.

For more information, please consult
http://www.eclipse.org/tptp/home/documents/process/development/plugin_translatability_faq.html#920.



Qiyan Li
Problem Determination Tools
IBM Toronto Lab

Internet: qiyanli@xxxxxxxxxx
Phone: (905) 413-3812
Tie Line: 969-3812
Fax: (905) 413-4920



                                                                           
             Sorin                                                         
             Stoian/Toronto/Co                                             
             ntr/IBM@IBMCA                                              To 
             Sent by:                  tptp-pmc@xxxxxxxxxxx,               
             tptp-monitoring-t         tptp-platform-dev@xxxxxxxxxxx,      
             ools-dev-bounces@         tptp-tracing-profiling-tools-dev@ec 
             eclipse.org               lipse.org,                          
                                       tptp-testing-tools-dev@xxxxxxxxxxx, 
                                       tptp-monitoring-tools-dev@xxxxxxxxx 
             23/01/2007 03:58          rg                                  
             PM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         [tptp-monitoring-tools-dev]         
              TPTP Monitoring          Translatability report issues       
               Tools Project                                               
                 developer                                                 
                discussions                                                
             <tptp-monitoring-                                             
             tools-dev@eclipse                                             
                   .org>                                                   
                                                                           
                                                                           




Hi,

I addressed the CHKPII error messages 115
(http://w3-03.ibm.com/globalization/page/2190#SPTMSG115) and 920
(http://w3-03.ibm.com/globalization/page/2190#SPTMSG920) in all properties
files reported bad.

For all *.properties files with an error code of 920 I assumed
NLS_MESSAGEFORMAT_VAR is the desired format and I also doubled the single
quotes CHKPII was complaining about.
Plugin maintainers who need to use a different format should update the
NLS_MESSAGEFORMAT in the properties files and also make sure the quotes
are correctly used for that format.

Thanks.
----------------------
Sorin Stoian
IBM Toronto Lab
(905)413-5477
_______________________________________________
tptp-monitoring-tools-dev mailing list
tptp-monitoring-tools-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tptp-monitoring-tools-dev