hmm.. I would have expected an order like:
app_module_i18nfolder -> plugin_module_i18nfolder -> app_i18nfolder
but anyway. even if the plugin language file is the only one in the whole
project this is not working.
culture is correct and everything works fine as soon as I move the file to
the app/i18n folder..
using symfony 1.1 btw.
cheers
/christian
naholyr wrote:
Even if here is no /apps/testapp/i18n/test.en_GB.xml ?
Because what you tested is the expected behavior : you define
something in your plugin, and any app can overwrite this by simply
redefining the file in the app's structure (just like template,
classes, etc...).
On 7 avr, 23:40, "Christian Schaefer" <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
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
-~----------~----~----~----~------~----~------~--~---