Question: How can I improve some of the UI text?
Answer:
In September 2013 Ben Crowder said on the users mailing list,
In preferences dialog, just putting a space in between each word instead of camel case would be great. "Undo Redo Limit To Save" instead of "UndoRedoLimitToSave", for example.
You don't need to be a C programmer to make such a change, just know web development and a little UNIX :)
First, make a fork of FontForge (https://github.com/fontforge/fontforge) in the usual Github way, and download your fork.
Then search the codebase for the text you want to fix:
$ grep -r UndoRedoLimitToSave *
fontforge/prefs.c:extern int UndoRedoLimitToSave; /* sfd.c */
fontforge/prefs.c: { N_("UndoRedoLimitToSave"), pr_int, &UndoRedoLimitToSave, NULL, NULL, '\0', NULL, 0, N_( "The number of undo and redo operations which will be saved in sfd files.\nIf you set this to 0 undo/redo information is not saved to sfd files.\nIf set to -1 then all available undo/redo information is saved without limit.") },
fontforge/sfd.c:int UndoRedoLimitToSave = 0;
fontforge/sfd.c: if( saveUndoes && UndoRedoLimitToSave > 0) {
fontforge/sfd.c: for( limit = UndoRedoLimitToSave;
fontforge/sfd.c: limit = UndoRedoLimitToSave;
fontforge/sfd.c: for( limit = UndoRedoLimitToSave;
fontforge/sfd.c: if( !UndoRedoLimitToSave )
po/ja.po:msgid "UndoRedoLimitToSave"
po/pl.po:msgid "UndoRedoLimitToSave"
po/ru.po:msgid "UndoRedoLimitToSave"
po/uk.po:msgid "UndoRedoLimitToSave"
$
From this we can see that the prefs.c file has a part that is a translatable 'msgid' - N_("UndoRedoLimitToSave") - and there are translation source files as *.po with the msgid.
- Open prefs.c and change N_("UndoRedoLimitToSave") to N_("Undo Redo Limit ToSave")
- Open the po files and change msgid "UndoRedoLimitToSave" to msgid "Undo Redo Limit To Save"
- Save these files, and test them. The easiest way to do this on Mac OS X is to commit the changes and push them to your repo, then edit the Homebrew formula :)
Then replace what is currently line 8,
head 'https://github.com/fontforge/fontforge.git'
with your github url, save the file, and
brew uninstall fontforge;
brew install fontforge --HEAD --with-x
- When you are happy with your changes, make a pull request in the normal Github way.