<
From version < 1.10 >
edited by Vincent Massol
on 2007/02/16
To version < 1.11 >
edited by Vincent Massol
on 2007/10/19
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -5,12 +5,12 @@
5 5  1.1 Using the static Resource Bundles
6 6  
7 7  * Stop your XWiki instance
8 -* Unjar the ~~WEB-INF/lib/xwiki.jar~~ file in ~~WEB-INF/classes~~ and remove the ~~xwiki.jar~~file from ~~WEB-INF/lib~~
8 +* Unjar the ~~WEB-INF/lib/xwiki-core-*.jar~~ file in ~~WEB-INF/classes~~ and remove it from ~~WEB-INF/lib~~
9 9  * Edit the ~~WEB-INF/classes/ApplicationResources*.properties~~ Resource Bundle files by adding the key/value pairs you need for your application.
10 10  * In your document, use the following to get the value associated with a key:
11 11  
12 12  {code}
13 -\$msg.get("key")
13 +$msg.get("key")
14 14  {code}
15 15  
16 16  This will get the value from the Resource Bundle corresponding to the current language you are using in XWiki.

Get Connected