# HG changeset patch # User Martin Geisler # Date 2009-07-07 21:54:42 # Node ID 70c707310d7a8b39e654b32626cf9c32cdcdfe84 # Parent 4e04eabc19d215eb74df8775a0caeb2625551176 Makefile: wrap hg.pot strings at 82 chars By default, xgettext will wrap strings at 79 characters. This width includes the two double-quotes and the '\n' added. Our strings are now wrapped at 78 characters and a line can therefore be up to 82 characters wide in the .po file. Setting the width to 82 characters ensures that xgettext does no silly wrapping on our already-wrapped strings while still wrapping long one-liners at 82 characters. diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ i18n/hg.pot: $(PYTHON_FILES) # Extracting with an explicit encoding of ISO-8859-1 will make # xgettext "parse" and ignore them. echo $^ | xargs \ - xgettext --package-name "Mercurial" \ + xgettext --width 82 --package-name "Mercurial" \ --msgid-bugs-address "" \ --copyright-holder "Matt Mackall and others" \ --from-code ISO-8859-1 --join --sort-by-file \