pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Patch to reduce the number of messages to translate
11+ messages / 4 participants
[nested] [flat]

* Patch to reduce the number of messages to translate
@ 2004-12-16 23:07  Xavier Poinsard <xpoinsard@free.fr>
  0 siblings, 1 reply; 11+ messages in thread

From: Xavier Poinsard @ 2004-12-16 23:07 UTC (permalink / raw)
  To: pgsql-jdbc

The attached patch reduces the number of messages to translate by using 
a parameter to regroup similar messages.
For example "Bad short" => "Bad {0}" with "short" as argument.
This way "Bad int" becomes "Bad {0}" we have reduced the number of 
messages to translate.

Attachments:

  ReduceMessagespatch.txt.gz (application/x-gzip, 1.6K) download

^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: Patch to reduce the number of messages to translate
@ 2004-12-17 21:44  Kris Jurka <books@ejurka.com>
  parent: Xavier Poinsard <xpoinsard@free.fr>
  0 siblings, 1 reply; 11+ messages in thread

From: Kris Jurka @ 2004-12-17 21:44 UTC (permalink / raw)
  To: Xavier Poinsard <xpoinsard@free.fr>; +Cc: pgsql-jdbc



On Fri, 17 Dec 2004, Xavier Poinsard wrote:

> The attached patch reduces the number of messages to translate by using 
> a parameter to regroup similar messages.
> For example "Bad short" => "Bad {0}" with "short" as argument.
> This way "Bad int" becomes "Bad {0}" we have reduced the number of 
> messages to translate.
> 

Is this a good idea?  I'm willing to take your word as someone who 
actually does translations, but I wanted to confirm that parameterizing 
the message in this way won't cause translation problems.  Is this only a 
reasonable thing to do because the existing error message text isn't all 
that informative?

Kris Jurka



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: Patch to reduce the number of messages to translate
@ 2004-12-17 22:16  Peter Eisentraut <peter_e@gmx.net>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 11+ messages in thread

From: Peter Eisentraut @ 2004-12-17 22:16 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: Xavier Poinsard <xpoinsard@free.fr>; pgsql-jdbc

Kris Jurka wrote:
> > For example "Bad short" => "Bad {0}" with "short" as argument.
> > This way "Bad int" becomes "Bad {0}" we have reduced the number of
> > messages to translate.
>
> Is this a good idea?  I'm willing to take your word as someone who
> actually does translations, but I wanted to confirm that
> parameterizing the message in this way won't cause translation
> problems.

I'm pretty sure it will.  Splitting the adjective away from the noun 
isn't a good idea.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: Patch to reduce the number of messages to translate
@ 2004-12-18 13:53  Xavier Poinsard <xpoinsard@free.fr>
  parent: Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 11+ messages in thread

From: Xavier Poinsard @ 2004-12-18 13:53 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc

Peter Eisentraut wrote:
> Kris Jurka wrote:
> 
>>>For example "Bad short" => "Bad {0}" with "short" as argument.
>>>This way "Bad int" becomes "Bad {0}" we have reduced the number of
>>>messages to translate.
>>
>>Is this a good idea?  I'm willing to take your word as someone who
>>actually does translations, but I wanted to confirm that
>>parameterizing the message in this way won't cause translation
>>problems.
> 
> 
> I'm pretty sure it will.  Splitting the adjective away from the noun 
> isn't a good idea.
> 

I typed quickly the message with my patch ; the changes are the following :

- "Conversion of box failed: {0}." => "Conversion of {1} failed: {0}."
  with box,circle,line,lseg,point

- "The JVM claims not to support the ASCII encoding." => "The JVM claims 
not to support the {0} encoding."
  with ASCII,UTF-8

- "Bad byte: {0}" => "Bad {1}: {0}"
  with byte,short,int,long,BigDecimal,float,double,date

- "Cannot cast an instance of {0} to Types.BIT" => "Cannot cast an 
instance of {0} to {1}"
  with Types.BIT,Types.OTHER

As you can see, the new parameters have all the same gender : they are 
all java type names or encodings. Since they have the same gender, the 
adjective will be the same for all.
As far as I know, this type of replacement can't be a problem.
If the new parameters were real nouns with different genders, it would 
be a problem, but not in these cases.
No ?






