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

  • Home
  • SEARCH
  • 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 4124146
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:42:11+00:00 2026-05-20T23:42:11+00:00

Is there a property in some class that can tell me if the current

  • 0

Is there a property in some class that can tell me if the current culture is actually the default culture.

Similar to how localization works with winforms. It states in a form if the language is default.

lets say if i am in en-US – how can i tell via code if en.US is the actual default?

I need to implement some localization for some XML files which .net doesn’t support hence i want to implement my own …

And do it how winforms works i.e

nameofxml.default.xml (this is the default local)
nameofXml.de-de.xml (this is german) 

etc

does a property exist?

  • 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-20T23:42:12+00:00Added an answer on May 20, 2026 at 11:42 pm

    System.Globalization.CultureInfo.CurrentCulture indicates you system’s Control Panel Region settings, while System.Globalization.CultureInfo.CurrentUICulture corresponds to the system’s Input UI Language setting (which you can’t change unless you have Multilingual User Interface installed).

    Therefore you can use the following code snippet to determine the ‘default’ culture:

    using System.Globalization;
    // N.B. execute the following line *before* you programmatically change the CurrentCulture
    // (if you ever do this, of course)
    
    // Gets the CultureInfo that represents the culture used by the current thread
    CultureInfo culture = CultureInfo.CurrentCulture;
    string code = culture.IetfLanguageTag; // e.g. "en-US", "de-DE", etc.
    

    Then you can use the code to locate your .xml files.

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

Sidebar

Related Questions

Is there an similar property like System.getProperty(java.home) that will return the JDK directory instead
Instead of using Dictionary<TKey,TValue> I want some type of collection class that can use
Hopefully there are some WCF wizards out there that can spot my mistake here.
In WPF is there some mechanisim to reuse the property setters amoung differant triggers?
I was wondering if there is some way to name or rename a property
Is there a property that allows you to specify a user friendly name for
I'm trying to figure out if there is a property in Android contacts that
I am creating a class that will have a Key-Value pairing of some sort.
I have a class object that stores some properties that are lists of other
There is a property called Application does not run in background and if we

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.