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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:40:30+00:00 2026-05-19T17:40:30+00:00

I have setup a windows forms project to use localization so that it will

  • 0

I have setup a windows forms project to use localization so that it will support Chinese and English languages. I have built in a way of forcing the language to one or the other when the form loads. Before InitializeComponent() is called I have a bit of code that does this…

     switch (Properties.Settings.Default.SelectedLanguage)
        {
            case "":
                break;
            case "English":
                Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
                Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
                break;
            case "Chinese":
                try
                {
                    Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-CHT");
                    Thread.CurrentThread.CurrentCulture = new CultureInfo("zh-CHT");
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
                break;   
        }

So when the SelectedLanguage property is set to “Chinese” the program should use the Chinese localization right? I tested this while debugging and it worked exactly as expected. That is, when SelectedLanguage == “Chinese” at the program start all the buttons and labels display in the Chinese text that I entered. When the SelectedLangugage == “English” everything is displayed in the English Text that I have entered.

The problem is that when I install this program and run it (not debugging) it doesn’t work. Even on my development machine. No matter what SelectedLanguage is set to the program always displays the English Localization. I even put in a message box to pop up at the beginning of the program which displays `Application.CurrentCulture.Name’ and it shows the Chinese culture name (zh-CHT) but it still displays everything in English. So what is the difference between what happens during debugging and during actual run time? And how can i fix it?!?

  • 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-19T17:40:30+00:00Added an answer on May 19, 2026 at 5:40 pm

    It sounds like the english default is being used at all times, which would suggest that the resources you have set up for Chinese are not being included in the build. Double check your resources and make sure it is included in your deployment.

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

Sidebar

Related Questions

I want to use WPF windows in future applications instead of Windows forms. The
I have a normal VS2008 project that I've been working on for awhile that
I have a C# .NET 3.0 project that uses a TableLayoutPanel containing several rows
I have a Crystal Report set up to run with my windows forms application.
I have a hybrid asp.net web forms / mvc application that I recently converted
I work at a small computer shop, and we have to analyze windows minidumps
I am fairly new to iPhone/ObjC programming, though I have several years of experience
I have set up Paperclip and ImageMagick successfully on my system, and files are
I have implemented the standard Login control and everything works fine. However when i
I modified the ASP.NET login control to also allow specifying UserRole ('Employee' or 'Volunteer').

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.