git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] l10n: de.po: translate 2 new, 3 fuzzy messages

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Jun 3, 2012, 09:19 UTC
Message-ID
<CACsJy8CLpNANe-6OnU=v5h6zYdcpUWjuH=_iOTAOGohd4VOD1Q@mail.gmail.com>
In-Reply-To
<CANYiYbFCTkx2JdvMbMtGHqqFz4rQMNXamicwRu2kZ3P6rtgSQQ@mail.gmail.com>
2012/6/3 Jiang Xin <worldhello.net@gmail.com>:
Show 12 quoted lines
> The modifications of location lines (#: filename:line) are tedious.
> You can exclude them out of the diff file by a little:
>
>  1. Creae a diff driver with a textconv program:
>
>     $ git config --global diff.podiff.textconv "sed -e '/^#/ d'"
>
>  2. Set attribute for '.po' files
>
>     $ echo "*.po diff=podiff" >> $(git rev-parse --git-dir)/info/attributes
>
> Next time the diff you generated is more clear.

It also creates a non-applicable patch. The problem with .po files is there are two sources of modification: msgmerge and human. It'd be much better if git could learn (with user's help) to separate those and allow to track/show human changes only.

I'm also gnome translator coordinator and what I'm doing now is create two commits each time I receive a translation update: one with msgmerge wrapped in 70 chars, then translator's changes (also re-wrapped in 70 chars as different editors produce different default wrapping). It's not perfect as msgmerge can move translations up and down (randomly to me), but that's all I can do.

-- 
Duy
Previous: Jiang XinNext: Jiang Xin
Message 3 of 4 in “l10n: de.po: translate 2 new, 3 fuzzy messages”
  1. l10n: de.po: translate 2 new, 3 fuzzy messagesRalf Thielow, Jun 2, 2012
  2. Jiang XinJun 3, 2012
  3. Nguyen Thai Ngoc DuyJun 3, 2012
  4. Jiang XinJun 3, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.