mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Merge #8781: [contrib] delete qt_translations.py
faf87af
[contrib] delete qt_translations.py (MarcoFalke)
This commit is contained in:
parent
97b63420dd
commit
24c69691c2
@ -1,25 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
# Copyright (c) 2011 The Bitcoin Core developers
|
|
||||||
# Distributed under the MIT software license, see the accompanying
|
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
||||||
|
|
||||||
# Helpful little script that spits out a comma-separated list of
|
|
||||||
# language codes for Qt icons that should be included
|
|
||||||
# in binary Dash Core distributions
|
|
||||||
|
|
||||||
import glob
|
|
||||||
import os
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
if len(sys.argv) != 3:
|
|
||||||
sys.exit("Usage: %s $QTDIR/translations $BITCOINDIR/src/qt/locale"%sys.argv[0])
|
|
||||||
|
|
||||||
d1 = sys.argv[1]
|
|
||||||
d2 = sys.argv[2]
|
|
||||||
|
|
||||||
l1 = set([ re.search(r'qt_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d1, 'qt_*.qm')) ])
|
|
||||||
l2 = set([ re.search(r'dash_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d2, 'dash_*.qm')) ])
|
|
||||||
|
|
||||||
print ",".join(sorted(l1.intersection(l2)))
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user