allow to overide locale method __() to all object

This commit is contained in:
Xuan Sang LE
2018-03-10 22:46:28 +01:00
parent 6367c321da
commit 702a83df6a
7 changed files with 24 additions and 16 deletions

View File

@ -61,7 +61,7 @@ class CodeBlock extends this.OS.GUI.BaseApplication
menu = [{
text: "File",
child: [
{ text: "__(New)", dataid: "#{@name}-New", shortcut: "A-N" },
{ text: __("New"), dataid: "#{@name}-New", shortcut: "A-N" },
{ text: "__(Open)", dataid: "#{@name}-Open", shortcut: "A-O" },
{ text: "__(Save)", dataid: "#{@name}-Save", shortcut: "C-S" },
{ text: "__(Save as)", dataid: "#{@name}-Saveas", shortcut: "A-W" }

View File

@ -62,8 +62,8 @@ class PushNotification extends this.OS.GUI.BaseService
icon: o.data.icon,
iconclass: o.data.iconclass,
closable: true }
console.log o.data.s
console.log o.data.e
#console.log o.data.s
#console.log o.data.e
@mlist.unshift d, true
@notifeed d