diff --git a/wwwroot/i18n/language.ui b/wwwroot/i18n/language.ui index bafa59d3..e166b481 100644 --- a/wwwroot/i18n/language.ui +++ b/wwwroot/i18n/language.ui @@ -1,32 +1,13 @@ { "id":"language", - "widgettype":"VBox", + "widgettype":"Text", "options":{ - "cwidth":4, + "tip":"change UI language", + "i18n":true, + "otext":"{{params_kw._lang}}", + "cwidth": 4, "css":"clickable" }, - "subwidgets":[ - { - "widgettype":"Svg", - "options":{ - "url":"{{entire_url('language.svg')}}", - "rate":2, - "valign":"center", - "halign":"center" - } - }, - { - "widgettype":"Text", - "id":"lang_label", - "options":{ - "i18n":false, - "otext":"{{params_kw._lang}}", - "cwidth":4, - "css":"text-center", - "cfontsize":0.6 - } - } - ], "binds":[ { "wid":"self", @@ -35,7 +16,7 @@ "target":"Popup", "popup_options":{ "eventpos":true, - "cwidth":11, + "cwidth": 11, "cheight":10, "dismiss_events":["command"] }, @@ -47,7 +28,7 @@ "wid":"app", "event":"lang", "actiontype":"script", - "target":"lang_label", + "target":"self", "script":"this.set_otext(bricks.app.lang)" } ]