You can use the cake shell but as you are using Poedit, there's a very
easy solution only using Poedit.

- Open Poedit and choose File -> New catalog...
- Give some project infos "Project Info" Tab.
- Choose a language you want to translate to
- Choose the right "Charset" and "Source code charset"
- Define a plural form e.g. for German use "nplurals=2; plural=(n !=
1)" (more plural forms can be found here: 
http://translate.sourceforge.net/wiki/l10n/pluralforms)
- Go to the "Paths" Tab and click on the "New Item" Icon (second item
from left in the lower section)
- As the new Part enter "." (only a dot)
- In the "Base Path" enter the path to your source code files e.g. "C:
\xampp\htdocs\cakephp\app"
- In the "Keywords" Tab you can define custom gettext functions. Add
the commom function names "__", "__n", "__d", "__dn", "__dcn" and
"__c" (all with two leading underscores)
- Save the settings with a click on "OK"
- Choose Catalog -> Update from sources

Now Poedit will parse all files and extracts the found strings.
Everytime you change something inside your sources that needs to
update the .po file, just open Poedit and "Update from sources" again.
Choosing Catalog -> Settings allows you to change the settings to
the .po file.

Regards,
Kau-Boy



On 14 Okt., 23:31, DigitalDude <[email protected]> wrote:
> Hey,
>
> I'm using the gettext-method in my app to make it multilingual. For
> the catalogue, I installed PoEdit on my Windows XP machine. That's not
> such a big problem, as I can open a catalogue file and edit it.
>
> But how can I let cake build up a catalogue on my XP machine? There is
> a way, I know that because a friend of mine did this all the time, but
> he's gone for a long time and I cannot communicate with him, so I hope
> someone here has a simple and easy to use solution for me.... :)
>
> Regards,
>
> DD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to