DemoTranslationContent

From WMFSecurePoll
Jump to navigation Jump to search

Demo Content for Secure Poll[edit]

  • Create subpages with language endings to import content
  • Content in page must have tags we defined before:
    • title: <!-- ###SecurePoll-START:election/title -->
    • intro: <!-- ###SecurePoll-START:election/intro -->
    • jump-text: <!-- ###SecurePoll-START:election/jump-text -->
    • return-text: <!-- ###SecurePoll-START:election/return-text -->
    • unqualified-error: <!-- ###SecurePoll-START:election/unqualified-error -->
    • comment-prompt: <!-- ###SecurePoll-START:election/comment-prompt -->

Questions must be defined before options:

  • Questions: <!-- ###SecurePoll-START:question/text -->
  • Options: <!-- ###SecurePoll-START:option/text -->

All tags also need a closing tag like: <!-- ###SecurePoll-STOP -->


Example Content for Demo Poll

<translate>Favourite season</translate>

  • <translate>Spring</translate>
  • <translate>Summer</translate>
  • <translate>Autumn</translate>
  • <translate>Winter</translate>

<translate>Favourite drink?</translate>

  • <translate>Water</translate>
  • <translate>Coffee</translate>
  • <translate>Juice</translate>
  • <translate>Tea</translate>


  • title: <translate>Demo Translation Survey</translate>

All Subpages follow same structure:

How to test import translation[edit]

  • create new poll
  • create page with subpages and necessary tags with content of your created poll: translate tags will be removed before saving content
  • all elements between opening and closing tag will be added to element
  • if there is no closing all content until next opening tag will be added to element
  • go to translate page of created poll and click on "import translations"
  • choose your created page as source and follow dialog