bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xgettext output nothing


From: Bruno Haible
Subject: Re: xgettext output nothing
Date: Sun, 13 Feb 2011 21:52:02 +0100
User-agent: KMail/1.9.9

> I try to generate the .po file using 'xgettext' on a source file but nothing 
> in the output:
> 
> $ xgettext hello.c
>
> If I give the output file:
> 
> $ xgettext hello.c -o hello.po
> 
> The hello.po file is not created.

If you want to output a PO file, even when it will be virtually empty, use the
option "--force-po".

> I read the manual and the official documentation, but I don't understand why
> I got nothing at the output when I use 'xgettext'.

The relevant info is in the "xgettext --help"'s output and in this manual page:
<http://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html>

> The source is available here:
> http://ftp.gnu.org/gnu/hello/hello-2.6.tar.xz

I think you should also take a look at the value of XGETTEXT_OPTIONS in the file
po/Makevars in that tarball.

Bruno
-- 
In memoriam Alexander Samoylovich 
<http://en.wikipedia.org/wiki/Alexander_Samoylovich>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]