FANDOM


这篇文章是关于翻译Habitica Wiki的。如翻译Habitica本体请查看语言学家指南获得相关信息。如翻译新闻请查看创建和编辑新闻页面

建议您加入Commonwealth of i18n - Aspiring Linguists of HabiticaWizards of the Wiki两个公会。他们分别是游戏本体翻译和Wiki翻译的总公会。下文也会列出各语言设立的分工会地址,欢迎加入。

所有语言学家要精通自己所翻译的语言。如果翻译出粗糙的页面会给Habitica带来负面印象,同时也传递错误并误导读者,那样就与我们的本意背道而驰了。请不要使用有道翻译或其他机翻手段,读者自己也可以这样处理。提供粗糙的翻译页面会使我们流失更多精通语言的志愿者,如果他们没有通读这篇文章,会认为我们不需要人工翻译。

在开始翻译之前,请认真阅读以下步骤。

为你的语言找到或申请Wiki 编辑

目前已经存在的语言如下表所示。要另外申请语言,请在Wizards of the Wiki公会申请创建。Habitica管理员会为其创建主页,并使你能够从英文wiki搬运图片,创建样式表,并将你添加为该wiki的管理员。

链接 语言 汉语名称 翻译公会
da.habitica.wikia.com Dansk 丹麦语
de.habitica.wikia.com Deutsch 德语 Wiki - German Translators
es.habitica.wikia.com Español 西班牙语 ¡Aventureros a la Wiki! (需要权限,如需加入前往)Commonwealth of i18n 公会申请进入)
fr.habitica.wikia.com Français 法语 French Translators Guild
it.habitica.wikia.com Italiano 意大利语
ja.habitica.wikia.com 日本語 日语 Habitica 日本語訳 Team
nl.habitica.wikia.com Nederlands 荷兰语 Nederlands Wiki Gilde van Habitica
pl.habitica.wikia.com Polski 波兰语 Wiki - Polish Translators
pt-br.habitica.wikia.com Português Brasileiro 巴西葡萄牙语 Wiki - Portuguese Translators
ru.habitica.wikia.com Русский 俄语 Переводчики Habitica
tr.habitica.wikia.com Türkçe 土耳其语 Türkçe Linguists and Scribes
zh.habitica.wikia.com 中文 (简体 & 繁體) QQ群 563291803

开始翻译 编辑

我们推荐您翻译时逐个添加页面。一个非英语wiki包含大量英语页面会使用户难以查找看内容,也使管理员难以判定是否赋予你贡献等级。

请在翻译完整个页面后再开始新页面的翻译。

如果您想要翻译的语言已经创立公会,那么欢迎加入。

准备与复制工作 编辑

第一步,将你想要翻译的页面导航到相应网址。你需要先前往你的目标语言wiki首页,举个栗子:
xx.habitica.wikia.com/wiki/Habitica_Wiki --其中“xx”是目标语言的代码。

我们以宠物页面为例。该页面源地址(英文)为:

habitica.wikia.com/wiki/Pets

目标页面(如中文)为:

zh.habitica.wikia.com/wiki/宠物

你会发现,只有语言代码和“/wiki/”后的文本是不同的。其中“/wiki/”后的文本定义翻译页面地址,这就是你要导航的地址。

找到一个空白页面,你会看到“create”键(已翻译的页面会显示“edit”),点击它进入编辑器。

打开编辑器之后,你需要源英文页面的文本。请打开另一个浏览器(或打开新窗口/标签页)进入英文的该页面,后点击“edit”。

强调,现在你打开了两个编辑器。接着,在编辑器右上角“≡”菜单进入源代码编辑器,复制英文页面的源代码,并粘贴到目标页面源代码编辑器内,接着发表。提示:有时直接在显示模式拷贝效果更好(例如存在复杂表格、模型,如 职业 页面),但大多数情况拷贝源代码就好了。

举例:

  • 观察 /wiki/Pets 页面编辑器。右上角有两个标签页,一个是“Visual”预览编辑器,一个是“Source”源代码编辑器。
  • 点击“Source”页面。
  • 现在屏幕显示这本页面的源代码。复制全部内容(不知道是什么意思也没关系)。
  • 关闭原网站页面。
  • 进入 /wiki/宠物 页面编辑器。
  • 进入源代码编辑器(如果你尚未进入的话)。
  • 粘贴源代码,根据你编辑的内容写摘要(如“创建”等),然后发表你的编辑。

