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

From Vintage Story Wiki
Marked this version for translation
(reworked page completely to give more help on how & what to translate - and how to mark templates correctly for translation)
(Marked this version for translation)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>
<!--T:1-->
=== How to mark for translation === <!--T:1-->
=== How to mark for translation ===


<!--T:2-->
[[File:Translate.PNG|thumb|500px|right|This is how it should look after translation & language tags were added]]
[[File:Translate.PNG|thumb|500px|right|This is how it should look after translation & language tags were added]]


<!--T:3-->
# Go to the page you want to translate and click edit
# Go to the page you want to translate and click edit
# To the very top add <code><translate<nowiki/>></code>, to the very bottom add <code></translate<nowiki/>></code>
# To the very top add <code><translate<nowiki/>></code>, to the very bottom add <code></translate<nowiki/>></code>
Line 12: Line 13:
# 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


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


<!--T:5-->
[[File:Update-translation.PNG|thumb|500px|right]]
[[File:Update-translation.PNG|thumb|500px|right]]


<!--T:6-->
# Go to the page you want to translate and switch to the language you want to translate to
# Go to the page you want to translate and switch to the language you want to translate to
# If the page does not offer the option for that language yet, no translation has been started
# If the page does not offer the option for that language yet, no translation has been started
Line 21: Line 24:
# Click on "translated version" to continue working on the translation.
# Click on "translated version" to continue working on the translation.


=== How to actually translate ===
=== How to actually translate === <!--T:7-->


<!--T:8-->
# Click on the "translate" or "translated version" page after the page was marked for translation
# Click on the "translate" or "translated version" page after the page was marked for translation
# This will open up the translation page, with the original English text showing up on the left side of the screen
# This will open up the translation page, with the original English text showing up on the left side of the screen
Line 30: Line 34:
# Clicking on "Save Translation" will save the text, and it will then show up to the right as the current translated version
# Clicking on "Save Translation" will save the text, and it will then show up to the right as the current translated version


==== Important notes on what to translate and what not ====
==== Important notes on what to translate and what not ==== <!--T:9-->


<!--T:10-->
Everything that looks like "code" probably doesn't need translation. This includes:
Everything that looks like "code" probably doesn't need translation. This includes:
* <code><nowiki>__TOC__</nowiki></code> - To create a Table Of Contents at the beginning of a page.
* <code><nowiki>__TOC__</nowiki></code> - To create a Table Of Contents at the beginning of a page.
Line 38: Line 43:
* <code><nowiki>[[quern|text]]</nowiki></code> - To link to a different page in the wiki, while not directly using the linked-to page name. Only translate the "text" part, this will change the word in which the link is embedded, without changing the link destination itself.<br><br>
* <code><nowiki>[[quern|text]]</nowiki></code> - To link to a different page in the wiki, while not directly using the linked-to page name. Only translate the "text" part, this will change the word in which the link is embedded, without changing the link destination itself.<br><br>


<!--T:11-->
If in doubt, don't hesitate to ask in the discords wiki-and-translation channel for help!
If in doubt, don't hesitate to ask in the discords wiki-and-translation channel for help!




=== How to translate templates ===
=== How to translate templates === <!--T:12-->


<!--T:13-->
[[File:Template-translate.PNG|thumb|500px|right]]
[[File:Template-translate.PNG|thumb|500px|right]]


<!--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!
# 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!
# Make sure to mark templates like this in the following way, nestled into <code><noinclude<nowiki/>></code> tags:  
# Make sure to mark templates like this in the following way, nestled into <code><noinclude<nowiki/>></code> tags:  
Confirmedusers, editor
676

edits