From: Stefan Weil <sw@weilnetz.de>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: Stefan Weil <sw@weilnetz.de>, qemu-devel <qemu-devel@nongnu.org>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: [Qemu-devel] [PATCH 3/4] po/Makefile: Fix generation of messages.po
Date: Fri, 5 Jul 2013 22:55:43 +0200 [thread overview]
Message-ID: <1373057744-20278-4-git-send-email-sw@weilnetz.de> (raw)
In-Reply-To: <1373057744-20278-1-git-send-email-sw@weilnetz.de>
* Tell xgettext that we use UTF-8 encoding (this is currently optional).
* Set charset=UTF-8 in messages.po. This avoids warnings from msgmerge:
warning: Charset "CHARSET" is not a portable encoding name.
* Use filename relative to root directory (ui/gtk.c instead of ../ui/gtk.c
or $(SRC_PATH)/ui/gtk.c) for comments in *.po files.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
po/Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/po/Makefile b/po/Makefile
index 0e345b0..a6ab482 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -36,7 +36,11 @@ install: $(OBJS)
@msgfmt -o $@ $<
$(PO_PATH)/messages.po: $(SRC_PATH)/ui/gtk.c
- @xgettext -o $@ --foreign-user --package-name=QEMU --package-version=$(VERSION) --msgid-bugs-address=qemu-devel@nongnu.org -k_ -C $<
+ @cd $(SRC_PATH) && \
+ (xgettext -o - --from-code=UTF-8 --foreign-user \
+ --package-name=QEMU --package-version=$(VERSION) \
+ --msgid-bugs-address=qemu-devel@nongnu.org -k_ -C ui/gtk.c | \
+ sed -e s/CHARSET/UTF-8/) >$@
$(PO_PATH)/%.po: $(PO_PATH)/messages.po
@msgmerge $@ $< > $@.bak && mv $@.bak $@
--
1.7.10.4
next prev parent reply other threads:[~2013-07-05 20:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-05 20:55 [Qemu-devel] [PATH 0/4] po/Makefile: Fix regression and some minor issues Stefan Weil
2013-07-05 20:55 ` [Qemu-devel] [PATCH 1/4] po/Makefile: Fix and improve help message Stefan Weil
2013-07-05 20:55 ` [Qemu-devel] [PATCH 2/4] po/Makefile: Fix *.mo generation for out-of-tree builds (regression) Stefan Weil
2013-07-05 20:55 ` Stefan Weil [this message]
2013-07-05 20:55 ` [Qemu-devel] [PATCH 4/4] po/Makefile: Use macro quiet-command for nice looking messages Stefan Weil
2013-07-16 5:16 ` [Qemu-devel] [PATH 0/4] po/Makefile: Fix regression and some minor issues Stefan Weil
2013-07-18 19:52 ` Stefan Weil
2013-07-23 20:12 ` [Qemu-devel] [PATCH " Stefan Weil
2013-07-23 20:47 ` Anthony Liguori
2013-07-23 20:54 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1373057744-20278-4-git-send-email-sw@weilnetz.de \
--to=sw@weilnetz.de \
--cc=aliguori@us.ibm.com \
--cc=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).