home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Skins
Skin Expressions: Localized or empty string in iif-expression
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="bta489" data-source="post: 1188489" data-attributes="member: 138471"><p>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 <em>iif </em>- Expression isn't cooperating. The line in question is something like this (I removed the working parts for clarity):</p><p>[CODE=XML]<label>#(iif(eq(#TVSeries.Episode.AvailableSubtitles,'1'),' | #(L(293))',''))</label>[/CODE]</p><p>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))'. </p><p></p><p>I had some success to display the correct string by enclosing the entire <em>iif</em>-Expression with the translation-Expression. But then if the iif-statement returns <em>false</em> instead of an empty string an error message is displayed in the label.</p></blockquote><p></p>
[QUOTE="bta489, post: 1188489, member: 138471"] 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 [I]iif [/I]- Expression isn't cooperating. The line in question is something like this (I removed the working parts for clarity): [CODE=XML]<label>#(iif(eq(#TVSeries.Episode.AvailableSubtitles,'1'),' | #(L(293))',''))</label>[/CODE] 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 [I]iif[/I]-Expression with the translation-Expression. But then if the iif-statement returns [I]false[/I] instead of an empty string an error message is displayed in the label. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
Skin Expressions: Localized or empty string in iif-expression
Contact us
RSS
Top
Bottom