unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 362ef089021f5a0b5d441485d4ac5278f9ae03e2 838 bytes (raw)
name: website/wip-howto-test-translation 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
To create a pot file:

guile scripts/sexp-xgettext.scm -f po/POTFILES -o po/guix-website.pot --from-code=UTF-8 --copyright-holder="Ludovic Courtès" --package-name="guix-website" --msgid-bugs-address="ludo@gnu.org" --keyword=G_ --keyword=N_:1,2 --keyword=C_:1,2c

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 guix-website.pot

To update mo files:

mkdir -p de/LC_MESSAGES
cd po
msgfmt de.po
cd ..
mv po/messages.mo de/LC_MESSAGES/guix-website.mo

To test:

guix environment --ad-hoc haunt
GUILE_LOAD_PATH=$(guix build guile-syntax-highlight)/share/guile/site/2.2:$GUILE_LOAD_PATH GUIX_WEB_SITE_LOCAL=yes haunt build
GUILE_LOAD_PATH=$(guix build guile-syntax-highlight)/share/guile/site/2.2:$GUILE_LOAD_PATH haunt serve

debug log:

solving 362ef08 ...
found 362ef08 in https://yhetil.org/guix-devel/20190726111155.qospxvrw7rnuwtok@pelzflorian.localdomain/

applying [1/1] https://yhetil.org/guix-devel/20190726111155.qospxvrw7rnuwtok@pelzflorian.localdomain/
diff --git a/website/wip-howto-test-translation b/website/wip-howto-test-translation
new file mode 100644
index 0000000..362ef08

Checking patch website/wip-howto-test-translation...
Applied patch website/wip-howto-test-translation cleanly.

index at:
100644 362ef089021f5a0b5d441485d4ac5278f9ae03e2	website/wip-howto-test-translation

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).