0

In my application.ini

resources.locale.default = "en_EN"

in my Bootrstrap.php

protected function _initLocaleRegistry()
{
    $locale = new Zend_Locale('en_EN');
    Zend_Locale::setDefault('en_EN');
    Zend_Registry::set('Zend_Locale', $locale);
}

but if insert this code in one my simple view:

/**@var $locale Zend_Locale **/
$locale = Zend_Registry::get('Zend_Locale');
echo $locale->getLanguage();

the output is: it

how the hell can? it off?

Thanks

JellyBelly
  • 2,451
  • 2
  • 21
  • 41

1 Answers1

0

I solved it by inserting changing so application.ini

; locale stuff
resources.locale.default = "en_US"
resources.locale.force = true
JellyBelly
  • 2,451
  • 2
  • 21
  • 41