bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] msgmerge --diff-to-previous (feature request)


From: Ineiev
Subject: Re: [bug-gettext] msgmerge --diff-to-previous (feature request)
Date: Sun, 30 Oct 2011 08:18:54 +0000
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

On 10/30/2011 07:19 AM, Alexander Potashev wrote:
2011/10/29 Ineiev <address@hidden>:
It would be considerably more convenient if the translator could see a diff
(in particular, wdiff) instead of just previous msgid; a prototype patch
is attached (another gnulib module, clean-temp, should be added to
libgettextpo
to make it build).

How the behaviour of "msgmerge" will change with your patch, i.e.
where the results of "wdiff" will be written?

When msgmerge is invoked with both --previous and --diff-to-previous,
it will insert wdiff output after previous msgids, like

#, fuzzy
#| msgid "(previous msgid)"
#| msgid_plural "(previous msgid_plural, if available)"
#| msgid_diff "(diff to previous msgid)"
#| msgid_plural_diff "(diff to previous msgid_plural)"
msgid "(current msgid)"
...

When msgmerge is invoked with just --diff-to-previous, it will insert
just diffs:

#, fuzzy
#| msgid_diff "(diff to previous msgid)"
#| msgid_plural_diff "(diff to previous msgid_plural)"
msgid "(current msgid)"
...

When there is no --diff-to-previous option, msgmerge behaves like
before the patch.

# If the diffs go into
"previous" ("#|"-d) messages, that may be unexpected for some
translators and software.

I thought they just would avoid --diff-to-previous; would it be better
if the diffs went into messages prefixed with "#<some-other-character>"?

I suggest adding "diffed-to-previous" flags
to all messages that contain wdiffs in previous msgid/msgctxts, or
adding a per-file flag into the .po header.

I may not understand all usage scenarios, but there is
no similar "previous" flag, is it?



reply via email to

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