Help:Extension:Translate/Page translation example/zh

欢迎！看完这篇教程之后你将明白如何使用翻译扩展. 我们尽量在可以介绍清楚所有概念和任务的前提下保持此教程的简洁易懂. 学过这篇教程后你还可以进一步阅读页面翻译功能的详尽文档.

第一步：开始之前
本教程假定翻译扩展已经安装并调试完成. 可能你已经有一个页面想要翻译了，或者你可以根据下面的演示页面在你自己的wiki中试一试这些步骤. Maybe you already have a page in mind that needs translation, or you can use the example page provided below to try out the steps in this tutorial in your own wiki.

该页面描述了虚构的 Fréttinga 市政府.

Fréttinga is a small municipality in MungoLand, located on the BaMungo island. It hosts a population of about 400 people. It has some agriculture and fishing. Tourists like to visit it in the summertime. == Services == It doesn't have many services. There is a shop, and a car ferry visits the island from the mainland once a day.


 * 1、转到在您的wiki上的 Fréttinga 页面（或者一个草稿页面），然后单击创建.
 * 2、粘贴上面的内容，并保存它.

第二步：准备
现在你有了一个有内容的页面. 如果该页面正被频繁的编辑，那最好等较稳定后才添加到翻译系统. 这样可避免翻译者为了保持同步所做的额外工作. If the page is still going to be subject to lots of changes, it may be better to wait until the edits slow down to a normal level before adding the page into the translation system. This is to avoid too much work for translators as they need to keep up with all the changes.


 * 3、编辑 Fréttinga 页面
 * 4、用 &lt;translate>...&lt;/translate> 标记出需要翻译的内容，如图所示.
 * 5、保存页面

&lt;translate> Fréttinga is a small municipality in MungoLand, located on the BaMungo island. It hosts a population of about 400 people. It has some agriculture and fishing. Tourists like to visit it in the summertime. == Services == It doesn't have many services. There is a shop, and a car ferry visits the island from the mainland once a day. &lt;/translate>

你不需要向所有的元素添加&lt;translate>标签，或者添加像 这样的标记. 这个扩展会为你做好.

第三步：启用翻译
保存后，您会在页面顶部看到“标记此页面以备翻译” - 或如果您不是翻译管理员的话，“此页面包含未标记为待译的改动. ”的链接. 如果您是翻译管理员，点击“标记此页面以备翻译”链接. 这样页面就会自动分成四个翻译单元. 第一单元是页面标题、第二是首段内容、第三是第二段标题、第四是第二段内容. 这是最基本的页面可译项：每个单元都是独立的，需要作为一个整体来翻译，页面内容的改变也以一个单元为单位. 每个单元可以删除或重排. If you are a translation administrator, then click on the "Mark this page for translation" link. The page has been automatically split into four translation units. The first unit is the title of the page, the second is the first paragraph, the third is the header of the second paragraph, and the fourth is the text of the second paragraph. These are the basics items of translatable pages: each unit is independent; it can and must be translated as a whole; changes to the page content are tracked into the unit level. Units can be rearranged or deleted.

同时也会出现一个页面翻译的模板，将在下文介绍. 你可以给每个翻译单元命名，在例子中我们使用默认名称.


 * 6、单击“标记此页以备翻译”链接
 * 7、请确保页面本体被正确地分成三个单元
 * 8、单击“标记翻译的版本”按钮
 * 9、返回到原始页面

现在你可以在上方看到一个新的链接，“翻译此页”，翻译者可以通过此链接翻译页面. 你可以看一看使用此页作为示例的翻译教程. 然后返回这里继续看下面的步骤.

第四步：进行修改
跟踪修订是很重要的功能，现在我们做些改动并看看它的工作原理. 当你打开页面进行编辑时会发现已被类似 代码标记了. 这是扩展自动添加的符号以帮助识别每个翻译单元. 你可以重排和编辑各个单元. 当编辑页面时，可以不用考虑这些标记，他们会自动调整位置来确保每个翻译单元不会变化. 当要移动一个单元时，请同时移动单元标记. These are added by the extension and help it identify which unit is which. This allows you to rearrange and edit those units. When editing the page, the markers should be left alone and their position in relation to the unit they belong to should not be changed. When moving a unit, move the unit marker, too.

在删除一个单元时，请同时移除它的标记. 当添加新段落时，系统也会增加新的标记. 不要手动增加新标记，否则可能会让系统出问题. 机器人会自动删除现存翻译中你之前删除了的标记.

