mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
upgrades: Internationalize string and apply minor formatting
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
5edc1edcfb
commit
7b1c6d4345
@ -35,7 +35,7 @@ managed_packages = ['unattended-upgrades']
|
|||||||
name = _('Update')
|
name = _('Update')
|
||||||
|
|
||||||
description = [
|
description = [
|
||||||
_('Check for and apply the latest software and security updates. ')
|
_('Check for and apply the latest software and security updates.')
|
||||||
]
|
]
|
||||||
|
|
||||||
service = None
|
service = None
|
||||||
|
|||||||
@ -14,7 +14,6 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Forms for configuring unattended-upgrades.
|
Forms for configuring unattended-upgrades.
|
||||||
"""
|
"""
|
||||||
@ -26,5 +25,5 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
class ConfigureForm(forms.Form):
|
class ConfigureForm(forms.Form):
|
||||||
"""Configuration form to enable/disable automatic upgrades."""
|
"""Configuration form to enable/disable automatic upgrades."""
|
||||||
auto_upgrades_enabled = forms.BooleanField(
|
auto_upgrades_enabled = forms.BooleanField(
|
||||||
label=_('Enable auto-update'), required=False,
|
label=_('Enable auto-update'), required=False, help_text=_(
|
||||||
help_text=_('When enabled, FreedomBox automatically updates once a day.'))
|
'When enabled, FreedomBox automatically updates once a day.'))
|
||||||
|
|||||||
@ -46,7 +46,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if is_busy %}
|
{% if is_busy %}
|
||||||
<button type="button" disabled="disabled" class="running-status-parent btn btn-default" >
|
<button type="button" disabled="disabled"
|
||||||
|
class="running-status-parent btn btn-default" >
|
||||||
<span class="running-status loading"></span>
|
<span class="running-status loading"></span>
|
||||||
{% trans "Updating..." %}
|
{% trans "Updating..." %}
|
||||||
</button>
|
</button>
|
||||||
@ -54,18 +55,18 @@
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
<strong>This may take a long time to complete</strong>. During an update, you
|
<strong>This may take a long time to complete</strong>. During an update,
|
||||||
can not install apps. Also, this web interface may be temporarily
|
you can not install apps. Also, this web interface may be temporarily
|
||||||
unavailable and show an error. In that case, refresh the page to continue.
|
unavailable and show an error. In that case, refresh the page to
|
||||||
|
continue.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% if log %}
|
{% if log %}
|
||||||
<p>
|
<p>
|
||||||
<a class="btn btn-default" role="button" data-toggle="collapse" href="#collapse-log" aria-expanded="false" aria-controls="collapse-log">
|
<a class="btn btn-default" role="button" data-toggle="collapse"
|
||||||
Toggle recent update logs
|
href="#collapse-log" aria-expanded="false" aria-controls="collapse-log">
|
||||||
|
{% trans "Toggle recent update logs" %}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="collapse" id="collapse-log">
|
<div class="collapse" id="collapse-log">
|
||||||
@ -74,7 +75,6 @@
|
|||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_js %}
|
{% block page_js %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user