remove hardcoded translations

pull/1/head
ansuz 5 years ago
parent 234f284647
commit 2925316058

@ -78,7 +78,6 @@ define([
]); ]);
var mkThemeButton = function (framework) { var mkThemeButton = function (framework) {
Messages.toolbar_theme = "Theme"; // XXX (duplicate from slide/inner.js)
var $theme = $(h('button.cp-toolbar-appmenu', [ var $theme = $(h('button.cp-toolbar-appmenu', [
h('i.cptools.cptools-palette'), h('i.cptools.cptools-palette'),
h('span.cp-button-name', Messages.toolbar_theme) h('span.cp-button-name', Messages.toolbar_theme)
@ -121,7 +120,7 @@ define([
name: 'authormarks', name: 'authormarks',
icon: 'fa-paint-brush', icon: 'fa-paint-brush',
}).hide(); }).hide();
framework._.toolbar.$theme.append($showAuthorColorsButton); // XXX framework._.toolbar.$theme.append($showAuthorColorsButton);
markers.setButton($showAuthorColorsButton); markers.setButton($showAuthorColorsButton);
}; };
var mkPrintButton = function (framework, $content, $print) { var mkPrintButton = function (framework, $content, $print) {

@ -1510,7 +1510,7 @@ define([
break; break;
case 'present': case 'present':
button = $(h('button', { button = $(h('button', {
title: Messages.presentButtonTitle, // XXX remove tippy? //title: Messages.presentButtonTitle, // TODO display if the label text is collapsed
}, [ }, [
h('i.fa.fa-play-circle'), h('i.fa.fa-play-circle'),
h('span.cp-toolbar-name', Messages.share_linkPresent) h('span.cp-toolbar-name', Messages.share_linkPresent)
@ -1518,7 +1518,7 @@ define([
break; break;
case 'preview': case 'preview':
button = $(h('button', { button = $(h('button', {
title: Messages.previewButtonTitle, // XXX remove tippy? //title: Messages.previewButtonTitle, // TODO display if the label text is collapsed
}, [ }, [
h('i.fa.fa-eye'), h('i.fa.fa-eye'),
h('span.cp-toolbar-name', Messages.share_linkOpen) h('span.cp-toolbar-name', Messages.share_linkOpen)
@ -1555,16 +1555,14 @@ define([
} }
break; break;
case 'mediatag': case 'mediatag':
Messages.toolbar_insert = "Insert"; // XXX
button = $(h('button.cp-toolbar-mediatag', { button = $(h('button.cp-toolbar-mediatag', {
title: Messages.filePickerButton, // XXX remove tippy? //title: Messages.filePickerButton, // TODO display if the label text is collapsed
}, [ }, [
h('i.fa.fa-picture-o'), h('i.fa.fa-picture-o'),
h('span.cp-toolbar-name', Messages.toolbar_insert) h('span.cp-toolbar-name', Messages.toolbar_insert)
])).click(common.prepareFeedback(type)); ])).click(common.prepareFeedback(type));
break; break;
case 'savetodrive': case 'savetodrive':
Messages.toolbar_savetodrive = "Save as image"; // XXX
button = $(h('button.cp-toolbar-savetodrive', { button = $(h('button.cp-toolbar-savetodrive', {
title: Messages.canvas_saveToDrive, title: Messages.canvas_saveToDrive,
}, [ }, [
@ -1588,9 +1586,8 @@ define([
}); });
break; break;
case 'toggle': case 'toggle':
Messages.toolbar_tools = "Tools"; // XXX
button = $(h('button.cp-toolbar-tools', { button = $(h('button.cp-toolbar-tools', {
title: data.title || '', // XXX remove tippy? //title: data.title || '', // TODO display if the label text is collapsed
}, [ }, [
h('i.fa.fa-wrench'), h('i.fa.fa-wrench'),
h('span.cp-toolbar-name', Messages.toolbar_tools) h('span.cp-toolbar-name', Messages.toolbar_tools)
@ -1661,7 +1658,7 @@ define([
var drawerCls = data.drawer === false ? '' : '.cp-toolbar-drawer-element'; var drawerCls = data.drawer === false ? '' : '.cp-toolbar-drawer-element';
var icon = data.icon || "fa-question"; var icon = data.icon || "fa-question";
button = $(h('button', { button = $(h('button', {
title: data.title || '', // XXX remove tippy? //title: data.title || '',
}, [ }, [
h('i.fa.' + icon), h('i.fa.' + icon),
h('span.cp-toolbar-name'+drawerCls, data.text) h('span.cp-toolbar-name'+drawerCls, data.text)

@ -3004,7 +3004,6 @@ define([
} }
}; };
var collapseTreeButton = function () { var collapseTreeButton = function () {
Messages.drive_treeButton = "Files"; // XXX
APP.$collapseButton = APP.$collapseButton || common.createButton('', true, { APP.$collapseButton = APP.$collapseButton || common.createButton('', true, {
text: Messages.drive_treeButton, text: Messages.drive_treeButton,
name: 'files', name: 'files',

@ -329,7 +329,7 @@ define([
if (!h) { return; } if (!h) { return; }
var next = waitFor(function () { var next = waitFor(function () {
Feedback.send('Migrate-10', true); Feedback.send('Migrate-10', true);
userObject.version = version = 10; // XXX userObject.version = version = 10;
}); });
var old; var old;
var opts = { var opts = {

@ -365,7 +365,6 @@ define([
} }
}; };
Messages.todo_move = "Your todo list has been moved to the pad <b>{0}</b>, as the Todo app is now deprecated."; // XXX
handlers['MOVE_TODO'] = function(common, data) { handlers['MOVE_TODO'] = function(common, data) {
var content = data.content; var content = data.content;
var msg = content.msg; var msg = content.msg;

@ -359,7 +359,6 @@ define([
content: l.name // Pretty name of the language value content: l.name // Pretty name of the language value
}); });
}); });
Messages.code_editorTheme = "Editor theme"; // XXX
var dropdownConfig = { var dropdownConfig = {
text: Messages.code_editorTheme, // Button initial text text: Messages.code_editorTheme, // Button initial text
options: options, // Entries displayed in the menu options: options, // Entries displayed in the menu

@ -90,7 +90,6 @@ MessengerUI, Messages) {
var $file = $toolbar.find('.'+BOTTOM_LEFT_CLS); var $file = $toolbar.find('.'+BOTTOM_LEFT_CLS);
Messages.toolbar_file = "File"; // XXX
if (!config.hideDrawer) { if (!config.hideDrawer) {
// XXX a lot of this logic is duplicated (code, slide, here) // XXX a lot of this logic is duplicated (code, slide, here)
var $drawer = $(h('button.' + FILE_CLS, [ var $drawer = $(h('button.' + FILE_CLS, [

@ -102,7 +102,6 @@ define([
// XXX this function is a duplicate of /code/ // XXX this function is a duplicate of /code/
var mkThemeButton = function (framework) { var mkThemeButton = function (framework) {
Messages.toolbar_theme = "Theme"; // XXX
var $theme = $(h('button.cp-toolbar-appmenu', [ var $theme = $(h('button.cp-toolbar-appmenu', [
h('i.cptools.cptools-palette'), h('i.cptools.cptools-palette'),
h('span.cp-button-name', Messages.toolbar_theme) h('span.cp-button-name', Messages.toolbar_theme)
@ -378,7 +377,6 @@ define([
framework.localChange(); framework.localChange();
}; };
Messages.slide_backCol = "Background color"; // XXX
var $back = framework._.sfCommon.createButton(null, true, { var $back = framework._.sfCommon.createButton(null, true, {
icon: 'fa-square', icon: 'fa-square',
text: Messages.slide_backCol, text: Messages.slide_backCol,
@ -387,7 +385,6 @@ define([
name: 'background', name: 'background',
id: SLIDE_BACKCOLOR_ID id: SLIDE_BACKCOLOR_ID
}); });
Messages.slide_textCol = "Text color"; // XXX
var $text = framework._.sfCommon.createButton(null, true, { var $text = framework._.sfCommon.createButton(null, true, {
icon: 'fa-i-cursor', icon: 'fa-i-cursor',
text: Messages.slide_textCol, text: Messages.slide_textCol,

@ -394,7 +394,6 @@ define([
}); });
}).appendTo($drawer); }).appendTo($drawer);
} else { } else {
Messages.toolbar_insert = "Insert"; // XXX duplicate key from common-ui-elements
framework._.sfCommon.createButton('', true, { framework._.sfCommon.createButton('', true, {
title: Messages.canvas_imageEmbed, title: Messages.canvas_imageEmbed,
text: Messages.toolbar_insert, text: Messages.toolbar_insert,

Loading…
Cancel
Save