如果你对一个现存的翻译单元进行了小修改（如增加文字或添加链接），请保留原来的标记. 如果你把整个段落删除或重写了，请删除标记. 删除标记后，翻译者会面临不同的任务，即复核模糊的翻译或创建一个新翻译. &lt;languages /> &lt;translate> &lt;!--T:1--> Fréttinga is a small municipality in MungoLand, located on the BaMungo island. It hosts a population of about 400 people. It has some agriculture and fishing. Tourists like to visit it in the summertime. It has marvelous beaches with a lot of seagulls. == Services == &lt;!--T:2--> &lt;!--T:3--> It doesn't have many services. There is a shop, and a car ferry visits the island from the mainland once a day. '''In 2009 January the roof of the church in the island fell down. It was rebuilt''' collaboratively the following summer. &lt;/translate>


 * 10、如上图所示
 * 11、进行一些补充. 单击“翻译标记为”链接的顶部
 * 12、观察其变化
 * 13、点击“做翻译标记”按钮
 * 14、返回到原来的页面

如果你按照提示完成了之前的步骤，你会在页面上方看到链接指向译文. 你也会看到翻译并没有100%完成. 如果你前往翻译界面查看，你会看到翻译单元被标记为需要翻译.

过期的翻译会高亮成粉色背景，用户收到未翻译完成的标记.

翻译状态查看模板有助于你查看页面翻译单元在所有语言中的翻译状态（即翻译页面模板，也就是翻译标签下面的框框），同时会显示翻译单元的移动和删除.

确认翻译更新之前可能会有视觉延迟，因为有许多页面需要更新.

现在你已经知道基本信息了，但教程还会继续介绍一些其他你想知道的信息.

第五步：添加其他 wiki 元素
你有了一个基础的可翻译页面，但看起来很呆. 让我们添加一张图片和其他信息让它看起来更像是一个正常的维基页面，来看看如何添加其他协作翻译元素.

我们也移除了段落、翻译单元标记，用一个列表来替换，让你看清到底发生了什么.

&lt;languages /> &lt;translate> &lt;!--T:1--> Fréttinga is a small municipality in MungoLand, located on the BaMungo island. It hosts a population of about 400 people. It has some agriculture and fishing and tourists like to visit it in the summertime. It has marvelous beaches with a lot of  seagulls . == Services == &lt;!--T:2--> &lt;!--T:3--> It doesn't have many services. There is a shop, and a car ferry visits the island from the mainland once a day. Main events: * The roof of the church fell down in 2009 * New church was built in 1877    &lt;/translate>
 * 15、如下图所示给页面添加一张图片，一个分类和一个列表
 * 16、保存页面
 * 17、点击页面上方的“标记翻译页面”链接
 * 18、确保变化是与预期相同的
 * 19、点击“标记翻译此版本”按钮
 * 20、返回翻译页面

为翻译撰写文档
在这里你可以看到我们把所有图片移到翻译单元之外并用翻译模板替换. 大部分情况下这很OK，但有时候译者需要替换文中的图片，尤其是那些写有某种语音内容（文本）的图片. 这种情况下最简单的办法就是在翻译单元中包含这些图片引动代码（就像分类代码一样）. 当翻译单元中包含这些代码时，写一个短小的说明文件是个不错的选择. 你可以照着下面的步骤去做. This is usually okay, but sometimes translators may want to change the image, especially if it contains linguistic content (text). In those cases it's usually easiest to include the whole markup in a unit (as we did for the category). When the translation of a unit involves or interacts with markup it's a good idea to write a small tip to the translators about it. You can do this with the following steps.


 * 21、点击页面上方的翻译此页
 * 22、选择'"qqq - 页面说明"'Select "语言
 * 23、点击包含"A typical view of Fréttinga"的信息
 * 24、填写图片说明并点击保存

关于分类
在这个例子中，所有的分类被分到同一个翻译单元中. 这使译者可以把分类替换成类似 的更合适的分类中去. 如果这在翻译模板外面的话，那么诸如oo, Foo/de, Foo/ru, Foo/ta这样的页面会被分入同一个分类中. 有些时候这很OK，但这样会使用户产生困扰. 确保你的译者门了解本地的习惯方式. This lets translators change it to or whatever naming convention you want to use for categories. If it were outside the translation template, you would have all the pages Foo, Foo/de, Foo/ru, Foo/ta and so on in the same category. Sometimes this is okay, but usually it distracts the users. Make sure your translators know what the local convention is.

关于链接
类似的，对于链接我们有许多方法来操作. 我们使用" Special:MyLanguage/Seagull "来自动重定向到用户界面语言对应的翻译版本（如果存在的话）. 这不是一个最好的方式，因为用户总是需要重定向到他用户界面的语言而不是他正在阅读的语言. Special:MyLanguage也会干扰Special:WhatLinksHere使其无法正常工作. Special:MyLanguage的优点是就算翻译版并不存在，你也一定会打开该页面的其他版本. We used " Special:MyLanguage/Seagull ", which automatically redirects to the translated version of the page depending on the users' interface language (if that translation exists). This isn't an ultimate solution, because users will always be redirected to the interface language they are using, not to the language they are currently reading. Special:MyLanguage also interferes with Special:WhatLinksHere and makes it not work. The good thing about Special:MyLanguage is that you always get some version of the page, even if the requested translation doesn't exist.

关于标题
若想要系统识别出标题而不是视为普通文字，别忘了在标题和其后的段落之间添加一个空行（如果原先没有的话）.

以下示例只会创建一个翻译单元：

== Services == It doesn't have many services. There is a shop, and a car ferry visits the island from the mainland once a day.

下面这个则会创建两个，其中一个是标题.

== Services == It doesn't have many services. There is a shop, and a car ferry visits the island from the mainland once a day.

添加一个空行能让翻译者知道什么时候他们可以告一段落. 另外，它也能防止一些wikitext的问题.

后面的话
翻译页面连同所有的译文可以移动到新名字下. 由于有许多页面需要移动，所以过程不会很迅速. 你可以连同译文一起删除，或仅仅删除其中一个翻译版本. 你也可以在其他页面链接到此功能.

Special:页面翻译列出了系统中的所有页面. 在给出可翻译页面的总览的同时，还允许停止页面翻译. 这将在大部分列表中隐藏此翻译. 这并不会组织将来的翻译.

现在你已经创建了一个可翻译页面并且练习了翻译页面会显示的所有基本功能. 要获取更多信息，或你想了解更多深层的特性，请继续阅读更深层次的翻译特色说明文档. 该文档还包括了如何处理链接、分类和模板，以及使用大翻译单元或小翻译单元的好处与坏处等信息.