Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
[enh] add translatable strings to javascript - closes #461
Browse files Browse the repository at this point in the history
  • Loading branch information
asciimoo committed Jun 15, 2020
1 parent 6fb5c6a commit 4ca0d8c
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion searx/static/themes/oscar/js/searx.js
Expand Up @@ -291,7 +291,7 @@ $(document).ready(function(){
}
})
.fail(function() {
$(result_table_loadicon).html($(result_table_loadicon).html() + "<p class=\"text-muted\">could not load data!</p>");
$(result_table_loadicon).html($(result_table_loadicon).html() + "<p class=\"text-muted\">"+could_not_load+"</p>");
});
}
}
Expand Down
4 changes: 2 additions & 2 deletions searx/static/themes/oscar/js/searx.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion searx/static/themes/oscar/js/searx_src/leaflet_map.js
Expand Up @@ -90,7 +90,7 @@ $(document).ready(function(){
}
})
.fail(function() {
$(result_table_loadicon).html($(result_table_loadicon).html() + "<p class=\"text-muted\">could not load data!</p>");
$(result_table_loadicon).html($(result_table_loadicon).html() + "<p class=\"text-muted\">"+could_not_load+"</p>");
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion searx/static/themes/simple/js/searx.head.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion searx/static/themes/simple/js/searx.js
Expand Up @@ -1314,7 +1314,7 @@ module.exports = AutoComplete;
})
.catch(function() {
result_table_loadicon.classList.remove('invisible');
result_table_loadicon.innerHTML = "could not load data!";
result_table_loadicon.innerHTML = could_not_load;
});
}
}
Expand Down

0 comments on commit 4ca0d8c

Please sign in to comment.