mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +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:
parent
20f0b25ff5
commit
a110c70b6f
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-11-16 19:46-0500\n"
|
||||
"POT-Creation-Date: 2020-11-18 12:49+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -691,19 +691,36 @@ msgstr ""
|
||||
msgid "Password"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:42
|
||||
#: plinth/modules/bepasty/templates/bepasty.html:41
|
||||
#, python-format
|
||||
msgid "%(comment)s"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:22
|
||||
msgid "admin"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:23
|
||||
msgid "editor"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:24
|
||||
msgid "viewer"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:48
|
||||
msgid "Read"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:43
|
||||
#: plinth/modules/bepasty/views.py:49
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:44
|
||||
#: plinth/modules/bepasty/views.py:50
|
||||
msgid "List"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:45
|
||||
#: plinth/modules/bepasty/views.py:51
|
||||
#: plinth/modules/letsencrypt/templates/letsencrypt.html:91
|
||||
#: plinth/modules/networks/templates/connection_show.html:48
|
||||
#: plinth/modules/samba/templates/samba.html:127
|
||||
@ -714,31 +731,31 @@ msgstr ""
|
||||
msgid "Delete"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:46
|
||||
#: plinth/modules/bepasty/views.py:52
|
||||
msgid "Admin"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:83 plinth/modules/searx/views.py:38
|
||||
#: plinth/modules/bepasty/views.py:89 plinth/modules/searx/views.py:38
|
||||
#: plinth/modules/searx/views.py:49 plinth/modules/tor/views.py:130
|
||||
#: plinth/modules/tor/views.py:157
|
||||
msgid "Configuration updated."
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:86 plinth/modules/gitweb/views.py:117
|
||||
#: plinth/modules/bepasty/views.py:92 plinth/modules/gitweb/views.py:117
|
||||
#: plinth/modules/searx/views.py:41 plinth/modules/searx/views.py:52
|
||||
#: plinth/modules/tor/views.py:159
|
||||
msgid "An error occurred during configuration."
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:97
|
||||
#: plinth/modules/bepasty/views.py:103
|
||||
msgid "Password added."
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:102
|
||||
#: plinth/modules/bepasty/views.py:108
|
||||
msgid "Add Password"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/bepasty/views.py:119
|
||||
#: plinth/modules/bepasty/views.py:125
|
||||
msgid "Password deleted."
|
||||
msgstr ""
|
||||
|
||||
@ -3712,8 +3729,10 @@ msgid "Wi-Fi"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/networks/templates/connections_diagram.html:74
|
||||
#: plinth/modules/networks/templates/connections_diagram.html:104
|
||||
#: plinth/modules/networks/templates/connections_list.html:62
|
||||
#, python-format
|
||||
msgid "Show connection %(connection.name)s"
|
||||
msgid "Show connection %(name)s"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/networks/templates/connections_diagram.html:92
|
||||
@ -3721,11 +3740,6 @@ msgstr ""
|
||||
msgid "Internal"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/networks/templates/connections_diagram.html:104
|
||||
#, python-format
|
||||
msgid "Show connection %(name)s"
|
||||
msgstr ""
|
||||
|
||||
#: plinth/modules/networks/templates/connections_diagram.html:116
|
||||
msgid "Computer"
|
||||
msgstr ""
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user