When you want to translate a string using a __() call, you have to
specify the catalog in the 3rd parameter, if it's not "messages" (the
default). So you'll need calls like this:
__("whatever", array(), "signin_form")

See http://www.symfony-project.org/api/1_2/I18NHelper#method___ (by
the way, the documentation is a bit wrong here, has "'" instead
of the quotation marks)

On Sat, May 2, 2009 at 23:09, HAUSa
<[email protected]> wrote:
>
> If I create an extra XML file, that file seems not to work... If I
> have a translate tag which is translated in my new file, it just
> doesn't translate it.
>
> My question: isn't the whole i18n folder loaded by default, like the
> lib folder? Because it doesn't matter in the lib folder how many files
> I create there or how I name them.
>
> This is my tree:
> i18n
> - nl
> - - messages.xml
> - - extra.xml
> - - signin_form.xml
> - de
> - - messages.xml
> - - signin_form.xml
>
> The extra.xml file is the translation file that doesn't work. I like
> to have that file, because I let Symfony generate the messages.xml
> file automatically.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to