Hi,

Cakephp can do translation with it's built in translate behaviour.

import into your sql database i18n.sql

in the models that has information that requires translation add

var $actsAs = array('Translate' => array([This Array Holds All Fields
that should be translated]));

all the fields in the above array should not be created in the model
table.

read up on this
http://teknoid.wordpress.com/2008/11/28/cakephp-url-based-language-switching-for-i18n-and-l10n-internationalization-and-localization/

that will show you how to set the languages and the model will get the
data with the currently set language.

On 5 Dec, 14:43, Günther Theilen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> in an application I use cake's l10n class which works fine.
> Now I want to be able to edit some of the translations from within the
> application.
> I'd like to use the __()-function but it should get the translations
> from a database table instead the po-files.
>
> Has someone already done something like this and can give me a hint how
> to start?
>
> Or is there another more cake-like approach to do something like this?
>
> Regards
> Guenther
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to