upgrades: Internationalize string and apply minor formatting

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2018-11-18 17:19:49 -05:00
parent 5edc1edcfb
commit 7b1c6d4345
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 12 additions and 13 deletions

View File

@ -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

View File

@ -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.'))

View File

@ -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 %}