possible to change align based on text language?
#1
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.
Reply
#2
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
Reply
#3
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"?>
Reply
#4
using the System.Language infolabel might be a bit easier...

<visible>StringCompare(System.Language,Hebrew)</visible>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
ronie Wrote:using the System.Language infolabel might be a bit easier...

<visible>StringCompare(System.Language,Hebrew)</visible>

actually i don't think so. this will only show if you using Hebrew interface.
i'm using an English interface but in my movies library I've got few movies with Hebrew info. so the first solution is a little more complex but do exactly what I want.
Reply
#6
you're right, i misinterpreted your question. ;-)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
if it works for You, You can publish conditions code here so skinners could implement this in their skins Smile
Reply
#8
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.
Reply

Logout Mark Read Team Forum Stats Members Help
possible to change align based on text language?0