On Feb 3, 2011, at 23:52, Joffin Joy wrote: > I followed this tutorial below to implement Multilingual Support in > cakePHP: > > I want to get english to spanish translation. > > As i can see it is using i18n but i have no table for i18n in my > website.
Localization support for static strings in CakePHP does not use a database table; it uses gettext po files, as explained further down in the information you quoted: > Now all you have left is to create the language files. Go to app/ > locale and create 2 folders: rum and en. In each of these folders > create another folder called LC_MESSAGES. In the LC_MESSAGES folders > you will now store the language files. Language files can be divided > so it’s easier for you to store the translations ( .po files ). > > For example, you can create a login.po, register.po, account.po and > default.po. > > In the language files you have to set the message id and message > string. > > English > > msgid "hello" > msgstr "Hello" > > Romanian > > msgid "hello" > msgstr "Buna ziua" po files are text files, but are typically not edited in a plain text editor, but instead in a dedicated po file editor. I use poEdit which works pretty well. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
