Keyword

two directions

  • Fares
  • Fares's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 4 months ago #96989 by Fares
two directions was created by Fares
Hi,

 

First of all, thank u very much for this nice extention, it's very powerfull, and helped me a lot.


I want to build bilingual site (Arabic + English), so I need to make the component support the both directions (rtl + ltr). My question is:

How can I make the component calls different CSS file for each language...???

I made a file called k2_rtl.css, and there is the original one: k2.css, is there any code I can use to achieve my goal, and which file I need to modify???

 

Thanks in advance

regards

Please Log in or Create an account to join the conversation.

  • Fares
  • Fares's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 4 months ago #96990 by Fares
Replied by Fares on topic two directions
help me please!

I need this feature so mych

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #96991 by Xcantion
Replied by Xcantion on topic two directions
yes that would be intressting...

Please Log in or Create an account to join the conversation.

  • Fares
  • Fares's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 3 months ago #96992 by Fares
Replied by Fares on topic two directions
Hi;

I found the code, but have no experiance in php:

// k2.css            if(JFile::exists(JPATH_SITE.DS.'templates'.DS.$mainframe->getTemplate().DS.'css'.DS.'k2.css'))                $document->addStyleSheet(JURI::root().'templates/'.$mainframe->getTemplate().'/css/k2.css');            else                $document->addStyleSheet(JURI::root().'components/com_k2/css/k2.css');        }

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #96993 by Pretheesh Thomas
Replied by Pretheesh Thomas on topic two directions
do u need it to detect the language? or do you have different Arabic and English pages? If your case is the second one, you can use a css switcher like css2switch to choose different template css for arabic page....

Please Log in or Create an account to join the conversation.

  • Fares
  • Fares's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 3 months ago #96994 by Fares
Replied by Fares on topic two directions
Thanks for your replay!

 

I really don't know what it is css2switch, is it a plugin??

 

I need the component to detect the direction of the page (language), if it is Arabic (RTL) it should call k2_rtl.css. If not, it shoud use the default k2.css

 

thanks

Please Log in or Create an account to join the conversation.

  • Fares
  • Fares's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 3 months ago #96995 by Fares
Replied by Fares on topic two directions
Any Idea??!!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum