mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-21 13:44:45 +01:00
fixed localization for buttons
This commit is contained in:
@@ -132,10 +132,11 @@ class LuiPagesGen(object):
|
|||||||
return f",text,{item},{icon_id},{icon_color},{name},{value}"
|
return f",text,{item},{icon_id},{icon_color},{name},{value}"
|
||||||
if item_type in ["button", "input_button"]:
|
if item_type in ["button", "input_button"]:
|
||||||
icon_id = get_icon_id_ha("button", overwrite=icon)
|
icon_id = get_icon_id_ha("button", overwrite=icon)
|
||||||
return f",button,{item},{icon_id},17299,{name},PRESS"
|
text = get_translation(self._locale,"PRESS")
|
||||||
|
return f",button,{item},{icon_id},17299,{name},{text}"
|
||||||
if item_type == "scene":
|
if item_type == "scene":
|
||||||
icon_id = get_icon_id_ha("scene", overwrite=icon)
|
icon_id = get_icon_id_ha("scene", overwrite=icon)
|
||||||
text = get_translation(self._locale,"PRESS")
|
text = get_translation(self._locale,"ACTIVATE")
|
||||||
return f",button,{item},{icon_id},17299,{name},{text}"
|
return f",button,{item},{icon_id},17299,{name},{text}"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user