diff --git a/npbackup/gui/operations.py b/npbackup/gui/operations.py index d1a8b8e..da5cce3 100644 --- a/npbackup/gui/operations.py +++ b/npbackup/gui/operations.py @@ -79,11 +79,12 @@ def operations_gui(full_config: dict) -> dict: break if event == "--SELECTED_GROUPS--": if not values["-GROUP_LIST-"]: - sg.Popup("No groups selected") + sg.Popup(_t("operations_gui.no_groups_selected")) continue repo_list = [] for group_index in values["-GROUP_LIST-"]: group_name = group_list[group_index] + print(group_name, configuration.get_repos_by_group(full_config, group_name)) repo_list += configuration.get_repos_by_group(full_config, group_name) result = repo_list break @@ -231,12 +232,12 @@ def operations_gui(full_config: dict) -> dict: else: repos = [] for value in values["repo-list"]: - repos.append(complete_repo_list[value]) + repos.append(complete_repo_list[value][0]) repo_config_list = [] if not repos: continue - for repo_name, repo_group, backend_type, repo_uri in repos: + for repo_name in repos: repo_config, config_inheritance = configuration.get_repo_config( full_config, repo_name ) diff --git a/npbackup/translations/operations_gui.en.yml b/npbackup/translations/operations_gui.en.yml index efbb266..d27aaf3 100644 --- a/npbackup/translations/operations_gui.en.yml +++ b/npbackup/translations/operations_gui.en.yml @@ -9,7 +9,9 @@ en: standard_prune: Normal prune data max_prune: Prune with maximum efficiency stats: Repo statistics - apply_to_all: Apply to all repos ? + apply_to_all: Apply to all repos + apply_to_selected_groups: Apply to selected groups + no_groups_selected: No groups selected add_repo: Add repo edit_repo: Edit repo remove_repo: Remove repo diff --git a/npbackup/translations/operations_gui.fr.yml b/npbackup/translations/operations_gui.fr.yml index 7b5e3db..ace1089 100644 --- a/npbackup/translations/operations_gui.fr.yml +++ b/npbackup/translations/operations_gui.fr.yml @@ -9,7 +9,9 @@ fr: standard_prune: Opération de purge normale max_prune: Opération de purge la plus efficace stats: Statistiques de dépot - apply_to_all: Appliquer à tous les dépots ? + apply_to_all: Appliquer à tous les dépots + apply_to_selected_groups: Appliquer aux groupes sélectionnés + no_groups_selected: Aucun groupe sélectionné add_repo: Ajouter dépot edit_repo: Modifier dépot remove_repo: Supprimer dépot \ No newline at end of file