Skin Expressions: Localized or empty string in iif-expression (1 Viewer)

bta489

Portal Pro
March 17, 2013
127
64
Germany Germany
Country flag
I'm trying to modify the Apollo-Skin. In the original skin some words are harcoded in plain english and I want to replace them with the localized version. But one inside an iif - Expression isn't cooperating. The line in question is something like this (I removed the working parts for clarity):
XML:
<label>#(iif(eq(#TVSeries.Episode.AvailableSubtitles,'1'),' | #(L(293))',''))</label>
This should, if subtitles are available, add the separator and the localized string "Subtitles" (string-ID 293). If no subtitles are available this string should be empty. But this only displays ' | #(L(293))'.

I had some success to display the correct string by enclosing the entire iif-Expression with the translation-Expression. But then if the iif-statement returns false instead of an empty string an error message is displayed in the label.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

OP Similar threads Forum Replies Date
Rob Hexenmeister Quick question - skinning MyPics General Support 3
S Touchscreen skin? MediaPortal 1 Talk 6
azzuro [fixed] 5011: Version label in Splash screen - pos, size from skin MediaPortal 1 61
catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
V Skin With Menu Editor MediaPortal 1 Skins 13
wizard123 New Skin Template ? MediaPortal 2 8
Rob Hexenmeister [solved] Latest Media Handler - skinning buttons Fanart Handler 19
CyberSimian [solved] MP1-4976 Built-in skin variables for current date MediaPortal 1 8
Mr6686 [solved] Titan skin broken since update to 1.23 Installation, configuration support 6
doskabouter Skin question Skins and Plugins Installer (MPEI) 1
Y Titan Skin unter 1.23 nicht mehr so schön Allgemeines Supportforum 1
framug 1.22.0 BasicHome Editor settings for DefaultWide HD skin not kept when update 1.22 3
catavolt [solved] FanartHandler - Skin - Holiday and Spotlight support Fanart Handler 5
ajs [fixed] 4936 - Strange behavior of the font in the skin MediaPortal 1 35
ajs [solved] 4935: Add string.replace function to Skin engine MediaPortal 1 10
ajs [solved] Latest Media Handler - Skin settings - Custom latests items number Fanart Handler 27
Rob Hexenmeister [solved] Latests Media Handler - Skinning an updating window or control Fanart Handler 26
T Skin Wechsel Installationsprobleme? 1
JJDoherty Designing & implementing a new skin... Skins and Design 8
D [fixed] Image browser crashing in Folder View (WMC skin) 2.2 Archive 10
CyberSimian Do skin variables have global scope? MediaPortal 1 16
N Skins to download separately MediaPortal 1 Talk 5
P WMC Skin full screen/EPG Skins and Design 3
CyberSimian Fixes for Amped skin MediaPortal 1 10
Similar threads

























Top Bottom