pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: Using gettext
7+ messages / 3 participants
[nested] [flat]

* Re: Using gettext
@ 2004-10-08 18:07 Serguei A. Mokhov <mokhov@cs.concordia.ca>
  2004-10-09 00:09 ` Re: Using gettext Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 7+ messages in thread

From: Serguei A. Mokhov @ 2004-10-08 18:07 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc

----- Original Message -----
From: "Kris Jurka" <books@ejurka.com>
Sent: October 07, 2004 9:02 PM

> > > Unfortunately no one seems to be using gettext and Java together.
> > > Searching google for "java gettext translation" unfortunately comes back
> > > with the first result of my message to the list in January noting the
> > > pros/cons of using gettext for our jdbc driver.  How do other large Java
> > > projects handle this?  130 messages isn't really all that many, how
> > > can a big project cope?
> >
> > They use gettext! :-)
> >
> > I googled for java+gettext+gnu and found:
>
> That's not what this shows.  The search result shows that gettext has some
> support for Java.  We already knew that.  In the email I cited I included
> a sample Java project built with gettext support.
>
> The question was what other Java projects are actually using gettext, and
> I haven't seen any search results showing anyone actually using this
> functionality.  This naturally makes me a bit suspicious because it looks
> like an obvious at first solution.

Ah, I guess we were not on the same wavelength... Looks like your ideas
back in January [1] were supported, someone just need to bite the bullet
and actually make it happen. If we be the first big project to adopt
gettext for Java, let it be so. The advantages of .po over .properties are
really overwhelming.

Maybe as far as storing the files in the project, is to keep both: the
source .po and the compiled .class (should be produced by the actual
translator, so the translator should have the tools, but the developers
don't require them), just like pgAdmin project keeps both .po and compiled
.mo files in the CVS.

I googled a bit more for Java projects that use gettext for Java:

The Translation Project:

http://sourceforge.net/mailarchive/forum.php?forum_id=7939&max_rows=25&style=nested&view...

OpenOffice were at least considering it:

http://development.openoffice.org/digest/2004_w03.html#native_za

Zope talks about it:

http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Book/i18noverview.pdf

Maybe there are some others, but I ran out of time to look for 'em. It
appears that many use ICU instead from IBM. I personally DO support the
gettext idea.

> Kris Jurka
>

-s

[1] http://archives.postgresql.org/pgsql-jdbc/2004-01/msg00220.php



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

* Re: Using gettext
  2004-10-08 18:07 Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
@ 2004-10-09 00:09 ` Peter Eisentraut <peter_e@gmx.net>
  2004-10-09 01:32   ` Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
  0 siblings, 1 reply; 7+ messages in thread

From: Peter Eisentraut @ 2004-10-09 00:09 UTC (permalink / raw)
  To: Serguei A. Mokhov <mokhov@cs.concordia.ca>; Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc

Serguei A. Mokhov wrote:
> Maybe as far as storing the files in the project, is to keep both:
> the source .po and the compiled .class (should be produced by the
> actual translator, so the translator should have the tools, but the
> developers don't require them), just like pgAdmin project keeps both
> .po and compiled ..mo files in the CVS.

Considering that all users of the JDBC driver have the option of 
downloading precompiled releases, minimizing the build dependencies is 
really one of the more pointless exercises one could undertake.

> Maybe there are some others, but I ran out of time to look for 'em.
> It appears that many use ICU instead from IBM. I personally DO
> support the gettext idea.

There are a bunch of translation support frameworks available and under 
development (including the unavoidable standards track XML solution), 
but they don't have any free tool support (yet?), so they're useless 
for us.  Gettext is the only immediately useful approach I've seen for 
Java.
-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/




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

* Re: Using gettext
  2004-10-08 18:07 Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
  2004-10-09 00:09 ` Re: Using gettext Peter Eisentraut <peter_e@gmx.net>
