diff --git a/Projects/Superalgos/Schemas/Docs-Concepts/casa.json b/Projects/Superalgos/Schemas/Docs-Concepts/casa.json index 9eb9932e1..ddb71ab55 100644 --- a/Projects/Superalgos/Schemas/Docs-Concepts/casa.json +++ b/Projects/Superalgos/Schemas/Docs-Concepts/casa.json @@ -6,7 +6,17 @@ "paragraphs": [ { "style": "Text", - "text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode." + "text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode. Vaina", + "translations": [ + { + "language": "RU", + "text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode. Vaina" + }, + { + "language": "ES", + "text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode. Vaina" + } + ] }, { "style": "Text", diff --git a/Projects/Superalgos/Schemas/Docs-Concepts/vaina.json b/Projects/Superalgos/Schemas/Docs-Concepts/vaina.json index f2dfae2e9..ced787a00 100644 --- a/Projects/Superalgos/Schemas/Docs-Concepts/vaina.json +++ b/Projects/Superalgos/Schemas/Docs-Concepts/vaina.json @@ -1,7 +1,17 @@ { "type": "Vaina", "definition": { - "text": "Write here the definition of this Concept." + "text": "Write here the definition of this Concept.", + "translations": [ + { + "language": "ES", + "text": "Escribe aqui la definición de este proyecto." + }, + { + "language": "RU", + "text": "Esto es una Vainuska " + } + ] }, "paragraphs": [ { diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index 0f44ddbcf..c5862d62b 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -1942,14 +1942,6 @@ function newSuperalgosDocSpace() { if (docsSchemaDocument.definition !== undefined) { let definitionText = getTextBasedOnLanguage(docsSchemaDocument.definition) - /*Migrating to new data structure */ - if (definitionText === undefined) { - docsSchemaDocument.definition = { - text: docsSchemaDocument.definition - } - definitionText =docsSchemaDocument.definition.text - } - if (category === 'Topic' || category === 'Concept') { HTML = HTML + '
Summary: ' + addToolTips(definitionText) + '
' } else {