As you clearly stated, xgettext will look for gettext() function calls while CakePHP uses __() as the function call.
You can use the option --keyword to change which function calls should xgettext will look: $ xgettext --keyword=gettext,__:1 --language=PHP -n *.ctp In there we're enabling the normal gettext function call (in case you have any) and also the __() function call looking for the string on the first parameter to the function. PS: I haven't tried this, tell me if it works. -MI --------------------------------------------------------------------------- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -----Mensaje original----- De: [email protected] [mailto:[EMAIL PROTECTED] En nombre de Richard Enviado el: Domingo, 04 de Febrero 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's gettext() function. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
