-
Notifications
You must be signed in to change notification settings - Fork 62
Developers
Here you will find some hints if you would like to participate in developing Password Gorilla
A potential new translator needs as base for his translation the catalog template file gorilla.pot which he will edit and save to his locale.po
The template file gorilla.pot is constructed by two templates which are concatenated by msgcat.
The file source.pot is created by typing:
xgettext -kmc -o source.pot -L Tcl <Path-To-Gorilla>/sources/gorilla.tcl
For adding or modifying menuitems edit menuitems.pot manually.
Finally concatenate the two files typing:
msgcat -o gorilla.pot menuitems.pot source.pot
A new lang.po file will be by principle just a copy of gorilla.pot
Just make a initial call to create a header:
msginit -l <lang> -o <lang>.po -i gorilla.pot
To avoid issues the header should contain charset=UTF-8
The existing message file has to be prepared thus:
msgmerge --update <lang>.po --backup=simple gorilla.pot"
This will add the new untranslated messages to .po and mark the deprecated
and fuzzy ones.
Subsequently the updated catalogue file can be edited with an specialized editor like Poedet or with any text editor.
They deprecated ones are marked like this:
#~ msgid “Exit”
#~ msgstr “Beenden”
msgfmt --tcl -lde -d <path-to-msgs-dir> <lang>.po
That’s all
See details in Tcl/Tk Wiki #10922
Note:
bq. (HaO) Since TCL 8.5.8, the window icon for the starpacks on Pat Thoyts page 7 changed to tclsh.ico (the feather from the tcl core distribution). This file includes a 64×64 bit resolution icon and thus, the upper JCW-Method 1 does not work any more.
The new method works like this:
- create a starpack: tclkit sdx.kit wrap gorilla.exe -runtime tclkit-8.5.9-win32.upx.exe
- cp gorilla.exe gorillaversion.exe
- upx -d gorillaversion.exe
- start the Windows program Resource Hacker (http://delphi.icm.edu.pl/ftp/tools/ResHack.zip) with GUI (in a VirtualBox window), drag gorillaversion.exe into it
- Search "Icon groups → Tk → 1033, rightclick the group and choose “Replace Resource …”
- click “Open file with new icon …” and choose as source sources/pics/gorilla.ico in Gorilla’s installation directory
- edit “Version Info”
- save the edited exe file
- upx —best —compress-resources=0 gorillaversion.exe