bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Translating


From: Jabier Arraiza
Subject: Re: Translating
Date: Sun, 10 Mar 2024 20:23:49 +0100
User-agent: Evolution 3.50.3-1

Hi Bruno.

Finaly I keep all too much simple:

po files msgid is keept in spanish but, before generate the mo, I MD5
msgid over a file copied from mo and pass to the generator.

I try to use msgfilter to, and works very well but it add a "\n" to
empty msgstr and give warns so I filter outside with the same program
filter and "cat" (I try with and without --newlines parameter with the
same error)

Im python is easy override N_( or PL_( to to getext and ngettext and do
a MD5 to messages.

So thanks in near 4 hours I do too better than in 5 days with much less
code.

Also finaly can be cool msgfmt do the id MD5/SHAn for me. It fix all
non ASCII msgid problems out of the box.

Regards, Jabier.
 

On Sun, 2024-03-10 at 02:38 +0100, Bruno Haible wrote:
> Hi,
> 
> Jabier Arraiza wrote:
> > Hi, Im a developer and in my company make python/glade programs for
> > non
> > english software. Also deploy on the Inkscape proyect.
> > 
> > After 5 days working on a multilingual program without english I
> > want y
> > give one or realy 2 ideas for xgettext:
> > 
> > --checksumId ## set original text as translator comment and
> > checksum/hash id thath need to be ASCII
> > 
> > and for gettext:
> > 
> > --checksumedId ...
> > 
> > This help a lot to not need much english to develop/read code for
> > example in "specialiced" programs.
> > 
> > I dont need to do this for my current proyect, I manualy parse the
> > pot
> > and po files so I get what I want, but too bad and error prune with
> > lot
> > of regex and time spent.
> > 
> > I use [a-zAZ09_] regex for the id that seems more descritive than a
> > checksum (note can be repeated, I baypass this, badly, cleaning
> > duples
> > on post process)
> 
> I don't understand what you mean. Can you please describe in more
> detail:
> 
> 1) What is the problem to be solved / goal to be achieved?
> 
> 2) Have you investigated whether this goal can be achieved by use of
>    the existing PO file manipulation programs (msgcat, msgcomm,
> msgattrib,
>    etc.)?
> 
> 3) In the way you imagine it: What does the programmer do differently
> than
>    described in the documentation? What does the translator do
> differently?
> 
> Bruno
> 
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]