^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: Patch to reduce the number of messages to translate
@ 2004-12-20 18:43  Peter Eisentraut <peter_e@gmx.net>
  parent: Xavier Poinsard <xpoinsard@free.fr>
  0 siblings, 2 replies; 11+ messages in thread

From: Peter Eisentraut @ 2004-12-20 18:43 UTC (permalink / raw)
  To: Xavier Poinsard <xpoinsard@free.fr>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc

Xavier Poinsard wrote:
> As you can see, the new parameters have all the same gender : they
> are all java type names or encodings.

What makes you think that all Java type names have the same gender in 
all languages?

You could rephrase the messages like this:

    invalid input value for type "{0}": {1}

Then there should be no problem.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: Patch to reduce the number of messages to translate
@ 2004-12-21 13:27  Xavier Poinsard <xpoinsard@free.fr>
  parent: Peter Eisentraut <peter_e@gmx.net>
  1 sibling, 0 replies; 11+ messages in thread

From: Xavier Poinsard @ 2004-12-21 13:27 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc

Peter Eisentraut wrote:
> Xavier Poinsard wrote:
> 
>>As you can see, the new parameters have all the same gender : they
>>are all java type names or encodings.
> 
> 
> What makes you think that all Java type names have the same gender in 
> all languages?

Because we implicitly refer to them as type "java type name".

> 
> You could rephrase the messages like this:
> 
>     invalid input value for type "{0}": {1}
> 
> Then there should be no problem.

I will follow your advice to make it explicit.




^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: Patch to reduce the number of messages to translate
@ 2004-12-21 13:47  Xavier Poinsard <xpoinsard@free.fr>
  parent: Peter Eisentraut <peter_e@gmx.net>
  1 sibling, 2 replies; 11+ messages in thread

From: Xavier Poinsard @ 2004-12-21 13:47 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc

Here is the modified patch with hopefully no adjective problems.

The changes are now the following :

- "Conversion of box failed: {0}." => "Conversion to type {1} failed: {0}."
  with box,circle,line,lseg,point

- "The JVM claims not to support the ASCII encoding." => "The JVM claims 
not to support the {0} encoding."
  with ASCII,UTF-8

- "Bad byte: {0}" => "Bad value for type {1}: {0}"
  with byte,short,int,long,BigDecimal,float,double,date

- "Cannot cast an instance of {0} to Types.BIT" => "Cannot cast an 
instance of {0} to type {1}"
  with Types.BIT,Types.OTHER


Peter Eisentraut wrote:
> You could rephrase the messages like this:
> 
>     invalid input value for type "{0}": {1}
> 
> Then there should be no problem.
> 

Attachments:

  ReduceMessagespatch2.txt.gz (application/x-gzip, 1.6K) download

^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: Patch to reduce the number of messages to translate
@ 2004-12-21 14:30  Nicolai Tufar <ntufar@gmail.com>
  parent: Xavier Poinsard <xpoinsard@free.fr>
  1 sibling, 1 reply; 11+ messages in thread

From: Nicolai Tufar @ 2004-12-21 14:30 UTC (permalink / raw)
  To: pgsql-jdbc

By replacing type names we are creating a potential confusion.
A translator who is not familiar with the code may translate 
type names like "long" or "integer".

I am for leaving the strings as they are. Translators are
copy+paste then edit the messages anyways.

Best regards,
Nicolai


On Tue, 21 Dec 2004 14:47:41 +0100, Xavier Poinsard <xpoinsard@free.fr> wrote:
> Here is the modified patch with hopefully no adjective problems.
> 
> The changes are now the following :
> 
> - "Conversion of box failed: {0}." => "Conversion to type {1} failed: {0}."
>   with box,circle,line,lseg,point
> 
> - "The JVM claims not to support the ASCII encoding." => "The JVM claims
> not to support the {0} encoding."
>   with ASCII,UTF-8
> 
> - "Bad byte: {0}" => "Bad value for type {1}: {0}"
>   with byte,short,int,long,BigDecimal,float,double,date
> 
> - "Cannot cast an instance of {0} to Types.BIT" => "Cannot cast an 
> instance of {0} to type {1}"
>   with Types.BIT,Types.OTHER
> 
> Peter Eisentraut wrote:
> > You could rephrase the messages like this:
> >
> >     invalid input value for type "{0}": {1}
> >
> > Then there should be no problem.
> >
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
> 
> 
> 
>



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: Patch to reduce the number of messages to translate
@ 2004-12-21 15:08  Peter Eisentraut <peter_e@gmx.net>
  parent: Nicolai Tufar <ntufar@gmail.com>
  0 siblings, 0 replies; 11+ messages in thread

