• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Define more GetLocalizedHotkey strings?

Status
Not open for further replies.
Level 13
Joined
Nov 7, 2014
Messages
571
Okay so the war3map.wts holds the strings of the script generated by the gui triggers ("TRGSTR_XXX"), it can be expored with File/Export Strings
and can be edited manually and reimported. The strings can then be retrieved via the GetLocalizedString("TRGSTR_XXX") jass native.

But I am reading blizzard.j and seeing calls to the GetLocalizedHotkey native(GetLocalizedHotkey("GAMEOVER_CONTINUE_GAME"), GetLocalizedHotkey("GAMEOVER_OK"), etc. ), my question is
where are those "GAMEOVER_CONTINUE_GAME", "GAMEOVER_OK" strings defined, and CAN a map define more of those?
 
Level 26
Joined
Aug 18, 2009
Messages
4,099
Those are from ui files like UI\FrameDef\GlobalStrings.fdf. They are not map-rewritable. If you are going to ask if it helps making a map multilinguinal, I feel to tell you that each wc3 installation only contains the strings of one version. GetLocalizedHotkey does not read the system nor wc3 language and and indexes a data structure with it but only extracts the information from the string table. So while outsourcing string literals may be good practice, you still need to deliver the different language packs and cannot combine it in one map.
 
Status
Not open for further replies.
Top