added comments to change the text for translation

This commit is contained in:
daria 2023-07-20 12:01:57 +03:00
parent f59bf6a619
commit 1eb2cdf5ed
4 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@ define([
elem.setAttribute('id', 'cp-loading');
elem.innerHTML = [
'<div class="cp-loading-logo">',
'<img class="cp-loading-cryptofist" src="/customize/CryptPad_logo.svg?' + urlArgs + '" alt="CryptPad Logo">',
'<img class="cp-loading-cryptofist" src="/customize/CryptPad_logo.svg?' + urlArgs + '" alt="CryptPad Logo">', // XXX
'</div>',
'<div class="cp-loading-container">',
'<div class="cp-loading-spinner-container">',

View File

@ -65,7 +65,7 @@ define([
if (selected === l) { attr.selected = 'selected'; }
options.push(h('option', attr, languages[l]));
});
var select = h('select', {role: 'listbox', 'label': 'language','aria-label': 'languages'}, options);
var select = h('select', {role: 'listbox', 'label': 'language','aria-label': 'languages'}, options); // XXX
$(select).change(function () {
Language.setLanguage($(select).val() || '', null, function () {
window.location.reload();

View File

@ -8,7 +8,7 @@ var elem = document.createElement('div');
elem.setAttribute('id', 'placeholder');
elem.innerHTML = [
'<div class="placeholder-logo-container">',
'<img class="placeholder-logo" alt="CryptPad Logo" src="' + logoPath + '">',
'<img class="placeholder-logo" alt="CryptPad Logo" src="' + logoPath + '">', // XXX
'</div>',
'<div class="placeholder-message-container">',
'<p>Loading...</p>',

View File

@ -716,10 +716,10 @@ define([
}
var dropdownConfig = {
text: '',
options: options,
options: options, // Entries displayed in the menu
common: common,
buttonCls: 'btn btn-default fa fa-gear small cp-calendar-actions',
'aria-label': 'settings', // ????
// 'aria-label': 'settings', // doesn't work
};
return UIElements.createDropdown(dropdownConfig)[0];
};
@ -1194,10 +1194,10 @@ ICS ==> create a new event with the same UID and a RECURRENCE-ID field (with a v
// Change page
// XXX
var goLeft = h('button.fa.fa-chevron-left',{'aria-label': 'left'});
var goRight = h('button.fa.fa-chevron-right', {'aria-label': 'right'});
var goLeft = h('button.fa.fa-chevron-left',{'aria-label': 'left'}); // XXX
var goRight = h('button.fa.fa-chevron-right', {'aria-label': 'right'}); // XXX
var goToday = h('button', Messages.calendar_today);
var goDate = h('button.fa.fa-calendar',{'aria-label': 'date'});
var goDate = h('button.fa.fa-calendar',{'aria-label': 'date'}); // XXX
$(goLeft).click(function () {
cal.prev();
updateDateRange();