Hi,
I've been reading detailed the "Symfony Book" and paying greater attention to 
the Chapter 13 "I18n And L10n".  I need to translate a application interface 
because I need this in English and Spanish. This is what I have done until now:

1. Enable the use of i18n in /apps/backend/config/settings.yml
 all:
   .settings:
     charset:                utf-8
     i18n:                   on

2. Enable the use of i18n in /apps/backend/config/i18n.yml
 all:
  default_culture:     en_US
  source:              XLIFF
  debug:               off
  cache:               off

3. Create two (2) files to test if Spanish translation works under 
/apps/backend/i18n/messages.es.xml and /apps/backend/i18n/messages.es_ES.xml 
and wrote this text inside which one:

<?xml version="1.0" ?>
<xliff version="1.0">
    <file orginal="global" source-language="es_ES" datatype="plaintext">
        <body>
            <trans-unit id="1">
                <source>
                    nombre_licencia
                </source>
                <target>
                    Listar
                </target>
            </trans-unit>
            <trans-unit id="2">
                <source>
                    nombre categoria
                </source>
                <target>
                    Nombre Categoría
                </target>
            </trans-unit>
        </body>
    </file>
</xliff>

4. In my template I have this code:
<?php echo __('nombre_licencia') ?>

When I call the page in the browser I get the untranslated text, means 
nombre_licencia. Why? What I'm doing wrong?
Ing. Reynier Pérez Mira
Grupo 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to