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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:18:00+00:00 2026-05-11T14:18:00+00:00

If I would want to create a c# application that support multiple languages, how

  • 0

If I would want to create a c# application that support multiple languages, how should I store them?

I’d probably use constants in the application as value holders.

Such as: Console.Write(FILE_NOT_FOUND);

When compiled, it would change into the string determined by the language. I’ll probably stick to 3 languages (Danish, English, Deutsch), not that I think it matters though.

It seems to be a waste to have a class file for each language, which all is processed when the application is compiled. It would also mean that you’d have to re-compile and re-distribute the whole program every time you want to change a string. As far as I know, hardcoded strings is a bad thing.

Maybe a text file? English.txt Line1: FILE_NOT_FOUND=File Not Found. Try Again Line2 Line3 etc.

Danish.txt Line1: FILE_NOT_FOUND=Filen blev ikke fundet. Prøv igen Line2 Line3 etc.

and so on. If the user selects English, it reads the text file and set the different constant values.

The last one I can think of is placing it in a SQL database.

Could you give me some input? 🙂

Also, I tried writing FILE _ NOT _ FOUND (without spaces, but the text editor wouldn’t let me

  • 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. 2026-05-11T14:18:01+00:00Added an answer on May 11, 2026 at 2:18 pm

    Use a resource file. That’s the standard way to handle localization.

    For details, see this tutorial.

    — EDIT —

    An alternative tutorial is available here. This one uses much better naming, so it may be more clear how it works.

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

Sidebar

Ask A Question

Stats

  • Questions 168k
  • Answers 168k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Can't reproduce, when added #include <iostream> #include <boost/pool/pool.hpp> using namespace… May 12, 2026 at 1:39 pm
  • Editorial Team
    Editorial Team added an answer It is legal in C++ to overload the logic operators,… May 12, 2026 at 1:39 pm
  • Editorial Team
    Editorial Team added an answer Not sure what you mean by "HSM device", so you… May 12, 2026 at 1:39 pm

Related Questions

If I were to want to create a nice looking widget to stay running
I have an installer that needs to a person to be an admin (
I will likely be responsible for porting a vb6 application to c#. This application
I would like to open a Word document in C#. I mean I would

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.