CakePHP 1.2 uses gettext for i18n, which places the contents on text files,
as you can read here:

http://ar.php.net/gettext

So if you need your text elements to be on a database (thus allowing your
application to easily modify them) you'll need to implement i18n DB support
by yourself, or better yet integrate an existing i18n DB based package on
Cake.

Since I needed i18n DB support on my app, which is currently running on
CakePHP 1.1.12 I'm using PEAR::Translation2 available at:

http://pear.php.net/package/Translation2

There may be better i18n packages (I've used others in the past) but I'm
always inclined to use PEAR packages.

Simply installing it as a PEAR library on your vendors dir, and then
building a small component (so your controllers don't know about the
internals of Translation2, making it easier to change the library in the
future) to fetch the text elements will do the trick.

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Richard
Enviado el: Domingo, 04 de Febrero de 2007 07:42 a.m.
Para: Cake PHP
Asunto: i18n 1.2 - database tables

I would like to create a multi-lingual website with editable content
through a CMS. Will this be possible with release of 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to