-
Notifications
You must be signed in to change notification settings - Fork 61
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:
cd <Path-To-Gorilla>/sources
xgettext -kmc -o source.pot -L Tcl gorilla.tcl viewhelp.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 Poedit or with any text editor.
They deprecated ones are marked like this:
#~ msgid “Exit”
#~ msgstr “Beenden”
msgfmt --tcl -l<lang> -d <path-to-msgs-dir> <lang>.po
mcset2mcmset.tcl <list of .msg files>
Since version 1.5.3.6 a new short description management for msgcat entries has been added. Each msgcat entry will have the following format:
[mc CATEGORY-SubCategory-identifier-?string?-...]
The master file en.po will translate the short description to the final message text. Translators will take it as a base for their translation.
See also Tcl/Tk Wiki #10922
To change the program icons inside a Windows *.exe file you have to work inside the Windows environment with Angus Johnson’s utility Resource Hacker (http://www.angusj.com/resourcehacker). Version 3.60 supports also 64bit executables.
- create a starpack: tclkit sdx.kit wrap gorilla.exe -runtime .exe
- start the Windows program Resource Hacker and open gorilla.exe
- 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