Mercurial > hg
comparison Makefile @ 9079:70c707310d7a
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.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Tue, 07 Jul 2009 23:54:42 +0200 |
parents | 34754aa62cd8 |
children | 3d9f77c03105 |
comparison
equal
deleted
inserted
replaced
9078:4e04eabc19d2 | 9079:70c707310d7a |
---|---|
87 # literals like this '\037\213'. xgettext thinks it has to | 87 # literals like this '\037\213'. xgettext thinks it has to |
88 # parse them even though they are not marked for translation. | 88 # parse them even though they are not marked for translation. |
89 # Extracting with an explicit encoding of ISO-8859-1 will make | 89 # Extracting with an explicit encoding of ISO-8859-1 will make |
90 # xgettext "parse" and ignore them. | 90 # xgettext "parse" and ignore them. |
91 echo $^ | xargs \ | 91 echo $^ | xargs \ |
92 xgettext --package-name "Mercurial" \ | 92 xgettext --width 82 --package-name "Mercurial" \ |
93 --msgid-bugs-address "<mercurial-devel@selenic.com>" \ | 93 --msgid-bugs-address "<mercurial-devel@selenic.com>" \ |
94 --copyright-holder "Matt Mackall <mpm@selenic.com> and others" \ | 94 --copyright-holder "Matt Mackall <mpm@selenic.com> and others" \ |
95 --from-code ISO-8859-1 --join --sort-by-file \ | 95 --from-code ISO-8859-1 --join --sort-by-file \ |
96 -d hg -p i18n -o hg.pot | 96 -d hg -p i18n -o hg.pot |
97 | 97 |