From Fedora Project Wiki

No edit summary
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{autolang}}
{{autolang}}


{{policy page}}
{{policy page/zh-cn}}


{{shortcut|FP:LANG}}
{{shortcut|FP:LANG}}


== Step 1: Find the English version of the page ==
== 维基页面翻译快速指南 ==
English is the base language for the Fedora Project wiki, so there needs to be an English version of the page you are working on. (If there isn't an English version of the page you are working on, see [[#Handling translations without an English version]].)


If there is already a language template at the top of that page, click <nowiki>[edit]</nowiki> on the right side of the language box and move to step 4; otherwise, continue to step 2.
== 第1步:找到页面的英文版本 ==
英语是 Fedora 项目维基的基本语言,所以您的翻译应基于一个英文页面。如果您要翻译的页面还没有英文版本,请参见[[#无英文版本页面的翻译工作|无英文版本的翻译工作]]


=== Handling translations without an English version ===
如果在页面的顶部已经存在一个语言模板,那么单击语言条右侧的 <nowiki>[edit]</nowiki> 按钮并跳转到第4步,否则,请继续第2步。
If the page you create doesn't have an English version, create a new page for the English version, add the {{template|autolang}} template as noted above, and then add the {{template|needs english}} template. This will flag the page for needing an English translation as well as create a base page.


== Step 2: Add the language template to the English page ==
=== 无英文版本页面的翻译工作 ===
Edit the English page, and at the top of it, add the {{template|autolang}} template:
如果您创建的页面还没有英文版本,那么首先创建一个英文版本的新页面,添加如上面所描述的 {{template|autolang}} 模板,然后添加 {{template|needs english}} 模板。这样就会在创建一个新页面的同时标记该页面还需要一个英文版本的翻译。
 
== 第2步:在英文页面上添加语言模板 ==
编辑英文页面,在顶部添加 {{template|autolang}} 模板:


  <nowiki>{{autolang|base=yes}}</nowiki>
  <nowiki>{{autolang|base=yes}}</nowiki>


The <code>base=yes</code> part is ''required'' for the English page. Save the page.
请务必记住:<code>base=yes</code> 这段代码对于英文页面是'''必须'''的!最后保存编辑好的页面。
 
== 第3步:创建语言模板 ==
{{template|autolang}} 自动语言模板为你提供了一个设置语言条的链接。单击这个链接,然后编辑页面将会随之出现。''不要改变任何内容''并且保存页面。然后单击语言条右侧的 <nowiki>[edit]</nowiki> 链接。


== Step 3: Create the language template ==
== 第4步:在模板中添加您的语言 ==
The {{template|autolang}} autolang template should provide a link for you to set up the language box. Click it, and an edit page will come up. ''Don't change any of the content'' and save the page. Then click the <nowiki>[edit]</nowiki> link on the right side of the language box.
现在您应该打开了一个类似下面的模板定义的编辑框:


== Step 4: Add your language to the template ==
<nowiki>{{</nowiki>lang|en|page=''您正在编辑的页面名''<nowiki>}}</nowiki>
At this point you should have an edit box open with template syntax that looks similar to this:


<nowiki>{{</nowiki>lang|en|page=''Base page name''<nowiki>}}</nowiki>
请到 [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/Names.php?view=markup 这个列表] 来确定合适的 MediaWiki 支持的语言代码。


The text between <code>lang</code> and <code>page=</code> is the list of language codes. Add the language code that you are translating to this list. Use [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/Names.php?view=markup this list] to determine the proper MediaWiki language code.
{{admon/note | 请保持语言列表按字母排序 | 保持语言代码列表按照字母顺序排列。这也就是说,举个例子,德语(de)应该排在英语(en)之前。}}


{{admon/note | Please keep the list alphabetical | Keep the list of language codes alphabetical by code. This means German (de) should come before English (en), for example. }}
== 第5步:开始新页面 ==
单击您刚创建的语言的红色链接以创建一个新页面。在页面顶部插入 <code><nowiki>{{autolang}}</nowiki></code> 模板,这样页面顶部就会出现语言条。'''请确保在非英语子页面的模板中没有包含 "base=yes" 这段。'''


== Step 5: Start the new page ==
== 移动旧的翻译页面 ==
Click on the red link for your language to start the new page. Insert the template <code><nowiki>{{autolang}}</nowiki></code> at the top of your page, so that the list of languages is there. ''Be certain to not include "base=yes" in the template for non-English subpages.''
对于那些出现在不适当位置的翻译页面,请参考上述第1步到第4步的操作。然后,复制新页面的标题(例如, "Fedora Project Wiki/de"),单击旧页面顶部的 "move" 按钮,在 "to new title" 中填写移动后新页面的名字。编辑新页面并且在页面顶部添加 <code><nowiki>{{autolang}}</nowiki></code> 模板。


== Moving pages from the old translation setup ==
[[Category: Zh]]
For translated pages that aren't in the proper place, follow steps 1-4 above. Then, copy the title of the new page (e.g., "Fedora Project Wiki/de"). Click the "move" button at the top of the old page and paste the new page name in the "to new title" field. Edit the new page and add <code><nowiki>{{autolang}}</nowiki></code> to the top.
[[Category: Zh/Translation]]

Latest revision as of 07:06, 26 March 2012

Warning.png
本页面描述了 Fedora 项目的某些必须规定
针对规则页面,准确和明晰是最重要的。我们鼓励您编辑维基以便增强它的作用。如果您对本页有一些实质性的更改,请使用讨论页面 与所有编辑人员来讨论您的想法。 请在修改页面前做这件事。
Shortcut:
FP:LANG

维基页面翻译快速指南

第1步:找到页面的英文版本

英语是 Fedora 项目维基的基本语言,所以您的翻译应基于一个英文页面。如果您要翻译的页面还没有英文版本,请参见无英文版本的翻译工作

如果在页面的顶部已经存在一个语言模板,那么单击语言条右侧的 [edit] 按钮并跳转到第4步,否则,请继续第2步。

无英文版本页面的翻译工作

如果您创建的页面还没有英文版本,那么首先创建一个英文版本的新页面,添加如上面所描述的 {{autolang}} 模板,然后添加 {{needs english}} 模板。这样就会在创建一个新页面的同时标记该页面还需要一个英文版本的翻译。

第2步:在英文页面上添加语言模板

编辑英文页面,在顶部添加 {{autolang}} 模板:

{{autolang|base=yes}}

请务必记住:base=yes 这段代码对于英文页面是必须的!最后保存编辑好的页面。

第3步:创建语言模板

{{autolang}} 自动语言模板为你提供了一个设置语言条的链接。单击这个链接,然后编辑页面将会随之出现。不要改变任何内容并且保存页面。然后单击语言条右侧的 [edit] 链接。

第4步:在模板中添加您的语言

现在您应该打开了一个类似下面的模板定义的编辑框:

{{lang|en|page=您正在编辑的页面名}}

请到 这个列表 来确定合适的 MediaWiki 支持的语言代码。

Note.png
请保持语言列表按字母排序
保持语言代码列表按照字母顺序排列。这也就是说,举个例子,德语(de)应该排在英语(en)之前。

第5步:开始新页面

单击您刚创建的语言的红色链接以创建一个新页面。在页面顶部插入 {{autolang}} 模板,这样页面顶部就会出现语言条。请确保在非英语子页面的模板中没有包含 "base=yes" 这段。

移动旧的翻译页面

对于那些出现在不适当位置的翻译页面,请参考上述第1步到第4步的操作。然后,复制新页面的标题(例如, "Fedora Project Wiki/de"),单击旧页面顶部的 "move" 按钮,在 "to new title" 中填写移动后新页面的名字。编辑新页面并且在页面顶部添加 {{autolang}} 模板。