localize invite-list page

This commit is contained in:
Andre Staltz 2021-03-12 16:57:03 +02:00
parent 25663d4d8f
commit 6dc7fb1788
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
2 changed files with 10 additions and 5 deletions

View File

@ -29,6 +29,11 @@ AdminInvitesTitle = "Invites"
AdminInvitesWelcome = "Create invite tokens for people who are not yet members of this room. At the same time as you create an invite, you can also (optionally) attach an alias to it so that the person who receives the invite can automatically use that claim that alias for themselves."
AdminInvitesAliasSuggestion = "(Optional) Alias suggestion"
AdminInvitesCount = "{{.Count}} invites still unclaimed"
AdminInvitesIDColumn = "ID"
AdminInvitesCreatorColumn = "Created by"
AdminInvitesAliasColumn = "Alias suggestion"
AdminInvitesSummaryFrom = "From"
AdminInvitesSummaryTo = "to"
AdminInviteRevoke = "Revoke"
AdminInviteRevokeConfirmTitle = "Confirm invite revocation"
AdminInviteRevokeConfirmWelcome = "Are you sure you want to remove this invite? If you already sent it out, they will not be able to use it."

View File

@ -36,10 +36,10 @@
</td>
</tr>
<tr class="hidden sm:table-row h-8 uppercase text-sm text-gray-400">
<th class="w-3 text-center pl-3 pr-6">ID</th>
<th class="w-1/2 text-left px-6">Created by</th>
<th class="w-1/2 text-left px-6">Alias suggestion</th>
<th></th>
<th class="w-3 text-center pl-3 pr-6">{{i18n "AdminInvitesIDColumn"}}</th>
<th class="w-1/2 text-left px-6">{{i18n "AdminInvitesCreatorColumn"}}</th>
<th class="w-1/2 text-left px-6">{{i18n "AdminInvitesAliasColumn"}}</th>
<th class="w-0"></th>
</tr>
</thead>
<tbody class="divide-y">
@ -57,7 +57,7 @@
</tr>
<tr class="h-12 table-row sm:hidden">
<td class="flex flex-row items-center" colspan="4">
<span class="flex-1">From <b>{{.CreatedBy.Name}}</b> to <b>{{if ne .AliasSuggestion ""}}{{.AliasSuggestion}}{{else}}?{{end}}</b></span>
<span class="flex-1">{{i18n "AdminInvitesSummaryFrom"}} <b>{{.CreatedBy.Name}}</b> {{i18n "AdminInvitesSummaryTo"}} <b>{{if ne .AliasSuggestion ""}}{{.AliasSuggestion}}{{else}}?{{end}}</b></span>
<a
href="{{urlTo "admin:invites:revoke:confirm" "id" .ID}}"
class="pl-4 w-20 py-2 text-center text-gray-400 hover:text-red-600 font-bold cursor-pointer"