mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 00:34:16 +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 = []
|
opts = []
|
||||||
|
|
||||||
for p, d in pkg_mirrors.items():
|
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'])
|
op.icon_path = _get_mirror_icon(d['mirror'])
|
||||||
opts.append(op)
|
opts.append(op)
|
||||||
|
|
||||||
@@ -39,13 +39,11 @@ def request_install_missing_deps(pkgname: str, pkg_mirrors: dict, watcher: Proce
|
|||||||
|
|
||||||
opts = []
|
opts = []
|
||||||
for p, m in pkg_mirrors.items():
|
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.read_only = True
|
||||||
op.icon_path = _get_mirror_icon(m)
|
op.icon_path = _get_mirror_icon(m)
|
||||||
opts.append(op)
|
opts.append(op)
|
||||||
|
|
||||||
comps = [
|
comp = MultipleSelectComponent(label='', options=opts, default_options=set(opts))
|
||||||
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
|
stable=estable
|
||||||
close=tanca
|
close=tanca
|
||||||
publisher.verified=verificat
|
publisher.verified=verificat
|
||||||
|
mirror=mirall
|
||||||
@@ -149,3 +149,4 @@ continue=continue
|
|||||||
stable=stable
|
stable=stable
|
||||||
close=close
|
close=close
|
||||||
publisher.verified=verified
|
publisher.verified=verified
|
||||||
|
mirror=mirror
|
||||||
@@ -193,3 +193,4 @@ continue=continuar
|
|||||||
stable=estable
|
stable=estable
|
||||||
close=cerrar
|
close=cerrar
|
||||||
publisher.verified=verificado
|
publisher.verified=verificado
|
||||||
|
mirror=espejo
|
||||||
@@ -149,3 +149,4 @@ continue=continua
|
|||||||
stable=stabile
|
stable=stabile
|
||||||
close=vicino
|
close=vicino
|
||||||
publisher.verified=verificato
|
publisher.verified=verificato
|
||||||
|
mirror=specchio
|
||||||
@@ -196,3 +196,4 @@ continue=continuar
|
|||||||
stable=estável
|
stable=estável
|
||||||
close=fechar
|
close=fechar
|
||||||
publisher.verified=verificado
|
publisher.verified=verificado
|
||||||
|
mirror=espelho
|
||||||
Reference in New Issue
Block a user