I used this code to try and add a translation array from /resources/languages ANd to add a translation from /application/languages/nl.mo (gettext)
$translate = new Zend_Translate(
array(
'adapter' => 'array',
'content' => APPLICATION_PATH . '/resources/languages',
'locale' => 'nl',
'scan' => Zend_Translate::LOCALE_DIRECTORY
)
);
$translate->addTranslation(
array(
'adapter' => 'gettext',
'content' => APPLICATION_PATH.DIRECTORY_SEPARATOR.'languages'.DIRECTORY_SEPARATOR.'nl_NL.mo',
'locale' => 'nl'
)
);
When i try to add a single translation everything works ok (in both cases) When i'm adding a second translation i get this error:
Fatal error: Uncaught exception 'Zend_Translate_Exception' with message 'Error including array or file '1'' in blabla.php on line 61
can someone tell me how to add those translation files from my bootstrap, without getting these errors?