Re: [HACKERS] psql: new help related to variables are not too readable

Поиск
Список
Период
Сортировка
Искать
От
Daniel Verite
Тема
Re: [HACKERS] psql: new help related to variables are not too readable
Дата
Msg-id
9716ff39-473c-495f-8cad-1251c9cd3830@manitou-mail.org
Ответ на
Список
Дерево обсуждения
[HACKERS] psql: new help related to variables are not too readable Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] psql: new help related to variables are not tooreadable Erik Rijkers <er@xs4all.nl>
Re: [HACKERS] psql: new help related to variables are not too readable Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] psql: new help related to variables are not tooreadable Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] psql: new help related to variables are not tooreadable Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] psql: new help related to variables are not tooreadable Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] psql: new help related to variables are not too readable Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] psql: new help related to variables are not tooreadable Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] psql: new help related to variables are not too readable Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] psql: new help related to variables are not tooreadable Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] psql: new help related to variables are not too readable Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] psql: new help related to variables are not tooreadable Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] psql: new help related to variables are not too readable "David G. Johnston" <david.g.johnston@gmail.com>
Re: [HACKERS] psql: new help related to variables are not too readable Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] psql: new help related to variables are not tooreadable Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] psql: new help related to variables are not too readable Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] psql: new help related to variables are not too readable Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] psql: new help related to variables are not tooreadable Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] psql: new help related to variables are not too readable Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] psql: new help related to variables are not tooreadable Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] psql: new help related to variables are not too readable Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] psql: new help related to variables are not too readable Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] psql: new help related to variables are not tooreadable Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] psql: new help related to variables are not too readable "Daniel Verite" <daniel@manitou-mail.org>
Re: [HACKERS] psql: new help related to variables are not too readable Pavel Stehule <pavel.stehule@gmail.com>
	Tomas Vondra wrote:

> That's not what I meant. I've never felt a strong urge to avoid wrapping
> at 80 chars when translating strings - simply translate in the most
> meaningful way, if it gets longer than 80 chars and can't be easily
> shortened, just wrap. If there are 60 or 80 characters does not change
> this much - 80 chars may allow more unwrapped strings, of course, but
> it's a minor change for the translators. Or at least me, others may
> disagree, of course.

The difficulty varies across languages since some are more compact
than others, and the choice of wrapping or not is not
consistent across translations.

As an example, in the previous version, the first variable comes
out as:

en AUTOCOMMIT	     if set, successful SQL commands are automatically
committed

de AUTOCOMMIT	     wenn gesetzt werden alle erfolgreichen SQL-Befehle	     automatisch committet
es AUTOCOMMIT	     si está definida, órdenes SQL exitosas se comprometen	     automáticamente
fr AUTOCOMMIT	     si activé, les commandes SQL réussies sont
automatiquement validées

he AUTOCOMMIT	    אם הופעל, פקודות SQL מחויבות באופן אוטומטי

it AUTOCOMMIT	     se impostato, i comandi SQL riusciti sono salvati
automaticamente

ko AUTOCOMMIT	     지정 하면 SQL 명령이 성공하면 자동으로 커밋

pl AUTOCOMMIT	     gdy ustawiony, polecenia SQL zakończone powodzeniem są
automatycznie zatwierdzone

pt_BR AUTOCOMMIT	     se definido, comandos SQL bem sucedidos são
automaticamente efetivados

ru AUTOCOMMIT	     если установлен, успешные SQL-команды фиксируются
автоматически

sv AUTOCOMMIT	     om satt, efterföljande SQL-kommandon commit:as
automatiskt

zh_CN AUTOCOMMIT	     如果被设置,成功的SQL命令将会被自动提交

The original line in english has exactly 80 characters.
When translated in other latin languages, it tends to be a bit
longer.

German and spanish translators have taken the trouble
to break the message into two lines of less than
80 chars with the second one nicely indented, also
aligned in the .po file:

msgid "  AUTOCOMMIT	    if set, successful SQL commands are automatically
committed\n"
msgstr ""
"  AUTOCOMMIT	      si está definida, órdenes SQL exitosas se
comprometen\n"
"		      automáticamente\n"


But other translations are not necessarily done this way, or
at least not consistently. If only for that, having more
characters in the description before screen wrap should help
a bit. In the above example, I think with the new presentation
only the polish version wouldn't fit in 80 chars without
wrapping.


Best regards,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Markus Sintonen
Дата:
От: Greg Stark
Дата:
FAQ