Hi there, as you are aware, application strings change quite often. What I have done to solve this is I'm using a 'unique key' in my view, and then providing translations via a XLIFF file.
Default culture is en_US, other supported cultures include hi_IN I have 'en' & 'hi' folders with messages.xml in my 'app/I18n'
A string in the view looks like __('en str')
same is available in the en XLIFF as
<file source-language="EN" target-language="en" datatype="plaintext" original="messages" date="2010-08-09T09:35:50Z" product-name="messages">
....
<trans-unit id="xx">
<source>en str</source>
<target>string in english</target>
</trans-unit>
However, this does not work for the default culture / source-language, which is en This works fine for Hindi.
Any clues? Are we not allowed to translate from Source to Source language?
Also when an untranslated string is displayed, it doesn't get wrapped within
[T] [/T]
as the code reads (just tried understanding what I could from here: http://trac.symfony-project.org/browser/branches/1.2/lib/i18n/sfI18N.class.php)
Thanks