CSS Injector does not support language prefix (i18n-Module)

druppi - October 24, 2008 - 05:45
Project:CSS Injector
Version:6.x-1.3
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

i18n-Module is installed and language prefixes are set for each language.
I want to add language dependent css using CSS Injector (wonderful module). But when I add "en/*" (without the quotation marks, of course) to the "Pages" field, nothing happens. It seems to be a similar bug as described in #157698.

#1

druppi - October 24, 2008 - 11:33
Title:CSS Injector does not support laguage prefix (i18n-Module)» CSS Injector does not support language prefix (i18n-Module)

Sorry, the correct reference must read #157698: Problem using wildcard for i18n Language Theme.

#2

Pasqualle - November 4, 2008 - 16:59

This is not a bug, this does not work in D6 core either. The language prefix is not considered as part of the path.

but, you can use this php code:

<?php
global $language;
return (
$language->language == 'en')
?>

 
 

Drupal is a registered trademark of Dries Buytaert.