Hello,
I am having some trouble understanding exactly how to use i18n. I have
tried a couple of different things and its basically working but I am
still really sketchy on the details and cannot seem to find a
definitive source on what exactly I am supposed to do.
Using CakePHP Console
>From what I have read I gather that I wrap all my strings in my views
with __(). Create language directories in /app/locale like the
following:
/app/locale/
eng/
LC_MESSAGES/
en_GB/
LC_MESSAGES/
Then I go to the console and run $cake i18n. I give that the path
where the files I want to extract reside and then give it the path
where I want it output the files. The paths I used were:
/home/swright/vhosts/solowsc/app/views
/home/swright/vhosts/solowsc/app/locale
This created a file called default.pot in the following location:
/home/swright/vhosts/solowsc/app/locale
Thats about as far as I get. I have no idea what to do with the
created file. Where do the .po and .mo files come in? Do I have to
create them? I also would have thought that the output path should
have been a particular language directory. I get the impression from
what I have read that the translation and file creation is an
automated process, is that correct?
Using PoEdit
I created some files manually and edited them using PoEdit. This
created a .po and a .mo file. However I am still very unclear on the
relationships of all these moving parts.
I have a basic test working but the files are hand created and I dont
think thats the correct way to do it. I would really appreciate if
someone could fill in the holes with, perhaps, a set of detailed steps
what will work for CakePHP1.2.
Thanks
Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---