Integrate Designer location with the editor ...

This commit is contained in:
Paulo Gustavo Veiga
2012-07-01 17:54:46 -03:00
parent 2757a5ddb4
commit 7752ac0dc1
6 changed files with 13 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ mindplot.Designer = new Class({
$assert(divElement, "divElement must be defined");
// Set up i18n location ...
mindplot.Messages.init(options.location);
mindplot.Messages.init(options.locale);
this._options = options;

View File

@@ -18,8 +18,8 @@
mindplot.Messages = new Class({
Static:{
init:function (location) {
var locale = $defined(location) ? location : 'en';
init:function (locale) {
locale = $defined(locale) ? locale : 'en';
mindplot.Messages.__bundle = mindplot.Messages.BUNDLES[locale];
console.log(mindplot.Messages.__bundle);
}

View File

@@ -248,7 +248,7 @@ mindplot.widget.Menu = new Class({
this._addButton('redoEdition', false, false, function () {
designer.redo();
});
this._registerTooltip('redoEdition', $msg('REDO'), "meta+Y");
this._registerTooltip('redoEdition', $msg('REDO'), "meta+shift+Z");
this._addButton('addTopic', true, false, function () {