Warning and Error Messages"

From Documentation
m
Line 1: Line 1:
{{ZKDevelopersGuidePageHeader}}
+
{{ZKDevelopersReferencePageHeader}}
  
 
__TOC__
 
__TOC__
Line 21: Line 21:
 
where 3000 is the error code and you can find it at [http://docs.zkoss.org/wiki/ZK_Mesgs ZK Mesgs]
 
where 3000 is the error code and you can find it at [http://docs.zkoss.org/wiki/ZK_Mesgs ZK Mesgs]
  
 +
=Version History=
 +
Last Update : {{REVISIONYEAR}}/{{REVISIONMONTH}}/{{REVISIONDAY}}
 +
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
|  
 +
|  
 +
|  
 +
|}
  
{{ ZKDevelopersGuidePageFooter}}
+
{{ZKDevelopersReferencePageFooter}}

Revision as of 09:52, 1 October 2010


Warning and Error Messages


Messages are stored in properties files which are located at the /metainfo/mesg directory of the classpath. Each module is associated with an unique name. In addition, the Locale is appended to the property file, too. For example, the message file of zk.jar for Germany messages is msgzk_de_DN.properties or msgzk_de.properties.

Translate messages to another language

If you want to translate messages to another language, you can add your own property files named with the correct locale to the /metainfo/mesg directory of the classpath. Of course, it is always better to contribute it back at ZK Mesgs

Change particular message

[since 5.1.0]

If you want to change a particular message, you can add it to i3-label.properties. For example, let us see you want to customize MZk.NOT_FOUND in German translation, then you can add the following to WEB-INF/i3-label_de.properties:

MZk.3000=my customized message here

where 3000 is the error code and you can find it at ZK Mesgs

Version History

Last Update : 2010/10/1

Version Date Content
     



Last Update : 2010/10/01

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.