Sims 3:Locales
From SimsWiki
Revision as of 13:08, 2 February 2011 by FordGT90Concept (Talk | contribs)
Id | Name | ISO | Language | Country | Locale Name | |
---|---|---|---|---|---|---|
00 | 0 | en-US | ENG_US | English | United States | The Sims 3 |
01 | 1 | zh-CN | CHS_CN | Chinese (Simplified) | China | 模拟人生3 |
02 | 2 | zh-TW | CHT_CN | Chinese (Traditional) | China Taiwan | 模擬市民3 |
03 | 3 | cs-CZ | CZE_CZ | Czech | Czech Republic | The Sims 3 |
04 | 4 | da-DK | DAN_DK | Danish | Denmark | The Sims 3 |
05 | 5 | nl-NL | DUT_NL | Dutch | Netherlands | De Sims 3 |
06 | 6 | fi-FI | FIN_FI | Finnish | Finland | The Sims 3 |
07 | 7 | fr-FR | FRE_FR | French | France | Les Sims 3 |
08 | 8 | de-DE | GER_DE | German | Germany | Die Sims 3 |
09 | 9 | el-GR | GRE_GR | Greek | Greece | The Sims 3 |
0A | 10 | hu-HU | HUN_HU | Hungarian | Hungary | The Sims 3 |
0B | 11 | it-IT | ITA_IT | Italian | Italy | The Sims 3 |
0C | 12 | ja-JP | JPN_JP | Japanese | Japan | ザ・シムズ3 |
0D | 13 | ko-KR | KOR_KR | Korean | South Korea | 심즈 3 |
0E | 14 | no-NO | NOR_NO | Norwegian | Norway | The Sims 3 |
0F | 15 | pl-PL | POL_PL | Polish | Poland | The Sims 3 |
10 | 16 | pt-PT | POR_PT | Portuguese | Portugal | Os Sims 3 |
11 | 17 | pt-BR | POR_BR | Portuguese | Brazil | The Sims 3 |
12 | 18 | ru-RU | RUS_RU | Russian | Russia | The Sims 3 |
13 | 19 | es-ES | SPA_ES | Spanish | Spain | Los Sims 3 |
14 | 20 | es-MX | SPA_MX | Spanish | Mexico | The Sims 3 |
15 | 21 | sv-SE | SWE_SE | Swedish | Sweden | The Sims 3 |
16 | 22 | th-TH | THA_TH | Thai | Thailand | เดอะซิมส์ 3 |
C# Code
This code is to guarentee the name will match when trying to access The Sims 3 directory in Documents. Modify the byte arrays to other programming languages if needed. An example of how to use this code is simply Locales["en-US"]. The culture name (e.g. "en-US") can be found at 32-bit registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Sims\EXPANSION\Locale. Encoding is in the System.Text namespace.
public static Dictionary<string, string> Locales = new Dictionary<string, string>() { { "en-US", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "zh-CN", Encoding.Unicode.GetString(new byte[] { 0x21, 0x6A, 0xDF, 0x62, 0xBA, 0x4E, 0x1F, 0x75, 0x33, 0x00 }) }, { "zh-TW", Encoding.Unicode.GetString(new byte[] { 0x21, 0x6A, 0xEC, 0x64, 0x02, 0x5E, 0x11, 0x6C, 0x33, 0x00 }) }, { "cs-CZ", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "da-DK", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "nl-NL", Encoding.Unicode.GetString(new byte[] { 0x44, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "fi-FI", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "fr-FR", Encoding.Unicode.GetString(new byte[] { 0x4C, 0x00, 0x65, 0x00, 0x73, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "de-DE", Encoding.Unicode.GetString(new byte[] { 0x44, 0x00, 0x69, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "el-GR", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "hu-HU", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "it-IT", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "ja-JP", Encoding.Unicode.GetString(new byte[] { 0xB6, 0x30, 0x65, 0xFF, 0xB7, 0x30, 0xE0, 0x30, 0xBA, 0x30, 0x13, 0xFF }) }, { "ko-KR", Encoding.Unicode.GetString(new byte[] { 0xEC, 0xC2, 0x88, 0xC9, 0x20, 0x00, 0x33, 0x00 }) }, { "no-NO", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "pl-PL", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "pt-PT", Encoding.Unicode.GetString(new byte[] { 0x4F, 0x00, 0x73, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "pt-BR", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "ru-RU", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "es-ES", Encoding.Unicode.GetString(new byte[] { 0x4C, 0x00, 0x6F, 0x00, 0x73, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "es-MX", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "sv-SE", Encoding.Unicode.GetString(new byte[] { 0x54, 0x00, 0x68, 0x00, 0x65, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6D, 0x00, 0x73, 0x00, 0x20, 0x00, 0x33, 0x00 }) }, { "th-TH", Encoding.Unicode.GetString(new byte[] { 0x40, 0x0E, 0x14, 0x0E, 0x2D, 0x0E, 0x30, 0x0E, 0x0B, 0x0E, 0x34, 0x0E, 0x21, 0x0E, 0x2A, 0x0E, 0x4C, 0x0E, 0x20, 0x00, 0x33, 0x00 }) } };