Vintage Story Wiki:How to translate the wiki: Difference between revisions

From Vintage Story Wiki
Updated principles for translation post-MW software update
(Marked this version for translation)
(Updated principles for translation post-MW software update)
Line 18: Line 18:
*: {{ll|Template:Page language link|2=<translate><!--T:17--> Template:Page language link</translate>}}
*: {{ll|Template:Page language link|2=<translate><!--T:17--> Template:Page language link</translate>}}
*: {{ll|Template:Localized link|2=<translate><!--T:18--> Template:Localized link</translate>}}
*: {{ll|Template:Localized link|2=<translate><!--T:18--> Template:Localized link</translate>}}
*: {{ll|Template:Translatable template|2=<translate><!--T:19--> Template:Translatable template</translate>}}
* If you are marking a '''template''' for translation, make sure the "Enable translation-aware transclusion" checkbox is selected!
<translate>
<translate>
=== How to mark for translation === <!--T:1-->
=== How to mark for translation === <!--T:1-->
Line 75: Line 75:


<!--T:13-->
<!--T:13-->
[[File:Template-translate.PNG|thumb|500px|right|Veerserif's note: now outdated due to the new tnt template.]]
[[File:Template-translate.PNG|thumb|500px|right|Veerserif's note: now outdated due to the new {{tl|tnt}} template and software update.]]


<!--T:14-->
<!--T:14-->
Line 81: Line 81:


<!--T:21-->
<!--T:21-->
When you use a translated or translatable (i.e. tagged and marked for translation) template on any page, you '''must''' use the [[Template:Translatable template|Translatable template]] template instead! For example, if you wanted to use the <code><nowiki>{{Metals navbox}}</nowiki></code> template on a page, instead write it as <code><nowiki>{{Translatable template|Metals navbox}}</nowiki></code>. You can also use <code><nowiki>{{tnt|Metals navbox}}</nowiki></code> as a shorter version.
When you mark a template for translation, '''make sure''' that the "Enable translation-aware transclusion" checkbox is enabled. On older templates, you must make a content change that would prompt you to re-mark it for translation in order to update its translations to be transclusion aware. Once you have done so, MediaWiki will automatically fetch the correctly translated version of the template for use on a translated page - there's no longer a need to use {{tl|tnt}} to call them.


<!--T:22-->
<!--T:22-->
Confirmedusers, editor
2,831

edits