path: root/NOTES
diff options
authorFlorian Pelz <>2017-12-10 20:27:11 +0100
committerFlorian Pelz <>2017-12-10 20:27:11 +0100
commit5e6463ef94b3862f24106849ae208f6ee1d71109 (patch)
tree9c6b75e2a005b4eb192e2b920e6cfe0e158e06fb /NOTES
parent5f97bf157eaddcfe722c97dcab349b7dcfbbcd9d (diff)
Notes on ffi-helper usage were incomplete.
“guild compile-ffi gettext-po.ffi” requires changes to gettext-po.h
Diffstat (limited to 'NOTES')
1 files changed, 24 insertions, 1 deletions
diff --git a/NOTES b/NOTES
index bcb77c7..fedbea8 100644
--- a/NOTES
+++ b/NOTES
@@ -4,17 +4,40 @@ 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=_
+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