diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index 7d5ccee906..5d66bbbe0e 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -46,7 +46,8 @@ var et2_link_to = et2_inputWidget.extend( "name": "Placeholder", "type": "string", "default": "", - "description": "This text get displayed if an input-field is empty and does not have the input-focus (blur). It can be used to show a default value or a kind of help-text." + "description": "This text get displayed if an input-field is empty and does not have the input-focus (blur). It can be used to show a default value or a kind of help-text.", + translate:true }, "no_files": { "name": "No files", @@ -506,7 +507,8 @@ var et2_link_entry = et2_inputWidget.extend( "name": "Placeholder", "type": "string", "default": et2_no_init, - "description": "This text get displayed if an input-field is empty and does not have the input-focus (blur). It can be used to show a default value or a kind of help-text." + "description": "This text get displayed if an input-field is empty and does not have the input-focus (blur). It can be used to show a default value or a kind of help-text.", + translate:true }, "query": { "name": "Query callback", diff --git a/etemplate/js/et2_widget_selectAccount.js b/etemplate/js/et2_widget_selectAccount.js index 8d27eee196..5366c28c08 100644 --- a/etemplate/js/et2_widget_selectAccount.js +++ b/etemplate/js/et2_widget_selectAccount.js @@ -647,6 +647,7 @@ var et2_selectAccount_ro = et2_link_string.extend([et2_IDetachedDOM], "type": "string", "default": "", "description": "Textual label for first row, eg: 'All' or 'None'. ID will be ''", + translate:true }, }, diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index 8853727fbb..5e7eaebc08 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -51,7 +51,8 @@ var et2_selectbox = et2_inputWidget.extend( "name": "Empty label", "type": "string", "default": "", - "description": "Textual label for first row, eg: 'All' or 'None'. ID will be ''" + "description": "Textual label for first row, eg: 'All' or 'None'. ID will be ''", + translate:true }, "select_options": { "type": "any", @@ -586,7 +587,7 @@ var et2_selectbox = et2_inputWidget.extend( { if(this.options.empty_label) { - this.input.attr("data-placeholder", this.egw().lang(this.options.empty_label)); + this.input.attr("data-placeholder", this.options.empty_label); // Remove from list of options, if multiple if (this.options.multiple) { @@ -627,7 +628,7 @@ var et2_selectbox = et2_inputWidget.extend( // Empty label should not be added as an option for chosen, it conflicts if(this.options.empty_label && !(this.options.tags || this.options.search)) { - this._appendOptionElement('', this.egw().lang(this.options.empty_label)); + this._appendOptionElement('',this.options.empty_label); } // Add the select_options