Skip to content

Commit

Permalink
Fix template string translation for new select widget ("ut" instead o…
Browse files Browse the repository at this point in the history
…f "t" call)
  • Loading branch information
bago committed Oct 21, 2022
1 parent 9271aa0 commit f1c55e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/widgets/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var widgetPlugin = {
optionCounter++;
var iconOption = iconClasses.hasOwnProperty(opt1) ? ', icons: { primary: \'' + addSlashes(iconClasses[opt1]) + '\' }' : '';
html1 += '<input name="buttonset-widget-'+uniqueCounter+'" id="buttonset-widget-'+uniqueCounter+'-'+optionCounter+'" type="radio" value="' + addSlashes(opt1) + '" data-bind="checked: prop, button: { text: ' + (useLabels ? 'true' : 'false') + ', label: \'' + addSlashes(labels.hasOwnProperty(opt1) ? labels[opt1] : opts[opt1]) + '\''+iconOption+' }" />';
html1 += '<label for="buttonset-widget-'+uniqueCounter+'-'+optionCounter+'" data-bind="attr: { title: $root.t(\'' + addSlashes(opts[opt1]) + '\') }">' + opt1 + '</label>';
html1 += '<label for="buttonset-widget-'+uniqueCounter+'-'+optionCounter+'" data-bind="attr: { title: $root.ut(\'template\', \'' + addSlashes(opts[opt1]) + '\') }">' + opt1 + '</label>';
}
html1 += '</div>';
html1 += '<!-- /ko -->';
Expand Down

0 comments on commit f1c55e6

Please sign in to comment.