这可能看起来很糟糕,但现在起操作就简单多啦。

接下来从英语Wiki获取并插入需要的图片与模板到目标页面。有时如果模板不重要可以将其忽略。

除非你需要在页面显示包含文字的图片,而你想将它也进行翻译,你不需要自行拷贝图片.(更多信息很快推出,或咨询Wizards of the Wiki公会)

在这之后,你的页面看起来就与原页面基本相同了。

翻译 编辑

真正翻译页面的过程才是你来到这个页面的目的。

要注意哪些词语需要翻译而哪些要保持原样。“Feature”是一个在很多语言中都有的词,“Daily”和“To-Do”可能有挑战性。

另一个同样重要的准则是使用已有的词汇。如果某物已经有一个名字,就用那个词。不要给用一个事物发明新名字。你的翻译可能听起来不那么好,但是为了易用性,用同一个词指称同一个事物是有必要的。如果你真的觉得你的方案更好,先讨论它。

以下的页面是在任何翻译的Wikia中都应该优先被翻译和维护的:

- 首页
- 职业
  -战士
  -法师
  -盗贼
  -医者
- 宠物
- 坐骑

你应该在每个翻译的页面中都加上这个template。 {{Translation}}

Sort Order 编辑

Wikia sorts articles and categories by their titles using Unicode sort order. While this works well for English, it can cause pages in other languages to be sorted differently from the sort order usually used. To avoid this, you can set the DEFAULTSORT variable on a page to move the page to a more appropriate position. Anywhere on the page you want to change the position of, insert:

{{DEFAULTSORT:new sort key}}

What you use for the new sort key will depend on the sorting rules in your language, and it is recommended that you discuss this with other translators working on your wiki. As an example, inserting:

{{DEFAULTSORT:A Faire}}

into the French article À Faire will ensure that it is sorted with other pages starting with "A", rather than after "Z".

This technique can also be used to sort articles by a word other than the first word in the title. For example, you could set sort keys for all articles starting with "The" so that they are arranged by the second word, rather than having many pages under "T".

Add Language Links 编辑

When your work is done, add a language link to the bottom of each translated page and its English counterpart. To learn how this is done, read Help:Interlanguage_links.

Example: [[en:Guidance for Linguists]] (would link to this page from another language)

Example: [[de:Leitfaden für Übersetzer]] (would link to the German page) 

Note that on translated (i.e., non-English) wikis, only English interlanguage links should be provided, as interlanguage linking is not set up between different non-English wikis. This is because too few people are likely to go between translated wikis to justify the effort of linking each translation and updating all existing pages to reflect new language wikis and pages. Those who do want to go from one non-English wiki to another can use the English wiki as an intermediary.

Contributor Tier Process编辑

Please read The Keep:The Knights Chambers to understand the process for requesting a contributor tier. When you are ready, you can start your application through that page. Please note that monitoring and checking translations makes it especially difficult to assess tiers for non-English wikis, and contributor tiers might not be given. All tiers are awarded at the discretion of the staff.

Initial Creation of Wiki by Administrators编辑

This section contains information for the English wiki's admins to help them set up a new wiki in another language. This section can be ignored by translators.

