Skip to content
This repository
Browse code

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 authored August 12, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  i18n/i18n.php
2  i18n/i18n.php
@@ -1995,7 +1995,7 @@ function($a, $b) use(&$prios) {
1995 1995
 				// and the next invocation of include_by_locale() doesn't cause a new reparse.
1996 1996
 				$adapter->addTranslation(
1997 1997
 					array(
1998  
-						'content' => array('_' => '_'),
  1998
+						'content' => array($locale => $locale), // Cached by content hash, so needs to be locale dependent
1999 1999
 						'locale' => $locale,
2000 2000
 						'usetranslateadapter' => true
2001 2001
 					)

0 notes on commit 395580b

Please sign in to comment.
Something went wrong with that request. Please try again.