From: Robert Millan <rmh@aybabtu.com>
To: grub-devel@gnu.org
Cc: Jordi Mallach <jordi@sindominio.net>,
Carles Pina i Estany <carles@pina.cat>
Subject: Re: gettext in build system
Date: Mon, 16 Nov 2009 00:59:09 +0100 [thread overview]
Message-ID: <20091115235909.GA12905@thorin> (raw)
In-Reply-To: <20091115231355.GA11962@thorin>
On Mon, Nov 16, 2009 at 12:13:55AM +0100, Robert Millan wrote:
> +po/messages.pot: po/POTFILES
> + xgettext --from-code=utf-8 --keyword=_ -f $< -o $@
> +
> +po/*.po: po/messages.pot
> + msgmerge -U $@ po/messages.pot
> +
> +po/%.mo: po/%.po
> + $(MKDIR_P) $$(dirname $@)
> + msgfmt -c --statistics -o $@ $^
Obvious missing thing is that these should be autoconffed.
> +#define _(str) gettext(str)
And I'm not sure if this is the right place to define _. Isn't there
a system-wide definition?
> + textdomain ("grub");
What's the usual way to handle this? TEXTDOMAIN macro?
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2009-11-15 23:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-15 23:13 gettext in build system Robert Millan
2009-11-15 23:59 ` Robert Millan [this message]
2009-11-16 0:23 ` Colin Watson
2009-11-16 19:15 ` Robert Millan
2009-11-16 19:09 ` Jordi Mallach
2009-11-16 19:56 ` Robert Millan
2009-11-16 20:24 ` Robert Millan
2009-11-16 22:34 ` Jordi Mallach
2009-11-16 22:32 ` Jordi Mallach
2009-11-17 10:49 ` Robert Millan
2009-11-17 12:22 ` Robert Millan
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=20091115235909.GA12905@thorin \
--to=rmh@aybabtu.com \
--cc=carles@pina.cat \
--cc=grub-devel@gnu.org \
--cc=jordi@sindominio.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.