0 points,
2865 views
(this post is work in progress)
How to internationalize (i18n) Drupal css for different languages
I needed to simply display a different hompage image based on the user language
add preprocess_page function to template.php
Disabled css optimization from the Drupal -> Site Configuration menu to allow reading of the theme styles, not the cached/compiled versions.
created a "/site/themes/MYTHEME/css/styles_en.css" and a "/site/themes/MYTHEME/css/styles_es.css"
uncommented the 'drupal_flush_all_caches()' function call to allow re-assessment of template.php and the new function changes
removed/commented the css background-image lines from styles.css and moved these clauses to the language specific css files
Comments