Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] i18n project
Date: Tue, 20 Jun 2006 21:33:58
Message-Id: 200606201735.29905.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] i18n project by Flammie Pirinen
1 On Monday 19 June 2006 13:16, Flammie Pirinen wrote:
2 > 2006-06-19, Jan Kundrát sanoi, jotta:
3 > > Paul de Vrieze wrote:
4 > > > What about messages output by ebuilds? Are they also going to be
5 > > > translated? In that case, how?
6 > >
7 > > There's no way to provide localized output of einfo/... calls from
8 > > ebuild that I'm aware of. Suggestions are welcome :)
9 >
10 > Is there a reason why calling gettext from einfo() etc. or extracting
11 > messages from tree using e.g. xgettext wouldn’t work?
12
13 this would make it impossible to translate strings when einfo is given
14 user-based variables (die "econf $* failed")
15
16 just use bash's system for translating strings:
17 echo $"hihihihi"
18 einfo $"PLEASE TO READ ME"
19 -mike