Skip to content

Commit

Permalink
Add missing translation Close LuckPerms#382
Browse files Browse the repository at this point in the history
Close LuckPerms#382

Co-Authored-By: Tobi <[email protected]>
  • Loading branch information
ahdg6 and Tobi406 committed Dec 11, 2021
1 parent c1ef25d commit ccd5ac8
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 18 deletions.
20 changes: 20 additions & 0 deletions src/messages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,31 @@ export default {
legacyInfo: 'Allows some common API methods to be used by plugins that haven\'t upgraded to v5 version of the API yet.',
more: 'Check out the {wiki} for more information!',
wiki: 'wiki section',
wikiThis: 'this section',
defaultAssignments: 'Default Assignments Extension',
defaultAssignmentsInfo: 'Provides an alternate approach for assigning {wiki} if the recommended way is impractical.',
defaultAssignmentsInfoMore: 'Check out the {wikiSection} for more information. See also {thisSection} about configuring default assignments.',
groups: 'default groups',
version: 'LuckPerms 5.0 and above',
},
additionalPlugins: {
title: 'Additional Plugins',
description: 'Additional plugins can provide more complex features, but may not be available on all platforms',
extraContexts: 'ExtraContexts Plugin',
extraContextsInfo: 'Add more contexts, including some for other plugins',
version: 'LuckPerms 5.0 and above, Bukkit only',
},
placeholderExpansions: {
title: 'Placeholder Expansions',
description: 'LuckPerms adds {placeholders} to PlaceholderAPI and MVdWPlaceholderAPI',
placeholderApi: 'PlaceholderAPI',
placeholders: 'Placeholders',
placeholderApiInfo: 'Install using either {command} or by {installingManually}.',
placeholderApiInstallingManually: 'installing manually',
mvdwPlaceholderApi: 'MVdWPlaceholderAPI',
mvdwPlaceholderApiInfo: 'Place the JAR file in your {plugins} folder.',
version: 'LuckPerms 5.0 and above, Bukkit only',
},
},
editor: {
description: 'Web Permissions Editor',
Expand Down
20 changes: 20 additions & 0 deletions src/messages/zh_CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,31 @@ export default {
legacyInfo: '允许那些所依赖LuckPerms没升级到 v5 的插件使用一些通用的API方法。',
more: '查看 {wiki} 获取更多信息!',
wiki: 'wiki 章节',
wikiThis: '本章节',
defaultAssignments: '默认分配拓展',
defaultAssignmentsInfo: '如果建议的方法不切实际,则提供另一种分配 {wiki} 的方法。',
defaultAssignmentsInfoMore: '查阅章节 {wikiSection} 以获取更多信息。同时也应查看 {thisSection} 了解如何配置默认分配。',
groups: '默认权限组',
version: 'LuckPerms 5.0 及以上',
},
additionalPlugins: {
title: '附加插件',
description: '通过安装附加插件可以拓展 LuckPerms 的功能,但可能并不支持所有服务器平台。',
extraContexts: '更多情境插件',
extraContextsInfo: '添加了更多的情境,包括但不限于别的插件的情境支持',
version: 'LuckPerms 5.0 及以上版本,仅支持 Bukkit',
},
placeholderExpansions: {
title: 'Placeholder 拓展',
description: 'LuckPerms 将添加 {placeholders} 至 PlaceholderAPI 和 MVdWPlaceholderAPI',
placeholderApi: 'PlaceholderAPI',
placeholders: 'Placeholders',
placeholderApiInfo: '命令 {command} 安装或手动 {installingManually}。',
placeholderApiInstallingManually: '手动安装',
mvdwPlaceholderApi: 'MVdWPlaceholderAPI',
mvdwPlaceholderApiInfo: '将 JAR 文件包放至 {plugins} 文件夹。',
version: 'LuckPerms 5.0 及以上,仅支持 Bukkit',
},
},
editor: {
description: '网页版权限编辑器',
Expand Down
66 changes: 48 additions & 18 deletions src/views/Download.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,20 +205,26 @@
</router-link>
</template>
</i18n>
<p>Check out the <router-link to="/wiki/Extensions#extension-default-assignments">wiki
section</router-link> for more information. See also
<a href="/wiki/Default-Groups#configure-default-assignments">this section</a> about
configuring default assignments.
</p>
<i18n
path="download.extensions.defaultAssignmentsInfoMore"
tag="p"
>
<template #wikiSection>
<router-link to="/wiki/Extensions#extension-default-assignments">{{ $t('download.extensions.wiki') }}</router-link>
</template>
<template #thisSection>
<router-link to="/wiki/Default-Groups#configure-default-assignments">{{ $t('download.extensions.wikiThis') }}</router-link>
</template>
</i18n>
</div>
</div>
</section>
</div>
<section class="hero additional-plugins">
<div class="container">
<div>
<h1>Additional Plugins</h1>
<p>Additional plugins can provide more complex features, but may not be available on all platforms</p>
<h1>{{ $t('download.additionalPlugins.title') }}</h1>
<p>{{ $t('download.additionalPlugins.description') }}</p>
</div>
</div>
</section>
Expand All @@ -228,21 +234,28 @@
<a :href="additionalPlugins['extracontexts']" class="resource">
<span>
<font-awesome icon="arrow-alt-circle-down" />
ExtraContexts Plugin
{{ $t('download.additionalPlugins.extraContexts') }}
</span>
<small>LuckPerms 5.0 and above, Bukkit only</small>
<small>{{ $t('download.additionalPlugins.version') }}</small>
</a>
<div>
<p>Add more contexts, including some for other plugins</p>
<p>{{ $t('download.additionalPlugins.extraContextsInfo') }}</p>
</div>
</div>
</section>
</div>
<section class="hero placeholder-expansions">
<div class="container">
<div>
<h1>Placeholder Expansions</h1>
<p>LuckPerms adds <router-link to="/wiki/Placeholders#placeholders">placeholders</router-link> to PlaceholderAPI and MVdWPlaceholderAPI</p>
<h1>{{ $t('download.placeholderExpansions.title') }}</h1>
<i18n
path="download.placeholderExpansions.description"
tag="p"
>
<template #placeholders>
<router-link to="/wiki/Placeholders#placeholders">{{ $t('download.placeholderExpansions.placeholders') }}</router-link>
</template>
</i18n>
</div>
</div>
</section>
Expand All @@ -252,24 +265,41 @@
<a :href="placeholderExpansions['luckperms-papi-expansion']" class="resource">
<span>
<font-awesome icon="arrow-alt-circle-down" />
PlaceholderAPI
{{ $t('download.placeholderExpansions.placeholderApi') }}
</span>
<small>LuckPerms 5.0 and above, Bukkit only</small>
<small>{{ $t('download.placeholderExpansions.version') }}</small>
</a>
<div>
<p>Install using either <code>/papi ecloud download LuckPerms</code> or by <router-link to="/wiki/Placeholders#manual-install">installing manually</router-link>.</p>
<i18n
path="download.placeholderExpansions.placeholderApiInfo"
tag="p"
>
<template #command>
<code>/papi ecloud download LuckPerms</code>
</template>
<template #installingManually>
<router-link to="/wiki/Placeholders#placeholderapi">{{ $t('download.placeholderExpansions.placeholderApiInstallingManually') }}</router-link>
</template>
</i18n>
</div>
</div>
<div>
<a :href="placeholderExpansions['luckperms-mvdw-hook']" class="resource">
<span>
<font-awesome icon="arrow-alt-circle-down" />
MVdWPlaceholderAPI
{{ $t('download.placeholderExpansions.mvdwPlaceholderApi') }}
</span>
<small>LuckPerms 5.0 and above, Bukkit only</small>
<small>{{ $t('download.placeholderExpansions.version') }}</small>
</a>
<div>
<p>Place the JAR file in your <code>/plugins/</code> folder.</p>
<i18n
path="download.placeholderExpansions.mvdwPlaceholderApiInfo"
tag="p"
>
<template #plugins>
<code>/plugins/</code>
</template>
</i18n>
</div>
</div>
</section>
Expand Down

0 comments on commit ccd5ac8

Please sign in to comment.