Le Ven. Mai. 08 05:33:05 2009, DRTECH a écrit :
Show quoted text> > If you try
> > xgettext.pl -D .. --files-from=POTFILES.in
> >
> > in the po subdirectory, xgettext.pl will try first to access every files
> > from the top-level directory, including unwanted files as configure.ac,
> > when processing the -D option, and ignores files from POTFILES.in as not
> > present in current directory.
>
>
> thanks for this Guillaume.
>
> I'm not familiar with GNU's xgettext, so I have a couple of questions
> for you before I make changes. Forgive me for spelling this all out, but
> I don't want to break things.
>
> The way I've used xgettext.pl is as follows:
> -D $dir => add a dir to search for any extractable file
> (excluding /^(\.svn|blib|autogen|var|m4|local|CVS)$/ )
> -f => add a particular file, relative to the current dir
>
> So you could for instance say:
> -D src/ -f lib/foo.pm
>
> ...which would look for any extractable files in ./src/ AND look at
> ./lib/foo.pm
>
> This is different from what you have described. As I understand it,
> you're saying that the above args would search in ./src/ for
> ./lib/foo.pm only, ie it would find only ./src/lib/foo.pm
>
> Is that correct?
Yes.
Show quoted text> What I don't want to lose is the wild-card nature of -D - personally, I
> find that very useful.
>
> I'm wondering if we should add a --base-dir option, which means "look
> for all files relative to this dir", rather than changing the meaning
of -D
I'd personally prefer to change -D option behaviour, to match GNU
gettext interface, and eventually have another option for current
behaviour. But it would xgettext.pl user habits, tough, so I understand
your point.
Show quoted text> Another question, why do you create empty .po files in your makefile?
There wasn't any makefile in the submitted archive, where do you see
empty po files creation ?