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

From Vintage Story Wiki
reworked page completely to give more help on how & what to translate - and how to mark templates correctly for translation
No edit summary
(reworked page completely to give more help on how & what to translate - and how to mark templates correctly for translation)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
=== How to mark for translation ===
[[File:Translate.PNG|thumb|500px|right|This is how it should look after translation & language tags were added]]
# 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 7: Line 11:
# 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
=== How to update translations ===
[[File:Update-translation.PNG|thumb|500px|right]]
# 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 there was a translation attempt previously, the page will show the current progress of translation at the top, adding information if the translation is up to date or not
# Click on "translated version" to continue working on the translation.
=== How to actually translate ===
# 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
# If necessary, you can choose into which language you wish to translate in the upper right corner of the screen using the "Translate to ..." drop down menu
# After being marked for translation, every page is automatically segmented into sections for translation. These can be translated and saved individually, meaning there is no need to do a whole page at a time.
# Clicking on a section to the left will open a text box below, in which the translation can be typed.
# 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 ====
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>{| class="wikitable sortable"</nowiki></code> - Or any other "wikitable" lines, used together with plenty of <code>|-</code> and other such symbols to build a nice looking table. Only the actual content text within the table needs translation - if in doubt, open the original page on the side to check the content of the table.
*<code><nowiki>[[File:MeatInFirepit.png|200px|thumb|right|text]]</nowiki></code> - To include a picture into the page. Only the "text" part here needs translating, as it is the description that shows up under the picture - the rest should not be translated!
* <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>
If in doubt, don't hesitate to ask in the discords wiki-and-translation channel for help!
=== How to translate templates ===
[[File:Template-translate.PNG|thumb|500px|right]]
# 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:
## The beginning of the page should show: <code><noinclude<nowiki/>></code><code><languages/<nowiki/>></code><code><translate<nowiki/>></code><code></noinclude<nowiki/>></code>
## 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.
</translate>
</translate>


[[Category:Wiki Editing]]
[[Category:Wiki Editing]]
Confirmedusers, Bureaucrats, editor, Administrators
1,728

edits