mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-08 22:15:48 +08:00
Improve config loading UI translation
This commit is contained in:
parent
20aed52bc6
commit
bce50453b0
5 changed files with 8 additions and 6 deletions
|
@ -540,7 +540,7 @@ def _main_gui(viewer_mode: bool):
|
|||
sg.Push(),
|
||||
sg.Button(_t("generic.cancel"), key="--CANCEL--"),
|
||||
sg.Button(_t("main_gui.new_config"), key="--NEW-CONFIG--"),
|
||||
sg.Button(_t("generic.accept"), key="--ACCEPT--"),
|
||||
sg.Button(_t("generic.load"), key="--LOAD--"),
|
||||
],
|
||||
]
|
||||
window = sg.Window("Configuration File", layout=layout, keep_on_top=True)
|
||||
|
@ -554,7 +554,7 @@ def _main_gui(viewer_mode: bool):
|
|||
action = event
|
||||
config_file = Path(values["-config_file-"])
|
||||
break
|
||||
if event == "--ACCEPT--":
|
||||
if event == "--LOAD--":
|
||||
config_file = Path(values["-config_file-"])
|
||||
if not values["-config_file-"] or not config_file.exists():
|
||||
sg.PopupError(_t("generic.file_does_not_exist"), keep_on_top=True)
|
||||
|
|
|
@ -71,4 +71,5 @@ en:
|
|||
add_manually: Add manually
|
||||
remove_selected: Remove selected
|
||||
|
||||
refresh: Refresh repo info
|
||||
refresh: Refresh repo info
|
||||
load: Load
|
|
@ -71,4 +71,5 @@ fr:
|
|||
add_manually: Ajouter manuellement
|
||||
remove_selected: Enlever la sélection
|
||||
|
||||
refresh: Recharger les informations du dépot
|
||||
refresh: Recharger les informations du dépot
|
||||
load: Charger
|
|
@ -38,7 +38,7 @@ en:
|
|||
repo_and_password_cannot_be_empty: Repo and password cannot be empty
|
||||
viewer_mode: Repository view-only mode
|
||||
open_repo: Open repo
|
||||
new_config: New config
|
||||
new_config: Create new config
|
||||
load_config: Load configuration
|
||||
config_error: Configuration error
|
||||
no_config: Please load / create a configuration before proceeding
|
||||
|
|
|
@ -38,7 +38,7 @@ fr:
|
|||
repo_and_password_cannot_be_empty: Le dépot et le mot de passe ne peuvent être vides
|
||||
viewer_mode: Mode visualisation de dépot uniquement
|
||||
open_repo: Ouvrir dépot
|
||||
new_config: Nouvelle configuration
|
||||
new_config: Créer nouvelle configuration
|
||||
load_config: Charger configuration
|
||||
config_error: Erreur de configuration
|
||||
no_config: Veuillez charger / créer une configuration avant de procéder
|
||||
|
|
Loading…
Add table
Reference in a new issue