From 62e7f9dc625483da6dd6c89e44a06990f4fc38ed Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 20 Dec 2021 17:59:52 -0800 Subject: [PATCH] upgrades: Relabel from 'Update' to 'Software Update' - The term 'Update' without a context is not easy to understand. This is especially true during first setup wizard. - This makes our UI similar to Android and lot of other OSes. Tests: - Trigger a update notification by incrementing FreedomBox version. In there, the name of the app in the first line shows 'Software Update'. - During first setup wizard, the title of the wizard step is 'Software Update' initially and also when upgrades are running. - In the System page, the title on the card is 'Software Update'. So is the title on the app page. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/upgrades/__init__.py | 4 ++-- .../modules/upgrades/templates/update-firstboot-progress.html | 2 +- plinth/modules/upgrades/templates/update-firstboot.html | 2 +- plinth/modules/upgrades/templates/upgrades-new-release.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plinth/modules/upgrades/__init__.py b/plinth/modules/upgrades/__init__.py index c0879d532..33d0e7b4d 100644 --- a/plinth/modules/upgrades/__init__.py +++ b/plinth/modules/upgrades/__init__.py @@ -71,7 +71,7 @@ class UpgradesApp(app_module.App): super().__init__() info = app_module.Info(app_id=self.app_id, version=self._version, - is_essential=True, name=_('Update'), + is_essential=True, name=_('Software Update'), icon='fa-refresh', description=_description, manual_page='Upgrades') self.add(info) @@ -126,7 +126,7 @@ class UpgradesApp(app_module.App): data = { 'version': plinth.__version__, - 'app_name': 'translate:' + gettext_noop('Updates'), + 'app_name': 'translate:' + gettext_noop('Software Update'), 'app_icon': 'fa-refresh' } title = gettext_noop('FreedomBox Updated') diff --git a/plinth/modules/upgrades/templates/update-firstboot-progress.html b/plinth/modules/upgrades/templates/update-firstboot-progress.html index 0f3c16155..1082ebc46 100644 --- a/plinth/modules/upgrades/templates/update-firstboot-progress.html +++ b/plinth/modules/upgrades/templates/update-firstboot-progress.html @@ -8,7 +8,7 @@ {% load static %} {% block content %} -

{% trans "Update" %}

+

{% trans "Software Update" %}

{% if is_busy %}
diff --git a/plinth/modules/upgrades/templates/update-firstboot.html b/plinth/modules/upgrades/templates/update-firstboot.html index f46291da1..374c6bf95 100644 --- a/plinth/modules/upgrades/templates/update-firstboot.html +++ b/plinth/modules/upgrades/templates/update-firstboot.html @@ -8,7 +8,7 @@ {% load static %} {% block content %} -

{% trans "Update" %}

+

{% trans "Software Update" %}

{% blocktrans trimmed %} diff --git a/plinth/modules/upgrades/templates/upgrades-new-release.html b/plinth/modules/upgrades/templates/upgrades-new-release.html index d717b53cf..66832ad0a 100644 --- a/plinth/modules/upgrades/templates/upgrades-new-release.html +++ b/plinth/modules/upgrades/templates/upgrades-new-release.html @@ -6,7 +6,7 @@ {% load static %}

- {% blocktrans %}{{box_name}} Updated{% endblocktrans %} + {% blocktrans %}{{box_name}} updated{% endblocktrans %}