@ 2004-10-09 01:32   ` Serguei A. Mokhov <mokhov@cs.concordia.ca>
  2004-10-09 06:21     ` Re: Using gettext Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Serguei A. Mokhov @ 2004-10-09 01:32 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc

On Sat, 9 Oct 2004, Peter Eisentraut wrote:

> Date: Sat, 9 Oct 2004 02:09:34 +0200
>
> There are a bunch of translation support frameworks available and under
> development (including the unavoidable standards track XML solution),
> but they don't have any free tool support (yet?), so they're useless for
> us.  Gettext is the only immediately useful approach I've seen for Java.

So, let's go for it! :-) Kris made a proposal back in January with a demo
example, there were three replies (in the archives), yours, Peter, was
particularly excited. Barry Lind voted for the precompiled .class files,
and it rested in peace ever since.

I guess someone should just step up and do the legwork, right? Is it the
only step is left to do to begin the work? Or some more
concensus/discussion is required?

-- 
Serguei A. Mokhov            |  /~\    The ASCII
Computer Science Department  |  \ / Ribbon Campaign
Concordia University         |   X    Against HTML
Montreal, Quebec, Canada     |  / \      Email!



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

* Re: Using gettext
  2004-10-08 18:07 Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
  2004-10-09 00:09 ` Re: Using gettext Peter Eisentraut <peter_e@gmx.net>
  2004-10-09 01:32   ` Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
@ 2004-10-09 06:21     ` Kris Jurka <books@ejurka.com>
  2004-10-10 22:16       ` Re: Using gettext Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Kris Jurka @ 2004-10-09 06:21 UTC (permalink / raw)
  To: Serguei A. Mokhov <mokhov@cs.concordia.ca>; +Cc: Peter Eisentraut <peter_e@gmx.net>; pgsql-jdbc



On Fri, 8 Oct 2004, Serguei A. Mokhov wrote:

> So, let's go for it! :-) Kris made a proposal back in January with a demo
> example, there were three replies (in the archives), yours, Peter, was
> particularly excited. Barry Lind voted for the precompiled .class files,
> and it rested in peace ever since.
> 
> I guess someone should just step up and do the legwork, right? Is it the
> only step is left to do to begin the work? Or some more
> concensus/discussion is required?
> 

Back in January I had just been given commit privileges to the cvs
repository and was deferring to Dave and Barry who seemed rather
non-committal.  No one else seemed to care, so I just dropped it.  I was
expecting a translator or two to jump in and get behind the idea.
(Although now that I think about it, Peter E. and Dennis B. did express
support.)  Anyway, now it seems like the direction we want to go in, so 
I'll go ahead and gettext enable the driver.

Kris Jurka



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

