From 223f339eedaec9a97de59305d58f4ff9dd7df225 Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 11 Jul 2017 22:37:18 -0500 Subject: Fixup translation support * Use `bash updatepo.sh` instead of `make pot`. `make pot` will cause absolute paths to appear in hardinfo.pot of whomever last ran it. * C_() and NC_() support added for contexts Signed-off-by: Burt P --- po/HOWTO.txt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'po/HOWTO.txt') diff --git a/po/HOWTO.txt b/po/HOWTO.txt index 81b9bd5c..2a0775dd 100644 --- a/po/HOWTO.txt +++ b/po/HOWTO.txt @@ -1,2 +1,15 @@ -update .pot : make pot in build/ -update .po files after .pot update : msgmerge -N XX.po hardinfo.pot > XX_.po && mv XX_.po XX.po + +To update the .pot and existing translations use: + bash updatepo.sh + +----- + +update .pot : + --don't!-- make pot in build/ + absolute paths will appear in the .pot + try : + xgettext -d hardinfo -o hardinfo.pot -k_ -kN_ -kC_:1c,2 -kNC_:1c,2 -c/ --from-code=UTF-8 ... + +update .po files after .pot update : + msgmerge -N XX.po hardinfo.pot > XX_.po && mv XX_.po XX.po + -- cgit v1.2.3