Show/Hide instructions
  1. Click on the "Start a wikia" button in the header of any wiki page and enter information in the dialog that appears:
    1. In the Name field, enter exactly "Habitica".
    2. Allow the Address field to be created automatically and do not change it for any reason.
    3. Select the language. It is vital that you choose the right one, otherwise, there will be trouble with language linking later. If you don't know the two-character code for the target language, you can look up the ISO code and look for the value in the "639-1" column for the desired target language.
    4. Click the "Next" button which will take you to a second screen.
    5. In the "What's your wiki about?" field, enter "Your Life, The Role Playing Game".
    6. In choose a hub, select "Games".
    7. For "Check additional categories", do not tick any checkboxes.
    8. Click the "Create My Wiki" button which will take you to the "Choose your theme" page.
    9. Select the first theme.
    10. Click the "Show me my wiki" button which will take you to the new wiki's front page.
    11. Cancel the "Congratulations! You successfully created Wikia Habitica" popup. Do NOT click on the "Add a Page" button.
  2. Go to the English wiki's front page and open it in the source mode editor. Copy the entire contents to your clipboard. Close the editor without making changes.
  3. Open the new wiki's front page in the source mode editor and paste in the entire contents of the English front page.
  4. In the welcome box, replace "The wiki is also available in other languages: {{Other Languages|compact}}" with "The wiki is also available in [http://habitica.wikia.com/ English] and other languages (available from the English wiki's home page)." We do not list all the languages in the welcome box because then every wiki's home page would need to be updated when a new wiki is created.
  5. At the bottom of the page, replace the list of languages with "[[en:Habitica Wiki]]". Do not worry if that link does not work after the page has been saved.
  6. Save the home page. Do not worry that it looks terrible at the moment. Do not start copying images from the English wiki, not even the Habitica logo.
  7. Go to Category:Homepage Templates on the English wiki. Copy all templates you find there to the new wiki (see the tip below about copying files). This should make the new wiki's home page look better. Any remaining problems are likely to be fixed by the steps below.
  8. Set up administrators:
    1. Go to habitica.wikia.com/wiki/Special:UserRights on the English wiki.
    2. Edit the URL to change habitica.wikia.com to the domain name for the new wiki (i.e., add the language's abbreviation at the start of habitica.wikia.com). This will take you to the correct form for adding administrators to the new wiki.
    3. Add LadyAlys, Sonnet73, and Taldin as administrators (give them all available permissions). Also, add the person who asked for the wiki to be created (you will need to find out the name that their Wikia account uses); the Special:Listusers page might help.
  9. Go to Wikia's Community Central : Interlanguage link requests page and follow the instructions there to request language linking from the English wiki to the new wiki. After Wikia staff have done that, the link to the English wiki at the bottom of the new wiki's home page should start to work.
  10. This next step must be performed by a person who is an administrator on both the new wiki and the English wiki. Go to the form for contacting Wikia staff. For the subject, enter text like "Image reuse from habitica.wikia.com to new translated wiki and JavaScript editing". For the message enter text like "Hello. I'm an admin of http://habitica.wikia.com/ and [URL]. Could you please allow [URL] to be able to use the images from http://habitica.wikia.com/ ? Please could you also enable http://community.wikia.com/wiki/Help:JavaScript_review_process on [URL]? Thank you!". Change "[URL]" to the URL of the new wiki in both places it appears. It will take a day or two for Wikia staff to enable image sharing and JavaScript editing. After they have done that, the Habitica logo will automatically appear on the new wiki's home page (as will other images on other pages that are created by copying the source code from the English wiki).
  11. After the above step has been completed, copy each of the stylesheets and JavaScript files below to the new wiki (see the tip below about copying files). Ignore any of these files if they show nothing but 404 errors on the English wiki (those files are not in use yet). Note that changes to the JavaScript files will not take effect until after they have been reviewed by Wikia staff.
  12. Adjust the Theme, Wordmark, FavIcon, Templates, Color set, Top Menu. More info to come.
  13. Enable any features on the new wiki's Special:WikiFeatures page that you would like to use and are not enabled by default (e.g., badges/achievements). (Note: the link goes to the English wiki; please adjust the URL for the new wiki.)
  14. Add the new wiki's URL and the language name (not the English version of the name) to the English wiki's home page in the Welcome box and in the list of languages at the bottom of the home page (do not worry if that latter link does not work yet; it will when Wikia staff have enabled interlanguage linking).
  15. Add the new wiki's details to the table of wikis in Guidance for Linguistic Scribes.
  16. Tell the person who requested the wiki that they can now translate the home page and then start translating other pages.

Tip: When copying files (such as templates, stylesheets, and JavaScript files) from the English wiki to the new wiki, the easiest method is below. Do not do this from any of the non-English wikis because if you do, the final file names will be wrong!

  1. On the English wiki, open the file in the source editor.
  2. Copy the entire contents to the clipboard.
  3. Do not save or cancel from the source editor!
  4. Adjust the page's URL to add the new wiki's language abbreviation at the start of the URL and hit enter on your keyboard. You will now find yourself in the source editor for the same file in the new wiki.
  5. Paste from your clipboard. If there is already content there (e.g., default styles with comments in the new wiki's language), then do not overwrite that content. Instead, paste the English wiki's material below it, then search through that English material to find the comments and code that match the existing content, and delete that English material.