Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(26) | Call(23) | Derive(0) | Import(3)
Command-line interface. This class provides a simple command-line interface to the message extraction and PO file generation functionality.
src/k/a/KalaPy-0.4.2/kalapy/admin/commands/i18n.py KalaPy(Download)
import os, sys from babel.messages.frontend import CommandLineInterface, extract_messages from babel.support import Translations
def run_babel(self, command, *argv): cmd = CommandLineInterface() cmd.run(['', '-q', command] + list(argv)) def action_init(self, options, args):
src/k/a/kalapy-HEAD/kalapy/admin/commands/i18n.py kalapy(Download)
import os, sys from babel.messages.frontend import CommandLineInterface, extract_messages from babel.support import Translations
def run_babel(self, command, *argv): cmd = CommandLineInterface() cmd.run(['', '-q', command] + list(argv)) def action_init(self, options, args):
src/i/1/i18n-0.2/i18n/translator.py i18n(Download)
import py import os import gettext from babel.messages.frontend import CommandLineInterface babel_cli = CommandLineInterface()
src/k/i/kitchen-1.1.1/releaseutils.py kitchen(Download)
import babel.messages.frontend return (babel.messages.frontend.CommandLineInterface(), 'pybabel compile -D %(domain)s -d locale -i %(pofile)s -l %(lang)s' )
src/p/y/python-fedora-0.3.33/releaseutils.py python-fedora(Download)
import babel.messages.frontend return (babel.messages.frontend.CommandLineInterface(), 'pybabel compile -D %(domain)s -d locale -i %(pofile)s -l %(lang)s' )
src/p/y/python-fedora-HEAD/releaseutils.py python-fedora(Download)
return ( babel.messages.frontend.CommandLineInterface(), 'pybabel compile -D %(domain)s -d locale -i %(pofile)s -l %(lang)s' )
src/p/l/plexnet-HEAD/third_party/python/babel/messages/tests/frontend.py plexnet(Download)
sys.stdout = StringIO() sys.stderr = StringIO() self.cli = frontend.CommandLineInterface() def tearDown(self):
src/w/e/WebPutty-HEAD/libs/babel/messages/tests/frontend.py WebPutty(Download)
for handler in log.handlers: log.removeHandler(handler) self.cli = frontend.CommandLineInterface() def tearDown(self):
src/z/e/ZenPacks.zenoss.OpenStack-HEAD/src/Babel-1.3/tests/messages/test_frontend.py ZenPacks.zenoss.OpenStack(Download)
self._remove_log_handlers() self.cli = frontend.CommandLineInterface() def tearDown(self):
src/k/u/kuma-lib-HEAD/packages/Babel/babel/messages/tests/frontend.py kuma-lib(Download)
sys.stdout = StringIO() sys.stderr = StringIO() self.cli = frontend.CommandLineInterface() def tearDown(self):
1 | 2 | 3 Next