For your problem you could define some associations (somewhere in config for ex) like :
$languages_assoc = array( 'es-es' => 'es-es', 'spa' => 'es-es', etc.... ); and the modify the code of site\libs\l10n.php, in function __autoLanguage() put something like isset($languages_assoc[$this->locale]) ? $this->locale = $languages_assoc[$this->locale] : '' ; I didn`t tested its just an ideea. This could work until is solved in other way. On Jul 24, 4:27 pm, Gorka <[EMAIL PROTECTED]> wrote: > I'm also trying to figure this out. There are a couple of threads on > the subject anyway, though I believe nobody has yet managed to do > this. Not in a clean way. > > There's also another issue I've found working with i18n, apart from > the known fact that find operations won't return anything if there are > i18n definitions missing for the model (instead of returning an empty > field which would be the expected result). In my machine at least, > Firefox and IE use differente locale settings: es_es for Firefox and > spa for IE. This means that any record inserted from IE will be > invisible for Firefox and viceversa if you rely on TranslateBehaviour > locale autodetection. Maybe it's just me, because it looks like a > really big issue to be the first reporting it. > > Please, let me know if you manage to work this out. > > On 24 jul, 12:58, adevaratu <[EMAIL PROTECTED]> wrote: > > > > > For the site I`m currently working on I am using cake 1.2`s i18N > > functionality. I was wondering how can be done saving different > > translations at same time. > > For example : admin can add a category, wich title is defined: > > var $actsAs = array('Translate' => array('title')); > > When admin is adding new category, I want to save at same time > > translated content for different languages (coming from diferent input > > fields). > > > Can this be done in some way using model->save or I have to enter > > manualy each fields?- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---