Welcome, Guest
Please Login or Register.    Lost Password?

RTL text direction upon RTL language detection
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: RTL text direction upon RTL language detection
#17599
RTL text direction upon RTL language detection 2 Years ago  
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...
akrabi
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#17600
Re: RTL text direction upon RTL language detection 2 Years ago  
Never mind, solved.
akrabi
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop