Re: [symfony-users] Re: sfDoctrineGuard translation

2009-12-28 Thread Daniel Lohse
For your example it's pretty clear that symfony can't find the translations. And sure enough, you forgot to add the catalogue to the __() method call. Plugin or not, it doesn't matter. In the signinSuccess.php change this: __('Forgot your password?') to this: __('Forgot your

[symfony-users] Re: sfDoctrineGuard translation

2009-12-28 Thread diogobaeder
Hi, Daniel, Thanks for the help, it really worked for the __() function calls! :-) Despite, I noticed that fields generated by widgets don't include this function call, so I would have to declare localized labels for them, too... wouldn't it be a better idea if these plugins were already

Re: [symfony-users] Re: sfDoctrineGuard translation

2009-12-28 Thread Daniel Lohse
I'm glad it worked! :) You can set a different catalogue to use for a form in the form formatter class. As far as the module code generation goes... hmm, you'd have to create your own module generation theme. Cheers, Daniel On Dec 29, 2009, at 3:46 AM, diogobaeder wrote: Hi, Daniel,

Re: [symfony-users] Re: sfDoctrineGuard translation

2009-12-27 Thread Daniel Lohse
You'll need to name the file sf_admin.pt_BR.xml Cheers, Daniel On Dec 27, 2009, at 3:30 AM, diogobaeder wrote: No solution for that? Anybody? On 22 dez, 18:04, Diogo Baeder diogobae...@gmail.com wrote: Hi there, I'm translating some strings that lacked in the original pt_BR XLIFF file

[symfony-users] Re: sfDoctrineGuard translation

2009-12-27 Thread diogobaeder
Hi, Daniel, I've already named the file like you said, and part of the admin is translated. But the part that stays in the plugins (sfDoctrineGuard and sfMediaBrowser) is not translated. It seems like the translation file I created only works with translation for the core components. Any other

Re: [symfony-users] Re: sfDoctrineGuard translation

2009-12-27 Thread Daniel Lohse
Could you elaborate on/rephrase your last message again, please? I did not understand what stays where and does not get translated... :) Daniel On Dec 27, 2009, at 2:57 PM, diogobaeder wrote: Hi, Daniel, I've already named the file like you said, and part of the admin is translated. But

[symfony-users] Re: sfDoctrineGuard translation

2009-12-27 Thread diogobaeder
Daniel, For example, in the signinSuccess.php template, at sfDoctrineGuardPlugin, we have a __('Forgot your password?') call, that should be translated if a translation is put in the sf_admin.pt_BR.xml file. I've put a translation element there, but it's not working. But for a translation for a

[symfony-users] Re: sfDoctrineGuard translation

2009-12-26 Thread diogobaeder
No solution for that? Anybody? On 22 dez, 18:04, Diogo Baeder diogobae...@gmail.com wrote: Hi there, I'm translating some strings that lacked in the original pt_BR XLIFF file for Symfony 1.4.2-DEV. Even though, my translation for sfDoctrineGuardPlugin is not working; None of them is being