diff -r 447b31a38a7a i18n.module --- a/i18n.module Wed Dec 16 09:33:45 2009 -0800 +++ b/i18n.module Wed Dec 16 09:36:55 2009 -0800 @@ -487,6 +487,20 @@ } /** + * Implementation of hook_preprocess_page(). + * + * Add the language code to the classes for the tag. Unfortunately, some + * themes will not respect the variable we're modifying to achieve this - in + * particular, Garland and Minelli do not. + */ +function i18n_preprocess_page(&$variables) { + if (isset($variables['body_classes'])) { + global $language; + $variables['body_classes'] .= ' i18n-' . $language->language; + } +} + +/** * Implementation of hook_exit(). */ function i18n_exit() {