I'm trying to edit an RSS reader taken from Chromosphere so that it detects the feed's language and changes the RSS window text direction accordingly.
What I want is that if I detect let's say Hebrew it will change the text direction to RTL.
I've succeeded in detecting the language searching for the language tag:
-- Get language of Feed
_, _, feed_lang = data:find("<language.->(.-)</language.->")
Now I would like to do something like:
if (feed_lang == "he") then
-- Change the text direction in the Chromosphere RSS window...
The question is how can I make that change?
Thanks for any help...