Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1816

variables in $LOCALIZE[x] possible?

$
0
0
Hi, is it possible to use a variable to pass a number to a $LOCALIZE[] label?

This is my variable:

Code:
<variable name="ViewtypeLabel">
    <value condition="Control.IsVisible(50)">315002</value>
    <value condition="Control.IsVisible(51)">315003</value>
    <value condition="Control.IsVisible(500)">315007</value>        
</variable>

This is my label:

Code:
<label>$LOCALIZE[$VAR[ViewtypeLabel]]</label>

From what I can tell, it's translating the var to 0, so instead of printing the string with id 315002, it's printing the string with id 0, which is "programs".

Viewing all articles
Browse latest Browse all 1816

Trending Articles