From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Gilles Darold <gilles(dot)darold(at)dalibo(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Erik Rijkers <er(at)xs4all(dot)nl>, Marc Mamin <M(dot)Mamin(at)intershop(dot)de> |
Subject: | Re: review: psql and pset without any arguments |
Date: | 2013-09-30 03:43:33 |
Message-ID: | 20130930034333.GB5235@eldon.alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Gilles Darold escribió:
> + else if (strcmp(param, "numericlocale") == 0)
> + {
> + if (popt->topt.numericLocale)
> + puts(_("Locale-adjusted numeric output (numericlocale) is on."));
> + else
> + puts(_("Locale-adjusted numeric output (numericlocale) is off."));
> + }
Please don't make the variable name part of the translatable message. I
suggest using the following pattern:
> + else if (strcmp(param, "numericlocale") == 0)
> + {
> + if (popt->topt.numericLocale)
> + printf(_("Locale-adjusted numeric output (%s) is on."), "numericlocale");
> + else
> + printf(_("Locale-adjusted numeric output (%s) is off."), "numericlocale");
> + }
Otherwise it will be too easy for the translator to make the mistake
that the variable name needs translation too.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2013-09-30 03:49:42 | Re: Compression of full-page-writes |
Previous Message | Fujii Masao | 2013-09-30 03:41:09 | Re: pgbench filler columns |