summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/js/searx.js
diff options
context:
space:
mode:
Diffstat (limited to 'searx/static/themes/oscar/js/searx.js')
-rw-r--r--searx/static/themes/oscar/js/searx.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/searx/static/themes/oscar/js/searx.js b/searx/static/themes/oscar/js/searx.js
index 159344b28..163009481 100644
--- a/searx/static/themes/oscar/js/searx.js
+++ b/searx/static/themes/oscar/js/searx.js
@@ -25,7 +25,8 @@ window.searx = (function(d) {
return {
autocompleter: script.getAttribute('data-autocompleter') === 'true',
- method: script.getAttribute('data-method')
+ method: script.getAttribute('data-method'),
+ translations: JSON.parse(script.getAttribute('data-translations'))
};
})(document);
;/**
@@ -302,7 +303,7 @@ $(document).ready(function(){
}
})
.fail(function() {
- $(result_table_loadicon).html($(result_table_loadicon).html() + "<p class=\"text-muted\">"+could_not_load+"</p>");
+ $(result_table_loadicon).html($(result_table_loadicon).html() + "<p class=\"text-muted\">"+searx.translations.could_not_load+"</p>");
});
}
}