Difference between revisions of "Sims 3:Locales"
From SimsWiki
(Categorizied.) |
m (Matched registry/manifest capitalization.) |
||
Line 11: | Line 11: | ||
| <tt>00</tt> | | <tt>00</tt> | ||
| 0 | | 0 | ||
− | | en- | + | | en-US |
| English | | English | ||
| United States | | United States | ||
Line 19: | Line 19: | ||
| <tt>01</tt> | | <tt>01</tt> | ||
| 1 | | 1 | ||
− | | zh- | + | | zh-CN |
| Chinese | | Chinese | ||
| China | | China | ||
Line 27: | Line 27: | ||
| <tt>02</tt> | | <tt>02</tt> | ||
| 2 | | 2 | ||
− | | zh- | + | | zh-TW |
| Chinese | | Chinese | ||
| China Taiwan | | China Taiwan | ||
Line 35: | Line 35: | ||
| <tt>03</tt> | | <tt>03</tt> | ||
| 3 | | 3 | ||
− | | cs- | + | | cs-CZ |
| Czech | | Czech | ||
| Czech Republic | | Czech Republic | ||
Line 43: | Line 43: | ||
| <tt>04</tt> | | <tt>04</tt> | ||
| 4 | | 4 | ||
− | | da- | + | | da-DK |
| Danish | | Danish | ||
| Denmark | | Denmark | ||
Line 51: | Line 51: | ||
| <tt>05</tt> | | <tt>05</tt> | ||
| 5 | | 5 | ||
− | | nl- | + | | nl-NL |
| Dutch | | Dutch | ||
| Netherlands | | Netherlands | ||
Line 59: | Line 59: | ||
| <tt>06</tt> | | <tt>06</tt> | ||
| 6 | | 6 | ||
− | | fi- | + | | fi-FI |
| Finnish | | Finnish | ||
| Finland | | Finland | ||
Line 67: | Line 67: | ||
| <tt>07</tt> | | <tt>07</tt> | ||
| 7 | | 7 | ||
− | | fr- | + | | fr-FR| French |
− | | French | + | |
| France | | France | ||
| Les Sims 3 | | Les Sims 3 | ||
Line 75: | Line 74: | ||
| <tt>08</tt> | | <tt>08</tt> | ||
| 8 | | 8 | ||
− | | de- | + | | de-DE |
| German | | German | ||
| Germany | | Germany | ||
Line 83: | Line 82: | ||
| <tt>09</tt> | | <tt>09</tt> | ||
| 9 | | 9 | ||
− | | el- | + | | el-GR |
| Greek | | Greek | ||
| Greece | | Greece | ||
Line 91: | Line 90: | ||
| <tt>0A</tt> | | <tt>0A</tt> | ||
| 10 | | 10 | ||
− | | hu- | + | | hu-HU |
| Hungarian | | Hungarian | ||
| Hungary | | Hungary | ||
Line 99: | Line 98: | ||
| <tt>0B</tt> | | <tt>0B</tt> | ||
| 11 | | 11 | ||
− | | it- | + | | it-IT |
| Italian | | Italian | ||
| Italy | | Italy | ||
Line 107: | Line 106: | ||
| <tt>0C</tt> | | <tt>0C</tt> | ||
| 12 | | 12 | ||
− | | ja- | + | | ja-JP |
| Japanese | | Japanese | ||
| Japan | | Japan | ||
Line 115: | Line 114: | ||
| <tt>0D</tt> | | <tt>0D</tt> | ||
| 13 | | 13 | ||
− | | ko- | + | | ko-KR |
| Korean | | Korean | ||
| South Korea | | South Korea | ||
Line 123: | Line 122: | ||
| <tt>0E</tt> | | <tt>0E</tt> | ||
| 14 | | 14 | ||
− | | no- | + | | no-NO |
| Norwegian | | Norwegian | ||
| Norway | | Norway | ||
Line 131: | Line 130: | ||
| <tt>0F</tt> | | <tt>0F</tt> | ||
| 15 | | 15 | ||
− | | pl- | + | | pl-PL |
| Polish | | Polish | ||
| Poland | | Poland | ||
Line 139: | Line 138: | ||
| <tt>10</tt> | | <tt>10</tt> | ||
| 16 | | 16 | ||
− | | pt- | + | | pt-PT |
| Portuguese | | Portuguese | ||
| Portugal | | Portugal | ||
Line 147: | Line 146: | ||
| <tt>11</tt> | | <tt>11</tt> | ||
| 17 | | 17 | ||
− | | pt- | + | | pt-BR |
| Portuguese | | Portuguese | ||
| Brazil | | Brazil | ||
Line 155: | Line 154: | ||
| <tt>12</tt> | | <tt>12</tt> | ||
| 18 | | 18 | ||
− | | ru- | + | | ru-RU |
| Russian | | Russian | ||
| Russia | | Russia | ||
Line 163: | Line 162: | ||
| <tt>13</tt> | | <tt>13</tt> | ||
| 19 | | 19 | ||
− | | es- | + | | es-ES |
| Spanish | | Spanish | ||
| Spain | | Spain | ||
Line 171: | Line 170: | ||
| <tt>14</tt> | | <tt>14</tt> | ||
| 20 | | 20 | ||
− | | es- | + | | es-MX |
| Spanish | | Spanish | ||
| Mexico | | Mexico | ||
Line 179: | Line 178: | ||
| <tt>15</tt> | | <tt>15</tt> | ||
| 21 | | 21 | ||
− | | sv- | + | | sv-SE |
| Swedish | | Swedish | ||
| Sweden | | Sweden | ||
Line 187: | Line 186: | ||
| <tt>16</tt> | | <tt>16</tt> | ||
| 22 | | 22 | ||
− | | th- | + | | th-TH |
| Thai | | Thai | ||
| Thailand | | Thailand | ||
Line 195: | Line 194: | ||
==C# Code== | ==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- | + | 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>() | public static Dictionary<string, string> Locales = new Dictionary<string, string>() | ||
{ | { | ||
− | { "en- | + | { "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- | + | { "zh-CN", Encoding.Unicode.GetString(new byte[] { 0x21, 0x6A, 0xDF, 0x62, 0xBA, 0x4E, 0x1F, 0x75, 0x33, 0x00 }) }, |
− | { "zh- | + | { "zh-TW", Encoding.Unicode.GetString(new byte[] { 0x21, 0x6A, 0xEC, 0x64, 0x02, 0x5E, 0x11, 0x6C, 0x33, 0x00 }) }, |
− | { "cs- | + | { "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- | + | { "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-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-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-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-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- | + | { "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-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-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- | + | { "ja-JP", Encoding.Unicode.GetString(new byte[] { 0xB6, 0x30, 0x65, 0xFF, 0xB7, 0x30, 0xE0, 0x30, 0xBA, 0x30, 0x13, 0xFF }) }, |
− | { "ko- | + | { "ko-KR", Encoding.Unicode.GetString(new byte[] { 0xEC, 0xC2, 0x88, 0xC9, 0x20, 0x00, 0x33, 0x00 }) }, |
− | { "no- | + | { "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-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-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- | + | { "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-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-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- | + | { "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- | + | { "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-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 }) } |
}; | }; | ||
Revision as of 12:37, 2 February 2011
Id | Name | Language | Country | Locale Name | |
---|---|---|---|---|---|
00 | 0 | en-US | English | United States | The Sims 3 |
01 | 1 | zh-CN | Chinese | China | 模拟人生3 |
02 | 2 | zh-TW | Chinese | China Taiwan | 模擬市民3 |
03 | 3 | cs-CZ | Czech | Czech Republic | The Sims 3 |
04 | 4 | da-DK | Danish | Denmark | The Sims 3 |
05 | 5 | nl-NL | Dutch | Netherlands | De Sims 3 |
06 | 6 | fi-FI | Finnish | Finland | The Sims 3 |
07 | 7 | French | France | Les Sims 3 | |
08 | 8 | de-DE | German | Germany | Die Sims 3 |
09 | 9 | el-GR | Greek | Greece | The Sims 3 |
0A | 10 | hu-HU | Hungarian | Hungary | The Sims 3 |
0B | 11 | it-IT | Italian | Italy | The Sims 3 |
0C | 12 | ja-JP | Japanese | Japan | ザ・シムズ3 |
0D | 13 | ko-KR | Korean | South Korea | 심즈 3 |
0E | 14 | no-NO | Norwegian | Norway | The Sims 3 |
0F | 15 | pl-PL | Polish | Poland | The Sims 3 |
10 | 16 | pt-PT | Portuguese | Portugal | Os Sims 3 |
11 | 17 | pt-BR | Portuguese | Brazil | The Sims 3 |
12 | 18 | ru-RU | Russian | Russia | The Sims 3 |
13 | 19 | es-ES | Spanish | Spain | Los Sims 3 |
14 | 20 | es-MX | Spanish | Mexico | The Sims 3 |
15 | 21 | sv-SE | Swedish | Sweden | The Sims 3 |
16 | 22 | th-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 }) } };