• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

Citizens/翻译

来自Minecraft插件百科
Qsefthuopq讨论 | 贡献2018年11月25日 (日) 16:20的版本 (创建页面,内容为“最新的Citizens2 完全可以被翻译成多门语言. Server owners can easily choose which language they want Citizens messages to be displayed in, as long as a…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

最新的Citizens2 完全可以被翻译成多门语言. Server owners can easily choose which language they want Citizens messages to be displayed in, as long as a translation into that language has been completed.

To set Citizens to a different language on your server, just open "plugins\Citizens\config.yml" and change "locale: en" (under general: translations: ). Set the "en" to the locale (ISO code) of the language you want to switch to, for instance "de" for German.

You can also edit the messages for any language on your server by opening that language's file in Citizens\lang\

可用翻译

目前Citizens被翻译成了以下语言:

  • French (fr) by leagris
  • German (de) by SpaceEmotion
  • Dutch (nl) by sjoerdtim

我们感谢这些翻译者, 同时我们也欢迎你上传其他的语言翻译.

我该如何翻译?

To get started with a new translation, make a copy of the messages_en.properties file and change its filename to use a new locale, for instance messages_it.properties for Italian. Translate the strings inside this file, and you're done!

语言文件如何运行?

Language files are a collection of sentences ('strings') in a properties file. They allow Citizens to request a string for a specific action based on a key, such as citizens.notifications.enabled. Each language file contains a locale in its name - that is, the ISO code of the language it's for. As an example, the language file for English is called "messages_en.properties"

By default, Citizens will use the system locale for translations, but will use the general.translation.locale setting from Citizens' config.yml if it's present.