### Roles, permission flags and Telegram titles (R11 I9 and I10; /roles and the role editor). ### Every key is named in src/permissions/messages.ts and the English text is the reference text ### of src/permissions/README.md section 10 (#28, card 0050). The flag names are the proposal of ### that README's section 3 (OQ-17 A), for Patrik's approval; the base role is shown as ### "Administrator" because every Telegram administrator holds it (OQ-2 B), an assumed wording. ### $actor and $target are mentions or display names made safe by the adapter; $group is the ### group's title. Conventions: locales/en/common.ftl. ## Permission flags (permissions README section 3) permissions-flag-ban = Ban permissions-flag-unban = Unban permissions-flag-mute = Mute permissions-flag-unmute = Unmute permissions-flag-restrict = Restrict permissions-flag-default-permissions = Group default permissions permissions-flag-define-roles = Define roles permissions-flag-assign-roles = Assign roles permissions-flag-settings = Settings # OQ-1: a Super User reads the customer's ban list across all its groups. permissions-flag-read-history = Read the history ## Built-in role names (permissions README section 6; a built-in role is named by the catalog) permissions-role-owner = Owner # The name decided with the test plan answers (research/BETA-DECISIONS.md). permissions-role-super-user = Super User permissions-role-moderator = Moderator # OQ-2 B: the base role every Telegram administrator holds. "Base" is the internal kind. permissions-role-base = Administrator ## Role names mirrored as Telegram titles (A5; permissions README section 8; test plan TG-10, RW-05) permissions-title-mirrored = The role name is shown as a Telegram title. permissions-title-off = The role name is not shown as a Telegram title. permissions-title-unavailable-no-name = Built-in roles have no custom name to show. # OQ-C: a holder who is not an administrator is reported unavailable, not promoted. permissions-title-unavailable-not-administrator = No title: this person is not an administrator of the group. # R11 F2 2.6: a title can be set only for an administrator the bot promoted. permissions-title-unavailable-not-promoted-by-bot = No title: this administrator was not promoted by { -product }. permissions-title-unavailable-no-promotion-right = No title: { -product } lacks the right to promote members in this group. ## The owner's private notices (B3; test plan AUTH-14) permissions-owner-notice-super-user-granted = { $actor } made { $target } a Super User in { $group }. permissions-owner-notice-super-user-revoked = { $actor } removed Super User from { $target } in { $group }. ## Role changes (permissions README sections 6 and 10) permissions-role-created = Role created. permissions-role-changed = Role updated. # OQ-2 B: holders of a retired role fall back to the base role. permissions-role-retired = Role removed. Its holders keep the base role. permissions-role-assigned = Role granted. permissions-role-revoked = Role taken away. ## /roles (R11 I9; src/bot/README.md sections 4 and 7) ## Named in src/bot/messages.ts with the reference text of src/bot/README.md section 7. The ## built-in roles only: custom roles wait for a sealing purpose (that README, OQ-B8). # $roles is the list the bot builds. No flow renders this yet (that README, section 7). roles-list = Roles in this group: { $roles } # The command's forms (RQ-024 A; B3): grant or revoke moderator, superuser, revoke superuser. roles-usage = /roles grant or revoke, a user and moderator; /roles superuser and a user; /roles revoke, a user and superuser. ## Private role notices (B19; command grants only, card 0113) # $permissions lists the role's current flags, including an edited moderator role. permissions-role-notice-moderator = You are now a moderator in { $group }. This role's permissions: { $permissions }. permissions-role-notice-super-user = You are now a Super User in { $group }. You can read the history across this customer's groups and take actions only in groups where you have been granted permission. permissions-role-notice-custom = You have been given a custom role in { $group }. This role's permissions: { $permissions }. permissions-role-notice-no-flags = None