Clean, simple way to add Strings in Language.dll files

Article written by chab
Published on 10-27-2012; updated on 07-10-2016
Tags:

This tutorial requires both “Anolis Resourcer” and “Resource Hacker”.
WHY?
– Resource Hacker doesn’t work correctly when adding string slots (folders)
– Anolis Resourcer doesn’t allow us to edit strings.

GOAL:
– No longer have to search for empty string slots randomly
– Create 1 or more “folders” with consecutive id’s (after the last string folder used)
– To know exactly which strings are yours.. and which are not! And find them very easily

Preparation : this only needs to be done once.
1) Open language.dll with Resourcer.
2) Go to any node in String Table. Example : 126/1036 (language is French in my example)
3) Export => create an example.bin file
– Note you will now be able to reuse this file at will –
Add new string table elements
4) Still in Resourcer, now Import :

  • select your language (1036 in my example = French)
  • file = example.bin (the one you just created)
  • win32 known type = String Table
  • resource name = integer identifier.

Don’t check “auto”. Set the integer value by yourself, 3409 in my example (the unused “folder” value you want to use : it’s analog to the number 126=stringname in step 2).
Here you need to know which “folder” number is free / which one you want to use;

5) Save the DLL and exit Resourcer
– Congratulations, you successfully added a folder… The step that doesn’t work when using Resource hacker –
Add new strings in the DLL !
6) Open languagesx.dll with Resource hacker.
7) Go to the new node in String Table (String Table/3409/1036) and set / add the strings you want ! You’ve got 16 rooms, but you can add new ones by repeating steps 4 and 5.

I suggest to add some “folders” in a row (repeat steps 4-5), so you’ve got enough room to last you a while.


Do you want to comment on this article? Thank the author? Tribute resources for its improvement? Raze it to the ground?

Come by and visit its thread in the University Forum!