Re: pgwin32_open returning EINVAL

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Zeugswetter Andreas ADI SD <Andreas(dot)Zeugswetter(at)s-itsolutions(dot)at>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Gregory Stark <stark(at)enterprisedb(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgwin32_open returning EINVAL
Date: 2007-12-20 10:19:29
Message-ID: 20071220101929.GA16113@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Dec 20, 2007 at 09:32:38AM +0100, Magnus Hagander wrote:
> (errmsg("could not open file \"%s\": %s violation", fileName,
> (GetLastError() ==
> ERROR_SHARING_VIOLATION)?_("sharing"):_("lock")),
>
> Is _("") the proper way to get a translatable string in like that, or is
> there a better way?

Hmm, from a translation point of view wouldn't it be better to have the
word "violation" inside each of the _(), since not all languages might
allow such substitions (gender problems).

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
> -- John F Kennedy

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-12-20 10:31:20 Re: Sorting Improvements for 8.4
Previous Message Gokulakannan Somasundaram 2007-12-20 08:36:49 Re: [HACKERS] Proposal for Null Bitmap Optimization(for TrailingNULLs)