Hi every: I'm developing a fresh application and I take Symfony 1.1.4 as Symfony release. I'm using also the sfGuard plugin to take advantage in user and group managment. Because I speak Spanish I want to internationalize the app and for that I do this:
1) Activate the right options in settings.yml file i18n: on default_culture: es 2) Create the i18n/sfguard.es_ES.xml and put this content inside: <?xml version="1.0" encoding="UTF-8"?> <xliff version="1.0"> <file orginal="global" source-language="es_ES" datatype="plaintext"> <body> <trans-unit id="1"> <source>signin[username]</source> <target>Usuario</target> </trans-unit> </body> </file> </xliff> Then I want to internationalize first the sfGuard plugin interface. This plugin generate the form using the new form Framework so the code is as follow: public function configure() { $this->setWidgets(array( 'username' => new sfWidgetFormInput(), 'password' => new sfWidgetFormInput(array('type' => 'password')), 'remember' => new sfWidgetFormInputCheckbox(), )); $this->setValidators(array( 'username' => new sfValidatorString(), 'password' => new sfValidatorString(), 'remember' => new sfValidatorBoolean(), )); $this->validatorSchema->setPostValidator(new sfGuardValidatorUser()); $this->widgetSchema->setNameFormat('signin[%s]'); } And then in the template only echo $form appear. So I not know how to get the label value for put as internationalize string. I mean this: <label for="signin_username">Username</label> ¿Any idea or solution? Cheers and thanks in advance Ing. Reynier Pérez Mira Grupo de Soporte al Desarrollo - Dirección Técnica IP --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---