Browse Source
cirrus ci: push_locale: make sure gettext is installed
patch-4
SomberNight
3 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
3 additions and
3 deletions
-
.cirrus.yml
-
contrib/push_locale
|
|
@ -73,7 +73,7 @@ task: |
|
|
|
populate_script: mkdir -p /tmp/electrum-build |
|
|
|
install_script: |
|
|
|
- apt-get update |
|
|
|
- apt-get -y install libsecp256k1-0 |
|
|
|
- apt-get -y install libsecp256k1-0 gettext |
|
|
|
- pip install -r $ELECTRUM_REQUIREMENTS |
|
|
|
- pip install requests |
|
|
|
locale_script: |
|
|
|
|
|
@ -25,9 +25,9 @@ print("Found {} files to translate".format(len(files.splitlines()))) |
|
|
|
# Generate fresh translation template |
|
|
|
if not os.path.exists('electrum/locale'): |
|
|
|
os.mkdir('electrum/locale') |
|
|
|
cmd = 'xgettext -s --from-code UTF-8 --language Python --no-wrap -f app.fil --output=electrum/locale/messages.pot' |
|
|
|
print('Generate template') |
|
|
|
os.system(cmd) |
|
|
|
cmd = 'xgettext -s --from-code UTF-8 --language Python --no-wrap -f app.fil --output=electrum/locale/messages.pot' |
|
|
|
subprocess.check_output(cmd, shell=True) |
|
|
|
|
|
|
|
os.chdir('electrum') |
|
|
|
|
|
|
|