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

View File

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

View File

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