[symfony-users] Re: Form Error Messages i18n

2009-03-11 Thread Tiago Nunes

Hi,

I have tried to do it using an XLIFF file without success...

I have put a file named messages.pt.xml in apps/frontend/i18n/
with the following content:

?xml version=1.0 encoding=UTF-8?
xliff version=1.0 xml:lang=pt
header/header
body
  trans-unit id=REQUIRED
sourceRequired./source
targetCampo Obrigatório./target
  /trans-unit
/body
  /file
/xliff

But the translation doesn't work...

What am I doing wrong and how can I get it to work?

Regards,
Tiago Nunes
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Form Error Messages i18n

2009-03-11 Thread Tiago Nunes

I had an error in the previous email.

The /file tag shouldn't be there, but it's not the cause of it not
working..

On Mar 11, 11:10 pm, Tiago Nunes xec...@gmail.com wrote:
 Hi,

 I have tried to do it using an XLIFF file without success...

 I have put a file named messages.pt.xml in apps/frontend/i18n/
 with the following content:

 ?xml version=1.0 encoding=UTF-8?
 xliff version=1.0 xml:lang=pt
     header/header
     body
       trans-unit id=REQUIRED
         sourceRequired./source
         targetCampo Obrigatório./target
       /trans-unit
     /body
   /file
 /xliff

 But the translation doesn't work...

 What am I doing wrong and how can I get it to work?

 Regards,
 Tiago Nunes
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Form Error Messages i18n

2009-03-11 Thread Tiago Nunes

Hi again,

I already got it to work.

I forgot to enable i18n in settings.yml... My mistake :)

Now the error messages are translated.

Thanks for your help.

On Mar 11, 11:14 pm, Tiago Nunes xec...@gmail.com wrote:
 I had anerrorin the previous email.

 The /file tag shouldn't be there, but it's not the cause of it not
 working..

 On Mar 11, 11:10 pm, Tiago Nunes xec...@gmail.com wrote:

  Hi,

  I have tried to do it using an XLIFF file without success...

  I have put a file named messages.pt.xml in apps/frontend/i18n/
  with the following content:

  ?xml version=1.0 encoding=UTF-8?
  xliff version=1.0 xml:lang=pt
      header/header
      body
        trans-unit id=REQUIRED
          sourceRequired./source
          targetCampo Obrigatório./target
        /trans-unit
      /body
    /file
  /xliff

  But the translation doesn't work...

  What am I doing wrong and how can I get it to work?

  Regards,
  Tiago Nunes
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Form Error Messages i18n

2009-03-10 Thread Tomasz Ignatiuk

Only solution I know is to check all messages in forms by entering
wrong data. When an error message shows, copy it to XML or PO file and
translate it. Remember to add special fields in comments:
'Name %value% must be at least %min_length% characters.'

Read this: 
http://www.symfony-project.org/book/forms/1_2/en/08-Internationalisation-and-Localisation
Unfortunatelly when you translate it, it won't work. Read this in
order to knwo how to do this.
http://groups.google.com/group/symfony-users/browse_thread/thread/331cd2206d40f6c1/352ad52c292d4bc1#352ad52c292d4bc1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---