Re: How do I use i18n and l10n in CakePHP 1.2?

2007-05-03 Thread misho
the given msgid, else it > wil display the msgid given > use __("button_submit", true) to return the value as opposed to > echoing it > > I hope this saves others the time it took me to track it down. > > On Apr 13, 4:31 pm, "Aaron Thies" <[EMAI

Re: How do I use i18n and l10n in CakePHP 1.2?

2007-04-18 Thread [EMAIL PROTECTED]
out the msgstr for the given msgid, else it wil display the msgid given use __("button_submit", true) to return the value as opposed to echoing it I hope this saves others the time it took me to track it down. On Apr 13, 4:31 pm, "Aaron Thies" <[EMAIL PROTECTED]>

How do I use i18n and l10n in CakePHP 1.2?

2007-04-13 Thread Aaron Thies
I have been trying to find any kind of documentation on how to use i18n and l10n in CakePHP 1.2. Any help would be appreciated. -- Aaron Thies "When you're married you'll understand the value of fresh produce." - Tony Soprano --~--~-~--~~~---~-

I18n and Localization support

2007-03-27 Thread ks
We are building a site that needs to support multiple languages - content ( titles of topics etc), user names and DB strings etc. will be in multiple languages - including chinese. >From the information I found on the site, the 1.1 version will not support this right? Will the alpha version (1.2

Re: i18n language name

2007-03-22 Thread snowdog
I had similar problem, try __("TableFieldName", 0) In my case it was right solution. --~--~-~--~~~---~--~~ 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

Re: i18n language name

2007-03-22 Thread Hawk|
Ok, sorry found it myself. The problem resides in the xampp apache of my windows box. On the linux apache its working fine with the first example, __('your text',true); But its still wired why my qindows box is crashing with it. The error reports some errors on the zendoptimizer.dll. So i have to

Re: i18n language name

2007-03-22 Thread Hawk|
OK, this works for links and normal input fields without the helper. But if i use this: echo $form->input('fieldDefinitions/field', array('label'=> __("TableFieldName",true), 'size'=>'40'))."\n"; It crashes my Apache ?! I tried i

Re: i18n

2007-03-14 Thread Alexandre
I read this post. --~--~-~--~~~---~--~~ 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

Re: i18n

2007-03-14 Thread rtconner
You could start by reading what people have posted before.. http://groups.google.com/group/cake-php/browse_thread/thread/996b916448eb9d6a/ecdcdf40b16387ae?lnk=gst&q=i18n&rnum=1#ecdcdf40b16387ae --~--~-~--~~~---~--~~ You received this message because

i18n

2007-03-14 Thread Alexandre
How I can do the translations of fields of a database table? --~--~-~--~~~---~--~~ 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

Re: i18n language name

2007-02-23 Thread jitka
e($html->link(__("LABEL_TERMS_CONDITIONS", true), "/terms")); --~--~-~--~~~---~--~~ 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

Re: i18n language name

2007-02-23 Thread Stefan
Ok, I understand. Something about the __() function: I wanted to translate the title of a link : e($html- >link(__("LABEL_TERMS_CONDITIONS"), "/terms")); gives : Règles et Conditions, title outside the tags. The right solution : e($html->link(__("LABEL_TERMS_CONDITIONS", true), "/terms")); That

RE: i18n language name

2007-02-23 Thread Mariano Iglesias
be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de Stefan Enviado el: Viernes, 23 de Febrero de 2007 10:47 p.m. Para: Cake PHP Asunto: i18n language name

i18n language name

2007-02-23 Thread Stefan
Hi, The ISO language name for french is fra , fre. I made a directory app/locale/fra/LC_MESSAGES/ and put there a default.po and default.mo and followed the instructions about using i18n : $language = 'fra'; $this->Session->write('Config.language', $language); wi

RE: How to use i18n with database in CakePHP 1.2

2007-02-10 Thread Mariano Iglesias
BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de palPalani Enviado el: Sábado, 10 de Febrero de 2007 11:48 a.m. Para: Cake PHP Asunto: Re: How to use i18n with database in CakePHP 1.2 Thanks for you r

Re: How to use i18n with database in CakePHP 1.2

2007-02-10 Thread palPalani
Hi Kathrin, Thanks for you reply. Now i can able to translate static text using your answer. Can you provide database based i18n support in CakePHP. Once again thanks for your reply. thanks, palPalani. On 4 Feb, 15:58, "Kathrin" <[EMAIL PROTECTED]> wrote: > In CakeP

Re: i18n and routing (1.2)

2007-02-06 Thread Ámon Tamás
Ámon Tamás wrote: > Hello, > > I have a site, what I like to make multilangual and I like to change my > urls from /controller/action to /lng/controller/action. How can I make this? > Hmmm? There was a little example in the wiki about it, but I do not find in the new bakery. Is there a poss

Re: i18n 1.2 - database tables

2007-02-05 Thread Richard
ke views are not wrapped using > > PHP's gettext() function. > > > I found this useful for anyone else that is researching this topic: > >http://www.onlamp.com/pub/a/php/2002/06/13/php.html?page=1 > > > Thanks, Richard > > > On Feb 4, 9:31 pm, "Mariano Iglesia

i18n and routing (1.2)

2007-02-05 Thread Ámon Tamás
Hello, I have a site, what I like to make multilangual and I like to change my urls from /controller/action to /lng/controller/action. How can I make this? -- Ámon Tamás http://linkfelho.amon.hu --~--~-~--~~~---~--~~ You received this message because you are s

RE: i18n 1.2 - database tables

2007-02-04 Thread Mariano Iglesias
ro de 2007 03:58 p.m. Para: Cake PHP Asunto: Re: i18n 1.2 - database tables I have done some reading on gettext since your post and wondered if creating the pot files is possible using 'xgettext' command? since the strings that need translating in the cake views are not wrapped using PHP&

Re: i18n 1.2 - database tables

2007-02-04 Thread Larry E. Masters aka PhpNut
=1 > > Thanks, Richard > > On Feb 4, 9:31 pm, "Mariano Iglesias" <[EMAIL PROTECTED]> > wrote: > > CakePHP 1.2 uses gettext for i18n, which places the contents on text > files, > > as you can read here: > > > > http://ar.php.net/gettext > >

Re: i18n 1.2 - database tables

2007-02-04 Thread Richard
ne else that is researching this topic: http://www.onlamp.com/pub/a/php/2002/06/13/php.html?page=1 Thanks, Richard On Feb 4, 9:31 pm, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > CakePHP 1.2 uses gettext for i18n, which places the contents on text files, > as you can read here:

RE: i18n 1.2 - database tables

2007-02-04 Thread Mariano Iglesias
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 yoursel

Re: How to use i18n with database in CakePHP 1.2

2007-02-04 Thread Kathrin
In CakePHP 1.2 the function gettext is implement. You can write in cake/local/LCMESSAGE/DEU/ in the core.po datei your msgid and msgstring. Call msgfmt core.po >core.mo. Change in your view the source (your msgid) like __('msgid') thats all. http://www.gnu.org/software/gettext/ its realy simple Ka

i18n 1.2 - database tables

2007-02-04 Thread Richard
Hi, I would like to create a multi-lingual website with editable content through a CMS. Will this be possible with release of 1.2? The stuff I have read places all the text into files opposed to database tables. Thanks in advance, Richard --~--~-~--~~~---~--~~

Re: i18n 1.2

2007-02-01 Thread MBmax
Maybe they could make the route something like http://www.site.com / :lng / :controller /:action is $lng is not a good language then $lng will be set to the default lng of the browser On Feb 1, 11:12 am, "Na" <[EMAIL PROTECTED]> wrote: > For your question 2 : use of translation table isn't impl

Re: i18n 1.2

2007-02-01 Thread Na
For your question 2 : use of translation table isn't implemented at time, as you can see in file Translate.php On Jan 31, 9:49 am, Ámon Tamás <[EMAIL PROTECTED]> wrote: > Larry E. Masters aka PhpNut wrote: > > > > > $language = 'deu'; > > Configure::write('Config.language', $language); >

Re: How to use the new Cake PHP i18N and l10N

2007-01-31 Thread palPalani
Hi, Checkout the link, http://groups.google.com/group/cake-php/browse_thread/thread/2f9d4367bfd43f38/?lnk=igtc# On Jan 10, 12:05 am, "Sebastian Macias" <[EMAIL PROTECTED]> wrote: > Can anybody post a short example of this new feature usage? > > I found this in the bakery: > > "Its mostly automag

How to use i18n with database in CakePHP 1.2

2007-01-31 Thread palPalani
hi, I have found solution for implementing multilingual static content in CakePHP 1.2. I want to know, how to use database based multilingual content. please help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: i18n 1.2

2007-01-31 Thread Ámon Tamás
Larry E. Masters aka PhpNut wrote: > > $language = 'deu'; > Configure::write('Config.language', $language); > > > You can also use: > > $language = 'deu'; > $this->Session->write('Config.language', $language); > Thanks, bud I have a lot of other question about it: 1. I like the url'

Re: i18n 1.2

2007-01-30 Thread Michael Grunewalder
Thanks a lot :-) Larry E. Masters aka PhpNut wrote: > > I found one way, is that the proper way? > > > The correct way would be: > > $language = 'deu'; > Configure::write('Config.language', $language); > > > > -- > /** > * @author Larry E. Masters > * @var string $userName > * @param string

Re: i18n 1.2

2007-01-30 Thread Larry E. Masters aka PhpNut
> $language = 'deu'; > Configure::write('Config.language', $language); > You can also use: $language = 'deu'; $this->Session->write('Config.language', $language); -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public

Re: i18n 1.2

2007-01-30 Thread Larry E. Masters aka PhpNut
> I found one way, is that the proper way? The correct way would be: $language = 'deu'; Configure::write('Config.language', $language); -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ --~--~-~--~--

Re: i18n 1.2

2007-01-30 Thread Michael Grunewalder
; } Michael Grunewalder wrote: > That was a good start. Thanks. > How do I select a language so that the user can change the language > while browsing.? > thanks in advance :-) > Kaste wrote: > >>> How does working this i18n feature in 1.2? I like to make a multilang

Re: i18n 1.2

2007-01-30 Thread Michael Grunewalder
That was a good start. Thanks. How do I select a language so that the user can change the language while browsing.? thanks in advance :-) Kaste wrote: >> How does working this i18n feature in 1.2? I like to make a multilangual >> site with it... >> >> > &

Re: i18n 1.2

2007-01-30 Thread Kaste
> > How does working this i18n feature in 1.2? I like to make a multilangual > site with it... > first steps should be easy. in your view [index.ctp] create /app/locale/deu/LC_MESSAGES/default.po (** deu = your LANGUAGE code **) [default.po] msgid "Hello, my friend&qu

i18n 1.2

2007-01-30 Thread Ámon Tamás
How does working this i18n feature in 1.2? I like to make a multilangual site with it... -- Ámon Tamás http://linkfelho.amon.hu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

How to use the new Cake PHP i18N and l10N

2007-01-09 Thread Sebastian Macias
Can anybody post a short example of this new feature usage? I found this in the bakery: "Its mostly automagic, just use the __() method to wrap your static text. Then put some po in the locale and get jiggy with it. You can see it in action now[5], the site should display in the language your br

i18n working with locale component, Help!

2006-12-07 Thread ERic ZoU
Hi, All, I am creating a website tht have 3 different lanuage version. And I try to use the Locale Package. It great. But, Create or edit this file /app/views/layouts/default.thtml, adding this line anywhere. renderElement('language', $params) ?> Now the user need only press a button to be ab

Re: About internationalization (i18n)

2006-04-24 Thread nate
The locale code isn't in the nightly, it's here: https://trac.cakephp.org/browser/whiteboard/proposals/bundt/1.x.x.x/ However, there are several complete implementations which are being used in production settings, most notably Andy Dawson's (AD7six) implementation, which I believe you can find o

About internationalization (i18n)

2006-04-24 Thread Pepepaco
I am starting a new web project, and I want to give Cake a try. But there's a caveat: I have to create a multilanguage site. After searching this group and the Cake docs, I have found only a couple of "hand made" solutions, and the promise to have i18n in version 2 of CakePHP, but

<    1   2   3   4   5