path: root/NOTES
diff options
authorFlorian Pelz <>2018-02-08 17:41:27 +0100
committerFlorian Pelz <>2018-02-08 17:41:27 +0100
commit0de6f78d625f1d778ef97d04498d2aab7e61d235 (patch)
tree0ae1d97051eb3e6211de45f9ef3db31b124ac4b3 /NOTES
parent02e80b47fe0a9929a25d4a5f7ce11a15e1042d6f (diff)
Switch to using ordinary gettext functions for translations.
Diffstat (limited to 'NOTES')
1 files changed, 0 insertions, 53 deletions
diff --git a/NOTES b/NOTES
deleted file mode 100644
index 5ca494b..0000000
--- a/NOTES
+++ /dev/null
@@ -1,53 +0,0 @@
-This is the code for my personal website built with Haunt. Since I
-want translations to work with po files but without repeatedly calling
-setlocale, I’m using the ffi-helper in nyacc
-<> to call libgettextpo to parse
-the po files.
-By the way, what I forgot to mention is that I needed to replace
-#include <stdlib.h>
-in the gettext-po.h header file by
-typedef long size_t;
-otherwise “guild compile-ffi gettext-po.ffi” would fail with the error
-ffi-help: WARNING: the FFI helper is experimental
-(unknown):1: not found: "gnu/stubs-32.h"
-compile-ffi: parse failed
-So this change is needed in order to reproduce my ffi.
-gettext-po.scm was created with the ffi-helper.
-To create a pot file, call:
-xgettext -f po/POTFILES -o po/pelzfloriande-website.pot --from-code=UTF-8 --copyright-holder="" --package-name="pelzfloriande-website" --msgid-bugs-address="" --keyword=_ --keyword=__
-To create a po file from a pot file, do the usual:
-cd po
-msginit -l de --no-translator
-To merge an existing po file with a new pot file:
-cd po
-msgmerge -U de.po pelzfloriande-website.pot
-To build the site, assuming nyacc’s source is in
- On Parabola:
-GUILE_LOAD_PATH=$HOME/keep/projects/pelzfloriande-website:$HOME/build/nyacc/src/nyacc/examples:$GUILE_LOAD_PATH GUILE_LOAD_COMPILED_PATH=$GUILE_LOAD_COMPILED_PATH:$HOME/.cache/guile/ccache/2.2-LE-8-3.A/home/florian/keep/projects/pelzfloriande-website haunt build
- On Guix:
-GUILE_LOAD_PATH=$HOME/keep/projects/pelzfloriande-website:$HOME/build/nyacc/src/nyacc/examples:$GUILE_LOAD_PATH LD_LIBRARY_PATH=/gnu/store/0jjgg2bk6qmx87sdksm7bd2b3z10yd6j-gettext- haunt build
-Use this to run guile with strace for debugging. It’s probably easiest
-to do this from Emacs; I’m currently using M-x shell in Emacs.
-GUILE_LOAD_PATH=$HOME/keep/projects/pelzfloriande-website:$HOME/build/nyacc/src/nyacc/examples:$GUILE_LOAD_PATH GUILE_LOAD_COMPILED_PATH=$GUILE_LOAD_COMPILED_PATH:$HOME/.cache/guile/ccache/2.2-LE-8-3.A/home/florian/keep/projects/pelzfloriande-website strace -o out guile