[Web] added translations for various strings (#4173)

* [Web] translated synchronization "open logs" str

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>

* [Web] translated selectbox "nothing selected" str

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>

* [Web] translated Check against haveibeenpwned.com

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
This commit is contained in:
Kristian Feldsam
2021-07-07 06:39:29 +02:00
committed by GitHub
parent fa9327a279
commit 7bc8781db8
6 changed files with 18 additions and 4 deletions

View File

@@ -93,7 +93,9 @@ $(document).ready(function() {
}).remove();
// selectpicker
$('select').selectpicker();
$('select').selectpicker({
'noneSelectedText': lang_footer.nothing_selected
});
// haveibeenpwned and passwd policy
$.ajax({
@@ -103,7 +105,7 @@ $(document).ready(function() {
$(".hibp-out").after(res);
}
});
$('[data-hibp]').after('<p class="small haveibeenpwned"><i class="bi bi-shield-fill-exclamation"></i> Check against haveibeenpwned.com</p><span class="hibp-out"></span>');
$('[data-hibp]').after('<p class="small haveibeenpwned"><i class="bi bi-shield-fill-exclamation"></i> ' + lang_footer.hibp_check + '</p><span class="hibp-out"></span>');
$('[data-hibp]').on('input', function() {
out_field = $(this).next('.haveibeenpwned').next('.hibp-out').text('').attr('class', 'hibp-out');
});