Skip to content

Commit

Permalink
add english translations
Browse files Browse the repository at this point in the history
  • Loading branch information
cblgh committed Apr 8, 2021
1 parent 2191f69 commit 9d03c8c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
14 changes: 13 additions & 1 deletion web/i18n/defaults/active.en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,18 @@ NoticeNews = "News"
NoticeDescription = "Description"
NoticePrivacyPolicy = "Privacy Policy"

ModeOpen = "Open"
ModeCommunity = "Community"
ModeRestricted = "Restricted"

PrivacyModesTitle = "Privacy Modes"
RoomsSpecification = "rooms 2 specification"
ExplanationPrivacyModes = "The privacy mode of this room determines who can create invites and who can connect to the room. For more information, see the"
ExplanationOpen = "Open invite codes, anyone may connect"
ExplanationCommunity = "Members can create invites, anyone may connect"
ExplanationRestricted = "Only admins/Mods can create invites, only members may connect"


[MemberCount]
description = "Number of members"
one = "1 member"
Expand All @@ -127,4 +139,4 @@ other = "There are {{.Count}} people in the Room"
[AdminInvitesCount]
description = "the number of invites that are not yet claimed"
one = "1 invite still unclaimed"
other = "{{.Count}} invites still unclaimed"
other = "{{.Count}} invites still unclaimed"
14 changes: 8 additions & 6 deletions web/templates/admin/dashboard.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,21 @@
{{end}}
</div>
<div class="max-w-lg">
<h2 class="text-xl tracking-tight font-bold text-black mt-2 mb-2">Privacy Modes</h3>
<p class="mb-4">The privacy mode of this room determines who can create invites and who can connect to the
room. For more information, see the <a class="text-purple-600" href="https://ssb-ngi-pointer.github.io/rooms2/#privacy-modes">rooms 2 specification</a>.</p>
<h2 class="text-xl tracking-tight font-bold text-black mt-2 mb-2">{{i18n "PrivacyModesTitle"}}</h2>
<p class="mb-4">
{{i18n "ExplanationPrivacyModes"}}
<a class="text-purple-600 font-bold" href="https://ssb-ngi-pointer.github.io/rooms2/#privacy-modes">{{ i18n "RoomsSpecification" }}</a>.
</p>
<select class="mb-2">
<option selected="">Community</option>
</select>
<div class="grid grid-cols-3 gap-y-2 mb-2">
<div class="text-xl text-gray-500 font-bold">Open</div>
<div class="text-md col-span-2 italic">Open invite codes, anyone may connect</div>
<div class="text-md col-span-2 italic">{{ i18n "ExplanationOpen" }}</div>
<div class="text-xl text-gray-500 font-bold">Community</div>
<div class="text-md col-span-2 italic">Members can create invites, anyone may connect</div>
<div class="text-md col-span-2 italic">{{ i18n "ExplanationCommunity" }}</div>
<div class="text-xl text-gray-500 font-bold">Restricted</div>
<div class="text-md col-span-2 italic">Only admins/Mods can create invites, only members may connect</div>
<div class="text-md col-span-2 italic">{{ i18n "ExplanationRestricted" }}</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 9d03c8c

Please sign in to comment.