@task
@needs('pavelib.i18n.i18n_clean', 'pavelib.i18n.i18n_transifex_pull', 'pavelib.i18n.i18n_extract', 'pavelib.i18n.i18n_dummy', 'pavelib.i18n.i18n_generate_strict')
@timed
def i18n_robot_pull():
 sh('git clean -fdX conf/locale/rtl')
 sh('git clean -fdX conf/locale/eo')
 print '\n\nValidating translations with `i18n_tool validate`...'
 sh('i18n_tool validate')
 con = raw_input('Continue with committing these translations (y/n)? ')
 if (con.lower() == 'y'):
  sh('git add conf/locale')
  sh('git add cms/static/js/i18n')
  sh('git add lms/static/js/i18n')
  sh('git commit --message="Update translations (autogenerated message)" --edit')

@ task @ needs ( 'pavelib.i18n.i18n_clean' , 'pavelib.i18n.i18n_transifex_pull' , 'pavelib.i18n.i18n_extract' , 'pavelib.i18n.i18n_dummy' , 'pavelib.i18n.i18n_generate_strict' ) @ timed def i18n_robot_pull ( ) : sh ( 'git clean -fdX conf/locale/rtl' ) sh ( 'git clean -fdX conf/locale/eo' ) print '\n\nValidating translations with `i18n_tool validate`...' sh ( 'i18n_tool validate' ) con = raw_input ( 'Continue with committing these translations (y/n)? ' ) if ( con . lower ( ) == 'y' ) : sh ( 'git add conf/locale' ) sh ( 'git add cms/static/js/i18n' ) sh ( 'git add lms/static/js/i18n' ) sh ( 'git commit --message="Update translations (autogenerated message)" --edit' )
pull source strings .