Update .js for translate adaptation

- Add i18n for 'or', 'and' text output
This commit is contained in:
farggus 2020-03-30 01:24:57 +03:00 committed by GitHub
parent d58bd4c085
commit d0fcc4c24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -451,12 +451,12 @@ function reindexElements() {
*/
if ($(div).find('select[name^="sp_criteria_field"]').hasClass('sp-invisible')) {
if ($(div).is(':visible')) {
$(div).prev().find('.db-logic-label').text('or').show();
$(div).prev().find('.db-logic-label').text($.i18n._("or")).show();
}
modIndex++;
} else {
if ($(div).is(':visible')) {
$(div).prev().find('.db-logic-label').text('and').show();
$(div).prev().find('.db-logic-label').text($.i18n._("and")).show();
}
index++;
modIndex = 0;
@ -981,4 +981,4 @@ var stringIsNotOptions = {
};
let tracktypes = TRACKTYPES;
var stringTracktypeOptions = Object.assign({"": "Select Track Type"}, tracktypes);
var stringTracktypeOptions = Object.assign({"": "Select Track Type"}, tracktypes);