Thursday, November 26, 2009

Re: About multilingual websites

Forget about my previous post, it's completely mistaken.

Ok, I found a way to get .po files.

1) You have to type : "cake i18n extract" or "cake/console/cake i18n
extract"

2) Once you get :

> Welcome to CakePHP v1.2.4.8284 Console
> ---------------------------------------------------------------
> App : app
> Path: /Users/thomaus/Sites/MyApp/app
> ---------------------------------------------------------------
> What is the full path you would like to extract?
> Example: /Users/thomaus/Sites/MyApp/myapp
> [Q]uit
> [/Users/thomaus/Sites/MyApp/app] >

type /Users/thomaus/Sites/MyApp/app/locale/ (DO NOT FORGET THE LAST
"/" in the path, otherwoise it doesn't work!!!)

3) Once you get :

> What is the full path you would like to output?
> Example: /Users/thomaus/Sites/MyApp/app//locale
> [Q]uit
> [/Users/thomaus/Sites/MyApp/app//locale] >

type /Users/thomaus/Sites/MyApp/app/locale/eng/LC_MESSAGES/ (in case
of the English .po file) and again, do not forget the last "/"!!!

4) Answer "yes" and "default" and you should get a "Done." message!

5) Change the extension of the result file from .pot to .po so that
you can open it with Poedit.

Cheers!

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: