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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:53:33+00:00 2026-06-01T13:53:33+00:00

I want my C# (winforms) application to be multilingual. My idea is: I will

  • 0

I want my C# (winforms) application to be multilingual. My idea is:

  • I will have my translations in some text file(s), each “sentence” or phrase will have it’s unique ID (integer)
  • at the start-up of the app I will iterate through all controls on all forms I have in my app (I suppose this should be done in each form’s ‘Load’ event handler) and I will test the control of it’s type
  • i.e. if it is a button or menu item, I will read it’s default ‘Text’ property, locate this phrase in one text file, read it’s unique ID and through this ID will locate translated phrase in (other) text file
  • then I will overwrite that ‘Text’ property of the control with translated phrase

This enables me to have separate text file with phrases for each and every language (easy to maintain individual translation in the future – only 1 txt file)

  1. I would like to hear from you – proffesionals if there is some better / easier / faster / more ‘pro’ way how to accomplish this.
  2. What format of translation text file should I use (plain text, XML, ini….) – it should be human readable. I don’t know if finding a phrase in XML would be in C# faster than going line-by-line in plain text file and searching for given phrase/string…?
  3. EDIT – I want users (community) to be able to translate my app for them into their native language without my interaction (it means Microsoft’s resources are out of the game)

Thank you very much in advance.

CLOSED – My solution:
Looks like I’m staying at my original concept – every phrase will be in separate line of plain text file – Unicode encoding (and ID at the beginning of the line). I was thinking about deleting ID’s too and to use only the line numbers, but it would need advanced text editor (Notepad shows no line numbers) and if somebody accidentaly hits shortcut for “Delete line” and doesn’t notice that, whole app would go crazy 🙂

//sample of my translation text file for one language
0001:Text of my first button
0002:Text of my first label
0003:MessageBox title text
...etc etc

  • 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-01T13:53:34+00:00Added an answer on June 1, 2026 at 1:53 pm

    If you want the users to edit the translations through your application while keeping things simple and quick, resource file is best. If you don’t like it, the second best option is XML file.

    Still, to answer you question on how to do it best with a text file, it is pretty straight forward: You just make sure that your unique identifier (int probably) are in order (validate before using the file). Then to search quickly, you use the technique of the halves.

    You look for number X, so you go to the file’s middle line. If id > x, to go to ¼ of the file, etc.

    You cut in two until you get to the right line. This is the fastest know research method.

    NOTE: Beware of the things that are external to the application but need translation: External file items, information contained in a database, etc.

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

Sidebar

Related Questions

I have a WinForms Application that I want to run at Mono at some
I have a .net (3.5) WinForms application and want to display some html on
I have a WinForms application that, at some point, will do some calculations that
I have a WinForms application. Application has menustrip, toolstrip and several panels. I want
I have a WinForms application, and wanted to add some nice WPF controls, one
I'm writing a WinForms application and want to have an MVC-Type Design. Actually it's
i have a .net winforms application that i want to be soundless. occasionally when
I have a WinForms application in C# and I want to download several files
I have created a SQL DB-based winforms application, and I want to deploy it
I want repeat sent windows messages to my winforms application. Now, I have class

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.