ZF-8375: Properly handle upper case language name in TMX
At present, tmx file adapter simply puts whatever language name provided in the array, keeping the case of the language in the tmx file as a key in the array.
Therefore, if the file contains "EN", it will have $_data['EN']['test message'] = "test message - english";
However, a proper locale string must be "en". So, if the xml file contains "EN", adapter does not find the message for query against locale "en".
It will return "test message" instead of "test message - english". It is not efficient to change "EN" in xml to "en" as this file is generated by an editor which keeps the language as upper case.
ZF should do one of the following:
- Convert locale to lower case for user.
- Error out the xml file as it is not a valid file. (As you cannot set locate to "EN").