The secret of 1033 DirectoryPosted: April 11, 2009
After a very very long time I am publishing this post. Will try to post regularly here after. Okay lets go ahead with the post…
So why do Microsoft has that mysterious folder name “1033” for one of the installed product directory…? Hear (read) it from the words of Microsoft Engineer…
A reader asked,
I was wondering why it’s common for some Microsoft products to have a directory called “1033” within it’s program directory installation location? What does it mean?
This reader was probably from the United States, because 1033 is the locale identifier for “English (United States)”, whose hexadecimal value is 0x0409. You may also find directories called “0409”. Some programs use hex codes and some use decimal. Go figure.
Here is a list of a whole bunch of locales and their identification numbers, both in decimal and hexadecimal. Now you too can become an expert in locale identifiers.
The value of a locale identifier is given by the formula
For example, Swiss German is LANG_GERMAN + 1024 * SUBLANG_GERMAN_SWISS = 7 + 1024 * 2 = 2055.
So why would a program create a directory named after a language code?
Many Microsoft products support a multilingual user interface. This means that the same program can be used to display its user interface in multiple languages. Office and Windows are the two biggest examples. Language-specific resources need to be broken out into their own directories so they won’t conflict with resources corresponding to some other language.
(For fun, I installed the Swedish language pack on my computer at work, so all strings – including the error messages – are in Swedish.)