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

Provide a way for javascript to access the document language (not necessarily same as UI language)

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Major
    • None
    • 7.3-milestone-1
    • None
    • Unknown

    Description

      Since there is desire to be able to display the user interface in a different language from the page which is being viewed or edited, we should have a language field which is guaranteed to correspond to the actual page which is being viewed/edited, not the user interface.

      There is currently

      <html lang="xxx"

      but this is based on $context.language which might be different from the document language so it would be nice to have something like

      <html data-xwiki-document-locale="xxx"

      and corresponding meta.js accessor so that we can have something which is reliably the language of the document itself.

      Attachments

        Activity

          People

            Unassigned Unassigned
            calebjamesdelisle CalebJamesDeLisle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: