Felix Geisendörfer wrote:
> It's insane!
I have to agree with every word in Your post, Felix.
For all experimentators with variable $from_url in
app/config/routes.php - dont't forget some things:
--> caching mechanism is URL based, so if You will play with URI in
bootstrap.php and with $from_url in routes.php, I'm 'not sure' about
filenames of Your cached views
--> if You're using some 'shortcuts' like $Route->connect('/login',
array('controller'=>'users', 'action'=>'login')), You will probably
want to translate them also...
--> if You want complex solution, You will have to play with
app/config/inflections.php also...
--> whole this thing is supposed to be builded around stable
browser-language detection, default language configuration option,
method for saving selected language (session and/or cookie and/or
something else for wap etc) AND - file/model based unified translation
system - to be honest I'm pretty sure this is 'more then possible' ;-)
in this time - with CakePHP actual trunk code, with classes I18n and
L10n from 1.2 branch, some patch to cake/basics.php file, with some
LanguageSelector component and model-based solution with usage of
bindModel() and unbindModel(), with custom validation methods... ;-)
BTW: More I know Cake's code, more I like it. And there are such a
sweet things on the road:
- Router will be enhanced in next few days...
- behaviours implementation is just knocking on the door...
SHORT VERSION OF THIS POST:
Wait for CakePHP 1.2
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---