From 077aa6ecffe13f4a49ae9642449eb97f4da3edba Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 25 Feb 2022 14:39:48 -0300 Subject: [PATCH] [snap] improvement: adding tips for all custom actions --- bauh/gems/snap/controller.py | 2 ++ bauh/gems/snap/resources/locale/ca | 2 ++ bauh/gems/snap/resources/locale/de | 2 ++ bauh/gems/snap/resources/locale/en | 2 ++ bauh/gems/snap/resources/locale/es | 2 ++ bauh/gems/snap/resources/locale/fr | 2 ++ bauh/gems/snap/resources/locale/it | 2 ++ bauh/gems/snap/resources/locale/pt | 2 ++ bauh/gems/snap/resources/locale/ru | 2 ++ bauh/gems/snap/resources/locale/tr | 2 ++ 10 files changed, 20 insertions(+) diff --git a/bauh/gems/snap/controller.py b/bauh/gems/snap/controller.py index e967586e..87a6a99c 100644 --- a/bauh/gems/snap/controller.py +++ b/bauh/gems/snap/controller.py @@ -46,6 +46,7 @@ class SnapManager(SoftwareManager): self.custom_actions = ( CustomSoftwareAction(i18n_status_key='snap.action.refresh.status', i18n_label_key='snap.action.refresh.label', + i18n_description_key='snap.action.refresh.desc', icon_path=resource.get_path('img/refresh.svg', ROOT_DIR), manager_method='refresh', requires_root=True, @@ -53,6 +54,7 @@ class SnapManager(SoftwareManager): CustomSoftwareAction(i18n_status_key='snap.action.channel.status', i18n_label_key='snap.action.channel.label', i18n_confirm_key='snap.action.channel.confirm', + i18n_description_key='snap.action.channel.desc', icon_path=resource.get_path('img/refresh.svg', ROOT_DIR), manager_method='change_channel', requires_root=True, diff --git a/bauh/gems/snap/resources/locale/ca b/bauh/gems/snap/resources/locale/ca index 2ed8a61b..8a5e7d38 100644 --- a/bauh/gems/snap/resources/locale/ca +++ b/bauh/gems/snap/resources/locale/ca @@ -2,8 +2,10 @@ gem.snap.info=Aplicacions publicades a https://snapcraft.io/store snap.action.channel.confirm=Change channel of {} ? snap.action.channel.error.no_channel=No available channel for {} snap.action.channel.label=Change channel +snap.action.channel.desc=Allows to change the application channel (if available) snap.action.channel.status=Changing channel of snap.action.refresh.confirm=Actualitza {} ? +snap.action.refresh.desc=Updates the application for the latest version snap.action.refresh.label=Actualitza snap.action.refresh.status=S’està actualitzant snap.config.categories_exp=Categories expiration diff --git a/bauh/gems/snap/resources/locale/de b/bauh/gems/snap/resources/locale/de index 9591684d..df386b19 100644 --- a/bauh/gems/snap/resources/locale/de +++ b/bauh/gems/snap/resources/locale/de @@ -1,9 +1,11 @@ gem.snap.info=Anwendungen von https://snapcraft.io/store snap.action.channel.error.no_channel=No available channel for {} snap.action.channel.confirm=Change channel of {} ? +snap.action.channel.desc=Allows to change the application channel (if available) snap.action.channel.label=Change channel snap.action.channel.status=Changing channel of snap.action.refresh.confirm=Erneuern {} ? +snap.action.refresh.desc=Updates the application for the latest version snap.action.refresh.label=Erneuern snap.action.refresh.status=Erneuern snap.config.categories_exp=Categories expiration diff --git a/bauh/gems/snap/resources/locale/en b/bauh/gems/snap/resources/locale/en index f2208605..4fe3f96e 100644 --- a/bauh/gems/snap/resources/locale/en +++ b/bauh/gems/snap/resources/locale/en @@ -2,8 +2,10 @@ gem.snap.info=Applications published at https://snapcraft.io/store snap.action.channel.confirm=Change channel of {} ? snap.action.channel.error.no_channel=No available channel for {} snap.action.channel.label=Change channel +snap.action.channel.desc=Allows to change the application channel (if available) snap.action.channel.status=Changing channel of snap.action.refresh.confirm=Refresh {} ? +snap.action.refresh.desc=Updates the application for the latest version snap.action.refresh.label=Refresh snap.action.refresh.status=Refreshing snap.config.categories_exp=Categories expiration diff --git a/bauh/gems/snap/resources/locale/es b/bauh/gems/snap/resources/locale/es index 33dfe8eb..78d8158f 100644 --- a/bauh/gems/snap/resources/locale/es +++ b/bauh/gems/snap/resources/locale/es @@ -1,9 +1,11 @@ gem.snap.info=Aplicativos publicados en https://snapcraft.io/store snap.action.channel.confirm=Cambiar canal de {}? +snap.action.channel.desc=Permite cambiar el canal de la aplicación (si disponible) snap.action.channel.error.no_channel=No hay canal disponible para {} snap.action.channel.status=Cambiando canal de snap.action.channel.label=Cambiar canal snap.action.refresh.confirm=Actualizar {} ? +snap.action.refresh.desc=Actualiza la aplicación para la versión más reciente snap.action.refresh.label=Actualizar snap.action.refresh.status=Actualizando snap.config.categories_exp=Expiración de categorías diff --git a/bauh/gems/snap/resources/locale/fr b/bauh/gems/snap/resources/locale/fr index c0c35595..f1eeaccd 100644 --- a/bauh/gems/snap/resources/locale/fr +++ b/bauh/gems/snap/resources/locale/fr @@ -1,9 +1,11 @@ gem.snap.info=Applications publiées à https://snapcraft.io/store snap.action.channel.confirm=Changer le canal de {} ? +snap.action.channel.desc=Allows to change the application channel (if available) snap.action.channel.error.no_channel=Aucun canal disponible pour {} snap.action.channel.label=Changer de canal snap.action.channel.status=Changement de canal de snap.action.refresh.confirm=Actualiser {} ? +snap.action.refresh.desc=Updates the application for the latest version snap.action.refresh.label=Actualiser snap.action.refresh.status=Actualisation snap.config.categories_exp=Categories expiration diff --git a/bauh/gems/snap/resources/locale/it b/bauh/gems/snap/resources/locale/it index ca19d075..6bbcea0c 100644 --- a/bauh/gems/snap/resources/locale/it +++ b/bauh/gems/snap/resources/locale/it @@ -1,9 +1,11 @@ gem.snap.info=Applicazioni pubblicate su https://snapcraft.io/store snap.action.channel.confirm=Cambia canale di {} ? +snap.action.channel.desc=Allows to change the application channel (if available) snap.action.channel.error.no_channel=Nessun canale disponibile per {} snap.action.channel.label=Cambia canale snap.action.channel.status=Cambiare canale di snap.action.refresh.confirm=Ripristina {} ? +snap.action.refresh.desc=Updates the application for the latest version snap.action.refresh.label=Ripristina snap.action.refresh.status=Ripristinare snap.config.categories_exp=Scadenza delle categorie diff --git a/bauh/gems/snap/resources/locale/pt b/bauh/gems/snap/resources/locale/pt index cab522be..8a261506 100644 --- a/bauh/gems/snap/resources/locale/pt +++ b/bauh/gems/snap/resources/locale/pt @@ -1,9 +1,11 @@ gem.snap.info=Aplicativos publicados em https://snapcraft.io/store snap.action.channel.confirm=Alterar canal de {} ? +snap.action.channel.desc=Permite trocar o canal do aplicativo (se disponível) snap.action.channel.error.no_channel=Nenhum canal disponível para {} snap.action.channel.label=Alterar canal snap.action.channel.status=Alterando canal de snap.action.refresh.confirm=Atualizar {} ? +snap.action.refresh.desc=Atualiza o aplicativo para a versão mais recente snap.action.refresh.label=Atualizar snap.action.refresh.status=Atualizando snap.config.categories_exp=Expiração de categorias diff --git a/bauh/gems/snap/resources/locale/ru b/bauh/gems/snap/resources/locale/ru index 40875f4f..db1a62ef 100644 --- a/bauh/gems/snap/resources/locale/ru +++ b/bauh/gems/snap/resources/locale/ru @@ -1,9 +1,11 @@ gem.snap.info=Приложения, опубликованные на https://snapcraft.io/store snap.action.channel.confirm=Change channel of {} ? +snap.action.channel.desc=Allows to change the application channel (if available) snap.action.channel.error.no_channel=No available channel for {} snap.action.channel.label=Change channel snap.action.channel.status=Changing channel of snap.action.refresh.confirm=Обновить {} ? +snap.action.refresh.desc=Updates the application for the latest version snap.action.refresh.label=Обновить snap.action.refresh.status=Обновляется snap.config.categories_exp=Categories expiration diff --git a/bauh/gems/snap/resources/locale/tr b/bauh/gems/snap/resources/locale/tr index c811a370..d1fc27bc 100644 --- a/bauh/gems/snap/resources/locale/tr +++ b/bauh/gems/snap/resources/locale/tr @@ -1,9 +1,11 @@ gem.snap.info=https://snapcraft.io/store adresinde yayınlanan uygulamalar snap.action.channel.confirm=Change channel of {} ? +snap.action.channel.desc=Allows to change the application channel (if available) snap.action.channel.error.no_channel=No available channel for {} snap.action.channel.label=Change channel snap.action.channel.status=Changing channel of snap.action.refresh.confirm=Yenile {} ? +snap.action.refresh.desc=Updates the application for the latest version snap.action.refresh.label=Yenile snap.action.refresh.status=Yenileniyor snap.config.categories_exp=Categories expiration