[PATCH 0 of 3] i18n: translate individual paragraphs separately

Wagner Bruna wagner.bruna+mercurial at gmail.com
Fri Jun 18 00:09:18 UTC 2010


This patch series splits all translated messages on individual
paragraphs before translation, joining back the translated strings
afterwards. This avoids invalidating the entire translated message
on each small change to the original text, and helps keeping each
translatable message small.

The hg.pot is converted just after xgettext. An additional conversion
is performed on the .po files before updating, to automate the
transition while preserving existing translations (marked as fuzzy,
unless they have the same number of paragraphs as the original
strings and are not already fuzzy).

Regards,
Wagner


More information about the Mercurial-devel mailing list