From: Andrei Popescu on
[Sorry for the cross-post. Please follow-up as you see fit and I'll
summarize for the other list. No need to CC me as I'm subscribed to both
lists]

Hello,

While (trying to) review changes to a large .po file with relatively few
strings changed I started looking for some way to show only the changed
strings, or at least find a way to easily spot them out.

Google searches have so far found only
http://markmail.org/thread/zyxbczw6haro6bmk#query:po%20diff+page:1+mid:a5ym75hv2vztkmde+state:results
which seems to talk about some GUI tool. My goal is to do this in text
only, because I want to paste (parts of) the output in e-mail.

Since I didn't find anything suitable I started patching together a .po
syntax highlighting that includes wdiff highlighting. The problem I'm
seeing right now is that wdiff will include " (double quotes) *inside*
its markers, thus breaking the .po highlighting:

[-#, fuzzy-]
msgid "Exit installer"
msgstr "Părăsește programul de [-instalare demonstrativ"-] {+instalare"+}

I was expecting something like this:

[-#, fuzzy-]
msgid "Exit installer"
msgstr "Părăsește programul de [-instalare demonstrativ-] {+instalare+}"

same thing happens with other punctuation:

[-#, fuzzy
#| msgid "Choose a locale:"-]
msgid "System locale:"
msgstr [-"Alegeți o localizare:"-] {+"Locale sistem:"+}

My guess is wdiff uses spaces as word delimiter, but the man page is
silent about this and web searches also didn't turn up anything.

Any hints or other ideas how to fix this?

Regards,
Andrei
--
http://nuvreauspam.ro/2010/05/4-neticheta-pe-mail/
From: Andrei Popescu on
On Mi,19.mai.10, 11:54:26, Andrei Popescu wrote:
>
> Any hints or other ideas how to fix this?

Forgot to mention:

wdiff -l old.po new.po | less

would work, but it shows garbled output instead of the Romanian special
characters, if such characters are *inside* the changed string.

vimdiff with a small enough font (to fit everything on the screen) is
usable, but a solution to the wdiff problem would be much better.

Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
From: Mattias Põldaru on
Ühel kenal päeval, K, 2010-05-19 kell 12:24, kirjutas Andrei Popescu:
> On Mi,19.mai.10, 11:54:26, Andrei Popescu wrote:
> >
> > Any hints or other ideas how to fix this?
>
> Forgot to mention:
>
> wdiff -l old.po new.po | less
>
> would work, but it shows garbled output instead of the Romanian special
> characters, if such characters are *inside* the changed string.
>
> vimdiff with a small enough font (to fit everything on the screen) is
> usable, but a solution to the wdiff problem would be much better.
>
> Regards,
> Andrei


Try doing msgconv --no-location on .po files before doing diff -du, you
could write script for that. It actually even makes sense to keep local
repositories all without location lines, so svn logs will be also clean.


Mattias



--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/1274263511.30091.5.camel(a)antiloop