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

“Citizens/翻译”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
(创建页面,内容为“最新的Citizens2 完全可以被翻译成多门语言. Server owners can easily choose which language they want Citizens messages to be displayed in, as long as a…”)
 
第1行: 第1行:
最新的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.
+
最新的Citizens2 完全可以被翻译成多门语言.服主可以随意选择想要的语言.
  
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.
+
想要把Citizens设置为不同的语言,只需打开 "plugins\Citizens\config.yml" 并修改 "locale: en" . 修改 "en" 为你的语言缩写,比如 "de" 为德语.
  
You can also edit the messages for any language on your server by opening that language's file in Citizens\lang\
+
你可以在 Citizens\lang\ 修改插件消息
  
 
== 可用翻译 ==
 
== 可用翻译 ==
第14行: 第14行:
  
 
== 我该如何翻译? ==
 
== 我该如何翻译? ==
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!
+
想要创建新的语言翻译,你先要复制 messages_en.properties并把文件名改成你的语言, messages_it.properties 为意大利语. 在文件内翻译即可!
  
 
== 语言文件如何运行? ==
 
== 语言文件如何运行? ==
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"
+
语言文件包含了多行句子 ('strings').它们基于密钥修改指定的字符串. 比如 citizens.notifications.enabled. 每个语言文件在其名称中包含一个语言缩写 - 即为语言的ISO代码. As an example, 比如英语的为 "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.
+
默认, Citizens将使用系统区域设置进行翻译,但也会使用config.yml里的general.translation.locale 设置.

2018年12月16日 (日) 17:30的版本

最新的Citizens2 完全可以被翻译成多门语言.服主可以随意选择想要的语言.

想要把Citizens设置为不同的语言,只需打开 "plugins\Citizens\config.yml" 并修改 "locale: en" . 修改 "en" 为你的语言缩写,比如 "de" 为德语.

你可以在 Citizens\lang\ 修改插件消息

可用翻译

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

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

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

我该如何翻译?

想要创建新的语言翻译,你先要复制 messages_en.properties并把文件名改成你的语言, 如 messages_it.properties 为意大利语. 在文件内翻译即可!

语言文件如何运行?

语言文件包含了多行句子 ('strings').它们基于密钥修改指定的字符串. 比如 citizens.notifications.enabled. 每个语言文件在其名称中包含一个语言缩写 - 即为语言的ISO代码. As an example, 比如英语的为 "messages_en.properties"

默认, Citizens将使用系统区域设置进行翻译,但也会使用config.yml里的general.translation.locale 设置.