From 7a9c21f83dff59b49dd262faef4e43a8c800dd40 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 29 Jul 2020 20:19:29 +0200 Subject: [PATCH] Fix rendering issue --- Customizations/TagRendering.ts | 6 +++++- UI/i18n/Translations.ts | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Customizations/TagRendering.ts b/Customizations/TagRendering.ts index 3316421..c1fe661 100644 --- a/Customizations/TagRendering.ts +++ b/Customizations/TagRendering.ts @@ -360,8 +360,12 @@ class TagRendering extends UIElement implements TagDependantUIElement { return undefined; } - const prepost = Translations.W(freeform.template).InnerRender().split("$"); + const prepost = Translations.W(freeform.template).InnerRender() + .replace("$$$","$string$") + .split("$"); const type = prepost[1]; + + console.log("PrePost:", prepost); let isValid = TagRenderingOptions.inputValidation[type]; if (isValid === undefined) { diff --git a/UI/i18n/Translations.ts b/UI/i18n/Translations.ts index e7bfdb1..052f7db 100644 --- a/UI/i18n/Translations.ts +++ b/UI/i18n/Translations.ts @@ -399,7 +399,7 @@ export default class Translations { qName: { question: new T({en: "What is the name of this bicycle shop?", nl: "Wat is de naam van deze fietszaak?", fr: "Quel est le nom du magasin de vélo?"}), render: new T({en: "This bicycle shop is called {name}", nl: "Deze fietszaak heet {name}", fr: "Ce magasin s'appelle {name}"}), - template: new T({en: "This bicycle shop is called: $$$", nl: "Deze fietszaak heet: $$$", fr: "Ce magasin s'appelle $$$"}) + template: new T({en: "This bicycle shop is called: $$$", nl: "Deze fietszaak heet: $$$", fr: "Ce magasin s'appelle $$$"}) }, secondHand: { question: new T({en: "Does this shop sell second-hand bikes?", nl: "Verkoopt deze winkel tweedehands fietsen?", fr: "Est-ce ce magasin vend des vélos d'occasion"}),