From version < 12.1 >
edited by Vincent Massol
on 2013/11/08
To version < 13.1 >
edited by Vincent Massol
on 2013/11/08
Change comment: There is no comment for this version



Page properties
... ... @@ -77,3 +77,5 @@
77 77  * In your document, use the following to get the value associated with a key: {{code language="none"}}$services.localization.render("key"){{/code}}
78 78  
79 79  This will get the value from the Resource Bundle corresponding to the current language you are using in XWiki.
80 +
81 +If you're writing an extension JAR and wish to have static translation resources, you can put them in a ##ApplicationResources*.properties## file at the root of your extension JAR and they'll get picked up by the Localization module. See the [[Localization module>>extensions:Extension.Localization Module||anchor="HProvidetranslationbundleinajar"]] for more details.

Get Connected