<
From version < 11.2 >
edited by Vincent Massol
on 2013/01/11
To version < 11.3 >
edited by Manuel Smeria
on 2013/01/23
>
Change comment: minor fixes

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.ManuelSmeria
Content
... ... @@ -8,7 +8,7 @@
8 8  
9 9  = Using properties located in XWiki pages =
10 10  
11 -* Create a page that will host your key/value pairs.
11 +* Create a page that will host your key/value pairs
12 12  * Enter all the key/value pairs in that page ({{warning}}use the wiki editor{{/warning}}). For example:(((
13 13  {{code language="none"}}
14 14  greeting=hello
... ... @@ -38,7 +38,7 @@
38 38  
39 39  = I18n of XWiki Objects =
40 40  
41 -This is currently not implemented (see our logged issue: [[XWIKI-69>>http://jira.xwiki.org/jira/browse/XWIKI-69]]). There are 2 workarounds you can use:
41 +This is currently not implemented (see our logged issue: [[XWIKI-69>>http://jira.xwiki.org/browse/XWIKI-69]]). There are 2 workarounds you can use:
42 42  
43 43  * Have several objects, one for each language, with a language field, and then decide which object to use (for example in a Class Sheet, based on the current language):(((
44 44  {{code language="none"}}
... ... @@ -59,13 +59,9 @@
59 59  = Using the static Resource Bundles =
60 60  
61 61  * Stop your XWiki instance
62 -* Extract the ##ApplicationResources*.properties## file for your language from the ##WEB-INF/lib/xwiki-*oldcore-*.jar## file and put them in your ##WEB-INF/classes## directory.
63 -* Edit these properties file and add/modify the key/value pairs you need for your application.
64 -* In your document, use the following to get the value associated with a key:(((
65 -{{code language="none"}}
66 -$msg.get("key")
67 -{{/code}}
62 +* Extract the ##ApplicationResources*.properties## file for your language from the ##WEB-INF/lib/xwiki-*oldcore-*.jar## file and put them in your ##WEB-INF/classes## directory
63 +* Edit this file and add/modify the key/value pairs you need for your application
64 +* In your document, use the following to get the value associated with a key: {{code language="none"}}$msg.get("key"){{/code}}
68 68  
69 69  This will get the value from the Resource Bundle corresponding to the current language you are using in XWiki.
70 -)))
71 71  

Get Connected