Thread Starter
yanoom
(@yanoom)
SjoerdKoelewijn- Thanks for your reply!
As the article suggests, I need to understand how to turn the theme translatable using _e() and __() functions and creating a POT file (and .po/.mo files for each language)
=/
I wonder if this is the easiest (/most straightforward) way…
Hi Yanoom,
Sorry, I might not have been clear. What I was referring to was this bit:
Neverthless, this idea is great if you want to select different CSS files for each active language.
Just add something like this in your theme’s header.php:
<style type="text/css" media="screen">
<!-- @import url( <?php bloginfo('template_directory'); ?>/styles/<?php get_bloginfo('language'); ?>.css ); -->
</style>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/styles/<?php get_bloginfo('language'); ?>.css"
type="text/css" media="screen" />
This way you can load two different stylesheets. One for hebrew and one for english. Another possibility is to add <?php get_bloginfo(‘language’); ?> as a class to your body tag.
<body class="<?php get_bloginfo('language'); ?>">
That way you can declare both fonts in one stylesheet like so:
.en {font-family:english-font;}
.he {font-family:hebrew-font;}