Issue Details (XML | Word | Printable)

Key: XWIKI-781
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vincent Massol
Reporter: Vincent Massol
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWiki Core

Allow storing key/value pairs in XWiki documents for implementing internationalized XWiki applications

Created: 25/Jan/07 12:47   Updated: 30/Jan/07 19:27
Component/s: Core
Affects Version/s: 1.0 B2
Fix Version/s: 1.0 B4

Issue Links:
Duplicate
 

Resolution Date: 30/Jan/07 19:27


 Description  « Hide
(Copied from CURRIKI-18)

Allow in XWiki to read resources from the wiki and from the Application Resources file. This should be configurable in the Wiki preferences.
The system should also support plugins.

Arnaud wrote:

Attached a proposal of the core patch.

To use this facilty, it is needed to add a string field "bundledoc" to the xwikipreferences.
This field indicates the base name for the translation document.

At runtime, the core will look for a document named "<bundlename>_<language>".
If the doc is not found, the document "<bundlename>" will be read.

The format of these documents must be something like :
trad1=Hello
trad2=Bye
...
[ Show » ]
Arnaud Thimel [18/Jan/07 06:59 PM] Attached a proposal of the core patch. To use this facilty, it is needed to add a string field "bundledoc" to the xwikipreferences. This field indicates the base name for the translation document. At runtime, the core will look for a document named "<bundlename>_<language>". If the doc is not found, the document "<bundlename>" will be read. The format of these documents must be something like : trad1=Hello trad2=Bye ...

Ludovic wrote:

suggest two changes:

1/ Instead of searching for different documents we need to use the same document but use the internal translation system of XWiki. Using the $doc.getTranslatedDocument(..) function.

2/ The prefs in XWiki Prefs should support a list of files and another pref in xwiki.cfg should also be used.

Ok for the format.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Vincent Massol added a comment - 25/Jan/07 12:48
Voluntary duplication as we need to bring a Curriki improvement into the core

Vincent Massol added a comment - 25/Jan/07 18:36
Almost done. Remaining:
  • Integrate in the default wiki
  • Write a tutorial to explain how to use it

Vincent Massol added a comment - 26/Jan/07 11:46
Integration in default wiki done.

Remaining:

  • Write a tutorial to explain how to use it

Vincent Massol added a comment - 30/Jan/07 19:27