From 06879bca7a8342fc06b0a319382c56abee4e6d04 Mon Sep 17 00:00:00 2001 From: joker-x Date: Wed, 19 Aug 2020 08:22:05 +0200 Subject: [PATCH] Add translation marks in Users --- client/src/users/CUD.js | 4 ++-- client/src/users/List.js | 10 +++++----- locales/es-ES/common.json | 20 ++++++++++---------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/client/src/users/CUD.js b/client/src/users/CUD.js index a6d47690..e37dc93c 100644 --- a/client/src/users/CUD.js +++ b/client/src/users/CUD.js @@ -225,8 +225,8 @@ export default class CUD extends Component { const canDelete = isEdit && userId !== 1 && mailtrainConfig.user.id !== userId; const rolesColumns = [ - { data: 1, title: "Name" }, - { data: 2, title: "Description" }, + { data: 1, title: t("name") }, + { data: 2, title: t("description") }, ]; diff --git a/client/src/users/List.js b/client/src/users/List.js index 1ac5f0eb..2c59c6f1 100644 --- a/client/src/users/List.js +++ b/client/src/users/List.js @@ -29,15 +29,15 @@ export default class List extends Component { const t = this.props.t; const columns = [ - { data: 1, title: "Username" }, + { data: 1, title: t("username") }, ]; if (mailtrainConfig.isAuthMethodLocal) { - columns.push({ data: 2, title: "Full Name" }); + columns.push({ data: 2, title: t("fullName") }); } - columns.push({ data: 3, title: "Namespace" }); - columns.push({ data: 4, title: "Role" }); + columns.push({ data: 3, title: t("namespace") }); + columns.push({ data: 4, title: t("role") }); columns.push({ actions: data => { @@ -72,4 +72,4 @@ export default class List extends Component { ); } -} \ No newline at end of file +} diff --git a/locales/es-ES/common.json b/locales/es-ES/common.json index bd427cd9..a0c072af 100644 --- a/locales/es-ES/common.json +++ b/locales/es-ES/common.json @@ -733,24 +733,24 @@ "username": "Usuario", "password": "Contraseña", "rememberMe": "Recuérdame", - "resettingPassword": "Resetting password ...", - "passwordReset-1": "Password reset", - "yourPasswordCannotBeReset": "Your password cannot be reset.", - "thePasswordResetTokenHasExpired": "The password reset token has expired.", + "resettingPassword": "Reestableciendo contraseña ...", + "passwordReset-1": "Reestablecida contraseña", + "yourPasswordCannotBeReset": "Tu contraseña no pudo ser reestablecida.", + "thePasswordResetTokenHasExpired": "El token para resetear tu contraseña ha caducado.", "clickHereToRequestANewPasswordResetLink": "Click here to request a new password reset link.", "validatingPasswordResetToken": "Validating password reset token ...", - "thePasswordCannotBeReset": "The password cannot be reset", - "setNewPasswordFor": "Set new password for", - "resetPassword": "Reset password", + "thePasswordCannotBeReset": "La contraseña no pudo ser reestablecida.", + "setNewPasswordFor": "Establece una nueva contraseña para", + "resetPassword": "Reestablecer contraseña", "parentNamespaceMustBeSelected": "Debes escoger un espacio de nombres padre", "namespaceUpdated": "Espacio de nombres actualizado", "namespaceCreated": "Espacio de nombres creado", "thereHasBeenALoopDetectedInTheAssignment": "There has been a loop detected in the assignment of the parent namespace. This is most likely because someone else has changed the parent of some namespace in the meantime. Refresh your page to start anew. Please note that your changes will be lost.", "itSeemsThatTheParentNamespaceHasBeen": "It seems that the parent namespace has been deleted in the meantime. Refresh your page to start anew. Please note that your changes will be lost.", - "deletingNamespace": "Borrando namespace ...", + "deletingNamespace": "Borrando espacio de nombres ...", "namespaceDeleted": "Espacio de nombres borrado", - "editNamespace": "Editar Namespace", - "createNamespace": "Crear Namespace", + "editNamespace": "Editar Espacio de Nombres", + "createNamespace": "Crear Espacio de Nombre", "parentNamespace": "Namespace Padre", "namespaces": "Espacios de nombres", "namespaceName": "Espacio de nombres \"{{name}}\"",