Habitica Wiki
注册
Advertisement
Habitica Wiki

这篇文章是关于翻译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

Habitica Wikia 翻译(需要权限,如需加入前往Commonwealth of i18n 公会申请进入)

开始翻译[]

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

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

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

准备与复制工作[]

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

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

habitica.fandom.com/wiki/Pets

目标页面(如中文)为:

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

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

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

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

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

举例:

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

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

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

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

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

翻译页面分类[]

页面创建之后,你需要翻译该页面的类别名称(见页面顶部及底部的“分类:XXX”区域)。请先浏览分类索引,查询分类所对应的译名,再严格按照该译名翻译类别名称,避免引起不必要的麻烦。

翻译[]

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

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

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

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

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

你应该在每个翻译的页面中都加上这个模板。 {{t|Translation}}
注:我们几乎没有原创文章,基本都是翻译文章,没有必要使用此模板加以区分。

排序顺序[]

Wikia使用Unicode编码通过标题对文章和分类进行排序。尽管这种方法很适用于英语,但它可能引起其他语言页面的排序与通常所用的排序不同。为了避免这种情况,你可以设置页面上的 默认顺序(DEFAULTSORT) 变量,把这一页移动到更合适的位置。如果你想要改变页面上任何一处的位置,就插入:

{{DEFAULTSORT:new sort key}}

目标语言的排序规则决定了你如何定义新的排序键,我们建议你与wiki上其他译者进行讨论。例如:

{{DEFAULTSORT:A Faire}}

在法语文章中插入 À Faire 可以确保它与其他以“A”开头的页面排列在一起,而不是排在“Z”的后面。

这项技术也能用于根据标题中其他词,而非第一个单词来排序文章。例如,你可以给所有以“The”开头的文章设置排序键,这样它们就能按照第二个词进行排序了,“T”分类下就不会有许多页面了。

添加语言链接[]

翻译完成后,在每一个翻译好的页面及其对应的英文页面底部添加一个语言链接。想要了解如何操作,请阅读帮助:跨语言链接(Interlanguage_links)

例如:[[en:Guidance for Linguists]] (将链接到此页面的其他语言版本)

例如:[[de:Leitfaden für Übersetzer]] (将链接到德语页面)

注意,不同的非英语wiki之间不能建立跨语言链接,因此在已翻译完的(即非英语的)wiki上,只应提供英语的跨语言链接。这是因为很少有人会在各个已翻译好的wiki之间进行切换以校正每一处翻译,以及在所有现存页面上更新新语种的wiki及页面。如果确实想从一个非英语wiki跳转至另一个非英语wiki,则可以使用英语wiki作为中介。

申请贡献者等级[]

想要了解申请贡献者等级的过程,请阅读The Keep:The Knights Chambers。准备好后,你就能通过该页面进行申请。请注意,监视及检查翻译会使非英语wiki的等级评估过程变得尤其困难,可能不会授予贡献者等级。所有等级都由管理员判断授予。

管理员新建Wiki的方法[]

本节包含了帮助英文wiki管理员在另一语言中新建wiki的信息。译者可忽略本部分。

建议只有当目标语言中有三位以上的贡献者组成自愿团队,并且Whats New Page保持定期更新时,才建立一个新的wiki。

显示/隐藏说明
  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.
Advertisement