summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheogorath2020-05-26 16:22:17 +0200
committerSheogorath2020-05-26 16:22:41 +0200
commit54bde6b11fa57e2a613cf9b039d5fef65b217e4d (patch)
tree6d2962bc18cd6b2fb8c4a1084ded680b05561e13
parenta9fea54db08f7b95012c35eb9f78de8e775d06d3 (diff)
Add translations for permissions
Adding translations for permissions for a possible 1.6.1 release doesn't hurt but might helps some usecases of running CodiMD and we'll need the translations in the new frontend anyway. This patch adds the translations as well as the english local file. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
-rw-r--r--locales/en.json8
-rw-r--r--public/views/codimd/body.ejs12
2 files changed, 13 insertions, 7 deletions
diff --git a/locales/en.json b/locales/en.json
index 66f0bced..d4fc24d1 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -118,5 +118,11 @@
"Powered by %s": "Powered by %s",
"Help us translating": "Help us translating",
"Join the community": "Join the community",
- "Imprint": "Imprint"
+ "Imprint": "Imprint",
+ "Freely - Anyone can edit": "Freely - Anyone can edit",
+ "Editable - Signed-in people can edit": "Editable - Signed-in people can edit",
+ "Limited - Signed-in people can edit (forbid guests)": "Limited - Signed-in people can edit (forbid guests)",
+ "Locked - Only owner can edit": "Locked - Only owner can edit",
+ "Protected - Only owner can edit (forbid guests)": "Protected - Only owner can edit (forbid guests)",
+ "Private - Only owner can view & edit": "Private - Only owner can view & edit"
} \ No newline at end of file
diff --git a/public/views/codimd/body.ejs b/public/views/codimd/body.ejs
index dc111909..5fe3d6bb 100644
--- a/public/views/codimd/body.ejs
+++ b/public/views/codimd/body.ejs
@@ -15,12 +15,12 @@
<a id="permissionLabel" class="ui-permission-label text-uppercase" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
</a>
<ul class="dropdown-menu" aria-labelledby="permissionLabel">
- <li class="ui-permission-freely"<% if(!allowAnonymous && !allowAnonymousEdits) { %> style="display: none;"<% } %>><a><i class="fa fa-leaf fa-fw"></i> Freely - Anyone can edit</a></li>
- <li class="ui-permission-editable"><a><i class="fa fa-shield fa-fw"></i> Editable - Signed-in people can edit</a></li>
- <li class="ui-permission-limited"><a><i class="fa fa-id-card fa-fw"></i> Limited - Signed-in people can edit (forbid guests)</a></li>
- <li class="ui-permission-locked"><a><i class="fa fa-lock fa-fw"></i> Locked - Only owner can edit</a></li>
- <li class="ui-permission-protected"><a><i class="fa fa-umbrella fa-fw"></i> Protected - Only owner can edit (forbid guests)</a></li>
- <li class="ui-permission-private"><a><i class="fa fa-hand-stop-o fa-fw"></i> Private - Only owner can view &amp; edit</a></li>
+ <li class="ui-permission-freely"<% if(!allowAnonymous && !allowAnonymousEdits) { %> style="display: none;"<% } %>><a><i class="fa fa-leaf fa-fw"></i> <%= __('Freely - Anyone can edit') %></a></li>
+ <li class="ui-permission-editable"><a><i class="fa fa-shield fa-fw"></i> <%= __('Editable - Signed-in people can edit') %></a></li>
+ <li class="ui-permission-limited"><a><i class="fa fa-id-card fa-fw"></i> <%= __('Limited - Signed-in people can edit (forbid guests)') %></a></li>
+ <li class="ui-permission-locked"><a><i class="fa fa-lock fa-fw"></i> <%= __('Locked - Only owner can edit') %></a></li>
+ <li class="ui-permission-protected"><a><i class="fa fa-umbrella fa-fw"></i> <%= __('Protected - Only owner can edit (forbid guests)') %></a></li>
+ <li class="ui-permission-private"><a><i class="fa fa-hand-stop-o fa-fw"></i> <%= __('Private - Only owner can view & edit') %></a></li>
<li class="divider"></li>
<li class="ui-delete-note"><a><i class="fa fa-trash-o fa-fw"></i> Delete this note</a></li>
</ul>