Skip to content

Commit ccd5ac8

Browse files
ahdg6Tobi406
andcommitted
Add missing translation Close LuckPerms#382
Close LuckPerms#382 Co-Authored-By: Tobi <[email protected]>
1 parent c1ef25d commit ccd5ac8

File tree

3 files changed

+88
-18
lines changed

3 files changed

+88
-18
lines changed

src/messages/en.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,31 @@ export default {
8787
legacyInfo: 'Allows some common API methods to be used by plugins that haven\'t upgraded to v5 version of the API yet.',
8888
more: 'Check out the {wiki} for more information!',
8989
wiki: 'wiki section',
90+
wikiThis: 'this section',
9091
defaultAssignments: 'Default Assignments Extension',
9192
defaultAssignmentsInfo: 'Provides an alternate approach for assigning {wiki} if the recommended way is impractical.',
93+
defaultAssignmentsInfoMore: 'Check out the {wikiSection} for more information. See also {thisSection} about configuring default assignments.',
9294
groups: 'default groups',
9395
version: 'LuckPerms 5.0 and above',
9496
},
97+
additionalPlugins: {
98+
title: 'Additional Plugins',
99+
description: 'Additional plugins can provide more complex features, but may not be available on all platforms',
100+
extraContexts: 'ExtraContexts Plugin',
101+
extraContextsInfo: 'Add more contexts, including some for other plugins',
102+
version: 'LuckPerms 5.0 and above, Bukkit only',
103+
},
104+
placeholderExpansions: {
105+
title: 'Placeholder Expansions',
106+
description: 'LuckPerms adds {placeholders} to PlaceholderAPI and MVdWPlaceholderAPI',
107+
placeholderApi: 'PlaceholderAPI',
108+
placeholders: 'Placeholders',
109+
placeholderApiInfo: 'Install using either {command} or by {installingManually}.',
110+
placeholderApiInstallingManually: 'installing manually',
111+
mvdwPlaceholderApi: 'MVdWPlaceholderAPI',
112+
mvdwPlaceholderApiInfo: 'Place the JAR file in your {plugins} folder.',
113+
version: 'LuckPerms 5.0 and above, Bukkit only',
114+
},
95115
},
96116
editor: {
97117
description: 'Web Permissions Editor',

src/messages/zh_CN.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,31 @@ export default {
8787
legacyInfo: '允许那些所依赖LuckPerms没升级到 v5 的插件使用一些通用的API方法。',
8888
more: '查看 {wiki} 获取更多信息!',
8989
wiki: 'wiki 章节',
90+
wikiThis: '本章节',
9091
defaultAssignments: '默认分配拓展',
9192
defaultAssignmentsInfo: '如果建议的方法不切实际,则提供另一种分配 {wiki} 的方法。',
93+
defaultAssignmentsInfoMore: '查阅章节 {wikiSection} 以获取更多信息。同时也应查看 {thisSection} 了解如何配置默认分配。',
9294
groups: '默认权限组',
9395
version: 'LuckPerms 5.0 及以上',
9496
},
97+
additionalPlugins: {
98+
title: '附加插件',
99+
description: '通过安装附加插件可以拓展 LuckPerms 的功能,但可能并不支持所有服务器平台。',
100+
extraContexts: '更多情境插件',
101+
extraContextsInfo: '添加了更多的情境,包括但不限于别的插件的情境支持',
102+
version: 'LuckPerms 5.0 及以上版本,仅支持 Bukkit',
103+
},
104+
placeholderExpansions: {
105+
title: 'Placeholder 拓展',
106+
description: 'LuckPerms 将添加 {placeholders} 至 PlaceholderAPI 和 MVdWPlaceholderAPI',
107+
placeholderApi: 'PlaceholderAPI',
108+
placeholders: 'Placeholders',
109+
placeholderApiInfo: '命令 {command} 安装或手动 {installingManually}。',
110+
placeholderApiInstallingManually: '手动安装',
111+
mvdwPlaceholderApi: 'MVdWPlaceholderAPI',
112+
mvdwPlaceholderApiInfo: '将 JAR 文件包放至 {plugins} 文件夹。',
113+
version: 'LuckPerms 5.0 及以上,仅支持 Bukkit',
114+
},
95115
},
96116
editor: {
97117
description: '网页版权限编辑器',

src/views/Download.vue

Lines changed: 48 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -205,20 +205,26 @@
205205
</router-link>
206206
</template>
207207
</i18n>
208-
<p>Check out the <router-link to="/wiki/Extensions#extension-default-assignments">wiki
209-
section</router-link> for more information. See also
210-
<a href="/wiki/Default-Groups#configure-default-assignments">this section</a> about
211-
configuring default assignments.
212-
</p>
208+
<i18n
209+
path="download.extensions.defaultAssignmentsInfoMore"
210+
tag="p"
211+
>
212+
<template #wikiSection>
213+
<router-link to="/wiki/Extensions#extension-default-assignments">{{ $t('download.extensions.wiki') }}</router-link>
214+
</template>
215+
<template #thisSection>
216+
<router-link to="/wiki/Default-Groups#configure-default-assignments">{{ $t('download.extensions.wikiThis') }}</router-link>
217+
</template>
218+
</i18n>
213219
</div>
214220
</div>
215221
</section>
216222
</div>
217223
<section class="hero additional-plugins">
218224
<div class="container">
219225
<div>
220-
<h1>Additional Plugins</h1>
221-
<p>Additional plugins can provide more complex features, but may not be available on all platforms</p>
226+
<h1>{{ $t('download.additionalPlugins.title') }}</h1>
227+
<p>{{ $t('download.additionalPlugins.description') }}</p>
222228
</div>
223229
</div>
224230
</section>
@@ -228,21 +234,28 @@
228234
<a :href="additionalPlugins['extracontexts']" class="resource">
229235
<span>
230236
<font-awesome icon="arrow-alt-circle-down" />
231-
ExtraContexts Plugin
237+
{{ $t('download.additionalPlugins.extraContexts') }}
232238
</span>
233-
<small>LuckPerms 5.0 and above, Bukkit only</small>
239+
<small>{{ $t('download.additionalPlugins.version') }}</small>
234240
</a>
235241
<div>
236-
<p>Add more contexts, including some for other plugins</p>
242+
<p>{{ $t('download.additionalPlugins.extraContextsInfo') }}</p>
237243
</div>
238244
</div>
239245
</section>
240246
</div>
241247
<section class="hero placeholder-expansions">
242248
<div class="container">
243249
<div>
244-
<h1>Placeholder Expansions</h1>
245-
<p>LuckPerms adds <router-link to="/wiki/Placeholders#placeholders">placeholders</router-link> to PlaceholderAPI and MVdWPlaceholderAPI</p>
250+
<h1>{{ $t('download.placeholderExpansions.title') }}</h1>
251+
<i18n
252+
path="download.placeholderExpansions.description"
253+
tag="p"
254+
>
255+
<template #placeholders>
256+
<router-link to="/wiki/Placeholders#placeholders">{{ $t('download.placeholderExpansions.placeholders') }}</router-link>
257+
</template>
258+
</i18n>
246259
</div>
247260
</div>
248261
</section>
@@ -252,24 +265,41 @@
252265
<a :href="placeholderExpansions['luckperms-papi-expansion']" class="resource">
253266
<span>
254267
<font-awesome icon="arrow-alt-circle-down" />
255-
PlaceholderAPI
268+
{{ $t('download.placeholderExpansions.placeholderApi') }}
256269
</span>
257-
<small>LuckPerms 5.0 and above, Bukkit only</small>
270+
<small>{{ $t('download.placeholderExpansions.version') }}</small>
258271
</a>
259272
<div>
260-
<p>Install using either <code>/papi ecloud download LuckPerms</code> or by <router-link to="/wiki/Placeholders#manual-install">installing manually</router-link>.</p>
273+
<i18n
274+
path="download.placeholderExpansions.placeholderApiInfo"
275+
tag="p"
276+
>
277+
<template #command>
278+
<code>/papi ecloud download LuckPerms</code>
279+
</template>
280+
<template #installingManually>
281+
<router-link to="/wiki/Placeholders#placeholderapi">{{ $t('download.placeholderExpansions.placeholderApiInstallingManually') }}</router-link>
282+
</template>
283+
</i18n>
261284
</div>
262285
</div>
263286
<div>
264287
<a :href="placeholderExpansions['luckperms-mvdw-hook']" class="resource">
265288
<span>
266289
<font-awesome icon="arrow-alt-circle-down" />
267-
MVdWPlaceholderAPI
290+
{{ $t('download.placeholderExpansions.mvdwPlaceholderApi') }}
268291
</span>
269-
<small>LuckPerms 5.0 and above, Bukkit only</small>
292+
<small>{{ $t('download.placeholderExpansions.version') }}</small>
270293
</a>
271294
<div>
272-
<p>Place the JAR file in your <code>/plugins/</code> folder.</p>
295+
<i18n
296+
path="download.placeholderExpansions.mvdwPlaceholderApiInfo"
297+
tag="p"
298+
>
299+
<template #plugins>
300+
<code>/plugins/</code>
301+
</template>
302+
</i18n>
273303
</div>
274304
</div>
275305
</section>

0 commit comments

Comments
 (0)