From 0cdc33b1217d08d7360850dc7a73d5026b7ccdb9 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 9 Aug 2013 12:29:52 +0200 Subject: [PATCH] Don't complain about missing locales in i18nTextCollector --- i18n/i18nTextCollector.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/i18n/i18nTextCollector.php b/i18n/i18nTextCollector.php index c1e6ccf7b..313f49fcf 100644 --- a/i18n/i18nTextCollector.php +++ b/i18n/i18nTextCollector.php @@ -155,7 +155,10 @@ class i18nTextCollector extends Object { // Currently not possible because adapter instances can't be fully reset through the Zend API, // meaning master strings accumulate across modules if($mergeWithExisting) { - $adapter = Injector::inst()->create('i18nRailsYamlAdapter'); + $adapter = Injector::inst()->create( + 'i18nRailsYamlAdapter', + array('locale' => 'auto') + ); $masterFile = "{$this->basePath}/{$module}/lang/" . $adapter->getFilenameForLocale($this->defaultLocale); if(!file_exists($masterFile)) continue;