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

Related Questions

I want to create a timesheet application where I need an application that will
I would like to create an utility application that has a navigation based flipside,
I want to create an application similar to cacti . I would like to
I'm looking for a ready-to-use piece of code that would be able to read
The ASP.NET web application I am developing needs to support two different types of
Suppose I develop an application with the logic as a CLI program that can
In my company we want to make a desktop software, but we want to
What is a good way to handle iOS 4 app termination when using an
I am working on a job where we are developing a set of cross-platform
I am embarking on development of a Silverlight based website. I am the lone

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.