I must say that cakephp (using the 1.3 version because project was set up with that) has a strange concept of i18n.
I did translate the static strings with success, but the dynamic ones.. cake's ideas how to manage multilingual content seems a bit, let's say, awkward to me.
I did set up the i18n table (will split that up in several tables later when I got it working) and attached the translate behavior to the desired models.
So far so good, then, in the add-actions I added a select field containing the locales (en_us, de_de...) so that the user can decide which one to save.
Before saving the records, I did a $this->Modelname->locale = $locale;
to tell the model which locale to use.
The record gets saved successfully, but, here come the problems:
- I have an index-action with a lot of records, I want the user to have the possibility to have different translations for each item (let's say: one item is translated into English(us) and German, another is translated into English(us), Italian and French, how can I give the user the possibility to edit/delete single translations?
- I did use the
$this->Modelname->bindTranslation(...)
inside actions where I needed to get the locale names (which translations existed) so that the user can decide which one to edit, is there another, more elegant way to accomplish this? Also, when i do this:$this->Modelname->bindTranslation(...);
and then instead of using the find() method, I use the paginate(), it does not return any translations...