add localisation support, allow multi-languages

This commit is contained in:
Xuan Sang LE
2018-03-09 19:54:33 +01:00
parent 696114e2f7
commit 9e0cd29030
27 changed files with 370 additions and 170 deletions

View File

@ -7,17 +7,17 @@ class UserService extends this.OS.GUI.BaseService
me = @
@child = [
{
text: "About", dataid: "user-about",
text: __("About"), dataid: "user-about",
iconclass: "fa fa-user-circle-o"
},
{
text: "Logout", dataid: "sys-logout",
text: __("Logout"), dataid: "sys-logout",
iconclass: "fa fa-user-times"
}
]
@onmenuselect = (d) ->
return window.OS.exit() if d.item.data.dataid is "sys-logout"
me.notify "This feature is not implemented yet"
me.notify __("This feature is not implemented yet")
awake: (e) ->
cleanup: (evt) ->