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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:21:02+00:00 2026-05-11T17:21:02+00:00

Visual Studio 2008 I want to bring some localisation into my ASP.NET MVC site.

  • 0

Visual Studio 2008

I want to bring some localisation into my ASP.NET MVC site.

Someone suggested creating a resource file “Strings.resx” as a publically strongly typed resource, which works nicely and allows me to write

<title><%= Strings.MyView_Title %></title>

I then proceeded to add a file “Strings.da.resx”. This file is created right next to the first one, and defaults to “Access Modifier : No Compilation”, whereas the first (the one without language modifier) defaulted to “Interal”.

I can see in the bin directory that a directory has been created (“da”) with a resource.dll, however, I cannot see any of the translated texts on my site.

I have checked with the browser that the only preferred langauge is Danish (da-DK), but I only see the english texts.

Questions:
1) Do I need to enable something in web.config ?
2) Am i creating the right files, with the correct types (i.e. should #2 be “No compilation”) ?

  • 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-05-11T17:21:03+00:00Added an answer on May 11, 2026 at 5:21 pm

    In your views, do you have a page directive?
    If so, do you have UICulture=”Auto” and Culture=”Auto”?

    For example…

    <%@ Page Language="C#" Inherits="..." 
        culture="auto" uiculture="auto" %>
    

    This will ensure that the Accept-Language header, passed by the browser in the request, gets used to set the Thread cultures. It’s the UICulture that influences which resource file to pick.

    For more on ASP.NET i18n this book is very good…

    http://www.amazon.co.uk/NET-Internationalization-Developers-Guide-Building/dp/0321341384/ref=sr_1_1?ie=UTF8&s=books&qid=1241010151&sr=8-1

    It doesn’t cover MVC, but covers ASP.NET and, as such, many things continue to be relevant.

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

Sidebar

Related Questions

I've noticed some seemingly weird issues in Visual Studio 2008 (.NET 3.5) and also
I have a Visual Studio 2008 C# .NET 3.5 project where I want to
1) I use Visual Studio 2008 (C#) 2) I want my desktop application to
I have Visual Studio 2008 installed on my machine and I want to know
I currently run Visual Studio 2008 SP1 connecting to Team Foundation Server. I want
I'm using OpenGL in C++ Visual Studio 2008 Forms application and I want a
I want to install outlook add-ins (Which is developed by Visual studio 2008) but
I am using crystal report for visual studio 2008, i want to show number
I have developed a Windows service using Visual Studio 2008. I want to install
I have installed Visual Studio 2010 RC. I want to install Visual C# 2008

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.