mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[ui][aur] improved Required / Optional confirmation dialogs
This commit is contained in:
@@ -16,7 +16,7 @@ def request_optional_deps(pkgname: str, pkg_mirrors: dict, watcher: ProcessWatch
|
||||
opts = []
|
||||
|
||||
for p, d in pkg_mirrors.items():
|
||||
op = InputOption('{}{} ( {} )'.format(p, ': ' + d['desc'] if d['desc'] else '', d['mirror'].upper()), p)
|
||||
op = InputOption('{}{} ( {}: {} )'.format(p, ': ' + d['desc'] if d['desc'] else '', i18n['mirror'], d['mirror'].upper()), p)
|
||||
op.icon_path = _get_mirror_icon(d['mirror'])
|
||||
opts.append(op)
|
||||
|
||||
@@ -39,13 +39,11 @@ def request_install_missing_deps(pkgname: str, pkg_mirrors: dict, watcher: Proce
|
||||
|
||||
opts = []
|
||||
for p, m in pkg_mirrors.items():
|
||||
op = InputOption('{} ( {} )'.format(p, m), p)
|
||||
op = InputOption('{} ( {}: {} )'.format(p, i18n['mirror'], m.upper()), p)
|
||||
op.read_only = True
|
||||
op.icon_path = _get_mirror_icon(m)
|
||||
opts.append(op)
|
||||
|
||||
comps = [
|
||||
MultipleSelectComponent(label='', options=opts, default_options=set(opts))
|
||||
]
|
||||
comp = MultipleSelectComponent(label='', options=opts, default_options=set(opts))
|
||||
|
||||
return watcher.request_confirmation(i18n['arch.missing_deps.title'], msg, comps, confirmation_label=i18n['continue'].capitalize())
|
||||
return watcher.request_confirmation(i18n['arch.missing_deps.title'], msg, [comp], confirmation_label=i18n['continue'].capitalize())
|
||||
|
||||
@@ -194,3 +194,4 @@ continue=continua
|
||||
stable=estable
|
||||
close=tanca
|
||||
publisher.verified=verificat
|
||||
mirror=mirall
|
||||
@@ -148,4 +148,5 @@ screenshots.download.no_response=Image not found
|
||||
continue=continue
|
||||
stable=stable
|
||||
close=close
|
||||
publisher.verified=verified
|
||||
publisher.verified=verified
|
||||
mirror=mirror
|
||||
@@ -193,3 +193,4 @@ continue=continuar
|
||||
stable=estable
|
||||
close=cerrar
|
||||
publisher.verified=verificado
|
||||
mirror=espejo
|
||||
@@ -149,3 +149,4 @@ continue=continua
|
||||
stable=stabile
|
||||
close=vicino
|
||||
publisher.verified=verificato
|
||||
mirror=specchio
|
||||
@@ -195,4 +195,5 @@ screenshots.download.no_response=Imagem não encontrada
|
||||
continue=continuar
|
||||
stable=estável
|
||||
close=fechar
|
||||
publisher.verified=verificado
|
||||
publisher.verified=verificado
|
||||
mirror=espelho
|
||||
Reference in New Issue
Block a user