HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Where can i find localized strings ?

09-08-2009, 07:46 PM#1
Troll-Brain
I got few of them, inside blizzard.j
Here :
http://www.wc3c.net/showpost.php?p=1056012&postcount=1

But i would get the other ones internally used by the game, you know when a gold color text is displayed, and a sound error played, ie when you target a point on the ground, and the spell need a unit ("you can't target items", or something like that, i have not the english version).

I'm afraid they are hardcoded in Warcraft III.exe/Frozen Throne.exe themselves.

Is there anyway to display them with DisplayText... ?
If yes, how can i get their name ?
09-08-2009, 08:06 PM#2
Bobo_The_Kodo
It should be in one of the UI files in the MPQ... But only for the language of your wc version .
09-08-2009, 09:37 PM#3
midiway
The constants that you can pass to GetLocalizedString() are declared in some files inside the War3xlocal.mpq, at the UI\FrameDef directory, having the .fdf extension
09-09-2009, 04:54 PM#4
Troll-Brain
Quote:
Originally Posted by midiway
The constants that you can pass to GetLocalizedString() are declared in some files inside the War3xlocal.mpq, at the UI\FrameDef directory, having the .fdf extension
Thx, i can't open these files with the latest acrobat reader, but it perfectly works with simply notepad.
However i didn't found in which file, where are the kind of strings i've mentioned as an example, do you have an idea ?
09-10-2009, 05:38 AM#5
midiway
Quote:
Originally Posted by Troll-Brain
Thx, i can't open these files with the latest acrobat reader, but it perfectly works with simply notepad.
However i didn't found in which file, where are the kind of strings i've mentioned as an example, do you have an idea ?

They are not meant to be open with Adobe Reader since they are only plain text files

Unfortunately these are probably hard-coded strings. When you see the rawcode of those string in the Advanced/Game Interface... dialog they are all in lower case (ex.:Needattacker) what does'nt follow the same upper case patern from string declared in the .fdf files, also GetLocalizedString("Needattacker") returns "Needattacker" and not the actual "Must target an attack unit." error message
09-10-2009, 05:44 AM#6
Earth-Fury
Quote:
Originally Posted by Troll-Brain
I'm afraid they are hardcoded in Warcraft III.exe/Frozen Throne.exe themselves

Fun bit of trivia: Those two executables basically only call war3.exe. war3.exe basically only calls game.dll. It's game.dll where all the magic happens.

On topic: why do you care about finding localized strings?
09-10-2009, 07:04 PM#7
Troll-Brain
Quote:
Originally Posted by Earth-Fury
why do you care about finding localized strings
Would be fine for custom spells and in general "systems", because English is not the only language on the world.

@midiway :
Ok, it's sad.
Thx for your answers.
09-10-2009, 07:18 PM#8
Toadcop
i don't think they are hardcoded.... otherwise localized versions wouldn't be possible at.

UI/framedef/globalstrings.fdf - plain text

the features is probably they wont launch from the map... (will be ignored) so not usuful.