From 075c7851dbfeb5f38e3a12543da596961ae8273a Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 13 Sep 2018 11:16:20 -0600 Subject: [PATCH] Translate taglist option labels --- api/js/etemplate/et2_widget_taglist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_taglist.js b/api/js/etemplate/et2_widget_taglist.js index ab16d7f2d1..7ccd6bdfb5 100644 --- a/api/js/etemplate/et2_widget_taglist.js +++ b/api/js/etemplate/et2_widget_taglist.js @@ -440,10 +440,11 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR { jQuery.extend(option, options[id]); if(option.value) option.id = option.value; + option.label = this.options.no_lang ? option.label : this.egw().lang(option.label); } else { - option.label = options[id]; + option.label = this.options.no_lang ? options[id] : this.egw().lang(options[id]); } data.push(option); }