mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
snapshots: Translate snapshot types (field description)
Helps: #1938 BTW, columns centered. Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
a110c70b6f
commit
5f6add64bd
@ -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-18 12:49+0100\n"
|
"POT-Creation-Date: 2020-11-18 14:32+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,36 +691,31 @@ msgstr ""
|
|||||||
msgid "Password"
|
msgid "Password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/templates/bepasty.html:41
|
#: plinth/modules/bepasty/views.py:23
|
||||||
#, python-format
|
|
||||||
msgid "%(comment)s"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:22
|
|
||||||
msgid "admin"
|
msgid "admin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:23
|
#: plinth/modules/bepasty/views.py:24
|
||||||
msgid "editor"
|
msgid "editor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:24
|
#: plinth/modules/bepasty/views.py:25
|
||||||
msgid "viewer"
|
msgid "viewer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:48
|
#: plinth/modules/bepasty/views.py:50
|
||||||
msgid "Read"
|
msgid "Read"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:49
|
#: plinth/modules/bepasty/views.py:51
|
||||||
msgid "Create"
|
msgid "Create"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:50
|
#: plinth/modules/bepasty/views.py:52
|
||||||
msgid "List"
|
msgid "List"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:51
|
#: plinth/modules/bepasty/views.py:53
|
||||||
#: 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
|
||||||
@ -731,31 +726,31 @@ msgstr ""
|
|||||||
msgid "Delete"
|
msgid "Delete"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:52
|
#: plinth/modules/bepasty/views.py:54
|
||||||
msgid "Admin"
|
msgid "Admin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:89 plinth/modules/searx/views.py:38
|
#: plinth/modules/bepasty/views.py:91 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:92 plinth/modules/gitweb/views.py:117
|
#: plinth/modules/bepasty/views.py:94 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:103
|
#: plinth/modules/bepasty/views.py:105
|
||||||
msgid "Password added."
|
msgid "Password added."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:108
|
#: plinth/modules/bepasty/views.py:110
|
||||||
msgid "Add Password"
|
msgid "Add Password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/bepasty/views.py:125
|
#: plinth/modules/bepasty/views.py:127
|
||||||
msgid "Password deleted."
|
msgid "Password deleted."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -998,7 +993,7 @@ msgstr ""
|
|||||||
#: plinth/modules/config/__init__.py:57 plinth/modules/dynamicdns/views.py:29
|
#: plinth/modules/config/__init__.py:57 plinth/modules/dynamicdns/views.py:29
|
||||||
#: plinth/modules/names/templates/names.html:29
|
#: plinth/modules/names/templates/names.html:29
|
||||||
#: plinth/modules/names/templates/names.html:43
|
#: plinth/modules/names/templates/names.html:43
|
||||||
#: plinth/modules/snapshot/views.py:28
|
#: plinth/modules/snapshot/views.py:37
|
||||||
#: plinth/modules/tahoe/templates/tahoe-pre-setup.html:24
|
#: plinth/modules/tahoe/templates/tahoe-pre-setup.html:24
|
||||||
msgid "Configure"
|
msgid "Configure"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -5333,7 +5328,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: plinth/modules/snapshot/templates/snapshot_delete_selected.html:40
|
#: plinth/modules/snapshot/templates/snapshot_delete_selected.html:40
|
||||||
#: plinth/modules/snapshot/templates/snapshot_manage.html:22
|
#: plinth/modules/snapshot/templates/snapshot_manage.html:22
|
||||||
#: plinth/modules/snapshot/views.py:189
|
#: plinth/modules/snapshot/views.py:198
|
||||||
msgid "Delete Snapshots"
|
msgid "Delete Snapshots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -5381,41 +5376,53 @@ msgstr ""
|
|||||||
msgid "Rollback to Snapshot #%(number)s"
|
msgid "Rollback to Snapshot #%(number)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/snapshot/views.py:32
|
#: plinth/modules/snapshot/views.py:28
|
||||||
|
msgid "manually created"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: plinth/modules/snapshot/views.py:29
|
||||||
|
msgid "timeline"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: plinth/modules/snapshot/views.py:30
|
||||||
|
msgid "apt"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: plinth/modules/snapshot/views.py:41
|
||||||
msgid "Manage Snapshots"
|
msgid "Manage Snapshots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/snapshot/views.py:81
|
#: plinth/modules/snapshot/views.py:90
|
||||||
msgid "Created snapshot."
|
msgid "Created snapshot."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/snapshot/views.py:144
|
#: plinth/modules/snapshot/views.py:153
|
||||||
msgid "Storage snapshots configuration updated"
|
msgid "Storage snapshots configuration updated"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/snapshot/views.py:148 plinth/modules/tor/views.py:60
|
#: plinth/modules/snapshot/views.py:157 plinth/modules/tor/views.py:60
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid "Action error: {0} [{1}] [{2}]"
|
msgid "Action error: {0} [{1}] [{2}]"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/snapshot/views.py:176
|
#: plinth/modules/snapshot/views.py:185
|
||||||
msgid "Deleted selected snapshots"
|
msgid "Deleted selected snapshots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/snapshot/views.py:181
|
#: plinth/modules/snapshot/views.py:190
|
||||||
msgid "Snapshot is currently in use. Please try again later."
|
msgid "Snapshot is currently in use. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/snapshot/views.py:200
|
#: plinth/modules/snapshot/views.py:209
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid "Rolled back to snapshot #{number}."
|
msgid "Rolled back to snapshot #{number}."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/snapshot/views.py:203
|
#: plinth/modules/snapshot/views.py:212
|
||||||
msgid "The system must be restarted to complete the rollback."
|
msgid "The system must be restarted to complete the rollback."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plinth/modules/snapshot/views.py:215
|
#: plinth/modules/snapshot/views.py:224
|
||||||
msgid "Rollback to Snapshot"
|
msgid "Rollback to Snapshot"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@ -29,8 +29,8 @@
|
|||||||
<th>{% trans "Number" %}</th>
|
<th>{% trans "Number" %}</th>
|
||||||
<th>{% trans "Date" %}</th>
|
<th>{% trans "Date" %}</th>
|
||||||
<th>{% trans "Description" %}</th>
|
<th>{% trans "Description" %}</th>
|
||||||
<th>{% trans "Rollback" %}</th>
|
<th class="centered-column">{% trans "Rollback" %}</th>
|
||||||
<th><input type="checkbox" id="select-all"></th>
|
<th class="centered-column"><input type="checkbox" id="select-all"></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for snapshot in snapshots %}
|
{% for snapshot in snapshots %}
|
||||||
@ -49,8 +49,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ snapshot.date }}</td>
|
<td>{{ snapshot.date }}</td>
|
||||||
<td>{{ snapshot.description }}</td>
|
<td>{% trans snapshot.description %}</td>
|
||||||
<td>
|
<td class="centered-column">
|
||||||
<a href="{% url 'snapshot:rollback' snapshot.number %}"
|
<a href="{% url 'snapshot:rollback' snapshot.number %}"
|
||||||
class="btn btn-default btn-sm" role="button"
|
class="btn btn-default btn-sm" role="button"
|
||||||
title="{% blocktrans trimmed with number=snapshot.number %}
|
title="{% blocktrans trimmed with number=snapshot.number %}
|
||||||
@ -60,7 +60,7 @@
|
|||||||
aria-hidden="true"></span>
|
aria-hidden="true"></span>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="centered-column">
|
||||||
{% if not snapshot.is_default and not snapshot.is_active %}
|
{% if not snapshot.is_default and not snapshot.is_active %}
|
||||||
<input type="checkbox" name="snapshot_list" value={{ snapshot.number }} />
|
<input type="checkbox" name="snapshot_list" value={{ snapshot.number }} />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -22,6 +22,15 @@ from plinth.modules import storage
|
|||||||
from . import get_configuration
|
from . import get_configuration
|
||||||
from .forms import SnapshotForm
|
from .forms import SnapshotForm
|
||||||
|
|
||||||
|
|
||||||
|
# i18n for snapshot descriptions
|
||||||
|
SNAPSHOT_DESCRIPTION_STRINGS = {
|
||||||
|
'manually created': ugettext_lazy('manually created'),
|
||||||
|
'timeline': ugettext_lazy('timeline'),
|
||||||
|
'apt': ugettext_lazy('apt'),
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
subsubmenu = [
|
subsubmenu = [
|
||||||
{
|
{
|
||||||
'url': reverse_lazy('snapshot:index'),
|
'url': reverse_lazy('snapshot:index'),
|
||||||
|
|||||||
@ -180,6 +180,10 @@ body {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.centered-column {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
/* Sticky footer styles
|
/* Sticky footer styles
|
||||||
-------------------------------------------------- */
|
-------------------------------------------------- */
|
||||||
.footer-logo {
|
.footer-logo {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user