summaryrefslogtreecommitdiff
path: root/NOTES
diff options
context:
space:
mode:
authorFlorian Pelz <pelzflorian@pelzflorian.de>2017-12-10 20:27:11 +0100
committerFlorian Pelz <pelzflorian@pelzflorian.de>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')
-rw-r--r--NOTES25
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
<savannah.nongnu.org/projects/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
+message
+
+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="pelzflorian@pelzflorian.de" --keyword=_
+xgettext -f po/POTFILES -o po/pelzfloriande-website.pot --from-code=UTF-8 --copyright-holder="" --package-name="pelzfloriande-website" --msgid-bugs-address="pelzflorian@pelzflorian.de" --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
$HOME/build/nyacc/src/nyacc: