Mercurial > babel > old > mirror
comparison babel/messages/frontend.py @ 236:bf9579c4b0ee
Add more `since` tags to stuff added in trunk.
author | cmlenz |
---|---|
date | Wed, 01 Aug 2007 14:15:35 +0000 |
parents | 541b6d630575 |
children | 2398fc97675b |
comparison
equal
deleted
inserted
replaced
235:d0cd235ede46 | 236:bf9579c4b0ee |
---|---|
39 from babel.messages.pofile import read_po, write_po | 39 from babel.messages.pofile import read_po, write_po |
40 from babel.messages.plurals import PLURALS | 40 from babel.messages.plurals import PLURALS |
41 from babel.util import odict, LOCALTZ | 41 from babel.util import odict, LOCALTZ |
42 | 42 |
43 __all__ = ['CommandLineInterface', 'compile_catalog', 'extract_messages', | 43 __all__ = ['CommandLineInterface', 'compile_catalog', 'extract_messages', |
44 'init_catalog', 'check_message_extractors'] | 44 'init_catalog', 'check_message_extractors', 'update_catalog'] |
45 __docformat__ = 'restructuredtext en' | 45 __docformat__ = 'restructuredtext en' |
46 | 46 |
47 | 47 |
48 class compile_catalog(Command): | 48 class compile_catalog(Command): |
49 """Catalog compilation command for use in ``setup.py`` scripts. | 49 """Catalog compilation command for use in ``setup.py`` scripts. |
57 setup( | 57 setup( |
58 ... | 58 ... |
59 cmdclass = {'compile_catalog': compile_catalog} | 59 cmdclass = {'compile_catalog': compile_catalog} |
60 ) | 60 ) |
61 | 61 |
62 :since: version 0.9 | |
62 :see: `Integrating new distutils commands <http://docs.python.org/dist/node32.html>`_ | 63 :see: `Integrating new distutils commands <http://docs.python.org/dist/node32.html>`_ |
63 :see: `setuptools <http://peak.telecommunity.com/DevCenter/setuptools>`_ | 64 :see: `setuptools <http://peak.telecommunity.com/DevCenter/setuptools>`_ |
64 """ | 65 """ |
65 | 66 |
66 description = 'compile message catalogs to binary MO files' | 67 description = 'compile message catalogs to binary MO files' |
456 setup( | 457 setup( |
457 ... | 458 ... |
458 cmdclass = {'update_catalog': update_catalog} | 459 cmdclass = {'update_catalog': update_catalog} |
459 ) | 460 ) |
460 | 461 |
462 :since: version 0.9 | |
461 :see: `Integrating new distutils commands <http://docs.python.org/dist/node32.html>`_ | 463 :see: `Integrating new distutils commands <http://docs.python.org/dist/node32.html>`_ |
462 :see: `setuptools <http://peak.telecommunity.com/DevCenter/setuptools>`_ | 464 :see: `setuptools <http://peak.telecommunity.com/DevCenter/setuptools>`_ |
463 """ | 465 """ |
464 | 466 |
465 description = 'update message catalogs from a POT file' | 467 description = 'update message catalogs from a POT file' |
652 | 654 |
653 def compile(self, argv): | 655 def compile(self, argv): |
654 """Subcommand for compiling a message catalog to a MO file. | 656 """Subcommand for compiling a message catalog to a MO file. |
655 | 657 |
656 :param argv: the command arguments | 658 :param argv: the command arguments |
659 :since: version 0.9 | |
657 """ | 660 """ |
658 parser = OptionParser(usage=self.usage % ('compile', ''), | 661 parser = OptionParser(usage=self.usage % ('compile', ''), |
659 description=self.commands['compile']) | 662 description=self.commands['compile']) |
660 parser.add_option('--domain', '-D', dest='domain', | 663 parser.add_option('--domain', '-D', dest='domain', |
661 help="domain of MO and PO files (default '%default')") | 664 help="domain of MO and PO files (default '%default')") |
951 | 954 |
952 def update(self, argv): | 955 def update(self, argv): |
953 """Subcommand for updating existing message catalogs from a template. | 956 """Subcommand for updating existing message catalogs from a template. |
954 | 957 |
955 :param argv: the command arguments | 958 :param argv: the command arguments |
959 :since: version 0.9 | |
956 """ | 960 """ |
957 parser = OptionParser(usage=self.usage % ('update', ''), | 961 parser = OptionParser(usage=self.usage % ('update', ''), |
958 description=self.commands['update']) | 962 description=self.commands['update']) |
959 parser.add_option('--domain', '-D', dest='domain', | 963 parser.add_option('--domain', '-D', dest='domain', |
960 help="domain of PO file (default '%default')") | 964 help="domain of PO file (default '%default')") |