2016-01-27, 18:36
(2016-01-27, 17:59)marcelveldt Wrote: Like you found out for yourself, not recommended to localize the values as it will break when the language changes. The label is meant to do that. The script will make sure to correctly localize the labels when the language has changed.
Yes, sometimes focusing too much on something makes me pass through important basics :/
I edited my previous post having something in mind but as said, not that much important but it could look like something like :
Code:
<settings>
<!-- home layout -->
<setting pos="1" id="HomeLayout" value="1" label="$LOCALIZE[31309] - 1 row" condition="" icon="" description=""/>
<setting pos="2" id="HomeLayout" value="2" label="$LOCALIZE[31309] - 2 rows" condition="" icon="" description=""/>
<setting pos="3" id="HomeLayout" value="3" label="$LOCALIZE[31309] - 3 rows" condition="" icon="" description=""/>
</settings>
Code:
<control type="button" id="423003">
<label>[B]$LOCALIZE[31121]:[/B] $INFO[Skin.String(HomeLayout.label)]</label>
<onclick>RunScript(script.skin.helper.service,action=setskinsetting,setting=HomeLayout,header=$LOCALIZE[31124]),method="next"</onclick>
</control>
With method= next (jump to next pos="X") or select (using DialogSelect.xml)
Quote:Description tag will be set as label2 to the listitems so you can show a description in your dialogselect
NIce Thx
EDIT : Seems not working. Used ListItem.Label2 but not showing ... Tried plain text and $LOCALIZE[]
EDIT 2 : Found it, has to be Container(6).ListItem.Label2 in DialogSelect