Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently I decided to add some translations to my program. I wonder how I should name the language files?

  1. in the culture's name of the language (example: english = en, french = fr, italian = it, etc...)

  2. in the name of the language [in english] (example: english = english, french = french, italian = italian, etc..)

I know you'll choose the second way because you dont have to detect which filename it is because both have the same name. But the problem is this - I show the name of the languages in its langauge (example: english = english, french = française, italian = italiano, etc..) so I still need to detect which filename it is.

The main question is which way I should choose? the name of the language in english or the culture name? and why?...


share|improve this question
up vote 10 down vote accepted

I would use the language code, for instance: US english (en-us) and so on.

That way you can get the country and the language.

Have you considered this option?

share|improve this answer
+1 for using ISO standards – Steven Jeuris Feb 24 '11 at 18:52
Alright. I will use you way. I just got one question related to you answer, I found all the specific culture names for my languages except for one > Haitian Creole. I cant find the specific or neutral culture name of it.. do you know what's the culture of it? – Ron Feb 24 '11 at 20:00
@Ron are you wearing your hat? :D okok that was lame... the language code is hat Regards – eestein Feb 24 '11 at 20:40
@eestein, indeed it was lame, but still I laughed. anyway this is the netural identifier / global identifier. I need specific culture name (for C#)... – Ron Feb 24 '11 at 21:26
@Ron Ok, well... it seems you'll have to create your own. Check this link(the answer):… this is the right way to do it. Hope it helps. Best regards. – eestein Feb 24 '11 at 21:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.