X-Git-Url: https://git.novaco.in/?p=electrum-nvc.git;a=blobdiff_plain;f=mki18n.py;h=1bbd0fa294aa0a3654e709d0527d79ad0a026f56;hp=f0b7fcdefe827665ee2347694824cfbad93c91e2;hb=73ee95ec9aa815537c20f009ac2eef81ba2f9a47;hpb=e3475b1f9189e9a5645a230459993941801ad55f diff --git a/mki18n.py b/mki18n.py index f0b7fcd..1bbd0fa 100755 --- a/mki18n.py +++ b/mki18n.py @@ -6,8 +6,8 @@ crowdin_identifier = 'electrum' crowdin_file_name = 'electrum-client/messages.pot' locale_file_name = 'locale/messages.pot' -if os.path.exists('build/crowdin_api_key.txt'): - crowdin_api_key = open('build/crowdin_api_key.txt').read() +if os.path.exists('contrib/crowdin_api_key.txt'): + crowdin_api_key = open('contrib/crowdin_api_key.txt').read() # Generate fresh translation template if not os.path.exists('locale'): @@ -52,7 +52,7 @@ for name in zfobj.namelist(): # Convert .po to .mo print 'Installing' for lang in os.listdir('./locale'): - if name.startswith('messages'): + if lang.startswith('messages'): continue # Check LC_MESSAGES folder mo_dir = 'locale/%s/LC_MESSAGES' % lang