views:

20

answers:

1

Had a quick doubt... Are the XLIFF translation files (used by I18n Helper) in Symfony case-sensitive? Will _('Hi') & _('hi') both fetch different results? What if the XML only has a hi? Thanks

+1  A: 

Yes, they are case-sensitive... Some googling helped... http://forum.symfony-project.org/index.php/m/74581/

Is there a way to use the case-insensitive translation if the exact is not found? so __('Hi') will use 'hi' when 'Hi' is not found :)

Prasad
You could modify the `__()` function to do the extra `strtolower($string)` call in case of no match...
Raise
thats a gr8 idea, thanks Raise
Prasad