[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettext in build system
From: |
Robert Millan |
Subject: |
Re: gettext in build system |
Date: |
Mon, 16 Nov 2009 00:59:09 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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."
- gettext in build system, Robert Millan, 2009/11/15
- Re: gettext in build system,
Robert Millan <=
- Re: gettext in build system, Colin Watson, 2009/11/15
- Re: gettext in build system, Jordi Mallach, 2009/11/16
- Re: gettext in build system, Jordi Mallach, 2009/11/16
- Re: gettext in build system, Robert Millan, 2009/11/17
- Re: gettext in build system, Robert Millan, 2009/11/17