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

From Vintage Story Wiki
(Marked this version for translation)
(Updated info on how to translate templates.)
Line 12: Line 12:
# Go to the [[Special:Translate|translation center]] and start thunder typing ;-)
# Go to the [[Special:Translate|translation center]] and start thunder typing ;-)
# Once translated, edit the page again, and to the very top, add <code><languages<nowiki/>/></code> - this will make the language bar appear
# Once translated, edit the page again, and to the very top, add <code><languages<nowiki/>/></code> - this will make the language bar appear
For tackling specific formatting issues in wikitext and how they interact with the translate tags, see [https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration#Markup_examples this guide on MediaWiki]. When translating a page that uses translatable templates, do not include them within the <code><nowiki><translate></nowiki></code> tags.


=== How to update translations === <!--T:4-->
=== How to update translations === <!--T:4-->
Line 50: Line 52:


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


<!--T:14-->
<!--T:14-->
# When marking templates like the [[Template:Navbox]] for translation, it is important to consider the placement of the language & translation tags, since the whole template will be nestled inside other pages!
Templates should only be tagged and mark for translation when they are ''complete''. Make sure the <code><nowiki><languages /></nowiki></code> tag is '''outside''' of the part of the template marked for transclusion, i.e. the <code><nowiki><onlyinclude> ... </onlyinclude></nowiki></code> or <code><nowiki><includeonly> ... </includeonly></nowiki></code> part.
# Make sure to mark templates like this in the following way, nestled into <code><noinclude<nowiki/>></code> tags:
 
## The beginning of the page should show: <code><noinclude<nowiki/>></code><code><languages/<nowiki/>></code><code><translate<nowiki/>></code><code></noinclude<nowiki/>></code>
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.
## The end of the page should show: <code><noinclude<nowiki/>></code><code></translate<nowiki/>></code><code></noinclude<nowiki/>></code>
 
# This ensures that the translate and language tags themselves do not appear on the page in which the template is used.
When translating a page that uses translatable templates, do not include them within the <code><nowiki><translate></nowiki></code> tags. (I'm repeating this because it's important.)


</translate>
</translate>


[[Category:Wiki Editing]]
[[Category:Wiki Editing]]