i18n: extract comments marked for translator hints stable
authorWagner Bruna <wbruna@softwareexpress.com.br>
Thu, 21 Oct 2010 11:45:02 -0200
branchstable
changeset 12806 57b9fd75b6f8
parent 12805 cae1c187abd4
child 12807 6bbf0139a36d
i18n: extract comments marked for translator hints Comments marked with "i18n:", like: # i18n: do not translate the field names msg = _("Valid entries for the format field are topic, bar, number.") will become available for translators in the .po files: #. i18n: do not translate the field names msgid "Valid entries for the format field are topic, bar, number." msgstr ""
Makefile
--- a/Makefile	Thu Oct 21 09:58:22 2010 -0700
+++ b/Makefile	Thu Oct 21 11:45:02 2010 -0200
@@ -98,7 +98,7 @@
 	  xgettext --package-name "Mercurial" \
 	  --msgid-bugs-address "<mercurial-devel@selenic.com>" \
 	  --copyright-holder "Matt Mackall <mpm@selenic.com> and others" \
-	  --from-code ISO-8859-1 --join --sort-by-file \
+	  --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \
 	  -d hg -p i18n -o hg.pot
 	$(PYTHON) i18n/posplit i18n/hg.pot