Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not an Issue
-
Affects Version/s: 1.10.1
-
Fix Version/s: 1.10.2
-
Component/s: Zend_Translate
-
Labels:None
Description
Seems to be nice load files with translations at the time when Zend_Translate_Adapter::translate() method call.
This will load only the translations for the language you want at the moment.
This does not work like expected:
It leads to the problem that "translate" throws out exceptions due to
All these problems are caught by loading the files before translating.
Lazy loading would also negotate caching.
It adds a performance problem at translation when using formats which are very excessive like TMX as you delay the loading time into the application time instead of session start.
Additionally it would mean that you must traverse the complete directory tree when calling a translation and read all files to know if a translation is available.
-
- false locale
- non existing files
- corrupt files
All these problems are caught by loading the files before translating. Lazy loading would also negotate caching. It adds a performance problem at translation when using formats which are very excessive like TMX as you delay the loading time into the application time instead of session start. Additionally it would mean that you must traverse the complete directory tree when calling a translation and read all files to know if a translation is available.