products table: add language_id.

for language detection add lang in URl,
like: products/view/en/123... or somethin else.(so page could be
linked)
grab this "lang", find language id and select from products where
language:id....
put language_id in session etc.

This is not CAKE feature, but general web app design i think?!

On Feb 16, 4:38 pm, "peper" <[EMAIL PROTECTED]> wrote:
> Thanks.
> I read about i18n and PEAR::Translation2 packages, and I even found a
> cake component to use it. But it's not what I need.
> This all is about static content like menus, titles etc. For static
> content I can use built-in flash mechanism and this is not a problem.
> The problem is for dynamic content - f.e. products. I want to simply
> switch beetwen getting English products descriptions and Polish
> descriptions. I want to have one database, without duplicate Polish
> and English tables.
>
> I want to make something like I would make it in SQL:
> Once:
> SELECT name, descriptionEN AS description FROM products
>
> other time
> SELECT name, descriptionPL AS description FROM products
>
> Both times I've got the same product with 'name' and 'description'.
>
> Is something like this possible to make in Cake without using SQL
> statements?
>
> On Feb 15, 11:07 pm, Langdon Stevenson <[EMAIL PROTECTED]>
> wrote:
>
> > Hi peper
>
> > > Hi. I'm developing a Flash site using CakePHP+AMFPHP as a server back-
> > > end. The site will be multilingual. What would You suggest to do this?
>
> > I am working on a site with this requirement too.  My solution:
>
> > I Googled PHP i18n solutions.  I now have a function that is similar to
> > the Cake i18n component, except that it keeps the translated text in a
> > database, rather than in translation files.
>
> > This means that the piece/s of text retrieved from the database are set
> > according to the user's web browser's default language.  I implemented
> > this about 11 months ago, so didn't have the benefit of recent Cake
> > development.
>
> > If I were you I would have a look at i18n.  This stuff has all been done
> > before, so no need to re-invent the wheel.
>
> > Regards,
> > Langdon


--~--~---------~--~----~------------~-------~--~----~
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