Jump to content

changing direction in middle east language


goldman
 Share

Recommended Posts

hi firends, i need help . how i can make my site with 2 language .on english and one persian.in persian language alphabet is right to left but in english is left to right

how i can make this change in my site ( in my template)

thanks

Link to comment
Share on other sites

hi my firend.

i need to know how i can make an if code for this.for example when using persian language template loading main-fa.css.

i wrote this code but thats not working

<?php if($language == 'fa') : ?>
<link rel="stylesheet" href="<?php echo $config->urls->templates?>css/main-fa.css?v=2.5" type='text/css'>

<?php endif; ?>

Link to comment
Share on other sites

I'm used to retrieve the current language from $user->language. I'd personally prefer to write such conditional code like this, but that probably doesn't make a difference:

<?php
if($user-language == 'fa')
	echo "<link rel='stylesheet' href='{$config->urls->templates}css/main-fa.css?v=2.5' type='text/css'>";
?>

Did you verify that your $language is actually set to "fa"?

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...