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

bta489

Portal Pro
March 17, 2013
142
68
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

Similar threads
OP Title Forum Replies Date
M StreamedMP skin MediaPortal 1 Skins 9
ge2301 MP2 - V2.4 MP2.4: New transparent view mode by skin settings MediaPortal 2 4
G 1.26.0 Errors when exiting Mediaportal GUI using StreamedMP 3.2.2.0 skin. StreamedMP 0
M MP2 - V2.3 The skin resource for screen 'RecordingsShowItems' seems to be broken General 4
Mainhattan Olli MP2 - V2.3 WMC Skin nach update auf MP2.3 Allgemeines Support- und Diskussionsforum 3
S Stiefmütterliche Unterstützung für Maussteuerung in MP (Titan Skin) Allgemeines Supportforum 14
Rob Hexenmeister Skin functions: What is available? General Support 7
Rob Hexenmeister Skinning Online Videos question OnlineVideos 2
Rob Hexenmeister Quick question - skinning MyPics General Support 7
ajs [Info] 0.7 Beta - MPExtended, WebMP, Bootstrap skin by ajs - Hard way MPExtended 627
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 51
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

Similar threads

Top Bottom