Valve Developer Community:Zh/Alternative Languages: Difference between revisions
Line 72: | Line 72: | ||
<nowiki>[[Category:Languages]]</nowiki> | <nowiki>[[Category:Languages]]</nowiki> | ||
== | == 写在最后 == | ||
这篇指南不具有权威性,但是如果大家能遵循这种利用模版的方法会让工作更加简单,也只有这样才能让wiki中的各语言保持和谐。 | |||
[[Category:Languages]] | [[Category:Languages]] | ||
[[Category:Chinese]] | |||
{{otherlang:zh-cn}} | {{otherlang:zh-cn}} | ||
{{otherlang:zh-cn:en|Valve_Developer_Community:Alternative_Languages}} | {{otherlang:zh-cn:en|Valve_Developer_Community:Alternative_Languages}} |
Revision as of 01:37, 13 April 2008
本页面是关于在Valve开发者社区争取多语言支持。
翻译页面
如果你精通某一门语言,翻译页面对你来说应该很容易。本文不会深入探讨文章翻译的内容。
推荐的命名规则
推荐保留英文原标题,然后分别添加冒号加所需语言代码。 ISO 639-2 alpha-2
例: Command Line Options:jp
需要注意的是英语文档通常作为原稿因此不需要加 :en 标签。
其他语言模版
模版用于标记某一页面已翻译为其他语言版本,因此这些模版可被任意语言所利用。
例如某英文页面有日语的译文:
{{otherlang:en}} {{otherlang:en:jp|Destination page:jp}}
例如某西班牙语页面有英语和德语的译文:
{{otherlang:es}} {{otherlang:es:en|Destination page}}, {{otherlang:es:de|Destination page:de}}
语法构成
你应该注意到了,创建这样的声明需要各部分应用不同的模版。第一部分,
{{otherlang:当前语言代码}}
表示有以下语言适用:。其后安排一个或多个下列的声明
{{otherlang:当前语言代码:目标语言代码|目标页面}}
表示既有使用当前页语言也有目标页语言所书写的文本,并提供目标页的链接。
Creating language tag templates
Creating templates for alternative languages is easy. Simply copy the code for existing templates, and put them into templates replaced with your correct language code. Please be sure to put your target language's name in both your language and the target language's.
Example (Spanish):
Inglés (English)
A template can be modified by going to Template:name
; for example, the otherlang:pl:en
template can be modified by going to Template:otherlang:pl:en
.
The code for otherlang:xx
is:
<br style="clear:both;" /> ---- <small>translation1: </small>
The code for otherlang:xx:yy
is:
<small>[[{{{1}}}|translation2 (translation3)]]</small>
Where:
- xx is the language code of your language
- yy is the language code of the other language
- translation1 is the phrase "This page is also available in", translated to your language
- translation2 is the name of the other language, translated to your language
- translation3 is the name of the other language, translated to its own language
Examples:
- Template:otherlang:en (written in English)
- Template:otherlang:en:es (says "Spanish" in English and Spanish)
- Template:otherlang:es (written in Spanish)
- Template:otherlang:es:en (says "English" in Spanish and English)
- Template:otherlang:en (written in English)
- Template:otherlang:en:sv (says "Swedish" in English and Swedish)
- Template:otherlang:sv (written in Swedish)
- Template:otherlang:sv:en (says "English" in Swedish and English)
可用语言
已知语言可在此处找到 Languages category。
如果你想要有本国语言的类目出现在主语言类目中,将下面的内容添加到你的语言类目文档中。
[[Category:Languages]]
写在最后
这篇指南不具有权威性,但是如果大家能遵循这种利用模版的方法会让工作更加简单,也只有这样才能让wiki中的各语言保持和谐。