I am trying to build a multilingual site with 2 CSS Resource in Revo (localy with Xampp).
There is a problem with changing the default output of the TVs (in a Resource) that are supposed to change parts of the CSS.
I created a normal multilingual site and followed these instructions
http://www.class-zec.com/en/blog/2011/seo-friendly-multilingual-websites-with-modx-and-babel.html.
After making 2 Contexts for german and english pages (web, en), creating the "BabelGateway" Plugin, and changing the .htaccess I created 2 CSS Resources.
"BabelGateway" Plugin:
<?php
if($modx->context->get('key') != "mgr"){
/* grab the current language from the cultureKey request var */
switch ($_REQUEST['cultureKey']) {
case 'en':
/* switch the context */
$modx->switchContext('en');
break;
default:
/* Set the default context here */
$modx->switchContext('web');
break;
}
/* unset GET var to avoid
* appending cultureKey=xy to URLs by other components */
unset($_GET['cultureKey']);
}?
.htaccess changes:
# The Friendly URLs part
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# The new Friendly URLs part for Babel 2.2
# detect language when requesting the root (/)
RewriteCond %{HTTP:Accept-Language} !^de [NC]
RewriteRule ^$ en/ [R=301,L]
RewriteRule ^$ de/ [R=301,L]
# redirect all requests to /en/favicon.ico and /de/favicon.ico
# to /favicon.ico
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|de)/favicon.ico$ favicon.ico [L,QSA]
# redirect all requests to /en/apple-touch-icon.png and /de/apple-touch-icon.png
# to /favicon.ico
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|de)/apple-touch-icon.png$ apple-touch-icon.png [L,QSA]
# redirect all requests to /en/assets* and /de/assets* to /assets*
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|de)/assets(.*)$ assets$2 [L,QSA]
# redirect all other requests to /en/* and /de/*
# to index.php and set the cultureKey parameter
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(en|de)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA]
Contexts and CSS Resources:
I then created multiple TVs for changing parts of the CSS Resources... for example for the default Font:

Template Access is checked.
When I want to change the Value in ’Home’ Resource, it shows me the Default Value as expected...

...but changing the Value doesn’t do anything...
When I look at the site it still outputs the default value.
I tested the TV by placing it somewhere in the Template just to see what it spits out... and there, it showed me the modified value.
Could this possibly be a bug or did I miss something here? the site works without any problems... only I can’t seem to change the TVs for the CSS Resources.
Did anyone have similar Problems and how can I fix this? Help is much appreciated.
--------------
MODx Revolution 2.0.7-pl (traditional)
XAMPP 1.7.3 (PHP 5.3.1, mysql 5.1.41)