| 01-02-2009, 05:43 PM | #1 |
I've made a function witch can detect for each player the language installed for war3, but it works only for European languages. I used the local name of the footman (GetObjectName('hfoo')), but i can't use the Russian and Chinese letters in the editor, so instead i plan to use the length of other localized strings. Could you test plz this script and copy/paste or take a screenshot of the string displayed ? 24 numbers will be displayed. I've already it for : English:16 / 21 / 18 / 8 / 25 / 21 / 30 / 30 / 22 / 10 / 14 / 20 / 25 / 19 / 29 / 21 / 80 / 81 / 83 / 81 / 20 / 3 / 57 / 76 French:14 / 23 / 18 / 10 / 31 / 19 / 48 / 32 / 29 / 14 / 14 / 21 / 31 / 19 / 35 / 30 / 98 / 90 / 95 / 94 / 22 / 3 / 59 / 75 German:17 / 27 / 17 / 5 / 25 / 25 / 32 / 34 / 34 / 22 / 14 / 18 / 28 / 20 / 36 / 23 / 74 / 76 / 84 / 77 / 26 / 3 / 58 / 88 Italian:12 / 26 / 12 / 9 / 31 / 30 / 10 / 36 / 22 / 13 / 14 / 20 / 33 / 22 / 34 / 18 / 77 / 87 / 84 / 78 / 22 / 3 / 52 / 65 Korean:25 / 38 / 28 / 7 / 34 / 31 / 29 / 34 / 29 / 11 / 21 / 21 / 34 / 24 / 34 / 34 / 75 / 81 / 88 / 83 / 17 / 3 / 59 / 61 Russian:51 / 39 / 42 / 13 / 30 / 24 / 24 / 42 / 38 / 26 / 2 / 20 / 29 / 25 / 50 / 27 / 143 / 150 / 152 / 149 / 61 / 3 / 101 / 129 According to the official web page of downloading war3 patches http://us.blizzard.com/support/artic...rticleId=21221, i need it for : - Castellano (Spanish) - Cesky (Czech) - Chinese - Japanese - Polski (Polish) It seems people speak Chinese Traditional in Taiwan, someone know why Blizzard say there is a Taiwanese patch, and what about Chinese simplified and Traditional ? Here is the test script : JASS:scope DisplayLocalizedStringLength initializer init //! textmacro t_DisplayLocalized takes STRING set s = s + I2S ( StringLength(GetLocalizedString("$STRING$")) ) + " / " //! endtextmacro private function Actions takes nothing returns nothing local string s = null //! runtextmacro t_DisplayLocalized("PLAYER_DEFEATED") //! runtextmacro t_DisplayLocalized("PLAYER_LEFT_GAME") //! runtextmacro t_DisplayLocalized("PLAYER_VICTORIOUS") //! runtextmacro t_DisplayLocalized("GAMEOVER_VICTORY_MSG") //! runtextmacro t_DisplayLocalized("GAMEOVER_CONTINUE_GAME") //! runtextmacro t_DisplayLocalized("GAMEOVER_QUIT_GAME") //! runtextmacro t_DisplayLocalized("GAMEOVER_DEFEAT_MSG") //! runtextmacro t_DisplayLocalized("GAMEOVER_CONTINUE_OBSERVING") //! runtextmacro t_DisplayLocalized("GAMEOVER_DISCONNECTED") //! runtextmacro t_DisplayLocalized("GAMEOVER_GAME_OVER") //! runtextmacro t_DisplayLocalized("GAMEOVER_OK") //! runtextmacro t_DisplayLocalized("GAMEOVER_CONTINUE") //! runtextmacro t_DisplayLocalized("GAMEOVER_QUIT_MISSION") //! runtextmacro t_DisplayLocalized("GAMEOVER_RESTART") //! runtextmacro t_DisplayLocalized("GAMEOVER_REDUCE_DIFFICULTY") //! runtextmacro t_DisplayLocalized("GAMEOVER_LOAD") //! runtextmacro t_DisplayLocalized("CRIPPLE_WARNING_HUMAN") //! runtextmacro t_DisplayLocalized("CRIPPLE_WARNING_ORC") //! runtextmacro t_DisplayLocalized("CRIPPLE_WARNING_NIGHTELF") //! runtextmacro t_DisplayLocalized("CRIPPLE_WARNING_UNDEAD") //! runtextmacro t_DisplayLocalized("CRIPPLE_REVEALING_PREFIX") //! runtextmacro t_DisplayLocalized("CRIPPLE_REVEALING_POSTFIX") //! runtextmacro t_DisplayLocalized("CRIPPLE_UNREVEALED") //! runtextmacro t_DisplayLocalized("CRIPPLE_UNCRIPPLED") call BJDebugMsg(s) endfunction //=========================================================================== public function init takes nothing returns nothing local trigger trig = CreateTrigger( ) call TriggerRegisterTimerEvent(trig,1.0,false) call TriggerAddAction( trig, function Actions ) endfunction endscope If you can't use JassHelper , here is a test map, don't try to edit it, just start the map with warcraft 3. Thx in advance. |
| 01-04-2009, 06:45 AM | #2 |
I live in Korea, but I use every application (including OS) in U.S. English. However, its length will be 2(in Korean chars)*3(bytes per character)=6. I'm not sure, but if it is also 2 characters in Chinese, you're in trouble. Japanese representation would be five characters. (East Asian languages use 3 bytes per character in UTF-8, so 5*3=15 bytes) *Oh, I missed the point that you gave up using footman. However, another problem; there are three variations of Korean translation, one official and two non-official (also widely used). I'm sorry I couldn't help with test results (again, I use U.S. English). AFAIK even if Chinese Traditional (Mandarin) is spoken in Taiwan, people there use Traditional Chinese letters (just like the ones used in Korea), not Simplified Chinese letters (the ones used in Chinese mainland). If you're using sequence, you're still in trouble; the length would be same for both (only individual characters are different). It's very unfortunate that we cannot access individual characters as code. |
| 01-04-2009, 06:58 AM | #3 |
Ok, for Russian the sequence is: 51 / 39 / 42 / 13 / 30 / 24 / 24 / 42 / 38 / 26 / 2 / 20 / 29 / 25 / 50 / 27 / 143 / 150 / 152 / 149 / 61 / 3 / 101 / 129 |
| 01-04-2009, 09:43 AM | #4 |
@Spec : Thx , added. @ToukoAozaki : So the difference beetween Chinese Simplified and Traditionnal is only in how you write the same letter, the strings should have the same length in both ? Also do you know a Chinese , Korean and Japanese war 3 website ? |
| 01-04-2009, 10:51 AM | #5 | ||
Quote:
Quote:
Korean (Blizzard): http://www.blizzard.co.kr/war3x/ Korean (Publisher) : http://www.frozenthrone.co.kr/ No idea on the others. |
| 01-04-2009, 11:21 AM | #6 |
Thx i will ask on these websites if i won't have enough information for the Korean patch. |
| 01-04-2009, 02:46 PM | #7 | |
Quote:
http://playxp.com You should also see this site for non-official patch information. It is called HanWarc, and there are two variations: HanWarc 5 and HanWarc 6 (still alpha). |
| 01-04-2009, 03:58 PM | #8 |
If i really need it, i think i will ask to do it for me, i dunno where can i post on these websites, so thx in advance :p |
| 01-04-2009, 06:17 PM | #9 |
Italian: 12 / 26 / 12 / 9 / 31 / 30 / 10 / 36 / 22 / 13 / 14 / 20 / 33 / 22 / 34 / 18 / 77 / 87 / 84 / 78 / 22 / 3 / 52 / 65 |
| 01-04-2009, 06:34 PM | #10 |
Thx , added. |
| 01-09-2009, 05:07 PM | #11 |
bump |
| 01-18-2009, 12:43 PM | #12 |
Korean sequence added. |
| 01-25-2009, 10:08 PM | #13 |
bump |
| 02-21-2009, 05:14 PM | #14 |
Last bump before i forgive this function. Common guys. |
