Browse files

BUG Locale-isolated i18n/Zend cache

In certain cases (e.g. with the mi_NZ locale),
the i18n system would regard a langage as already
loaded if it was restored from a cached, but empty
translation list (through Zend_Translate).
This was due to the cache key being generated
based solely on the content, rather than taking
other options like the locale into account.
  • Loading branch information...
chillu committed Aug 12, 2012
1 parent 8d9db7f commit 395580bdd6b9469433501102d0b91c05089e78d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 i18n/i18n.php
@@ -1995,7 +1995,7 @@ function($a, $b) use(&$prios) {
// and the next invocation of include_by_locale() doesn't cause a new reparse.
- 'content' => array('_' => '_'),
+ 'content' => array($locale => $locale), // Cached by content hash, so needs to be locale dependent
'locale' => $locale,
'usetranslateadapter' => true

0 comments on commit 395580b

Please sign in to comment.