Template:TranslationMark/page: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Adding info about machine translation template)
mNo edit summary
Line 26: Line 26:
}}
}}
</pre>
</pre>
In this case {{code|ru}} page shows {{T|Updatetranslation}}, {{code|tr}} and {{code|uk}} page shows {{T|Finishtranslation}} and {{code|fi}} page shows {{T|Translate}} and {{code|zh}} page shows {{T|Machinetranslation}}
In this case {{code|ru}} page shows {{T|Updatetranslation}}, {{code|tr}} and {{code|uk}} page shows {{T|Finishtranslation}}, {{code|fi}} page shows {{T|Translate}} and {{code|zh}} page shows {{T|Machinetranslation}}





Revision as of 00:17, 7 April 2025

[[:{{{1}}}:{{{2}}} | ← {{{1}}}:{{{2}}} ]]

This page contains {{#switch}} that determines which translations of page [[:{{{1}}}:{{{2}}}]] should add either {{Updatetranslation}}, {{Finishtranslation}}, {{Translate}} or {{Machinetranslation}} and have their flag in {{LanguageBar}} highlighted with orange


  • Following languages are marked as either needing translation update, translation, finishing a translation or is a machine translation (the flags are also cache purge links to the respective pages):

 


After you click edit you can see a #switch that looks something like this

{{#switch: {{{1}}}
| ru | tr | uk = U
}}

Switch like that means that ru, tr and uk translated pages will show {{Updatetranslation}} at the top.

There are more options. Example:

{{#switch: {{{1}}}
| ru = U
| tr | uk = F
| fi = T
| zh = M
}}

In this case ru page shows {{Updatetranslation}}, tr and uk page shows {{Finishtranslation}}, fi page shows {{Translate}} and zh page shows {{Machinetranslation}}


Pages like this can be quickly created using {{LanguageBar}}'s TranslationMark button Translationmark (TranslationMark) which is shown after clicking Translate (Translate) (on the top right of a page).

This page was generated using {{subst:TranslationMark|namespace={{{1}}}|base={{{2}}}}}