Details
-
Bug
-
Resolution: Cannot Reproduce
-
Medium
-
4.4.0, 4.5.0
-
None
-
eZ Publish 4.4
Description
When a locale with no translation is specified, eZTSTranslator will of course fail to find any translation strings, but it nevertheless tries to save context cache. This leads to large amounts of warning messages like this:
Warning: eZTranslationCache::setContextCache Aug 12 2011 13:19:32
Translation cache for context 'cachecontexts' already exists
It should not try to save cache when there is nothing to save. The attached patch is one suggestion for how to solve this.
Also, there should be a warning message when the specified translation is not found.
Steps to reproduce
- In plain ezp 4.4, set site.ini [RegionalSettings] Locale=eng-US
- A locale file exists for eng-US, but no translation
- Enable debug output
- Load any page in admin, note warning messages: Translation cache for context 'cachecontexts' already exists
Attachments
Issue Links
- relates to
-
EZP-18197 i18n doesn't use TS cache when fallback is set to eng-GB
- Closed