Re: Internationalizing the Application

2010-06-22 Thread Marcelo F Andrade
On Tue, Jun 22, 2010 at 2:08 AM, Narendra Padala crazycake...@gmail.com wrote:
 (..)
 I dont know wat to use. i18n, p28n or l10n.
 I even dont the difference between them.

i18n and l10n are acronyms for the words internacionalization
(letter i, 18 letters, letter n) and localization (you guess it).

Internacionalization is a term referent to language, while
localization is related to other specific locale stuffs, like
numbers, currency, etc.

p28n is the name of a component to help you to get persistent
internacionalization.  (Personally, as you are new to Cake, I don't
recomend you to use it for now).

 I was read the below articles but i didn't get,

 http://book.cakephp.org/view/163/Localization-in-CakePHP

Well, to get a multilanguage site, start with the article in the
link above.  Enclose all text messages in your code with
gettext functions (for now I mean, use __('My message') instead
of 'My message'), save a .po file in the proper local and set
you default language in the Config.language configuration
entry.

Cake can generate .po files for you when you run: cake i18n extract

Best regards.

-- 
MARCELO F ANDRADE
Belem, Amazonia, Brazil

I took the red pill

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Internationalizing the Application

2010-06-21 Thread Narendra Padala
Hi all,

I am new to cakephp. But have implemented so many cakephp concepts.
Now I want to implement internationalization to my application.
I dont know wat to use. i18n, p28n or l10n.
I even dont the difference between them.

I was read the below articles but i didn't get,

http://book.cakephp.org/view/163/Localization-in-CakePHP
http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial
http://book.cakephp.org/view/162/Internationalizing-Your-Application

Please give me one sample so that I can continue with it for my modules.
Thanks in advance.



Regards,
Narendra

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en