From d2020727fea7fe81b538b0a301b1d6a6cac9635f Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 11 Feb 2022 13:02:21 -0700 Subject: [PATCH] Fix some missing translation problems --- addressbook/lang/egw_de.lang | 1 + addressbook/lang/egw_en.lang | 1 + api/js/etemplate/et2_widget_placeholder.ts | 19 +++++++++++++++++++ api/js/jsapi/egw_lang.js | 2 +- api/lang/egw_de.lang | 1 + calendar/lang/egw_de.lang | 2 ++ calendar/lang/egw_en.lang | 2 ++ 7 files changed, 27 insertions(+), 1 deletion(-) diff --git a/addressbook/lang/egw_de.lang b/addressbook/lang/egw_de.lang index 9f79134382..281301c258 100644 --- a/addressbook/lang/egw_de.lang +++ b/addressbook/lang/egw_de.lang @@ -373,6 +373,7 @@ multiple vcard addressbook de Mehrere vCards name for the distribution list addressbook de Name für die Verteilerliste name of current user, all other contact fields are valid too addressbook de Name des aktuellen Benutzers, auch alle anderen Kontaktfelder sind erlaubt name, address addressbook de Name, Adresse +name, email, phone addressbook de Name, E-Mail, Telefon new contact submitted by %1 at %2 addressbook de Neuer Kontakt eingetragen von %1 am %2 new window opened to edit infolog for your selection addressbook de Es wird ein neues Fenster zum Erstellen des InfoLog-Eintrags geöffnet next date addressbook de Nächster Termin diff --git a/addressbook/lang/egw_en.lang b/addressbook/lang/egw_en.lang index baacd193f2..722440108b 100644 --- a/addressbook/lang/egw_en.lang +++ b/addressbook/lang/egw_en.lang @@ -373,6 +373,7 @@ multiple vcard addressbook en Multiple vCard name for the distribution list addressbook en Name for the distribution list name of current user, all other contact fields are valid too addressbook en Name of current user, all other contact fields are valid too. name, address addressbook en Name, Address +name, email, phone addressbook en Name, email, phone new contact submitted by %1 at %2 addressbook en New contact submitted by %1 at %2 . new window opened to edit infolog for your selection addressbook en New window opened to edit InfoLog. next date addressbook en Next date diff --git a/api/js/etemplate/et2_widget_placeholder.ts b/api/js/etemplate/et2_widget_placeholder.ts index e82b54b1c1..9f2d1fd9a8 100644 --- a/api/js/etemplate/et2_widget_placeholder.ts +++ b/api/js/etemplate/et2_widget_placeholder.ts @@ -241,6 +241,8 @@ export class et2_placeholder_select extends et2_inputWidget } else { + // Load app translations + this.egw().langRequireApp(this.egw().window, widget.get_value()); entry.set_disabled(false); entry.app_select.val(widget.get_value()); entry.set_value({app: widget.get_value(), id: '', query: ''}); @@ -425,6 +427,23 @@ export class et2_placeholder_snippet_select extends et2_placeholder_select protected LIST_URL = 'EGroupware\\Api\\Etemplate\\Widget\\Placeholder::ajax_get_placeholders'; protected TEMPLATE = '/api/templates/default/placeholder_snippet.xet?1'; + + /** + * Constructor + * + * @param _parent + * @param _attrs + * @memberOf et2_vfsSelect + */ + constructor(_parent, _attrs? : WidgetConfig, _child? : object) + { + // Call the inherited constructor + super(_parent, _attrs, ClassWithAttributes.extendAttributes(et2_placeholder_select._attributes, _child || {})); + + // Load app translations + this.egw().langRequireApp(this.egw().window, "addressbook"); + } + /** * Post-load of the dialog * Bind internal events, set some things that are difficult to do in the template diff --git a/api/js/jsapi/egw_lang.js b/api/js/jsapi/egw_lang.js index 51a9e556c5..f614ef421d 100644 --- a/api/js/jsapi/egw_lang.js +++ b/api/js/jsapi/egw_lang.js @@ -116,7 +116,7 @@ egw.extend('lang', egw.MODULE_GLOBAL, function() } langs.push({app: 'custom', lang: 'en'}); - egw.langRequire(_window, langs, _callback, _context); + this.langRequire(_window, langs, _callback, _context); }, /** diff --git a/api/lang/egw_de.lang b/api/lang/egw_de.lang index f5ff853b0b..6c27c81c61 100644 --- a/api/lang/egw_de.lang +++ b/api/lang/egw_de.lang @@ -861,6 +861,7 @@ maybe common de Vieleicht mayotte common de MAYOTTE medium common de Mittel menu common de Menü +merged document filename preferences de Dateiname zusammengeführtes Dokument message common de Nachricht message ... common de Nachricht ... message prepared for sending. common de Nachricht zum Versand vorbereitet diff --git a/calendar/lang/egw_de.lang b/calendar/lang/egw_de.lang index 2e173f4839..cd9d7118d3 100644 --- a/calendar/lang/egw_de.lang +++ b/calendar/lang/egw_de.lang @@ -461,6 +461,7 @@ re-edit event calendar de Termin erneut bearbeiten receive email updates calendar de Empfange E-Mail-Updates receive notifications about events you created/modified/deleted calendar de Empfange Benachrichtigungen über eigene Änderungen (Erstellung/Modifikation/Löschung) receive summary of appointments calendar de Zusammenfassung der Termine erhalten +recordings calendar de Aufnahmen recover calendar de Wiederherstellen recovered calendar de wieder hergestellt recurrence calendar de Wiederholung @@ -617,6 +618,7 @@ to many might exceed your execution-time-limit calendar de zu viele können Ihre to-firstname calendar de An Vorname to-fullname calendar de An Vor- und Nachname to-lastname calendar de An Nachname +toggle weekend calendar de Wochenende umschalten tomorrow calendar de Morgen translation calendar de Übersetzung tue calendar de Di diff --git a/calendar/lang/egw_en.lang b/calendar/lang/egw_en.lang index 77dc6d4e81..f061026594 100644 --- a/calendar/lang/egw_en.lang +++ b/calendar/lang/egw_en.lang @@ -461,6 +461,7 @@ re-edit event calendar en Re-edit event receive email updates calendar en Receive email updates receive notifications about events you created/modified/deleted calendar en Receive notifications about events you created/modified/deleted. receive summary of appointments calendar en Receive summary of appointments +recordings calendar en Recordings recover calendar en Recover recovered calendar en Recovered. recurrence calendar en Recurrence @@ -617,6 +618,7 @@ to many might exceed your execution-time-limit calendar en Too many might exceed to-firstname calendar en To first name to-fullname calendar en To full name to-lastname calendar en To last name +toggle weekend calendar en Toggle weekend tomorrow calendar en Tomorrow translation calendar en Translation tue calendar en Tue