PDA

View Full Version : [CoD2]Language Information



filthy_freak_
9th May 2015, 17:03
I'm having trouble finding any information about cod2 languages so i'm hoping someone can help fill the blanks.

My analysis;

You can use the cvar/dvar "loc_language" to detect which language the client is using.

However this it is stored in an integer, with no way to know the actual language.

There are fifteen languages (0-14).

0 = English
1 = Chinese?
2 = Unknown
3 = Unknown
4 = Spanish
5 = Unknown
6 = Russian
7 = Polish?
8 = Unknown
9 = Unknown
10 = Unknown
11 = Unknown
12 = Unknown
13 = Unknown
14 = Czech?

Digging through the .exe with a hex editor I managed to find these fifteen possible languages;
English
Czech (Added in 1.2 patch)
Leet (Probably 1337 speak)
Thai
Chinese
Japanese
Taiwanese
Korean
Polish
Russian
British
Spanish
Italian
German
French

So can anyone fill the unknowns?

kung foo man
9th May 2015, 17:58
Should be the same order as it is in the binary, the table lookup is just an index of it. Also fits with my CoD version, loc_language = 2, which fits with binary order.



lang = [];
lang[lang.size] = "english";
lang[lang.size] = "french";
lang[lang.size] = "german";
lang[lang.size] = "italian";
lang[lang.size] = "spanish";
lang[lang.size] = "british";
lang[lang.size] = "russian";
lang[lang.size] = "polish";
lang[lang.size] = "korean";
lang[lang.size] = "taiwanese";
lang[lang.size] = "japanese";
lang[lang.size] = "chinese";
lang[lang.size] = "thai";
lang[lang.size] = "leet";
lang[lang.size] = "czech";

filthy_freak_
10th May 2015, 02:27
Exactly what I needed, thanks!

Paho
16th July 2016, 19:51
localizedstrings(69files):
localized_*_iw00.iwd(15files)
localized_*_iw09.iwd(48files)
localized_*_iw10.iwd(italian,spanish)
localized_*_iw11/12.iwd(russian & steam)
English:
1133
French:
1134
German:
1135
Italian:
1136
Poland:
1137
Russian:
1138
Spanish: