Prev: surreal गप्पा मारू इच्छित आहेत
Next: Accelerating directory's content's viewing: how, is directory is huge?
From: Andrei Popescu on 19 May 2010 05:00 [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 19 May 2010 05:30 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 19 May 2010 06:30
Ü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 |