- Joined
- Apr 27, 2008
- Messages
- 2,455
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 :
According to the official web page of downloading war3 patches
Blizzard Support, i need it for :
- Castellano (Spanish)
- Cesky (Czech)
- Chinese
- Japanese
- Polski (Polish)
It seems people speak Chinese Traditional in Taiwan, but i don't think Blizzard is enough stupid to give the same patch, so if you have bought your warcraft3 in Taiwan, test plz.
Here is the test script :
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.
PS : There is not any spoiler tag in this forum ?
EDIT :
, thx Zypher
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 :
16 / 21 / 18 / 8 / 25 / 21 / 30 / 30 / 22 / 10 / 14 / 20 / 25 / 19 / 29 / 21 / 80 / 81 / 83 / 81 / 20 / 3 / 57 / 76
14 / 23 / 18 / 10 / 31 / 19 / 48 / 32 / 29 / 14 / 14 / 21 / 31 / 19 / 35 / 30 / 98 / 90 / 95 / 94 / 22 / 3 / 59 / 75
17 / 27 / 17 / 5 / 25 / 25 / 32 / 34 / 34 / 22 / 14 / 18 / 28 / 20 / 36 / 23 / 74 / 76 / 84 / 77 / 26 / 3 / 58 / 88
12 / 26 / 12 / 9 / 31 / 30 / 10 / 36 / 22 / 13 / 14 / 20 / 33 / 22 / 34 / 18 / 77 / 87 / 84 / 78 / 22 / 3 / 52 / 65
25 / 38 / 28 / 7 / 34 / 31 / 29 / 34 / 29 / 11 / 21 / 21 / 34 / 24 / 34 / 34 / 75 / 81 / 88 / 83 / 17 / 3 / 59 / 61
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
Blizzard Support, i need it for :
- Castellano (Spanish)
- Cesky (Czech)
- Chinese
- Japanese
- Polski (Polish)
It seems people speak Chinese Traditional in Taiwan, but i don't think Blizzard is enough stupid to give the same patch, so if you have bought your warcraft3 in Taiwan, test plz.
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.
PS : There is not any spoiler tag in this forum ?
EDIT :
JASS:
[hidden=Something][/hidden]
Attachments
Last edited: