@task
@needs('pavelib.i18n.i18n_extract')
@cmdopts([('settings=', 's', 'The settings to use (defaults to devstack)')])
@timed
def i18n_dummy(options):
 settings = options.get('settings', DEFAULT_SETTINGS)
 sh('i18n_tool dummy')
 sh('i18n_tool generate')
 for system in ['lms', 'cms']:
  sh(django_cmd(system, settings, 'compilejsi18n'))

@ task @ needs ( 'pavelib.i18n.i18n_extract' ) @ cmdopts ( [ ( 'settings=' , 's' , 'The settings to use (defaults to devstack)' ) ] ) @ timed def i18n_dummy ( options ) : settings = options . get ( 'settings' , DEFAULT_SETTINGS ) sh ( 'i18n_tool dummy' ) sh ( 'i18n_tool generate' ) for system in [ 'lms' , 'cms' ] : sh ( django_cmd ( system , settings , 'compilejsi18n' ) )
simulate international translation by generating dummy strings corresponding to source strings .