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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:04:57+00:00 2026-06-13T11:04:57+00:00

Hello everyone I’m writing a small asp.net mvc application and i want to make

  • 0

Hello everyone I’m writing a small asp.net mvc application and i want to make it localized and support more than one language I’ve found many useful articles

I added routing for languages
I used a custom actionfilter attribute to choose current culture of current thread depending on the language code in url like “site.com/en/controller/action” for english or “site.com/ar/controller/action” for arabic.

i created “Resources\Views\Shared\Layout.resex” for english language and “Resources\Views\Shared\Layout.ar.resex” for arabic language.

the problem that it is stuck with arabic localization only and i set the current thread culture manually to english and removed actionfilter attribute but it still display arabic content!! what is the problem this is crazr

  • 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-13T11:04:58+00:00Added an answer on June 13, 2026 at 11:04 am

    It’s hard to tell without more detail or code, but one easy thing to miss is your web.config file’s configuration. If you have something like <globalization uiCulture="auto" culture="auto" /> in <system.web> (with “auto” instead of culture identifiers) then ASP.NET will use the accept-language header, which is determined by your browser’s language settings, to automatically choose your thread’s cultures. So what you are seeing could be partially explained by having this configuration and having Arabic ahead of English in your browser’s language list.

    Edit: The issue was that the code needs to use of Thread.CurrentThread.CurrentUICulture to control what localized resources are used (Thread.CurrentThread.CurrentCulture is a different thing, doesn’t affect localization but locale-dependent formatting/parsing such as dates).

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

Sidebar

Related Questions

Hello everyone i need some help. I'm trying to make an application for mac
Hello everyone how to pass two or more than IEnumerables lists to view? Here
hello everyone I am trying to make a script that steps through a list
Hello everyone I have a problem. I want to do a GridView with a
Hello everyone I want to ask a question about including guards in C programming.
Hello everyone i have a problem in my application. The check in my check
hello everyone i have a problem with my 3-tiers application i don't know how
hello everyone i want validate the type of file being uploaded on sever to
Hello everyone it's been some days that I use sql to make analysis and
Hello everyone I have a question... I'm trying to make my sms faker app,

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.