Changes for page Writing Internationalized XWiki Applications

Last modified by Raphaël Jakse on 2022/03/17

<
From version
edited by Silvia Macovei
on 2010/03/04
To version
edited by Silvia Macovei
on 2010/03/04
>
Change comment: Fixed Title; Changed TOC; Fixed Inconsistencies

Details

Page properties
Title
 ... ... @@ -1,0 +1,1 @@ 1 +Writing Internationalized XWiki Applications
Content
 ... ... @@ -1,9 +1,7 @@ 1 -= Writing Internationalized XWiki Applications = 1 +{{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}} 2 2 3 -{{toc start="" depth="" numbered=""/}} 3 += Using the static Resource Bundles = 4 4 5 -== Using the static Resource Bundles == 6 - 7 7 * Stop your XWiki instance 8 8 * Unjar the ##WEB-INF/lib/xwiki-core-*.jar## file (it was named ##xwiki.jar## in old versions) 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. ... ... @@ -15,7 +15,7 @@ 15 15 16 16 This will get the value from the Resource Bundle corresponding to the current language you are using in XWiki. 17 17 18 -== Using properties located in XWiki pages == 16 += Using properties located in XWiki pages = 19 19 20 20 {{warning}} 21 21 The features described below are only available in XWiki 1.0 Beta 4 and above. The ability to parametrize the resource string is available only in XWiki 1.0 Beta 5 and above. ... ... @@ -39,7 +39,7 @@ 39 39 * Tell XWiki that your page is a Document Bundle by going to the Administration page, selecting the "Programming" icon and entering it in the "Internationalization Document Bundles" field. You can specify several pages, separated by commas. 40 40 41 41 {{info}} 42 -When creating 40 +When creating "Internationalization Document Bundles", you should avoid naming the pages with names that include spaces. For example, a document name of Main.My Messages could cause issues, instead, use Main.MyMessages 43 43 {{/info}} 44 44 45 45 * Alternatively you can also specify the list of Internationalization Document Bundles in ##xwiki.cfg## under the key ##xwiki.documentBundles##. ... ... @@ -52,7 +52,7 @@ 52 52 53 53 where ##key## is the key for the message to retrieve. Parameters can also be passed as is shown in the second syntax above. 54 54 55 -== I18n of XWiki Objects == 53 += I18n of XWiki Objects = 56 56 57 57 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: 58 58