mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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 ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \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"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -691,19 +691,36 @@ msgstr ""
|
|||||||
msgid "Password"
|
msgid "Password"
|
||||||
msgstr ""
|
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"
|
msgid "Read"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:43
|
#: plinth/modules/bepasty/views.py:49
|
||||||
msgid "Create"
|
msgid "Create"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:44
|
#: plinth/modules/bepasty/views.py:50
|
||||||
msgid "List"
|
msgid "List"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:45
|
#: plinth/modules/bepasty/views.py:51
|
||||||
#: plinth/modules/letsencrypt/templates/letsencrypt.html:91
|
#: plinth/modules/letsencrypt/templates/letsencrypt.html:91
|
||||||
#: plinth/modules/networks/templates/connection_show.html:48
|
#: plinth/modules/networks/templates/connection_show.html:48
|
||||||
#: plinth/modules/samba/templates/samba.html:127
|
#: plinth/modules/samba/templates/samba.html:127
|
||||||
@ -714,31 +731,31 @@ msgstr ""
|
|||||||
msgid "Delete"
|
msgid "Delete"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:46
|
#: plinth/modules/bepasty/views.py:52
|
||||||
msgid "Admin"
|
msgid "Admin"
|
||||||
msgstr ""
|
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/searx/views.py:49 plinth/modules/tor/views.py:130
|
||||||
#: plinth/modules/tor/views.py:157
|
#: plinth/modules/tor/views.py:157
|
||||||
msgid "Configuration updated."
|
msgid "Configuration updated."
|
||||||
msgstr ""
|
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/searx/views.py:41 plinth/modules/searx/views.py:52
|
||||||
#: plinth/modules/tor/views.py:159
|
#: plinth/modules/tor/views.py:159
|
||||||
msgid "An error occurred during configuration."
|
msgid "An error occurred during configuration."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:97
|
#: plinth/modules/bepasty/views.py:103
|
||||||
msgid "Password added."
|
msgid "Password added."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:102
|
#: plinth/modules/bepasty/views.py:108
|
||||||
msgid "Add Password"
|
msgid "Add Password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:119
|
#: plinth/modules/bepasty/views.py:125
|
||||||
msgid "Password deleted."
|
msgid "Password deleted."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -3712,8 +3729,10 @@ msgid "Wi-Fi"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/networks/templates/connections_diagram.html:74
|
#: 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
|
#, python-format
|
||||||
msgid "Show connection %(connection.name)s"
|
msgid "Show connection %(name)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/networks/templates/connections_diagram.html:92
|
#: plinth/modules/networks/templates/connections_diagram.html:92
|
||||||
@ -3721,11 +3740,6 @@ msgstr ""
|
|||||||
msgid "Internal"
|
msgid "Internal"
|
||||||
msgstr ""
|
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
|
#: plinth/modules/networks/templates/connections_diagram.html:116
|
||||||
msgid "Computer"
|
msgid "Computer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
<tr id="password-{{ password.password }}" class="password">
|
<tr id="password-{{ password.password }}" class="password">
|
||||||
<td class="password-password">{{ password.password }}</td>
|
<td class="password-password">{{ password.password }}</td>
|
||||||
<td class="password-permissions">{{ password.permissions }}</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">
|
<td class="password-operations">
|
||||||
<form class="form form-inline" method="post"
|
<form class="form form-inline" method="post"
|
||||||
action="{% url 'bepasty:remove' password.password %}">
|
action="{% url 'bepasty:remove' password.password %}">
|
||||||
|
|||||||
@ -18,6 +18,14 @@ from plinth.views import AppView
|
|||||||
from .forms import AddPasswordForm, SetDefaultPermissionsForm
|
from .forms import AddPasswordForm, SetDefaultPermissionsForm
|
||||||
|
|
||||||
|
|
||||||
|
# i18n for permission comments
|
||||||
|
PERMISSION_COMMENTS_STRINGS = {
|
||||||
|
'admin': _('admin'),
|
||||||
|
'editor': _('editor'),
|
||||||
|
'viewer': _('viewer'),
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class BepastyView(AppView):
|
class BepastyView(AppView):
|
||||||
"""Serve configuration page."""
|
"""Serve configuration page."""
|
||||||
app_id = 'bepasty'
|
app_id = 'bepasty'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user