Hi every one,
Is it possible to have different styles for each language?
If yes then how can I do that..
Please help
spottedhog Captain
Joined: Apr 30, 2004
Posts: 566
Posted:
Sat May 20, 2006 2:02 am
ok..... first of all.... What is your intended end result?
You can create multiple style.css files with each having a unique name. Then the user can choose the style from their browser.... like from Firefox for example.
SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
CenCer Nuke Soldier
Joined: Nov 21, 2003
Posts: 13
Posted:
Sat May 20, 2006 2:59 am
My site uses two different languages, one in kurdish(latin char) and the other one is in Farsi, which is like the arabic characters.
My style.css using the same font, Tahoma for both languages.
Tahoma is good for the Farsi but not for the kurdish part. I want to use Verdana for this part.
How can I use Verdana in the kurdish part of the site and Tahoma in the Farsi part. That is my problem.
I maybe need to use two different style.css but how should I make header.php to understand that there is another style.css when changing the language?
spottedhog Captain
Joined: Apr 30, 2004
Posts: 566
Posted:
Sat May 20, 2006 3:29 am
Hi,
I am not sure if this would work, but in my fuzzy head this morning I think it just may work....
Create another style.css and rename it to farsi.css for example, and put it in the theme's style folder.
In the header.php file put $language in the globals.
Then below that where it echo's the stylesheet, replace it with:
Code:
if ($language == "farsi") {
echo "<link rel=\"StyleSheet\" href=\"themes/$ThemeSel/style/farsi.css\" type=\"text/css\">\n\n\n";
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum