I am working on an old Symfony 1.1 project [1], and I noticed a
weirdness with I18N.
There is the following code in a PHP file, in a partial template of the
"frontend/main" module:
__('House')
In the translation file, there is:
<trans-unit id="1332">
<source>House</source>
<target>Casa</target>
</trans-unit>
However, this translation does *not* get shown in the generated web
page!
It only gets shown after adding an underscore prefix:
<trans-unit id="1332">
<source>_House</source>
<target>Casa</target>
</trans-unit>
However, with the underscore, "i18n:extract" complains:
$ ./symfony i18n:extract --display-old frontend es_ES
>> i18n extracting i18n strings for the "frontend" application
>> i18n found "208" new i18n strings
>> i18n found "1" old i18n strings
>> i18n display old i18n strings
_House
Can someone explain this weirdness? Why the underscore?
- Felix
[1] To be updated once I have a good understanding of the project.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" 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-users?hl=en