Re: dynamic internationalization -->multilanguage website

2007-09-22 Thread cakeFreak

Cheers guys,

I also found the new P28n behavior tutorial and code very usefull for
static translation/lang switch.

http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial

dan

On 11 Set, 08:25, the_woodsman <[EMAIL PROTECTED]> wrote:
> Unless I've misunderstood, I think what you are looking for is the
> Model Translate behaviour, a related part of the new
> internationalisation features of 1.2.
>
> On Sep 10, 6:11 pm, francky06l <[EMAIL PROTECTED]> wrote:
>
> > Well you can use the current language ('Config.language') to set it in
> > your DB and then use the current language as a condition when
> > querying. In anyway that will force the user to enter his post in the
> > language he decided to display the page ...Unless you can detect the
> > language from the fields in the post ...but that's another story.
>
> > On Sep 10, 8:56 pm, cakeFreak <[EMAIL PROTECTED]> wrote:
>
> > > hey guys, sorry for my late replay, and cheers for your help.
>
> > > I'll try to be less cryptic.
>
> > > Let's take a multilingual website with a specular section in language
> > > 1 (italian), and language 2 (english). When in other circumstances I
> > > was in this kind of situation I used to add an extra "language field"
> > > in the DB, that was "it" when I was posting in Italian, and "en" when
> > > posting in English.
>
> > > When an user was surfing the API in english, the system was retrieving
> > > posts marked with the language field "en", while it was retrieving
> > > posts marked with "it" when the user was broasing the API clicking the
> > > italian flag.
>
> > > Has the "i18n" library been set in order to handle the problem I
> > > described above?
>
> > > cheers Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Re: dynamic internationalization -->multilanguage website

2007-09-10 Thread the_woodsman

Unless I've misunderstood, I think what you are looking for is the
Model Translate behaviour, a related part of the new
internationalisation features of 1.2.






On Sep 10, 6:11 pm, francky06l <[EMAIL PROTECTED]> wrote:
> Well you can use the current language ('Config.language') to set it in
> your DB and then use the current language as a condition when
> querying. In anyway that will force the user to enter his post in the
> language he decided to display the page ...Unless you can detect the
> language from the fields in the post ...but that's another story.
>
> On Sep 10, 8:56 pm, cakeFreak <[EMAIL PROTECTED]> wrote:
>
> > hey guys, sorry for my late replay, and cheers for your help.
>
> > I'll try to be less cryptic.
>
> > Let's take a multilingual website with a specular section in language
> > 1 (italian), and language 2 (english). When in other circumstances I
> > was in this kind of situation I used to add an extra "language field"
> > in the DB, that was "it" when I was posting in Italian, and "en" when
> > posting in English.
>
> > When an user was surfing the API in english, the system was retrieving
> > posts marked with the language field "en", while it was retrieving
> > posts marked with "it" when the user was broasing the API clicking the
> > italian flag.
>
> > Has the "i18n" library been set in order to handle the problem I
> > described above?
>
> > cheers Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Re: dynamic internationalization -->multilanguage website

2007-09-10 Thread francky06l

Well you can use the current language ('Config.language') to set it in
your DB and then use the current language as a condition when
querying. In anyway that will force the user to enter his post in the
language he decided to display the page ...Unless you can detect the
language from the fields in the post ...but that's another story.

On Sep 10, 8:56 pm, cakeFreak <[EMAIL PROTECTED]> wrote:
> hey guys, sorry for my late replay, and cheers for your help.
>
> I'll try to be less cryptic.
>
> Let's take a multilingual website with a specular section in language
> 1 (italian), and language 2 (english). When in other circumstances I
> was in this kind of situation I used to add an extra "language field"
> in the DB, that was "it" when I was posting in Italian, and "en" when
> posting in English.
>
> When an user was surfing the API in english, the system was retrieving
> posts marked with the language field "en", while it was retrieving
> posts marked with "it" when the user was broasing the API clicking the
> italian flag.
>
> Has the "i18n" library been set in order to handle the problem I
> described above?
>
> cheers Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Re: dynamic internationalization -->multilanguage website

2007-09-10 Thread cakeFreak


hey guys, sorry for my late replay, and cheers for your help.

I'll try to be less cryptic.

Let's take a multilingual website with a specular section in language
1 (italian), and language 2 (english). When in other circumstances I
was in this kind of situation I used to add an extra "language field"
in the DB, that was "it" when I was posting in Italian, and "en" when
posting in English.

When an user was surfing the API in english, the system was retrieving
posts marked with the language field "en", while it was retrieving
posts marked with "it" when the user was broasing the API clicking the
italian flag.

Has the "i18n" library been set in order to handle the problem I
described above?

cheers Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Re: dynamic internationalization -->multilanguage website

2007-09-07 Thread dardosordi

Look at the "How to add i18n support?" section. in
http://groups.google.com/group/cake-php/web/frequent-discussions .

On Sep 7, 1:46 pm, francky06l <[EMAIL PROTECTED]> wrote:
> I do not really understand "I mean for example retrieving/storing a
> post content in English or
> another language depending on the stored locale in sessions. ".. If
> the post is entered only once you'll have one occurrence of it.
>
> i18n will not translate your captured data  in cake. The user can
> choose the Spanish language and enter the data in English for example.
> Concerning the database itself, I always use UTF-8 as encoding, that
> permit to store all languages.
>
> hope this helps
>
> On Sep 7, 4:01 pm, cakeFreak <[EMAIL PROTECTED]> wrote:
>
> > Hey guys,
>
> > cheers for the clues on how to use l10n (http://groups.google.com/
> > group/cake-php/browse_frm/thread/1edcbbaed20657b9/13afbe9841b91314?
> > #13afbe9841b91314). This will be super in order to handle static
> > language messages.
>
> > But what about retrieving content in database for different languages?
> > I mean for example retrieving/storing a post content in english or
> > another language depending on the stored locale in sessions.
> > How does i18n works?
>
> > Cheers
>
> > Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Re: dynamic internationalization -->multilanguage website

2007-09-07 Thread francky06l

I do not really understand "I mean for example retrieving/storing a
post content in English or
another language depending on the stored locale in sessions. ".. If
the post is entered only once you'll have one occurrence of it.

i18n will not translate your captured data  in cake. The user can
choose the Spanish language and enter the data in English for example.
Concerning the database itself, I always use UTF-8 as encoding, that
permit to store all languages.

hope this helps

On Sep 7, 4:01 pm, cakeFreak <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> cheers for the clues on how to use l10n (http://groups.google.com/
> group/cake-php/browse_frm/thread/1edcbbaed20657b9/13afbe9841b91314?
> #13afbe9841b91314). This will be super in order to handle static
> language messages.
>
> But what about retrieving content in database for different languages?
> I mean for example retrieving/storing a post content in english or
> another language depending on the stored locale in sessions.
> How does i18n works?
>
> Cheers
>
> Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



dynamic internationalization -->multilanguage website

2007-09-07 Thread cakeFreak


Hey guys,

cheers for the clues on how to use l10n (http://groups.google.com/
group/cake-php/browse_frm/thread/1edcbbaed20657b9/13afbe9841b91314?
#13afbe9841b91314). This will be super in order to handle static
language messages.

But what about retrieving content in database for different languages?
I mean for example retrieving/storing a post content in english or
another language depending on the stored locale in sessions.
How does i18n works?

Cheers

Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---