Valve Developer Community:Zh/Alternative Languages
Jump to navigation
Jump to search

This page has not been fully translated.
You can help by finishing the translation.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
You can help by finishing the translation.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
本页面是关于在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:当前语言代码:目标语言代码|目标页面}}
表示既有使用当前页语言也有目标页语言所书写的文本,并提供目标页的链接。
添加链接
Template:Otherlang2 在该页的右上角添加你所翻译语言所属国家的国旗. 像这样:
{{otherlang2| es = Destination page:es| de = Destination page:de| jp = Destination page:jp }}
这个模板 必须 是在这一页的第一行! 你也应当尽力来更新所有的其他语言网页, 不光是你自己的或是原版英文网页.
可用语言
已知语言可在此处找到 Languages category。
如果你想要让你所使用语言的类目出现在主语言类目中,将下面的内容添加到你的语言类目的文档中。
[[Category:Languages]]
写在最后
这篇指南不具有权威性,但是如果大家能遵循这种利用模版的方法会让工作更加简单,也只有这样才能让wiki中的各语言保持和谐。
补充:你可以以编辑方式打开某个有多语言支持的页面,通常多语言页的支持代码都加在了最后,从中应该可以学习到一些。