I just want to share some more information may help to find what's wrong with BabelTranslation.
As mentioned I use three languages - English, Armenian and Russian.
Do you think the problem could be the language(s) don't come with Babel and something needs to be configured additionally (well except lexicon)?
All resources I added linked and works correctly.
The contexts added and below please the gateway plugin I'm using.
<?php
if($modx->context->get('key') != "mgr"){
/* grab the current langauge from the cultureKey request var */
switch ($_REQUEST['cultureKey']) {
case 'en':
/* switch the context */
$modx->switchContext('eng');
break;
case 'am':
/* switch the context */
$modx->switchContext('arm');
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 file also updated related with Friednly URLs
# The Friendly URLs part
# detect language when requesting the root (/)
RewriteCond %{HTTP:Accept-Language} !^(en|am|ru) [NC]
RewriteRule ^$ am/ [R=301,L]
RewriteRule ^$ ru/ [R=301,L]
RewriteRule ^$ en/ [R=301,L]
# redirect all requests to /en/favicon.ico /ru/favicon.ico and /am/favicon.ico
# to /favicon.ico
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|ru|am)/favicon.ico$ favicon.ico [L,QSA]
# redirect all requests to /en/assets* /ru/assets* and /am/assets* to /assets*
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|ru|am)/assets(.*)$ assets$2 [L,QSA]
# redirect all other requests to /en/* /ru/* and /am/*
# to index.php and set the cultureKey parameter
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(en|ru|am)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA]
.
Please let me know if you need any idea how to get BabelTranslation working.
Thank you!