Integrate Designer location with the editor ...
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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 () {
|
||||
|
Reference in New Issue
Block a user