* Re: Using gettext
  2004-10-08 18:07 Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
  2004-10-09 00:09 ` Re: Using gettext Peter Eisentraut <peter_e@gmx.net>
  2004-10-09 01:32   ` Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
  2004-10-09 06:21     ` Re: Using gettext Kris Jurka <books@ejurka.com>
@ 2004-10-10 22:16       ` Kris Jurka <books@ejurka.com>
  2004-10-11 10:31         ` Re: Using gettext Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 7+ messages in thread

From: Kris Jurka @ 2004-10-10 22:16 UTC (permalink / raw)
  To: Serguei A. Mokhov <mokhov@cs.concordia.ca>; +Cc: Peter Eisentraut <peter_e@gmx.net>; pgsql-jdbc; Euler Taveira de Oliveira <eulerto@yahoo.com.br>; Dennis Bjorklund <db@zigo.dhs.org>



On Sat, 9 Oct 2004, Kris Jurka wrote:
> 
> Anyway, now it seems like the direction we want to go in, so I'll go
> ahead and gettext enable the driver.
> 

I've setup the driver to use gettext.  Read all about it here:

http://jdbc.postgresql.org/development/translation.html

It's possible to copy the messags from the old .properties files over to 
.po format, but I have not done so.  Primarily because it's a lot of 
work and secondarily because some of the translations didn't look 
like they were in great shape to begin with.  The old versions would be 
valuable to any potential translators, so I've put them up here:

http://www.ejurka.com/pgsql/olderrors/

Finally, my personal apologies to Euler Taveira de Oliveira who turned in 
a complete brazilian translations less than a week ago.


Kris Jurka



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

* Re: Using gettext
  2004-10-08 18:07 Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
  2004-10-09 00:09 ` Re: Using gettext Peter Eisentraut <peter_e@gmx.net>
  2004-10-09 01:32   ` Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
  2004-10-09 06:21     ` Re: Using gettext Kris Jurka <books@ejurka.com>
  2004-10-10 22:16       ` Re: Using gettext Kris Jurka <books@ejurka.com>
@ 2004-10-11 10:31         ` Peter Eisentraut <peter_e@gmx.net>
  2004-10-12 08:00           ` Re: Using gettext Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Peter Eisentraut @ 2004-10-11 10:31 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; Serguei A. Mokhov <mokhov@cs.concordia.ca>; +Cc: pgsql-jdbc; Euler Taveira de Oliveira <eulerto@yahoo.com.br>; Dennis Bjorklund <db@zigo.dhs.org>

Kris Jurka wrote:
> It's possible to copy the messags from the old .properties files over
> to ..po format, but I have not done so.  Primarily because it's a lot
> of work and secondarily because some of the translations didn't look
> like they were in great shape to begin with.  The old versions would
> be valuable to any potential translators, so I've put them up here:
>
> http://www.ejurka.com/pgsql/olderrors/

Attached is a script I once used to convert property files to PO files.  
Call it with the English properties as first argument and the 
translated properties as second argument.  I would then try to merge 
(msgmerge) the POT file created from the new Java sources (xgettext) 
with the output from the script.  This process is untested, but I 
thought I'd send the script before someone else tries to write one.

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

Attachments:

  properties2po (application/x-perl, 1.0K) download

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

* Re: Using gettext
  2004-10-08 18:07 Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
  2004-10-09 00:09 ` Re: Using gettext Peter Eisentraut <peter_e@gmx.net>
  2004-10-09 01:32   ` Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
  2004-10-09 06:21     ` Re: Using gettext Kris Jurka <books@ejurka.com>
  2004-10-10 22:16       ` Re: Using gettext Kris Jurka <books@ejurka.com>
  2004-10-11 10:31         ` Re: Using gettext Peter Eisentraut <peter_e@gmx.net>
@ 2004-10-12 08:00           ` Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Kris Jurka @ 2004-10-12 08:00 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Serguei A. Mokhov <mokhov@cs.concordia.ca>; pgsql-jdbc; Euler Taveira de Oliveira <eulerto@yahoo.com.br>; Dennis Bjorklund <db@zigo.dhs.org>



On Mon, 11 Oct 2004, Peter Eisentraut wrote:

> Attached is a script I once used to convert property files to PO files.  

Worked like a charm, I've converted all the old messages over.
Any chance you'd also like to contribute the script that makes this:

http://developer.postgresql.org/~petere/nlsstatus/

Kris Jurka



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


end of thread, other threads:[~2004-10-12 08:00 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-10-08 18:07 Re: Using gettext Serguei A. Mokhov <mokhov@cs.concordia.ca>
2004-10-09 00:09 ` Peter Eisentraut <peter_e@gmx.net>
2004-10-09 01:32   ` Serguei A. Mokhov <mokhov@cs.concordia.ca>
2004-10-09 06:21     ` Kris Jurka <books@ejurka.com>
2004-10-10 22:16       ` Kris Jurka <books@ejurka.com>
2004-10-11 10:31         ` Peter Eisentraut <peter_e@gmx.net>
2004-10-12 08:00           ` 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