@task
@needs('pavelib.prereqs.install_prereqs', 'pavelib.i18n.i18n_validate_gettext', 'pavelib.assets.compile_coffeescript')
@cmdopts([('verbose', 'v', "Sets 'verbose' to True")])
@timed
def i18n_extract(options):
 verbose = getattr(options, 'verbose', None)
 cmd = 'i18n_tool extract'
 if verbose:
  cmd += ' -vv'
 sh(cmd)

@ task @ needs ( 'pavelib.prereqs.install_prereqs' , 'pavelib.i18n.i18n_validate_gettext' , 'pavelib.assets.compile_coffeescript' ) @ cmdopts ( [ ( 'verbose' , 'v' , "Sets 'verbose' to True" ) ] ) @ timed def i18n_extract ( options ) : verbose = getattr ( options , 'verbose' , None ) cmd = 'i18n_tool extract' if verbose : cmd += ' -vv' sh ( cmd )
extract localizable strings from sources .