Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.5
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Translate
-
Labels:None
Description
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:
1. Convert locale to lower case for user.
2. Error out the xml file as it is not a valid file. (As you cannot set locate to "EN").
1. can not be done... it would disallow en_US as it would convert it to en_us making the same problems for region as before for language.
2. can not be done as invalid files are ignored while processing a directory search