Re: printversion could be more translation-friendly
On Mon, 27 May 2002, Santiago Vila wrote:
> Not tested, but if this is wrong I would like to know why:
>
> --- main.c.orig Mon May 27 11:01:48 2002
> +++ main.c Mon May 27 13:08:35 2002
> @@ -41,10 +41,9 @@
> #include "main.h"
>
> static void printversion(void) {
> - if (fputs(_("Debian GNU/Linux `"), stdout) < 0) werr("stdout");
> - if (fputs(DPKG, stdout) < 0) werr("stdout");
> - if (fputs(_("' package management program version "), stdout) < 0) werr("stdout");
> - if (fputs( DPKG_VERSION_ARCH ".\n", stdout) < 0) werr("stdout");
> + if (fprintf(stdout,
> + _("Debian `%s' package management program version %s.\n"),
> + DPKG, DPKG_VERSION_ARCH) < 0) werr("stdout");
> if (fputs(_( "This is free software; see the GNU General Public Licence version 2 or\n"
> "later for copying conditions. There is NO warranty.\n"
> "See " DPKG " --licence for copyright and license details.\n"),
Why not also do it to this second fputs?
--
To UNSUBSCRIBE, email to debian-dpkg-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: