loleaflet: initial l10n support of context menus

This commit is contained in:
Andras Timar
2016-05-20 18:13:44 +02:00
parent 625de77dd3
commit bd6ee3a8b6
122 changed files with 134 additions and 2 deletions

View File

@ -100,13 +100,13 @@ L.Control.ContextMenu = L.Control.extend({
!(docType === 'text' && this.options.whitelist.text.indexOf(commandName) !== -1) &&
!(docType === 'spreadsheet' && this.options.whitelist.spreadsheet.indexOf(commandName) !== -1) &&
!(docType === 'presentation' && this.options.whitelist.presentation.indexOf(commandName) !== -1) &&
!(docType === 'drawing' && this.optinos.whitelist.drawing.indexOf(commandName) !== -1)) {
!(docType === 'drawing' && this.options.whitelist.drawing.indexOf(commandName) !== -1)) {
continue;
}
itemName = item['text'].replace('~', '');
contextMenu[item['command']] = {
name: itemName
name: _(itemName)
};
if (item['checktype'] === 'checkmark') {