Notice: No translation for the language ‘en_US’ available. in /var/www/html/ZendFramework-1.10.8-minimal/library/Zend/Translate/Adapter.php on line 441
I’ve been working on an application using Zend Framework as the foundation. One of the key elements is ensuring internationalization/i18n support, and the error above was being displayed.
In addition to translating page text, I wanted to add htmlentities
conversion, without calling it explicitly.
I created an adapter which extends the Gettext adapter.
To prevent the error from being displayed, I changed:
The difference is that disableNotices is included in the instantiation, so that as it initializes the translation object, detected errors are not reported.
Since the default language for the page is en-US, there is no need for translation.