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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:59:20+00:00 2026-05-26T19:59:20+00:00

Ive been using C#s (Visual Studios) resourcing mechanism and its worked nicely. I have

  • 0

Ive been using C#s (Visual Studios) resourcing mechanism and its worked nicely. I have a need to be able to use resources but instead of using CultureInfo as the determinator use something else. This is my current setup which works fine however I have to workout which Resource Manager to use. Either Brussels or Paris. The Resource Manager then works out which resource to use within Brussels or Paris to invoke. What I want is one resource manager for both, so I dont need to decide which resource manager to use. Part of the problem is the PublicResXFileCodeGenerator Custom Tool generates the code for you (which is very nice if you use the standard approach)

This is what it currently looks like (This is working fine)

Brussels Resources

  • brussels.en-GB.resx
  • brussels.ja-JP.resx
  • brussels.fr-FR.resx
  • brussels.resx

Paris

  • paris.en-GB.resx
  • paris.ja-JP.resx
  • paris.fr-FR.resx
  • paris.resx

I dont want to use the CultureInfo but instead specify my own resx identifier. Is there a way to do this using resx file?

etc

Brussels and Paris Resources

  • MyResourceManager.brussels-en-GB.resx
  • MyResourceManager.brussels-ja-JP.resx
  • MyResourceManager.brussels-fr-FR.resx
  • MyResourceManager.paris-en-GB.resx
  • MyResourceManager.paris-ja-JP.resx
  • MyResourceManager.paris-fr-FR.resx
  • MyResourceManager.resx

EDIT:
An example of how I would like to use it (or something similar)

MyResourceManager.Header

instead of

brussels.Header

paris.Header

An example of a similar problem but solved through Custom Cultures can be found here.
How to load different RESX files based on some parameter
I dont want to do this however as installing cultures on different machines is not an option.

  • 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-26T19:59:20+00:00Added an answer on May 26, 2026 at 7:59 pm

    Use CultureInfo to determine the resource set to load, it will be easier since it integrates into the Thread.CurrentUICulture.

    If you have cultures that are not standard out of the box supported cultures, use CultureAndRegionInfoBuilder to build any additional cultures that you need. See http://msdn.microsoft.com/en-us/library/system.globalization.cultureandregioninfobuilder.aspx. There should be ample StackOverflow examples of using this API, i.e. Create custom culture in ASP.NET.

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

Sidebar

Related Questions

I've been using Visual Studio's property sheets for building my code and I have
I've have been using Visual Studio 2005, alongside Visual Web Developer 2008 to create
Using the DrawingContext class I've been able to use the DrawRectangle() method to successfully
I've been using Visual Studio as my main IDE for a while now (I
So I've been using Visual Studio for years and I've grown fully accustomed to
I've been using ClickOnce on Visual Studio 2008 SP1 for a while without incident.
I've been using the Publish operation on Visual Studio 2005 and 2008 (By right-clicking
I've been using the macro from this blog entry for attaching the Visual Studio
I have been using the gcc compiler with code::blocks ide, and have noticed there
I've been using visual studio for some time and it annoys me everytime when

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.