CSS stylesheet depending on current language


Rakesh Kumar

function mytheme_preprocess_page(&$vars, $hook) {
 //Before You will use this code You must create an indvidual stylesheet for each language
  $lang_css_path = path_to_theme() . '/css/style_' . i18n_get_lang() . '.css';
  drupal_add_css( $lang_css_path, 'theme', 'all', FALSE);
  $vars['styles'] = drupal_get_css();

}

View original post

Advertisements

One thought on “CSS stylesheet depending on current language

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s