Hi there.
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:
| Code: |
-- Get language of Feed
_, _, feed_lang = data:find("<language.->(.-)</language.->")
|
It works.
Now I would like to do something like:
| Code: |
if (feed_lang == "he") then
-- Change the text direction in the Chromosphere RSS window...
end
|
The question is how can I make that change?
Thanks for any help...
