def main(): print 'Use your account to talk with Transifex.' user = raw_input('Username: '******'Password: '******'Resources_%s.po' % lang sys.stdout.flush() try: lang = trans.canonical_lang(lang) pull(trans, lang, fname) except RuntimeError, e: print e.message continue except IOError, e: print e.strerror continue
def main(): import getpass import sys print 'Use your account to talk with Transifex.' user = raw_input('Username: '******'Password: '******'Resources_%s.po' % lang print "Updating %s on Transifex using %s..." % (lang, fname), sys.stdout.flush() try: lang = trans.canonical_lang(lang) trans.push(lang, ''.join(open(fname))) except RuntimeError, e: print e.message continue except IOError, e: print e.strerror continue
def main(): import getpass import sys print "Use your account to talk with Transifex." user = raw_input("Username: "******"Password: "******"Resources_%s.po" % lang print "Updating %s from Transifex..." % fname, sys.stdout.flush() try: lang = trans.canonical_lang(lang) trans.pull(lang, fname) except RuntimeError, e: print e.message continue except IOError, e: print e.strerror continue