예제 #1
0
파일: pull.py 프로젝트: roboard/86Duino
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
파일: push.py 프로젝트: roboard/86Duino
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
예제 #5
0
파일: pull.py 프로젝트: rav0/Arduino_Sam3s
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