Posts: 411
Joined: Aug 2008
Reputation:
0
My library has item both in English and Hebrew.
Is it possible to tell what language is used and set a condition based on it?
What i'm trying to get is to align English to the left and Hebrew to the right.
Posts: 672
Joined: Aug 2010
Reputation:
13
pieh
Retired Team-Kodi Member
Posts: 672
just a wild guess:
make 2 text controls
in "Hebrew Control" align text to the right and use
<visible>SubString(info,HebrewChar1) | SubString(info,HebrewChar2) | ... and so on</visible>
and in the "Latin/Roman Control" use negation of this condition
Posts: 411
Joined: Aug 2008
Reputation:
0
2010-11-17, 22:17
(This post was last modified: 2010-11-17, 22:22 by psike.)
thank you for the answer, but I've tried a now different combinations for this substing and couldn't make thins work.
any other suggestions?
---edit---
i think it's work now...
the xml had to be converted to UTF-8
<?xml version="1.0" encoding="UTF-8"?>
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
using the System.Language infolabel might be a bit easier...
<visible>StringCompare(System.Language,Hebrew)</visible>
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
you're right, i misinterpreted your question. ;-)
Posts: 411
Joined: Aug 2008
Reputation:
0
yeah, I think it's working good... still trying to few stuff out.
I'm doing this for skin "Basic" to have full right-to-left support.
When i'm done and happy with it i'll publish this.