mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-10 11:00:22 +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')
|
||||
|
||||
description = [
|
||||
_('Check for and apply the latest software and security updates. ')
|
||||
_('Check for and apply the latest software and security updates.')
|
||||
]
|
||||
|
||||
service = None
|
||||
|
||||
@ -14,7 +14,6 @@
|
||||
# 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/>.
|
||||
#
|
||||
|
||||
"""
|
||||
Forms for configuring unattended-upgrades.
|
||||
"""
|
||||
@ -26,5 +25,5 @@ from django.utils.translation import ugettext_lazy as _
|
||||
class ConfigureForm(forms.Form):
|
||||
"""Configuration form to enable/disable automatic upgrades."""
|
||||
auto_upgrades_enabled = forms.BooleanField(
|
||||
label=_('Enable auto-update'), required=False,
|
||||
help_text=_('When enabled, FreedomBox automatically updates once a day.'))
|
||||
label=_('Enable auto-update'), required=False, help_text=_(
|
||||
'When enabled, FreedomBox automatically updates once a day.'))
|
||||
|
||||
@ -46,7 +46,8 @@
|
||||
{% endif %}
|
||||
|
||||
{% 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>
|
||||
{% trans "Updating..." %}
|
||||
</button>
|
||||
@ -54,18 +55,18 @@
|
||||
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
<strong>This may take a long time to complete</strong>. During an update, 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.
|
||||
<strong>This may take a long time to complete</strong>. During an update,
|
||||
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.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
{% if log %}
|
||||
<p>
|
||||
<a class="btn btn-default" role="button" data-toggle="collapse" href="#collapse-log" aria-expanded="false" aria-controls="collapse-log">
|
||||
Toggle recent update logs
|
||||
<a class="btn btn-default" role="button" data-toggle="collapse"
|
||||
href="#collapse-log" aria-expanded="false" aria-controls="collapse-log">
|
||||
{% trans "Toggle recent update logs" %}
|
||||
</a>
|
||||
|
||||
<div class="collapse" id="collapse-log">
|
||||
@ -74,7 +75,6 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block page_js %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user