hi there,

if I try to use the __() helper in one of my plugins modules I can not
get it to work with language files inside this plugins module but only
with language files within the applications i18n dir.

/apps/testapp/i18n/test.en_GB.xml

<?xml version="1.0" ?>
<xliff version="1.0">
  <file orginal="foo" source-language="en_GB" datatype="plaintext">
    <body>
      <trans-unit id="1">
        <source>mytest</source>
        <target>TEST FAILED!</target>
      </trans-unit>
    </body>
  </file>
</xliff>

/plugins/myTestPlugin/i18n/test.en_GB.xml

<?xml version="1.0" ?>
<xliff version="1.0">
  <file orginal="foo" source-language="en_GB" datatype="plaintext">
    <body>
      <trans-unit id="1">
        <source>mytest</source>
        <target>TEST SUCCEEDED!</target>
      </trans-unit>
    </body>
  </file>
</xliff>


/plugins/myTestPlugin/templates/someSuccess.php

<?php echo __('mytest', null, 'test'); ?>


result:

TEST FAILED!




why is that?


cheers
/christian

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

Reply via email to