DemoTranslationContent: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Demo Content for Secure Poll == * Create subpages with language endings to import content * Content in page must have tags we defined before: ** title: <nowiki><!-- ###SecurePoll-START:election/title --></nowiki> ** intro: <nowiki><!-- ###SecurePoll-START:election/intro --></nowiki> ** jump-text: <nowiki><!-- ###SecurePoll-START:election/jump-text --></nowiki> ** return-text: <nowiki><!-- ###SecurePoll-START:election/return-text --></nowiki> ** unqualified-error: <no...") |
No edit summary |
||
Line 18: | Line 18: | ||
Example Content: | Example Content for [[Special:SecurePoll/translate/36| Demo Poll ]] | ||
<!-- ###SecurePoll-START:question/text --><translate><!--T:36-->Favourite season</translate><!-- ###SecurePoll-STOP --> | <!-- ###SecurePoll-START:question/text --><translate><!--T:36-->Favourite season</translate><!-- ###SecurePoll-STOP --> | ||
Line 35: | Line 35: | ||
* title: <!-- ###SecurePoll-START:election/title --><translate><!--T:31-->Demo Translation Survey</translate><!-- ###SecurePoll-STOP --> | * title: <!-- ###SecurePoll-START:election/title --><translate><!--T:31-->Demo Translation Survey</translate><!-- ###SecurePoll-STOP --> | ||
All Subpages follow same structure: | |||
[[DemoTranslationContent/de]] | |||
[[DemoTranslationContent/fr]] | |||
[[DemoTranslationContent/it]] | |||
== How to test import translation == | |||
* 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 |
Revision as of 11:55, 13 December 2022
Demo Content for Secure Poll
- 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: DemoTranslationContent/de DemoTranslationContent/fr DemoTranslationContent/it
How to test import translation
- 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