(file) Return to Globalization_HOWTO.htm CVS log (file) (dir) Up to [Pegasus] / pegasus / doc

Diff for /pegasus/doc/Globalization_HOWTO.htm between version 1.6 and 1.6.38.1

version 1.6, 2003/12/01 19:53:49 version 1.6.38.1, 2007/01/30 18:59:01
Line 30 
Line 30 
 used as part of the table name inside the bundle.<br> used as part of the table name inside the bundle.<br>
       </td>       </td>
     </tr>     </tr>
       <tr>
         <td style="vertical-align: top;">01/23/07<br>
         </td>
         <td style="vertical-align: top;">Sushma Fernandes<br>
         </td>
         <td style="vertical-align: top;">Section 2.2.5. &nbsp; Added information on special considerations while creating a new message.<br>
         </td>
       </tr>
   </tbody>   </tbody>
 </table> </table>
 <p><br> <p><br>
Line 584 
Line 592 
 String localizedMsg = MessageLoader::getMessage(parms); <br> String localizedMsg = MessageLoader::getMessage(parms); <br>
 &nbsp; <br> &nbsp; <br>
 &nbsp; </p> &nbsp; </p>
 <h4> 2.2.4 Message Writing Guidelines</h4>  <h4> 2.2.5 Message Writing Guidelines</h4>
 <p><br> <p><br>
 Here are some basic rules for writing messages: <br> Here are some basic rules for writing messages: <br>
 &nbsp; </p> &nbsp; </p>
Line 603 
Line 611 
 ultimately the customer.</li> ultimately the customer.</li>
   <li> <b>TODO </b>- find a good message writing guide to link to</li>   <li> <b>TODO </b>- find a good message writing guide to link to</li>
 </ul> </ul>
 <h4> 2.2.5 Localized Exceptions</h4>  
   <p><b>Are there any special considerations while creating a new message ? </b></p>
   
   <ul>
   <li>If a message definition contains text within a single quote
   it is not interpreted in any way.
   
   <p><i>Example:</i></p>
   <p> Server.CIMOperationRequestAuthorizer.NOT_IN_AUTHORIZED_GRP:
       string {"PGS05202: User '{0}' is not authorized to access CIM data."}
   </p>
   
   <p><i>Processed message:</i></p>
   <p>  User {0} is not authorized to access CIM data.  </p>
   </li>
   
   <li> For a single quote to appear in a processed message, it needs to be preceded by
   another single quote.
   
   <p><i>Example:</i></p>
   <p> Server.CIMOperationRequestAuthorizer.NOT_IN_AUTHORIZED_GRP:
       string {"PGS05202: User ''{0}'' is not authorized to access CIM data."}
   </p>
   
   <p><i>Processed message:</i></p>
   <p>  User 'wbemuser' is not authorized to access CIM data.  </p>
   </li>
   
   <li> For a double quote to appear in a processed message, it needs to be preceded by
   a back slash.
   
   <p><i>Example:</i></p>
   <p>
   ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.
   UNSUPPORTED_USERCONTEXT_VALUE:string {"PGS03029: Unsupported UserContext
   value: \"{0}\"."}
   </p>
   
   <p><i>Processed message:</i></p>
   <p>  Unsupported UserContext value: "10".  </p>
   </li>
   </ul>
   
   <p>&nbsp;</p>
   
   <h4> 2.2.6 Localized Exceptions</h4>
 <p><br> <p><br>
 The base Exception class, and derived classes, have been updated to The base Exception class, and derived classes, have been updated to
 support localization.&nbsp; Constructors have been added that take a support localization.&nbsp; Constructors have been added that take a


Legend:
Removed from v.1.6  
changed lines
  Added in v.1.6.38.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2