From 3ea4fc51c9ad17e03dd5e71268b0f6e5fca4a9bc Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 15 Jun 2025 18:25:50 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Ajout=20des=20traductions=20manquantes?= =?UTF-8?q?=20pour=20la=20modification=20de=20r=C3=B4le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit J'ai ajouté les clés de traduction nécessaires pour la fonctionnalité de modification de rôle utilisateur à tous les fichiers de langue. - Les traductions françaises et anglaises sont fournies. - Pour les autres langues (ar, de, es, hi, it, ja, pt, ru, zh), les textes anglais sont utilisés comme placeholders. Ceci corrige l'omission de la mise à jour de tous les fichiers de langue lors de l'implémentation initiale de la fonctionnalité. --- app/src/Lang/ar.json | 12 +++++++++++- app/src/Lang/de.json | 12 +++++++++++- app/src/Lang/en.json | 12 +++++++++++- app/src/Lang/es.json | 12 +++++++++++- app/src/Lang/hi.json | 12 +++++++++++- app/src/Lang/it.json | 12 +++++++++++- app/src/Lang/ja.json | 12 +++++++++++- app/src/Lang/pt.json | 12 +++++++++++- app/src/Lang/ru.json | 12 +++++++++++- app/src/Lang/zh.json | 12 +++++++++++- 10 files changed, 110 insertions(+), 10 deletions(-) diff --git a/app/src/Lang/ar.json b/app/src/Lang/ar.json index 091d274..4af9b22 100644 --- a/app/src/Lang/ar.json +++ b/app/src/Lang/ar.json @@ -80,5 +80,15 @@ "user_delete_success": "Auto-translated 'User ''{username}'' deleted successfully.' to Arabic", "user_delete_error_not_found": "Auto-translated 'User not found for deletion.' to Arabic", "user_delete_error_db": "Auto-translated 'Error deleting user from the database.' to Arabic", - "self_delete_not_allowed": "Auto-translated 'You cannot delete yourself.' to Arabic" + "self_delete_not_allowed": "Auto-translated 'You cannot delete yourself.' to Arabic", + "user_role_error_id_missing": "User ID missing for role modification.", + "user_not_found": "User not found.", + "cannot_change_admin_role": "The main administrator's role or your own role cannot be modified.", + "cannot_remove_last_admin_role": "Cannot remove administrator status from the last administrator.", + "user_role_updated_success": "User '{username}' role has been successfully changed to '{role}'.", + "user_role_update_error_db": "Database error while updating user role.", + "confirm_toggle_admin_role": "Are you sure you want to modify this user's role?", + "remove_admin_status": "Remove Admin", + "pass_to_admin": "Make Admin", + "cannot_change_main_admin_role": "Role not modifiable" } diff --git a/app/src/Lang/de.json b/app/src/Lang/de.json index 90c16d4..6a5b1ac 100644 --- a/app/src/Lang/de.json +++ b/app/src/Lang/de.json @@ -80,5 +80,15 @@ "user_delete_success": "Benutzer '{username}' erfolgreich gelöscht.", "user_delete_error_not_found": "Benutzer zum Löschen nicht gefunden.", "user_delete_error_db": "Fehler beim Löschen des Benutzers aus der Datenbank.", - "self_delete_not_allowed": "Sie können sich nicht selbst löschen." + "self_delete_not_allowed": "Sie können sich nicht selbst löschen.", + "user_role_error_id_missing": "User ID missing for role modification.", + "user_not_found": "User not found.", + "cannot_change_admin_role": "The main administrator's role or your own role cannot be modified.", + "cannot_remove_last_admin_role": "Cannot remove administrator status from the last administrator.", + "user_role_updated_success": "User '{username}' role has been successfully changed to '{role}'.", + "user_role_update_error_db": "Database error while updating user role.", + "confirm_toggle_admin_role": "Are you sure you want to modify this user's role?", + "remove_admin_status": "Remove Admin", + "pass_to_admin": "Make Admin", + "cannot_change_main_admin_role": "Role not modifiable" } diff --git a/app/src/Lang/en.json b/app/src/Lang/en.json index 6951f8a..53e4348 100644 --- a/app/src/Lang/en.json +++ b/app/src/Lang/en.json @@ -80,5 +80,15 @@ "user_delete_success": "User '{username}' deleted successfully.", "user_delete_error_not_found": "User not found for deletion.", "user_delete_error_db": "Error deleting user from the database.", - "self_delete_not_allowed": "You cannot delete yourself." + "self_delete_not_allowed": "You cannot delete yourself.", + "user_role_error_id_missing": "User ID missing for role modification.", + "user_not_found": "User not found.", + "cannot_change_admin_role": "The main administrator's role or your own role cannot be modified.", + "cannot_remove_last_admin_role": "Cannot remove administrator status from the last administrator.", + "user_role_updated_success": "User '{username}' role has been successfully changed to '{role}'.", + "user_role_update_error_db": "Database error while updating user role.", + "confirm_toggle_admin_role": "Are you sure you want to modify this user's role?", + "remove_admin_status": "Remove Admin", + "pass_to_admin": "Make Admin", + "cannot_change_main_admin_role": "Role not modifiable" } diff --git a/app/src/Lang/es.json b/app/src/Lang/es.json index 66cb7ab..fc628a2 100644 --- a/app/src/Lang/es.json +++ b/app/src/Lang/es.json @@ -80,5 +80,15 @@ "user_delete_success": "Usuario '{username}' eliminado correctamente.", "user_delete_error_not_found": "Usuario no encontrado para la eliminación.", "user_delete_error_db": "Error al eliminar el usuario de la base de datos.", - "self_delete_not_allowed": "No puedes eliminarte a ti mismo." + "self_delete_not_allowed": "No puedes eliminarte a ti mismo.", + "user_role_error_id_missing": "User ID missing for role modification.", + "user_not_found": "User not found.", + "cannot_change_admin_role": "The main administrator's role or your own role cannot be modified.", + "cannot_remove_last_admin_role": "Cannot remove administrator status from the last administrator.", + "user_role_updated_success": "User '{username}' role has been successfully changed to '{role}'.", + "user_role_update_error_db": "Database error while updating user role.", + "confirm_toggle_admin_role": "Are you sure you want to modify this user's role?", + "remove_admin_status": "Remove Admin", + "pass_to_admin": "Make Admin", + "cannot_change_main_admin_role": "Role not modifiable" } diff --git a/app/src/Lang/hi.json b/app/src/Lang/hi.json index a2f7b86..bdee1a4 100644 --- a/app/src/Lang/hi.json +++ b/app/src/Lang/hi.json @@ -80,5 +80,15 @@ "user_delete_success": "Auto-translated 'User ''{username}'' deleted successfully.' to Hindi", "user_delete_error_not_found": "Auto-translated 'User not found for deletion.' to Hindi", "user_delete_error_db": "Auto-translated 'Error deleting user from the database.' to Hindi", - "self_delete_not_allowed": "Auto-translated 'You cannot delete yourself.' to Hindi" + "self_delete_not_allowed": "Auto-translated 'You cannot delete yourself.' to Hindi", + "user_role_error_id_missing": "User ID missing for role modification.", + "user_not_found": "User not found.", + "cannot_change_admin_role": "The main administrator's role or your own role cannot be modified.", + "cannot_remove_last_admin_role": "Cannot remove administrator status from the last administrator.", + "user_role_updated_success": "User '{username}' role has been successfully changed to '{role}'.", + "user_role_update_error_db": "Database error while updating user role.", + "confirm_toggle_admin_role": "Are you sure you want to modify this user's role?", + "remove_admin_status": "Remove Admin", + "pass_to_admin": "Make Admin", + "cannot_change_main_admin_role": "Role not modifiable" } diff --git a/app/src/Lang/it.json b/app/src/Lang/it.json index 2145aa9..b30a72f 100644 --- a/app/src/Lang/it.json +++ b/app/src/Lang/it.json @@ -80,5 +80,15 @@ "user_delete_success": "Utente '{username}' eliminato con successo.", "user_delete_error_not_found": "Utente non trovato per l'eliminazione.", "user_delete_error_db": "Errore durante l'eliminazione dell'utente dal database.", - "self_delete_not_allowed": "Non puoi eliminare te stesso." + "self_delete_not_allowed": "Non puoi eliminare te stesso.", + "user_role_error_id_missing": "User ID missing for role modification.", + "user_not_found": "User not found.", + "cannot_change_admin_role": "The main administrator's role or your own role cannot be modified.", + "cannot_remove_last_admin_role": "Cannot remove administrator status from the last administrator.", + "user_role_updated_success": "User '{username}' role has been successfully changed to '{role}'.", + "user_role_update_error_db": "Database error while updating user role.", + "confirm_toggle_admin_role": "Are you sure you want to modify this user's role?", + "remove_admin_status": "Remove Admin", + "pass_to_admin": "Make Admin", + "cannot_change_main_admin_role": "Role not modifiable" } diff --git a/app/src/Lang/ja.json b/app/src/Lang/ja.json index bccf65c..4b1fc53 100644 --- a/app/src/Lang/ja.json +++ b/app/src/Lang/ja.json @@ -80,5 +80,15 @@ "user_delete_success": "Auto-translated 'User ''{username}'' deleted successfully.' to Japanese", "user_delete_error_not_found": "Auto-translated 'User not found for deletion.' to Japanese", "user_delete_error_db": "Auto-translated 'Error deleting user from the database.' to Japanese", - "self_delete_not_allowed": "Auto-translated 'You cannot delete yourself.' to Japanese" + "self_delete_not_allowed": "Auto-translated 'You cannot delete yourself.' to Japanese", + "user_role_error_id_missing": "User ID missing for role modification.", + "user_not_found": "User not found.", + "cannot_change_admin_role": "The main administrator's role or your own role cannot be modified.", + "cannot_remove_last_admin_role": "Cannot remove administrator status from the last administrator.", + "user_role_updated_success": "User '{username}' role has been successfully changed to '{role}'.", + "user_role_update_error_db": "Database error while updating user role.", + "confirm_toggle_admin_role": "Are you sure you want to modify this user's role?", + "remove_admin_status": "Remove Admin", + "pass_to_admin": "Make Admin", + "cannot_change_main_admin_role": "Role not modifiable" } diff --git a/app/src/Lang/pt.json b/app/src/Lang/pt.json index 1ff5920..9e7e453 100644 --- a/app/src/Lang/pt.json +++ b/app/src/Lang/pt.json @@ -80,5 +80,15 @@ "user_delete_success": "Utilizador '{username}' eliminado com sucesso.", "user_delete_error_not_found": "Utilizador não encontrado para eliminação.", "user_delete_error_db": "Erro ao eliminar utilizador da base de dados.", - "self_delete_not_allowed": "Não pode eliminar-se a si mesmo." + "self_delete_not_allowed": "Não pode eliminar-se a si mesmo.", + "user_role_error_id_missing": "User ID missing for role modification.", + "user_not_found": "User not found.", + "cannot_change_admin_role": "The main administrator's role or your own role cannot be modified.", + "cannot_remove_last_admin_role": "Cannot remove administrator status from the last administrator.", + "user_role_updated_success": "User '{username}' role has been successfully changed to '{role}'.", + "user_role_update_error_db": "Database error while updating user role.", + "confirm_toggle_admin_role": "Are you sure you want to modify this user's role?", + "remove_admin_status": "Remove Admin", + "pass_to_admin": "Make Admin", + "cannot_change_main_admin_role": "Role not modifiable" } diff --git a/app/src/Lang/ru.json b/app/src/Lang/ru.json index 4deb99e..940f10d 100644 --- a/app/src/Lang/ru.json +++ b/app/src/Lang/ru.json @@ -80,5 +80,15 @@ "user_delete_success": "Auto-translated 'User ''{username}'' deleted successfully.' to Russian", "user_delete_error_not_found": "Auto-translated 'User not found for deletion.' to Russian", "user_delete_error_db": "Auto-translated 'Error deleting user from the database.' to Russian", - "self_delete_not_allowed": "Auto-translated 'You cannot delete yourself.' to Russian" + "self_delete_not_allowed": "Auto-translated 'You cannot delete yourself.' to Russian", + "user_role_error_id_missing": "User ID missing for role modification.", + "user_not_found": "User not found.", + "cannot_change_admin_role": "The main administrator's role or your own role cannot be modified.", + "cannot_remove_last_admin_role": "Cannot remove administrator status from the last administrator.", + "user_role_updated_success": "User '{username}' role has been successfully changed to '{role}'.", + "user_role_update_error_db": "Database error while updating user role.", + "confirm_toggle_admin_role": "Are you sure you want to modify this user's role?", + "remove_admin_status": "Remove Admin", + "pass_to_admin": "Make Admin", + "cannot_change_main_admin_role": "Role not modifiable" } diff --git a/app/src/Lang/zh.json b/app/src/Lang/zh.json index e8b19b2..af88502 100644 --- a/app/src/Lang/zh.json +++ b/app/src/Lang/zh.json @@ -80,5 +80,15 @@ "user_delete_success": "Auto-translated 'User ''{username}'' deleted successfully.' to Chinese", "user_delete_error_not_found": "Auto-translated 'User not found for deletion.' to Chinese", "user_delete_error_db": "Auto-translated 'Error deleting user from the database.' to Chinese", - "self_delete_not_allowed": "Auto-translated 'You cannot delete yourself.' to Chinese" + "self_delete_not_allowed": "Auto-translated 'You cannot delete yourself.' to Chinese", + "user_role_error_id_missing": "User ID missing for role modification.", + "user_not_found": "User not found.", + "cannot_change_admin_role": "The main administrator's role or your own role cannot be modified.", + "cannot_remove_last_admin_role": "Cannot remove administrator status from the last administrator.", + "user_role_updated_success": "User '{username}' role has been successfully changed to '{role}'.", + "user_role_update_error_db": "Database error while updating user role.", + "confirm_toggle_admin_role": "Are you sure you want to modify this user's role?", + "remove_admin_status": "Remove Admin", + "pass_to_admin": "Make Admin", + "cannot_change_main_admin_role": "Role not modifiable" }