mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
bepasty: Apply translation to autogenerated comments.
Helps: #1938 Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
20f0b25ff5
commit
a110c70b6f
3 files changed
+40
-18
No files matched your search
@@ -38,7 +38,7 @@
|
||||
<tr id="password-{{ password.password }}" class="password">
|
||||
<td class="password-password">{{ password.password }}</td>
|
||||
<td class="password-permissions">{{ password.permissions }}</td>
|
||||
<td class="password-comment">{{ password.comment }}</td>
|
||||
<td class="password-comment">{% trans password.comment %}</td>
|
||||
<td class="password-operations">
|
||||
<form class="form form-inline" method="post"
|
||||
action="{% url 'bepasty:remove' password.password %}">
|
||||
|
||||
@@ -18,6 +18,14 @@ from plinth.views import AppView
|
||||
from .forms import AddPasswordForm, SetDefaultPermissionsForm
|
||||
|
||||
|
||||
# i18n for permission comments
|
||||
PERMISSION_COMMENTS_STRINGS = {
|
||||
'admin': _('admin'),
|
||||
'editor': _('editor'),
|
||||
'viewer': _('viewer'),
|
||||
}
|
||||
|
||||
|
||||
class BepastyView(AppView):
|
||||
"""Serve configuration page."""
|
||||
app_id = 'bepasty'
|
||||
|
||||
Reference in new issue
Block a user