6
Maybe this is the right solution for you. Create a CSS file for every language you want to use. Save them on the server. Then edit include/initcode.php and replace this code:
le="color: #000000"><?php if ($moduleConfig['tinyedcss'] == '') { $fallbackcssfile = str_replace(XOOPS_THEME_URL, XOOPS_THEME_PATH, xoops_getcss($xoopsConfig['theme_set'])); $handle = fopen ($fallbackcssfile, "r"); $buffer = fgets($handle); $pos = strpos ($buffer, "@"); if ($pos === false) { echo 'content_css: "'.xoops_getcss($xoopsConfig['theme_set']).'",'; fclose($handle); } else { $buffer = preg_replace('/(.*)(|)(.*)/msU', '', trim($buffer)); $buffer = str_replace(';', '', $buffer); $fallbackcssfile = str_replace(XOOPS_THEME_PATH, XOOPS_THEME_URL, $fallbackcssfile); $cssfilename = end(explode("/", $fallbackcssfile)); $fallbackcssfile = str_replace($cssfilename, $buffer, $fallbackcssfile); fclose($handle); echo 'content_css: "'.$fallbackcssfile.'",'; } } else { echo 'content_css: "'.XOOPS_URL.$moduleConfig['tinyedcss'].'",'; }
with this code:
le="color: #000000"><?php echo 'content_css: "'._MD_TINY_CSS.'",';
Save it and upload the file. Then edit main.php for every language and insert something like this:
le="color: #000000"><?php define("_MD_TINY_CSS","http://www.thepathtothelanguagespecific.css");
The language specific css file should contain e.g.:
le="color: #000000"><?php body { background-color: white; font-family: Tahoma; font-weight: normal; font-size: 16px; line-height: 120%; } and so on and so forth...
HTH