Difference between revisions of "Translate"

From Sim Settlements
Jump to: navigation, search
(Marked this version for translation)
 
Line 1: Line 1:
 
<languages />
 
<languages />
 
<translate>
 
<translate>
 +
<!--T:1-->
 
These are the steps for translating a page on the wiki. If you do not have edit or translate permission, please make a request on the [https://www.simsettlements.com/site/index.php?threads/wiki-translations.61/ forum].
 
These are the steps for translating a page on the wiki. If you do not have edit or translate permission, please make a request on the [https://www.simsettlements.com/site/index.php?threads/wiki-translations.61/ forum].
  
== Enable Translations ==
+
== Enable Translations == <!--T:2-->
  
 +
<!--T:3-->
 
In order to enable translations on a page, wrap the body of the page with these tags. ''This step only needs to be performed once.''
 
In order to enable translations on a page, wrap the body of the page with these tags. ''This step only needs to be performed once.''
  
 +
<!--T:4-->
 
<pre>
 
<pre>
 
&lt;languages /&gt;
 
&lt;languages /&gt;
 
&lt;translate&gt;
 
&lt;translate&gt;
  
 +
<!--T:5-->
 
...page content here...
 
...page content here...
  
 +
<!--T:6-->
 
&lt;/translate&gt;
 
&lt;/translate&gt;
 
</pre>
 
</pre>
  
 +
<!--T:7-->
 
[[File:languages_bar.png|480px|thumb|right|The '''Other languages''' selection bar.]]
 
[[File:languages_bar.png|480px|thumb|right|The '''Other languages''' selection bar.]]
  
 +
<!--T:8-->
 
* The <code>&lt;languages /&gt;</code> tag displays the '''Other languages''' selection bar at the top of the page.
 
* The <code>&lt;languages /&gt;</code> tag displays the '''Other languages''' selection bar at the top of the page.
 
* The <code>&lt;translate&gt;</code> tags inform the ''Translate'' extension where the translatable content resides on the page.
 
* The <code>&lt;translate&gt;</code> tags inform the ''Translate'' extension where the translatable content resides on the page.
  
== Mark for Translation ==
+
== Mark for Translation == <!--T:9-->
  
 +
<!--T:10-->
 
Once translations have been enabled, the page needs to be ''marked'' for translation. This creates the necessary section markers used by the ''Translate'' extension.
 
Once translations have been enabled, the page needs to be ''marked'' for translation. This creates the necessary section markers used by the ''Translate'' extension.
  
 +
<!--T:11-->
 
To mark the page for translation, click the '''Mark this page for translation''' link at the top of the page, then click the '''Mark this version for translation''' button.
 
To mark the page for translation, click the '''Mark this page for translation''' link at the top of the page, then click the '''Mark this version for translation''' button.
  
== Translate Content ==
+
== Translate Content == <!--T:12-->
  
 +
<!--T:13-->
 
'''TODO:''' fill in steps for translating content using translation units.
 
'''TODO:''' fill in steps for translating content using translation units.
  
== Making Changes ==
+
== Making Changes == <!--T:14-->
  
 +
<!--T:15-->
 
'''TODO:''' fill in steps for marking new changes for translation.
 
'''TODO:''' fill in steps for marking new changes for translation.
  
== Tracking Translations ==
+
== Tracking Translations == <!--T:16-->
  
 +
<!--T:17-->
 
'''TODO:''' fill in steps for tracking translations using [[Special:PageTranslation]].
 
'''TODO:''' fill in steps for tracking translations using [[Special:PageTranslation]].
  
== External References ==
+
== External References == <!--T:18-->
  
 +
<!--T:19-->
 
* [https://www.mediawiki.org/wiki/Help:Extension:Translate Page translation extension - MediaWiki]
 
* [https://www.mediawiki.org/wiki/Help:Extension:Translate Page translation extension - MediaWiki]
 
* [https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_example Page translation example - MediaWiki]
 
* [https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_example Page translation example - MediaWiki]

Latest revision as of 02:10, 30 June 2017

Other languages:
English

These are the steps for translating a page on the wiki. If you do not have edit or translate permission, please make a request on the forum.

Enable Translations

In order to enable translations on a page, wrap the body of the page with these tags. This step only needs to be performed once.

<languages />
<translate>

...page content here...

</translate>
The Other languages selection bar.
  • The <languages /> tag displays the Other languages selection bar at the top of the page.
  • The <translate> tags inform the Translate extension where the translatable content resides on the page.

Mark for Translation

Once translations have been enabled, the page needs to be marked for translation. This creates the necessary section markers used by the Translate extension.

To mark the page for translation, click the Mark this page for translation link at the top of the page, then click the Mark this version for translation button.

Translate Content

TODO: fill in steps for translating content using translation units.

Making Changes

TODO: fill in steps for marking new changes for translation.

Tracking Translations

TODO: fill in steps for tracking translations using Special:PageTranslation.

External References