From 885c876d53468488213e0afd8a2164a3de388e86 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 2 Jan 2023 19:59:52 -0800 Subject: [PATCH] Add missing i18n. --- packages/mindplot/src/components/Designer.ts | 4 ++-- packages/mindplot/src/components/lang/de.js | 2 ++ packages/mindplot/src/components/lang/en.js | 2 ++ packages/mindplot/src/components/lang/es.js | 2 ++ packages/mindplot/src/components/lang/fr.js | 3 +++ 5 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/mindplot/src/components/Designer.ts b/packages/mindplot/src/components/Designer.ts index 755c1eab..4fc23b8b 100644 --- a/packages/mindplot/src/components/Designer.ts +++ b/packages/mindplot/src/components/Designer.ts @@ -819,7 +819,7 @@ class Designer extends Events { const validateFunc = (topic: Topic) => !(topic.getType() === 'CentralTopic' && shape === 'line'); - const validateError = 'Central Topic shape can not be changed to line figure.'; + const validateError = $msg('CENTRAL_TOPIC_STYLE_CAN_NOT_BE_CHANGED'); const topicsIds = this.getModel().filterTopicsIds(validateFunc, validateError); if (topicsIds.length > 0) { this._actionDispatcher.changeShapeTypeToTopic(topicsIds, shape); @@ -829,7 +829,7 @@ class Designer extends Events { changeConnectionStyle(type: LineType): void { const validateFunc = (topic: Topic) => !topic.isCentralTopic(); - const validateError = 'Central topic connection style can not be changed for central topic.'; + const validateError = $msg('CENTRAL_TOPIC_CONNECTION_STYLE_CAN_NOT_BE_CHANGED'); const topicsIds = this.getModel().filterTopicsIds(validateFunc, validateError); if (topicsIds.length > 0) { this._actionDispatcher.changeConnectionStyleToTopic(topicsIds, type); diff --git a/packages/mindplot/src/components/lang/de.js b/packages/mindplot/src/components/lang/de.js index cca4df09..e01bcad4 100644 --- a/packages/mindplot/src/components/lang/de.js +++ b/packages/mindplot/src/components/lang/de.js @@ -19,6 +19,8 @@ const DE = { RELATIONSHIP_COULD_NOT_BE_CREATED: 'Die Beziehung konnte nicht angelegt werden. Es muss erst ein Vater-Thema ausgewählt werden, um die Beziehung herzustellen.', SELECTION_COPIED_TO_CLIPBOARD: 'Themen in der Zwischenablage', SESSION_EXPIRED: 'Deine Sitzung ist abgelaufen, bitte melde dich erneut an.', + CENTRAL_TOPIC_CONNECTION_STYLE_CAN_NOT_BE_CHANGED: 'Le style de connexion ne peut pas être modifié pour le sujet central.', + CENTRAL_TOPIC_STYLE_CAN_NOT_BE_CHANGED: 'Le sujet central ne peut pas être changé en style de ligne.', }; export default DE; diff --git a/packages/mindplot/src/components/lang/en.js b/packages/mindplot/src/components/lang/en.js index 5bd47c47..d32a03d4 100644 --- a/packages/mindplot/src/components/lang/en.js +++ b/packages/mindplot/src/components/lang/en.js @@ -19,6 +19,8 @@ const EN = { RELATIONSHIP_COULD_NOT_BE_CREATED: 'Relationship could not be created. A parent relationship topic must be selected first.', SELECTION_COPIED_TO_CLIPBOARD: 'Topics copied to the clipboard', SESSION_EXPIRED: 'Your session has expired, please log-in again.', + CENTRAL_TOPIC_CONNECTION_STYLE_CAN_NOT_BE_CHANGED: 'Connection style can not be changed for central topic.', + CENTRAL_TOPIC_STYLE_CAN_NOT_BE_CHANGED: 'Central topic can not be changed to line style.', }; export default EN; diff --git a/packages/mindplot/src/components/lang/es.js b/packages/mindplot/src/components/lang/es.js index d8d77ac2..5113b8e8 100644 --- a/packages/mindplot/src/components/lang/es.js +++ b/packages/mindplot/src/components/lang/es.js @@ -19,6 +19,8 @@ const ES = { RELATIONSHIP_COULD_NOT_BE_CREATED: 'La relación no pudo ser creada. Una relación padre debe ser seleccionada primero.', SELECTION_COPIED_TO_CLIPBOARD: 'Tópicos copiados al clipboard', SESSION_EXPIRED: 'Su session ha expirado. Por favor, ingrese nuevamente.', + CENTRAL_TOPIC_CONNECTION_STYLE_CAN_NOT_BE_CHANGED: 'El estilo de conexión no se puede cambiar para el tópico central.', + CENTRAL_TOPIC_STYLE_CAN_NOT_BE_CHANGED: 'Tópico central no se puede cambiar al estilo de línea.', }; export default ES; diff --git a/packages/mindplot/src/components/lang/fr.js b/packages/mindplot/src/components/lang/fr.js index 85bd950a..d7381877 100644 --- a/packages/mindplot/src/components/lang/fr.js +++ b/packages/mindplot/src/components/lang/fr.js @@ -19,6 +19,9 @@ const FR = { RELATIONSHIP_COULD_NOT_BE_CREATED: 'Impossible de créer relation. Un noeud parent doit être sélectionné au préalable.', SELECTION_COPIED_TO_CLIPBOARD: 'Noeuds sélectionnés copiés dans le presse-papiers.', SESSION_EXPIRED: 'Votre session a expiré, veuillez vous reconnecter.', + CENTRAL_TOPIC_CONNECTION_STYLE_CAN_NOT_BE_CHANGED: 'Le style de connexion ne peut pas être modifié pour le sujet central.', + CENTRAL_TOPIC_STYLE_CAN_NOT_BE_CHANGED: 'Le sujet central ne peut pas être changé en style de ligne.', + }; export default FR;