Template:Language/page: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Translation fix) |
||
(One intermediate revision by one other user not shown) | |||
Line 48: | Line 48: | ||
== {{#switch:{{Language/0}}|#default=Common /string pages|hr=Zajedničke /string stranice}} == | == {{#switch:{{Language/0}}|#default=Common /string pages|hr=Zajedničke /string stranice}} == | ||
{{#switch:{{Language/0}} | |||
|#default = | |||
* [[Template:This is a/strings]] | * [[Template:This is a/strings]] | ||
* [[Template:Translate/strings]] | * [[Template:Translate/strings]] | ||
* [[Template:Doc/strings]] | * [[Template:Doc/strings]] | ||
| zh = | |||
* [{{fullurl:Template:This_is_a/strings|uselang=zh}} 模板:这是一个/字符串] | |||
* [{{fullurl:Template:Translate/strings|uselang=zh}} 模板:翻译/字符串] | |||
* [{{fullurl:Template:Doc/strings|uselang=zh}} 模板:文档/字符串] | |||
}} | |||
== {{#switch:{{Language/0}}|#default=See Also|hr=Vidi također}} == | == {{#switch:{{Language/0}}|#default=See Also|hr=Vidi također}} == |
Latest revision as of 10:59, 30 September 2025
Here are the steps for translating a page in English into other languages:
- Copy the content of the English page. If there isn't a {{LanguageBar}}, then you should add one at the start of the page.
- Follow the requirement of titles to entry the creating page of the corresponding language page.
- Start translating. Conventions:
- The links on the translated page within this website need to use template {{L}}. For example, [[ExampleLink]] will become {{L|ExampleLink}}. If the link has alternative name, then follow this format: {{L|<link name>|<alternative name>}}. So you can use altname for translating links. {{L|Cubemaps|反射贴图}} is an example, which is used in Chinese. External links don't need.
- The categories on the page also need to use {{ACategory}}. The method is the same as above. For example, [[Category:Entities]] will become {{ACategory|Entities}}.
If the category is a link instead of that adding the page to itself, use {{LCategory}} (i.e. [[:Category:Entities]] → {{LCategory|Entities}}). These 2 templates also support altname like that in {{L}}. - Templates itself remain unchanged because the language and text inherent in the template are automatically translated. But you need to translate the value of the parameter used in the template. For example, the notes written by {{Note}} won't be translated and you should translate them.
- After finishing translating, save your contributions.
For more info, see this page Project:Alternative Languages.
Common /string pages
See Also
- Project:Alternative Languages
- {{LanguageBar}}
- {{Language}}
- {{L}}
- Category:Translation
- Category:To be translated
- Category:En/To be translated
- Category:Dictionary/Notices
- Category:Dictionary