Help:Language translation: Difference between revisions
Help page
More actions
Technochips (talk | contribs) No edit summary |
VivaRomania (talk | contribs) mNo edit summary |
||
| Line 6: | Line 6: | ||
Follow these steps to translate a new page: | Follow these steps to translate a new page: | ||
# Go to the page you wish to translate and click "Edit" (or "View source"). Select and copy the entirety of its code. | # Go to the page you wish to translate and click "Edit" (or "View source"). Select and copy the entirety of its code. | ||
# Navigate to the new language by adding | # Navigate to the new language by adding {{code|/xx}} to the end of the article, where {{code|xx}} is replaced with the ISO639-1 code of the language you wish to translate to. | ||
#* Example: | #* Example: {{code|[[Installation/es|https://wiki.tf2classic.com/wiki/Installation/es]]}} | ||
# Paste the code of the English page. | # Paste the code of the English page. | ||
# Place | # Place {{code|<nowiki>{{DISPLAYTITLE:abcxyz}}</nowiki>}} at the very top of the page to translate the page's title. | ||
#* For example, | #* For example, {{code|<nowiki>{{DISPLAYTITLE:Instalación}}</nowiki>}} will properly change the page name to {{code|Instalación}} while keeping the URL be {{code|Installation/es}}. | ||
#* Do not add more than one new line, or else there'll be awkward padding at the top of the page. | #* Do not add more than one new line, or else there'll be awkward padding at the top of the page. | ||
# You can start translating the page! | # You can start translating the page! | ||
#* Whenever possible, refer to the in-game translations and localization files for any official translated terms. | #* Whenever possible, refer to the in-game translations and localization files for any official translated terms. | ||
# Change every single links and categories to properly link to the right place. | # Change every single links and categories to properly link to the right place. | ||
#* If there is a link to | #* If there is a link to {{code|<nowiki>[[Troubleshooting]]</nowiki>}} while translating the page, you'd want to add a pipe character {{code|<nowiki>[[Troubleshooting/fr|Dépannage]]</nowiki>}} to make the link redirect to the translated page while showing the page's translated title: [[Troubleshooting/fr|Dépannage]] | ||
#* If there's already a pipe character | #* If there's already a pipe character {{code|<nowiki>[[Troubleshooting|click here]]</nowiki>}}, just translate what's after it: {{code|<nowiki>[[Troubleshooting/fr|cliquez ici]]</nowiki>}} | ||
#* If there is a link to a section | #* If there is a link to a section {{code|<nowiki>[[Troubleshooting#See also]]</nowiki>}}, you'd want to change what's after the number sign to properly link to the existing section of the linked translated page: {{code|<nowiki>[[Troubleshooting/fr#Voir aussi]]</nowiki>}} | ||
#* If there's an interwiki link | #* If there's an interwiki link {{code|<nowiki>[[tf:Scattergun]]</nowiki>}} or {{code|<nowiki>[[wikipedia:Wall]]</nowiki>}}, if possible please change it to link to the translated version of the page: {{code|<nowiki>[[tf:Scattergun/fr]]</nowiki>}} or {{code|<nowiki>[[wikipedia:fr:Mur]]</nowiki>}} | ||
#* If there's an external link | #* If there's an external link {{code|<nowiki>[https://example.com/ Example page]</nowiki>}}, you'd want to translate the text of the link: {{code|<nowiki>[https://example.com/ Page d'exemple]</nowiki>}} | ||
#** If possible, look for an officially translated version of the linked page, and place that there instead. | #** If possible, look for an officially translated version of the linked page, and place that there instead. | ||
#** If it's a link to the official TF2 Classic Discord, please add a mention that it is English-only. | #** If it's a link to the official TF2 Classic Discord, please add a mention that it is English-only. | ||
#* If there is a category | #* If there is a category {{code|<nowiki>[[Category:Gamemodes]]</nowiki>}}, you'd just want to add the language code in there: {{code|<nowiki>[[Category:Gamemodes/de]]</nowiki>}} | ||
This procedure is identical to the procedure of translating a page on the TF2 Wiki. | This procedure is identical to the procedure of translating a page on the TF2 Wiki. | ||