[DE mobile] Localization Toolbar.
This commit is contained in:
parent
90da47ad78
commit
e2058ff642
|
@ -49,7 +49,7 @@ define([
|
||||||
], function (core, $, _, Backbone) {
|
], function (core, $, _, Backbone) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
DE.Controllers.Toolbar = Backbone.Controller.extend((function() {
|
DE.Controllers.Toolbar = Backbone.Controller.extend(_.extend((function() {
|
||||||
// private
|
// private
|
||||||
var _backUrl;
|
var _backUrl;
|
||||||
|
|
||||||
|
@ -149,5 +149,5 @@ define([
|
||||||
leaveButtonText : 'Leave this Page',
|
leaveButtonText : 'Leave this Page',
|
||||||
stayButtonText : 'Stay on this Page'
|
stayButtonText : 'Stay on this Page'
|
||||||
}
|
}
|
||||||
})());
|
})(), DE.Controllers.Toolbar || {}))
|
||||||
});
|
});
|
|
@ -48,7 +48,7 @@ define([
|
||||||
], function (toolbarTemplate, $, _, Backbone) {
|
], function (toolbarTemplate, $, _, Backbone) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
DE.Views.Toolbar = Backbone.View.extend((function() {
|
DE.Views.Toolbar = Backbone.View.extend(_.extend((function() {
|
||||||
// private
|
// private
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -86,7 +86,8 @@ define([
|
||||||
$el.prepend(this.template({
|
$el.prepend(this.template({
|
||||||
android : Common.SharedSettings.get('android'),
|
android : Common.SharedSettings.get('android'),
|
||||||
phone : Common.SharedSettings.get('phone'),
|
phone : Common.SharedSettings.get('phone'),
|
||||||
backTitle : Common.SharedSettings.get('android') ? '' : 'Back'
|
backTitle : Common.SharedSettings.get('android') ? '' : this.textBack,
|
||||||
|
scope : this
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
@ -131,7 +132,9 @@ define([
|
||||||
// Settings
|
// Settings
|
||||||
showSettings: function () {
|
showSettings: function () {
|
||||||
DE.getController('Settings').showModal();
|
DE.getController('Settings').showModal();
|
||||||
}
|
},
|
||||||
|
|
||||||
|
textBack: 'Back'
|
||||||
}
|
}
|
||||||
})());
|
})(), DE.Views.Toolbar || {}))
|
||||||
});
|
});
|
|
@ -129,5 +129,11 @@
|
||||||
"DE.Views.Settings.textVersion": "Version",
|
"DE.Views.Settings.textVersion": "Version",
|
||||||
"DE.Views.Settings.textAddress": "address",
|
"DE.Views.Settings.textAddress": "address",
|
||||||
"DE.Views.Settings.textEmail": "email",
|
"DE.Views.Settings.textEmail": "email",
|
||||||
"DE.Views.Settings.textTel": "tel"
|
"DE.Views.Settings.textTel": "tel",
|
||||||
|
|
||||||
|
"DE.Controllers.Toolbar.dlgLeaveTitleText": "You leave the application",
|
||||||
|
"DE.Controllers.Toolbar.dlgLeaveMsgText": "You have unsaved changes in this document. Click 'Stay on this Page' to await the autosave of the document. Click 'Leave this Page' to discard all the unsaved changes.",
|
||||||
|
"DE.Controllers.Toolbar.leaveButtonText": "Leave this Page",
|
||||||
|
"DE.Controllers.Toolbar.stayButtonText": "Stay on this Page",
|
||||||
|
"DE.Views.Toolbar.textBack": "Back"
|
||||||
}
|
}
|
Loading…
Reference in a new issue