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 8611141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:17:55+00:00 2026-06-12T04:17:55+00:00

I use the Rails I18n feature. My locales are namespaces with for example: en-ZA.

  • 0

I use the Rails I18n feature. My locales are namespaces with for example: en-ZA.

When I run my model specs, it picks up the activerecord locales. When I run my controller specs, it picks up on my activerecord locales. When I run my acceptance (full stack) tests – it too picks up on the activerecord locales – except for one test.

When I run the entire suite at once – all those passing tests are now failing that it can’t find my activerecord locales – the namespace it is complaining about though is all in lowercase.

When I change the namespace in the locale yml file to en-za – the tests pass – but others are failing that are now looking for the en-ZA locales (note the uppercase bit).

How can it be that when I run the entire suite it changes around whether it is looking for the lowercase or proper cased namespaces?

Also – when I run the acceptance tests only – there’s just one failing test where it tries to access the activerecord locales with the wrong casing …

It’s very weird – and I don’t know where to change this or set it that it should always use en-ZA (and not en-za).

My default locale is set up to en-ZA.

  • 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-12T04:17:57+00:00Added an answer on June 12, 2026 at 4:17 am

    I couldn’t figure out the source of the bug – but have found an easy solution:

    Use only lowercase letters for all my locales.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm use Rails 2.2.2. Rails manual said, the way to extend controller from plug-in
When trying to use i18n in rails I get the following undesired output. The
I use Rails 2.3 i18n with a database backend plugin : http://github.com/dylanz/i18n_backend_database This stores
I was told to use v0.6.5 of the rails-i18n gem, so I first checked
I have a Rails 3.2.3 site running on Ruby 1.9.2. I use the rails-i18n
in my Rails 3.2.2 app I'm trying to use i18n but something is not
I use rails.vim and surround.vim plugins to insert <% -%> tags as explained in
I'd like to use Rails 2.2.2 for one project and Rails 2.3.2 for another.
I want to use rails genrate command in gem development. Is it possible?
Background: I use rails g scaffold hotel name stars:integer to start fast (and insert

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.