diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 6a0c23043335fa9f0339c4a94b5e147edd21ca11..933bb285cab7893018018a61121331834fad65c8 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -937,7 +937,7 @@ _role: edit: "ãƒãƒ¼ãƒ«ã®ç·¨é›†" name: "ãƒãƒ¼ãƒ«å" description: "ãƒãƒ¼ãƒ«ã®èª¬æ˜Ž" - type: "ãƒãƒ¼ãƒ«ã®ç¨®é¡ž" + permission: "ãƒãƒ¼ãƒ«ã®æ¨©é™" descriptionOfType: "モデレーターã¯åŸºæœ¬çš„ãªãƒ¢ãƒ‡ãƒ¬ãƒ¼ã‚·ãƒ§ãƒ³ã«é–¢ã™ã‚‹æ“作を行ãˆã¾ã™ã€‚\n管ç†è€…ã¯ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã®å…¨ã¦ã®è¨å®šã‚’変更ã§ãã¾ã™ã€‚" isPublic: "ãƒãƒ¼ãƒ«ã‚’公開" descriptionOfIsPublic: "ãƒãƒ¼ãƒ«ã«ã‚¢ã‚µã‚¤ãƒ³ã•ã‚ŒãŸãƒ¦ãƒ¼ã‚¶ãƒ¼ã‚’誰ã§ã‚‚見るã“ã¨ãŒã§ãã¾ã™ã€‚ã¾ãŸã€ãƒ¦ãƒ¼ã‚¶ãƒ¼ã®ãƒ—ãƒãƒ•ã‚£ãƒ¼ãƒ«ã§ã“ã®ãƒãƒ¼ãƒ«ãŒè¡¨ç¤ºã•ã‚Œã¾ã™ã€‚" diff --git a/packages/frontend/src/pages/admin/roles.editor.vue b/packages/frontend/src/pages/admin/roles.editor.vue index 621475d9d0ec64e7562f6691f43d1819227240e0..b8e45cda50aca64e11992b220c9c6599a984d80b 100644 --- a/packages/frontend/src/pages/admin/roles.editor.vue +++ b/packages/frontend/src/pages/admin/roles.editor.vue @@ -13,8 +13,8 @@ <template #caption>#RRGGBB</template> </MkInput> - <MkSelect v-model="roleType" :readonly="readonly"> - <template #label>{{ i18n.ts._role.type }}</template> + <MkSelect v-model="rolePermission" :readonly="readonly"> + <template #label>{{ i18n.ts._role.permission }}</template> <template #caption><div v-html="i18n.ts._role.descriptionOfType.replaceAll('\n', '<br>')"></div></template> <option value="normal">{{ i18n.ts.normalUser }}</option> <option value="moderator">{{ i18n.ts.moderator }}</option> @@ -132,7 +132,7 @@ const role = props.role; let name = $ref(role?.name ?? 'New Role'); let description = $ref(role?.description ?? ''); -let roleType = $ref(role?.isAdministrator ? 'administrator' : role?.isModerator ? 'moderator' : 'normal'); +let rolePermission = $ref(role?.isAdministrator ? 'administrator' : role?.isModerator ? 'moderator' : 'normal'); let color = $ref(role?.color ?? null); let isPublic = $ref(role?.isPublic ?? false); let canEditMembersByModerator = $ref(role?.canEditMembersByModerator ?? false); @@ -165,8 +165,8 @@ async function save() { name, description, color: color === '' ? null : color, - isAdministrator: roleType === 'administrator', - isModerator: roleType === 'moderator', + isAdministrator: rolePermission === 'administrator', + isModerator: rolePermission === 'moderator', isPublic, canEditMembersByModerator, options: getOptions(), @@ -177,8 +177,8 @@ async function save() { name, description, color: color === '' ? null : color, - isAdministrator: roleType === 'administrator', - isModerator: roleType === 'moderator', + isAdministrator: rolePermission === 'administrator', + isModerator: rolePermission === 'moderator', isPublic, canEditMembersByModerator, options: getOptions(),