How should I name the language data files?

Posted by Ron on Programmers See other posts from Programmers or by Ron
Published on 2011-02-24T18:04:05Z Indexed on 2012/06/03 22:47 UTC
Read the original article Hit count: 276

Filed under:

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?...

Thanks!

© Programmers or respective owner

Related posts about spoken-languages