URI: 
       tMerge pull request #2421 from bauerj/crowdin-upload - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 82c9430e7a99d0e1c88de24454595931337f1ad7
   DIR parent e60f39a08ba4c9f3da3e416060774fe0f99174e4
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Fri, 19 May 2017 10:18:28 +0200
       
       Merge pull request #2421 from bauerj/crowdin-upload
       
       Let Travis upload templates to crowdin
       Diffstat:
         M .travis.yml                         |       2 ++
         M contrib/make_locale                 |       4 ++++
       
       2 files changed, 6 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/.travis.yml b/.travis.yml
       t@@ -6,3 +6,5 @@ install:
            - pip install tox
        script:
            - tox
       +after_success:
       +    - if [ "$TRAVIS_BRANCH" = "master" ]; then pip install pycurl requests && contrib/make_locale; fi
   DIR diff --git a/contrib/make_locale b/contrib/make_locale
       t@@ -19,8 +19,12 @@ crowdin_identifier = 'electrum'
        crowdin_file_name = 'electrum-client/messages.pot'
        locale_file_name = 'locale/messages.pot'
        
       +crowdin_api_key = None
        if os.path.exists('../contrib/crowdin_api_key.txt'):
            crowdin_api_key = open('../contrib/crowdin_api_key.txt').read().strip()
       +if "crowdin_api_key" in os.environ:
       +    crowdin_api_key = os.environ["crowdin_api_key"]
       +if crowdin_api_key:
            # Push to Crowdin
            print 'Push to Crowdin'
            url = ('https://api.crowdin.com/api/project/' + crowdin_identifier + '/update-file?key=' + crowdin_api_key)