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

Translatable objects

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Duplicate
    • Major
    • None
    • None
    • Localization
    • None
    • internationalization i18n

    Description

      In order to support fully internationalizable applications, objects should also be translatable.

      Right now you can add a custom field, "lang" for example, and request an object using it as a key, but this has several disadvantages:

      • now you have more than an object for the same information
      • you can't reuse untranslatable fields
      • it's hard to maintain language-independent fields to the same value
      • you can't automatically return the correct language from a search

      Proposal:

      • Like document content, for which we have a language property, all datatype tables should have language fields
      • Each class property should have a "translatable" option
      • Translating a document should also translate the translatable fields
      • Each Property should store and retrieve its value in/from the proper field, according to the translatable option and the current language

      Attachments

        Issue Links

          Activity

            People

              hritcu Catalin Hritcu
              sdumitriu Sergiu Dumitriu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: