Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8291017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:59:21+00:00 2026-06-08T12:59:21+00:00

In my application.ini resources.locale.default = en_EN in my Bootrstrap.php protected function _initLocaleRegistry() { $locale

  • 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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:59:23+00:00Added an answer on June 8, 2026 at 12:59 pm

    I solved it by inserting changing so application.ini

    ; locale stuff
    resources.locale.default = "en_US"
    resources.locale.force = true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am wondering what does adding ... resources.view[] = ... init application.ini actually do?
Here's my application.ini, resources.Kco_Application_Resource_ZFDebug.enabled = true resources.Kco_Application_Resource_ZFDebug.params.plugins[] = Variables resources.Kco_Application_Resource_ZFDebug.params.plugins.File.base_path = APPLICATION_PATH /../ resources.Kco_Application_Resource_ZFDebug.params.plugins[]
I have my view helper in Library/My/View/Helper/LoadSkin.php , I added this line in application.ini
I defined a plugin in application.ini directory like resources.frontController.plugins.acl = CMS_Controller_Plugin_Acl The namespace CMS_
I'm developing a zend application.I have in config.ini: resources.db.adapter = PDO_MYSQL resources.db.isDefaultAdapter = true
In my ZF project's application.ini, I've set resources.frontController.params.displayExceptions = 1. However, if an exception
I have these values in my application.ini [production] ; Database; resources.db.adapter = pdo_mysql resources.db.params.host
Initial Problem protected function _initMail() { $this->bootstrap('mail'); } in my Bootstrap.php Fails with a:
I've seen several code samples that do this in application.ini resources.db.adapter = mysqli or
I'm new in Zend, i had defined in my application.ini some lines to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.