> Or is their any facility in cakephp like, i enter only English > information and it is saved in both language.
The developers working on the Cake core are smart, but don't hold your breath :) What you are aiming for is two different things. 1. Translations of your application's "static" texts. All the button- labels, Flash-messages and things. This is very simple. All the steps are explained in the manual and countless blogs about l10n, i18n.... Most of the hard work consists of creating the translation files and make them include valid plural definitions. This can be found for most languages online (forgot where) but leaving it as-is will work for straight singular translations. I think i use the absolutely least sofisticated way of switching languages. I have an action that simply sets a cookie with the language and redirects you back to the "previous" page. This cookie is then read in bootstrap.php and the language set. 2. Translations of dynamic content. Blog-posts, CMS-pages, shop- products... whatever your app contains. Cake has a behaviour to help you out with this. It is called Translate and using it is also described, step by step, in the manual. I haven't used this on any project so I don't know if there are any common pit-falls. The docs look straight forward though. http://book.cakephp.org/view/92/Translate > I have to add each product, category and its related information 2 > times...or manage it in other way...! Using translate you don't have to create duplicate products, but you do have to write and save two descriptions, names... This can be done from a single form if you fiddle a little. Translate works by magically replacing fields so you will still have only your normal setup of Models and records. You will need to specify what exactly part of these things is not working for you to get better help. This is a big topic. On Mar 11, 10:54 am, Sensible <[email protected]> wrote: > Hi, > > I want to support multiple languages on my site. > > I read through docs for that, but i am confused how to do that. > > First my requirements. > > I have shopping cart application. > > I want multiple language support for my site with following features. > > 1. I am uploading products and its related information. > 2. I have categories with information. > 3. And suppose articles. > > I want to use 2 languages in my application. 1 English 2. Arabic. > > And i want to manage all the things from database. > If any other option is available than i can accept that. > > So what i have to do for that..? > > I have to add each product, category and its related information 2 > times...or manage it in other way...! > > Or is their any facility in cakephp like, i enter only English > information and it is saved in both language. > > Waiting for reply. > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
