Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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
Creating and updating locale catalogue files for Password Gorilla
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”
Creating Tcl .msg files
msgfmt --tcl -l<lang> -d <path-to-msgs-dir> <lang>.po mcset2mcmset.tcl <list of .msg files>
V 126.96.36.199 short description format
Since version 188.8.131.52 a new short description management for msgcat entries has been added. Each msgcat entry will have the following format:
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.
Custom Icons For Win32 Starpacks
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”