});
foldAllButton.firstElementChild.classList.toggle('fa-chevron-down');
foldAllButton.firstElementChild.classList.toggle('fa-chevron-up');
+ foldAllButton.title = state === 'down'
+ ? document.getElementById('translation-fold-all').innerHTML
+ : document.getElementById('translation-expand-all').innerHTML
});
});
}
{
// Switch fold/expand - up = fold
if (button.classList.contains('fa-chevron-up')) {
- button.title = 'Expand';
+ button.title = document.getElementById('translation-expand').innerHTML;
if (description != null) {
description.style.display = 'none';
}
}
}
else {
- button.title = 'Fold';
+ button.title = document.getElementById('translation-fold').innerHTML;
if (description != null) {
description.style.display = 'block';
}
var deleteLinks = document.querySelectorAll('.confirm-delete');
[].forEach.call(deleteLinks, function(deleteLink) {
deleteLink.addEventListener('click', function(event) {
- if(! confirm('Are you sure you want to delete this link ?')) {
+ if(! confirm(document.getElementById('translation-delete-link').innerHTML)) {
event.preventDefault();
}
});
// Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable.
var data = {
name: title,
- description: "The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community.",
+ description: document.getElementById('translation-delete-link').innerHTML,
author: "Shaarli",
version: "1.0.0",