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

Expose XWkiDocument#getTranslationLocales() and XWiki#getAvailableLocales() to scripts

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 12.4-rc-1
    • 12.3
    • Old Core
    • None
    • Medium
    • N/A

    Description

      This would make it easier to work with page translations. It would allow us to replace:

      $xwiki.getXWikiPreference('languages').split('\s*[|, ]\s*')
      

      with:

      $xwiki.availableLocales
      

      and remove the need to "convert" the string to locale in order to properly display the locale name.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: