Add the current language to the body class

arcX - May 7, 2009 - 08:57
Project:Zen
Version:6.x-1.0-beta3
Component:PHP Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Issue tags:language
Description

Patch attached - this patch is for the template.php in Zen - all subthemes would inherit.

AttachmentSize
add-lang-class.patch405 bytes

#1

Matt V. - June 2, 2009 - 02:33

I'm not 100% sure this feedback applies because I'm not using Zen; however, I borrowed the zen_preprocess_page function for my own theme. I needed to also add the language body class, but I had to change $language->prefix to $language->language to get it to work. The $language->prefix variable was empty on my pages for some reason, but $language->language worked great.

 
 

Drupal is a registered trademark of Dries Buytaert.