mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 21:44:16 +02:00
[arch] improvement: text length of the 'dependencies installation' popup reduced
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Set, List, Tuple, Dict, Optional
|
||||
from typing import Set, Tuple, Dict, Collection
|
||||
|
||||
from bauh.api.abstract.handler import ProcessWatcher
|
||||
from bauh.api.abstract.view import MultipleSelectComponent, InputOption, FormComponent, SingleSelectComponent, \
|
||||
@@ -44,8 +44,8 @@ def request_optional_deps(pkgname: str, pkg_repos: dict, watcher: ProcessWatcher
|
||||
return {o.value for o in view_opts.values}
|
||||
|
||||
|
||||
def request_install_missing_deps(pkgname: Optional[str], deps: List[Tuple[str, str]], watcher: ProcessWatcher, i18n: I18n) -> bool:
|
||||
msg = '<p>{}</p>'.format(i18n['arch.missing_deps.body'].format(name=bold(pkgname) if pkgname else '', deps=bold(str(len(deps)))))
|
||||
def request_install_missing_deps(deps: Collection[Tuple[str, str]], watcher: ProcessWatcher, i18n: I18n) -> bool:
|
||||
msg = f"<p>{i18n['arch.missing_deps.body'].format(deps=bold(str(len(deps))))}:</p>"
|
||||
|
||||
opts = []
|
||||
|
||||
@@ -65,7 +65,7 @@ def request_install_missing_deps(pkgname: Optional[str], deps: List[Tuple[str, s
|
||||
|
||||
comp = MultipleSelectComponent(label='', options=opts, default_options=set(opts))
|
||||
return watcher.request_confirmation(i18n['arch.missing_deps.title'], msg, [comp], confirmation_label=i18n['continue'].capitalize(), deny_label=i18n['cancel'].capitalize(),
|
||||
min_width=672)
|
||||
min_width=600)
|
||||
|
||||
|
||||
def request_providers(providers_map: Dict[str, Set[str]], repo_map: Dict[str, str], watcher: ProcessWatcher, i18n: I18n) -> Set[str]:
|
||||
|
||||
@@ -2075,7 +2075,7 @@ class ArchManager(SoftwareManager):
|
||||
def _ask_and_install_missing_deps(self, context: TransactionContext, missing_deps: List[Tuple[str, str]]) -> bool:
|
||||
context.watcher.change_substatus(self.i18n['arch.missing_deps_found'].format(bold(context.name)))
|
||||
|
||||
if not confirmation.request_install_missing_deps(context.name, missing_deps, context.watcher, self.i18n):
|
||||
if not confirmation.request_install_missing_deps(missing_deps, context.watcher, self.i18n):
|
||||
context.watcher.print(self.i18n['action.cancelled'])
|
||||
return False
|
||||
|
||||
@@ -2265,7 +2265,8 @@ class ArchManager(SoftwareManager):
|
||||
|
||||
sorted_deps = sorting.sort(to_sort, {**deps_data, **subdeps_data}, provided_map)
|
||||
|
||||
if display_deps_dialog and not confirmation.request_install_missing_deps(None, sorted_deps, context.watcher, self.i18n):
|
||||
if display_deps_dialog and not confirmation.request_install_missing_deps(sorted_deps, context.watcher,
|
||||
self.i18n):
|
||||
context.watcher.print(self.i18n['action.cancelled'])
|
||||
return True # because the main package installation was successful
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ arch.install.optdeps.request.title=Dependències opcionals
|
||||
arch.installing.package=S’està instal·lant el paquet {}
|
||||
arch.checking_unnecessary_deps=Checking if there are packages no longer needed
|
||||
arch.makepkg.optimizing=Optimitzant la recopilació
|
||||
arch.missing_deps.body=S’han d’instal·lar les {deps} dependències següents abans de continuar amb la instal·lació de {name}
|
||||
arch.missing_deps.body=The following dependencies ({deps}) will be installed
|
||||
arch.missing_deps.title=Dependències mancants
|
||||
arch.missing_deps_found=Dependències mancants per a {}
|
||||
arch.mthread_downloaded.error.cache_dir=It was not possible to create the cache directory {}
|
||||
|
||||
@@ -230,7 +230,7 @@ arch.install.optdeps.request.title=Optionale Abhängigkeiten
|
||||
arch.installing.package=Paket {} installieren
|
||||
arch.checking_unnecessary_deps=Checking if there are packages no longer needed
|
||||
arch.makepkg.optimizing=Optimiert die Zusammenstellung
|
||||
arch.missing_deps.body=Die folgenden {deps} Abhängigkeiten müssten installiert sein, bevor mit der {name} Installation fortgefahren werden kann
|
||||
arch.missing_deps.body=The following dependencies ({deps}) will be installed
|
||||
arch.missing_deps.title=Fehlende Abhängigkeiten
|
||||
arch.missing_deps_found=Fehlende Abhängigkeiten für {}
|
||||
arch.mthread_downloaded.error.cache_dir=It was not possible to create the cache directory {}
|
||||
|
||||
@@ -230,7 +230,7 @@ arch.install.optdeps.request.title=Optional dependencies
|
||||
arch.installing.package=Installing {} package
|
||||
arch.checking_unnecessary_deps=Checking if there are packages no longer needed
|
||||
arch.makepkg.optimizing=Optimizing the compilation
|
||||
arch.missing_deps.body=The following {deps} dependencies must be installed so the {name} installation can continue
|
||||
arch.missing_deps.body=The following dependencies ({deps}) will be installed
|
||||
arch.missing_deps.title=Missing dependencies
|
||||
arch.missing_deps_found=Missing dependencies for {}
|
||||
arch.mthread_downloaded.error.cache_dir=It was not possible to create the cache directory {}
|
||||
|
||||
@@ -230,7 +230,7 @@ arch.install.optdeps.request.title=Dependencias opcionales
|
||||
arch.installing.package=Instalando el paquete {}
|
||||
arch.checking_unnecessary_deps=Verificando se hay paquetes innecesarios
|
||||
arch.makepkg.optimizing=Optimizing the compilation
|
||||
arch.missing_deps.body=Deben instalarse las siguientes {deps} dependencias para que la instalación de {name} pueda continuar
|
||||
arch.missing_deps.body=Las siguientes dependencias ({deps}) serán instaladas
|
||||
arch.missing_deps.title=Dependencias faltantes
|
||||
arch.missing_deps_found=Dependencias faltantes para {}
|
||||
arch.mthread_downloaded.error.cache_dir=No fue posible crear el directorio de caché {}
|
||||
|
||||
@@ -230,7 +230,7 @@ arch.install.optdeps.request.title=Dépendances optionnelles
|
||||
arch.installing.package=Installation du paquet {}
|
||||
arch.checking_unnecessary_deps=Calcul des paquets devenus inutiles
|
||||
arch.makepkg.optimizing=Optimisation de la compilation
|
||||
arch.missing_deps.body=Les dependances {deps} doivent être installées pour que l'installation de {name} se poursuive
|
||||
arch.missing_deps.body=The following dependencies ({deps}) will be installed
|
||||
arch.missing_deps.title=Dépendances manquantes
|
||||
arch.missing_deps_found=Dépendances manquantes pour {}
|
||||
arch.mthread_downloaded.error.cache_dir=Impossible de créer le dossier de cache {}
|
||||
|
||||
@@ -230,7 +230,7 @@ arch.install.optdeps.request.title=Dipendenze opzionali
|
||||
arch.installing.package=Installazione del pacchetto {}
|
||||
arch.checking_unnecessary_deps=Checking if there are packages no longer needed
|
||||
arch.makepkg.optimizing=Ottimizzando la compilazione
|
||||
arch.missing_deps.body=Le seguenti {deps} dipendenze devono essere installate prima che l'installazione di {name} continui
|
||||
arch.missing_deps.body=The following dependencies ({deps}) will be installed
|
||||
arch.missing_deps.title=Dipendenze mancanti
|
||||
arch.missing_deps_found=Dipendenze mancanti per {}
|
||||
arch.mthread_downloaded.error.cache_dir=It was not possible to create the cache directory {}
|
||||
|
||||
@@ -229,7 +229,7 @@ arch.install.optdeps.request.title=Dependências opcionais
|
||||
arch.installing.package=Instalando o pacote {}
|
||||
arch.checking_unnecessary_deps=Verificando se há pacotes não mais necessários
|
||||
arch.makepkg.optimizing=Otimizando a compilação
|
||||
arch.missing_deps.body=As seguintes {deps} dependências devem ser instaladas para que a instalação de {name} continue
|
||||
arch.missing_deps.body=As seguintes dependências ({deps}) serão instaladas
|
||||
arch.missing_deps.title=Dependências ausentes
|
||||
arch.missing_deps_found=Dependencias ausentes para {}
|
||||
arch.mthread_downloaded.error.cache_dir=Não foi possível criar o diretório para cache {}
|
||||
|
||||
@@ -230,7 +230,7 @@ arch.install.optdeps.request.title=Необязательные зависимо
|
||||
arch.installing.package=Установка пакета {}
|
||||
arch.checking_unnecessary_deps=Checking if there are packages no longer needed
|
||||
arch.makepkg.optimizing=Оптимизация компиляции
|
||||
arch.missing_deps.body=Необходимо установить следующие зависимости , чтобы продолжить установку {name}
|
||||
arch.missing_deps.body=The following dependencies ({deps}) will be installed
|
||||
arch.missing_deps.title=Отсутствующие зависимости
|
||||
arch.missing_deps_found=Отсутствуют зависимости для {}
|
||||
arch.mthread_downloaded.error.cache_dir=It was not possible to create the cache directory {}
|
||||
|
||||
@@ -230,7 +230,7 @@ arch.install.optdeps.request.title=İsteğe bağlı bağımlılıklar
|
||||
arch.installing.package={} Paketi yükleniyor
|
||||
arch.checking_unnecessary_deps=Artık gerekli olmayan paketler olup olmadığını kontrol et
|
||||
arch.makepkg.optimizing=Derlemeyi optimize et
|
||||
arch.missing_deps.body={name} kurulumunun devam edebilmesi için aşağıdaki {deps} bağımlılık kurulmalıdır
|
||||
arch.missing_deps.body=The following dependencies ({deps}) will be installed
|
||||
arch.missing_deps.title=Eksik bağımlılıklar
|
||||
arch.missing_deps_found={} için eksik bağımlılıklar
|
||||
arch.mthread_downloaded.error.cache_dir=It was not possible to create the cache directory {}
|
||||
|
||||
Reference in New Issue
Block a user