Hi Vlad,
I don't quite undertstand, but:
Switching tables would be something that you would do yourself - the
locale package I wrote doesn't take care of this (note that for 1.2 it
is planned to take care of translating db content).
There is a 'feature' of the locale package which has existed since the
beginning ( Perhaps I should make one last update) in that it does not
run the controller method if there is an alternate language view file.
If you want to run controller methods and use different view files I
would suggest:
1) removing the line of code from the compoent that calls render and
"die"
2) try some code like this in your app controller:
function render($action = null, $layout = null, $file = null) {
$action = $action?$action:$this->action;
if (strpos($action,"_")===false) {
$action = $this->Inflector->underscore($action);
} else {
$action = low($action);
}
if (!$file) {
$Code = $this->Locale->_getCode (false);
if ($Code) {
$i18nFile =
VIEWS.$this->name.DS.$action."_".$Code.".thtml";
if (is_file($i18nFile)) {
$file = $i18nFile;
}
}
}
parent::render($action,$layout,$file);
}
With that you should at least make some progress.
HTH,
AD7six
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---