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 |
Jump to:
Description
Patch attached - this patch is for the template.php in Zen - all subthemes would inherit.
| Attachment | Size |
|---|---|
| add-lang-class.patch | 405 bytes |

#1
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.