i18n support
Hello, can you add support for i18n or at least point me in the right direction of doing so?
I'll try to explain how i have things setup:
Right now, my field names are being created like so: (example)
Form->input('Rotator.text.'.$lang, array('label' => __('Rotator Text'))); endforeach; ?>This is for the fields i need translation in. The translate behaviour uses these field names and populates the i18n table correctly. So far i haven't had the need to add different images by language so i was just adding an image before the locale foreach loop which just created a single non translated field (ie:without a correspondent entry on the i18n table)
Now if I add the image field inside the same loop: (example)
Form->input('Rotator.image.'.$lang, array('type' => 'file', 'label' => __('Rotator'))); echo $this->Form->input('Rotator.text.'.$lang, array('label' => __('Rotator Text'))); endforeach; ?>the images aren't being uploaded, I'm guessing because I'm using "image" as the field name on the behaviour settings and the image is no longer just a field but an array of images separated by language ('eng','por','fra', etc) etc.
Is there anyway I can like add an extra loop on your behaviour to make it upload all images under the image fieldname or something? Can you give me some input or hints on this?
Thanks you.