From c702674401bcad649ea72436311a9ef07d57f0df Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 31 Jul 2024 20:17:26 +0200 Subject: [PATCH] never translate readonly textbox or textarea --- api/js/etemplate/Et2Textarea/Et2TextareaReadonly.ts | 6 ++++++ api/js/etemplate/Et2Textbox/Et2TextboxReadonly.ts | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/api/js/etemplate/Et2Textarea/Et2TextareaReadonly.ts b/api/js/etemplate/Et2Textarea/Et2TextareaReadonly.ts index e098d75b19..7b90b84a4d 100644 --- a/api/js/etemplate/Et2Textarea/Et2TextareaReadonly.ts +++ b/api/js/etemplate/Et2Textarea/Et2TextareaReadonly.ts @@ -5,6 +5,12 @@ import {Et2Description} from "../Et2Description/Et2Description"; */ export class Et2TextareaReadonly extends Et2Description { + constructor() + { + super(); + + this.noLang = true; // never translation r/o textareas + } } // We can't bind the same class to a different tag diff --git a/api/js/etemplate/Et2Textbox/Et2TextboxReadonly.ts b/api/js/etemplate/Et2Textbox/Et2TextboxReadonly.ts index 1fdb99a215..065262f9b6 100644 --- a/api/js/etemplate/Et2Textbox/Et2TextboxReadonly.ts +++ b/api/js/etemplate/Et2Textbox/Et2TextboxReadonly.ts @@ -16,6 +16,11 @@ import {Et2Description} from "../Et2Description/Et2Description"; */ export class Et2TextboxReadonly extends Et2Description { + constructor() + { + super(); + this.noLang = true; // never translation r/o textboxes + } } // We can't bind the same class to a different tag