hostpolis Posted August 21, 2009 Share Posted August 21, 2009 Dear All, I'm willing to have my site in RTL and LTR languages. There seems to be a problem with that: when having everything in English, the site is in english and text alignments are left to right. I've added the following code to my header.tpl to make RTL languages Right to Left and it works fine: {if $language eq "Arabic"}<html dir="rtl">{else}<html>{/if} BUT! because the css text alignment is text-align=left, all div contents are again aligned in left instead of right. Please advise what I should do to fix it! Regards 0 Quote Link to comment Share on other sites More sharing options...
mchebaro Posted February 19, 2010 Share Posted February 19, 2010 Hello You may also include a different css file for Arabic, in wich you align text to right: You may try this: {if $language eq "Arabic"}<html dir="rtl"> <link href=" ../templates/template_rtl.css" rel="stylesheet" type="text/css" /> {else} <html> <link href=" ../templates/template.css" rel="stylesheet" type="text/css" /> {/if} Best Regards 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.