Hello Takaaki,
You should use this:
<?php echo __("User login", null, "messages.en.xml") ?>
instead of this:
<?php echo __("[T]User login[/T]", null, "messages.en.xml") ?>
If you enable DEBUG on i18n you see the [T]'s that means its a string
subject to translation.
Regards
Joao Correia
On Mar 2, 1:57 pm, Takaaki Kato <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm learning symfony's i18n. One thing I can't understand in i18n.yml
> is how to use untranslated_prefix and _suffix.
> By default "[T]" and "[/T]" are set. Is it something to use in
> tempaltes as following?
>
> <?php echo __("[T]User login[/T]", null, "messages.en.xml") ?>
>
> Or is this something used for XML?
>
> <trans-unit>
> <source>User login</source>
> <target>[T]User login[/T]</target>
> </trans-unit>
>
> I don't have the slightest idea how to use these. Any suggestion would
> be appreciated.
>
> Takaaki
> --
> Takaaki Katohttp://samuraicoder.net
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---