electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit e890ec02d5eca35c980456dfb9205a3c3f7f5633
parent eab5bcf62fa784eb1f2358db4cadee37e6e03bf9
Author: Johann Bauer <bauerj@bauerj.eu>
Date:   Fri,  9 Mar 2018 23:17:39 +0100

Pass all possible files to xgettext

Diffstat:
Mcontrib/make_locale | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/make_locale b/contrib/make_locale @@ -8,8 +8,8 @@ import requests os.chdir(os.path.dirname(os.path.realpath(__file__))) os.chdir('..') -code_directories = 'lib gui plugins' -cmd = "grep 'from electrum.i18n import _' {} -rl".format(code_directories) +code_directories = '{gui,plugins}' +cmd = "find {} -type f -name '*.py' -o -name '*.kv'".format(code_directories) files = subprocess.check_output(cmd, shell=True) @@ -21,7 +21,7 @@ print("Found {} files to translate".format(len(files.splitlines()))) # Generate fresh translation template if not os.path.exists('lib/locale'): os.mkdir('lib/locale') -cmd = 'xgettext -s --from-code UTF-8 --no-wrap -f app.fil --output=lib/locale/messages.pot' +cmd = 'xgettext -s --from-code UTF-8 --language Python --no-wrap -f app.fil --output=lib/locale/messages.pot' print('Generate template') os.system(cmd)