From: Peter Eisentraut @ 2004-12-21 15:08 UTC (permalink / raw)
  To: Nicolai Tufar <ntufar@gmail.com>; +Cc: pgsql-jdbc

Nicolai Tufar wrote:
> By replacing type names we are creating a potential confusion.
> A translator who is not familiar with the code may translate
> type names like "long" or "integer".

The type names are not marked for translation (or at least they 
shouldn't be).

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: Patch to reduce the number of messages to translate
@ 2004-12-22 11:34  Xavier Poinsard <xpoinsard@free.fr>
  parent: Xavier Poinsard <xpoinsard@free.fr>
  1 sibling, 1 reply; 11+ messages in thread

From: Xavier Poinsard @ 2004-12-22 11:34 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc

Just discovered a small typo :


Index: TimestampUtils.java
===================================================================
RCS file: 
/usr/local/cvsroot/pgjdbc/pgjdbc/org/postgresql/jdbc2/TimestampUtils.java,v
retrieving revision 1.9
inline patch 1: TimestampUtils.java (+0/-1 lines) download inline-1.patchdiff -u -r1.9 TimestampUtils.java --- TimestampUtils.java 22 Dec 2004 09:23:57 -0000 1.9 +++ TimestampUtils.java 22 Dec 2004 11:32:35 -0000 @@ -158,7 +158,7 @@ } } } catch (NumberFormatException nfe) { - throw new PSQLException(GT.tr("Bad value for type {0} :
{1}}", new Object[]{type,s}), PSQLState.BAD_DATETIME_FORMAT, nfe); + throw new PSQLException(GT.tr("Bad value for type {0} : {1}", new Object[]{type,s}), PSQLState.BAD_DATETIME_FORMAT, nfe); } return nanos; ^ permalink raw reply [nested|flat] 11+ messages in thread

* Re: Patch to reduce the number of messages to translate
@ 2004-12-22 19:32  Kris Jurka <books@ejurka.com>
  parent: Xavier Poinsard <xpoinsard@free.fr>
  0 siblings, 0 replies; 11+ messages in thread

From: Kris Jurka @ 2004-12-22 19:32 UTC (permalink / raw)
  To: Xavier Poinsard <xpoinsard@free.fr>; +Cc: pgsql-jdbc



On Wed, 22 Dec 2004, Xavier Poinsard wrote:

> Just discovered a small typo :

Thanks.  Fixed.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 11+ messages in thread


end of thread, other threads:[~2004-12-22 19:32 UTC | newest]

Thread overview: 11+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-12-16 23:07 Patch to reduce the number of messages to translate Xavier Poinsard <xpoinsard@free.fr>
2004-12-17 21:44 ` Kris Jurka <books@ejurka.com>
2004-12-17 22:16   ` Peter Eisentraut <peter_e@gmx.net>
2004-12-18 13:53     ` Xavier Poinsard <xpoinsard@free.fr>
2004-12-20 18:43       ` Peter Eisentraut <peter_e@gmx.net>
2004-12-21 13:27         ` Xavier Poinsard <xpoinsard@free.fr>
2004-12-21 13:47         ` Xavier Poinsard <xpoinsard@free.fr>
2004-12-21 14:30           ` Nicolai Tufar <ntufar@gmail.com>
2004-12-21 15:08             ` Peter Eisentraut <peter_e@gmx.net>
2004-12-22 11:34           ` Xavier Poinsard <xpoinsard@free.fr>
2004-12-22 19:32             ` Kris Jurka <books@ejurka.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox