Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 395580bdd6b9469433501102d0b91c05089e78d4 1 parent 8d9db7f
Ingo Schommer chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  i18n/i18n.php
2  i18n/i18n.php
View
@@ -1995,7 +1995,7 @@ function($a, $b) use(&$prios) {
// and the next invocation of include_by_locale() doesn't cause a new reparse.
$adapter->addTranslation(
array(
- 'content' => array('_' => '_'),
+ 'content' => array($locale => $locale), // Cached by content hash, so needs to be locale dependent
'locale' => $locale,
'usetranslateadapter' => true
)
Please sign in to comment.
Something went wrong with that request. Please try again.