- March 17, 2013
- 190
- 107
- Home Country
-
Germany
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):
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.
XML:
<label>#(iif(eq(#TVSeries.Episode.AvailableSubtitles,'1'),' | #(L(293))',''))</label>
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.