Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-781

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 B2
    • Fix Version/s: 1.0 B4
    • Component/s: {Unused} Core
    • Labels:
      None
    • Similar issues:

      Description

      (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.

        Attachments

          Activity

            People

            Assignee:
            vmassol Vincent Massol
            Reporter:
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: