Commit Graph

29 Commits

Author SHA1 Message Date
Martin Geisler
e2bd1b593f 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.
2009-07-07 23:54:42 +02:00
Martin Geisler
ded47ba985 Makefile: do not create i18n/, it is already there 2009-05-26 19:51:22 +02:00
Martin Geisler
b205b95666 i18n: accurately generate hg.pot 2009-05-21 23:43:13 +02:00
Greg Ward
83279aa18a Makefile: fix grammar in comment 2009-05-12 10:03:36 -04:00
Martin Geisler
17001eef4e Makefile: fixed comment 2009-05-02 12:10:38 +02:00
Martin Geisler
e0ae3d3d5f Makefile: add more meta data to hg.pot 2009-05-02 11:44:57 +02:00
Tobias Bell
afe3a2b645 enhance Makefile for language translators
To update a po-file just do 'make i18n/xx.po'. No other po-file will
be touched.
2009-03-26 08:07:28 +01:00
Brodie Rao
0f571034a3 Makefile: remove locale folder during clean 2009-02-17 18:47:28 -05:00
Martin Geisler
874562649b i18n: extract strings with xgettext
The xgettext program knows about Python string formatting and will
mark messages with a special "#, python-format" comment in the hg.pot
file. When msgfmt compiles the file, it can check these messages to
ensure that the translated string uses the same conversion specifiers
as the original string.

The pygettext program is still used to extract the docstrings.
2009-01-25 21:31:54 +01:00
Martin Geisler
80b277c7ef use PURE option in Makefile 2009-01-24 01:47:36 +01:00
Martin Geisler
10cca14739 i18n: sort by file when generating hg.pot
This will make the order more stable and give smaller patches when
translations merge in new and deleted strings from the hg.pot file.
2009-01-25 12:33:47 +01:00
Martin Geisler
f6d8487386 i18n: make local now builds .mo files 2009-01-15 20:23:18 +01:00
Martin Geisler
12b2d519d0 i18n: let Makefile generate i18n/hg.pot
The target update-pot extracts strings using pygettext and updates the
i18n/hg.pot file. The translators can then use msgmerge to merge the
new strings in hg.pot with their xx.po file when they want to.

The setup.py file now includes files under both templates/ and i18n/
as data files.
2009-01-15 00:10:54 +01:00
Markus F.X.J. Oberhumer
5460408a1e Makefile: remove *.pyd files on "make clean". 2007-06-25 14:46:20 +02:00
Markus F.X.J. Oberhumer
b7dfc7940e Makefile: change "make local" to build a fully working local version. 2007-06-25 14:46:20 +02:00
Benoit Boissinot
3e0275e2f8 add possibility to pass flags when testing with the Makefile 2006-12-26 03:11:37 +01:00
Benoit Boissinot
253a9af902 fix MANIFEST generation 2006-12-12 11:39:05 +01:00
Matt Mackall
9403306d21 Make make dist a bit quieter 2006-12-10 19:20:35 -06:00
Matt Mackall
69037db249 Automatically build MANIFEST for make dist 2006-12-10 19:16:38 -06:00
Sascha Wilde
7730ef1ab7 Split installation targets into install-bin and install-doc.
install-bin will only install the program, and install-doc will install
the documentation.  The main install target still installs both.
2006-06-27 09:57:06 +02:00
Thomas Arendsen Hein
2fe1d1ce64 Just using 'make' now shows help. 'make all' doesn't perform inplace build. 2006-05-10 18:53:32 +02:00
Thomas Arendsen Hein
bd197a81db New make targets:
local: build extensions inplace (the former "all" target")
all: "local" (for people who expect this) and build everything else
install: install pre-built things (so root doesn't have to write to $HOME)
install-home: use setup.py's --home option instead of --prefix
2006-05-09 18:03:15 +02:00
Thomas Arendsen Hein
3a7a2777d1 New make target "dist-notests" to create tarballs without running tests first. 2006-05-09 17:21:53 +02:00
wilde@trapperkeeper.sha-bang.de
5d9b2c557e Added install target. 2006-05-09 17:05:49 +02:00
Stephen Darnell
fb04fe7b4b Delete the shell version of run-tests
Use the python version instead
2006-05-04 15:47:18 -07:00
Benoit Boissinot
c0239b9f56 add a target for running only one test 2005-10-24 14:53:36 -07:00
levon@movementarian.org
0b2a614b26 Use $(MAKE) not make 2005-10-24 14:52:49 -07:00
mpm@selenic.com
d1b22ca24c Add default make rule
The default make rule builds the extensions "in-place" so that hg can
be run out of the working directory.
2005-08-24 00:36:12 -07:00
Thomas Arendsen Hein
f9b6b4b91f Add Makefile for generating release tarballs.
- test suite is run
- documentation is generated and included
2005-08-22 08:46:43 +02:00