Welcome, Guest
Please Login or Register.    Lost Password?

Changing text direction based on language
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Changing text direction based on language
#17542
Changing text direction based on language 2 Years, 2 Months 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
Last Edit: 2012/07/25 16:18 By akrabi.
The administrator has disabled public write access.
 
#17601
Re: Changing text direction based on language 2 Years, 2 Months 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