Dash Core  0.12.2.1
P2P Digital Currency
extract_strings_qt Namespace Reference

Functions

def parse_po (text)
 

Variables

string OUT_CPP = "qt/dashstrings.cpp"
 
list EMPTY = ['""']
 
 files = sys.argv[1:]
 
 XGETTEXT = os.getenv('XGETTEXT', 'xgettext')
 
 child = Popen([XGETTEXT,'--output=-','-n','--keyword=_'] + files, stdout=PIPE)
 
 out
 
 err
 
def messages = parse_po(out)
 
 f = open(OUT_CPP, 'w')
 
 key
 

Detailed Description

Extract _("...") strings for translation and convert to Qt4 stringdefs so that
they can be picked up by Qt linguist.

Function Documentation

◆ parse_po()

def extract_strings_qt.parse_po (   text)
Parse 'po' format produced by xgettext.
Return a list of (msgid,msgstr) tuples.

Definition at line 15 of file extract_strings_qt.py.

Variable Documentation

◆ child

extract_strings_qt.child = Popen([XGETTEXT,'--output=-','-n','--keyword=_'] + files, stdout=PIPE)

Definition at line 55 of file extract_strings_qt.py.

Referenced by CreateNewBlock(), and CTxMemPool.UpdateChild().

◆ EMPTY

list extract_strings_qt.EMPTY = ['""']

Definition at line 13 of file extract_strings_qt.py.

◆ err

◆ f

extract_strings_qt.f = open(OUT_CPP, 'w')

Definition at line 60 of file extract_strings_qt.py.

◆ files

extract_strings_qt.files = sys.argv[1:]

Definition at line 51 of file extract_strings_qt.py.

◆ key

extract_strings_qt.key

Definition at line 73 of file extract_strings_qt.py.

Referenced by CTxMemPool.addAddressIndex(), CWallet.AddDestData(), CKeyStore.AddKey(), CBasicKeyStore.AddKeyPubKey(), CCryptoKeyStore.AddKeyPubKey(), CTxMemPool.addSpentIndex(), CBitcoinExtKeyBase< K, Size, Type >.CBitcoinExtKeyBase(), CGovernanceObject.CheckOrphanVotes(), CAlert.CheckSignature(), CHMAC_SHA256.CHMAC_SHA256(), CHMAC_SHA512.CHMAC_SHA512(), CommandLineRawTx(), ComputeResponse(), TransactionSignatureCreator.CreateSig(), DecryptKey(), dumpwallet(), ECC_InitSanityCheck(), CCryptoKeyStore.EncryptKeys(), CDBBatch.Erase(), CacheMap< uint256, CGovernanceVote >.Erase(), CacheMultiMap< uint256, vote_time_pair_t >.Erase(), CDB.Erase(), CDBWrapper.Erase(), CWalletDB.EraseDestData(), CWallet.EraseDestData(), RPCConsole.eventFilter(), UniValue.exists(), CDB.Exists(), CDBWrapper.Exists(), UniValue.findKey(), CacheMultiMap< uint256, vote_time_pair_t >.Get(), CacheMap< uint256, CGovernanceVote >.Get(), CacheMultiMap< uint256, vote_time_pair_t >.GetAll(), CWallet.GetDestData(), CDBIterator.GetKey(), CBasicKeyStore.GetPubKey(), GetScriptForMultisig(), CTxMemPool.getSpentIndex(), GetSpentIndex(), getspentinfo(), CCoinsViewDB.GetStats(), CacheMultiMap< uint256, vote_time_pair_t >.HasKey(), CacheMap< uint256, CGovernanceVote >.HasKey(), importelectrumwallet(), importprivkey(), importwallet(), CacheMultiMap< uint256, vote_time_pair_t >.Insert(), CacheMap< uint256, CGovernanceVote >.Insert(), CKeyHolderStorage.KeepAll(), CBlockTreeDB.LoadBlockIndexGuts(), CWallet.LoadDestData(), CWallet.LoadKey(), masternode(), MutateTxSign(), SignVerifyMessageDialog.on_signMessageButton_SM_clicked(), CCoinsKeyHasher.operator()(), UniValue.operator[](), Pair(), ParseTorReplyMapping(), UniValue.pushKV(), random_sign(), CDB.Read(), CDBWrapper.Read(), CBlockTreeDB.ReadAddressIndex(), CBlockTreeDB.ReadAddressUnspentIndex(), ReadKeyValue(), CBlockTreeDB.ReadSpentIndex(), CBlockTreeDB.ReadTimestampIndex(), RegisterLoad(), RegisterSet(), RegisterSetJson(), CKeyHolderStorage.ReturnAll(), run_context_tests(), WalletModel.saveReceiveRequest(), secp256k1_eckey_privkey_tweak_add(), secp256k1_eckey_privkey_tweak_mul(), secp256k1_eckey_pubkey_tweak_add(), secp256k1_eckey_pubkey_tweak_mul(), secp256k1_hmac_sha256_initialize(), secp256k1_rfc6979_hmac_sha256_initialize(), secp256k1_schnorr_sig_sign(), CDBIterator.Seek(), WalletModel.sendCoins(), CBitcoinExtKeyBase< K, Size, Type >.SetKey(), CSporkMessage.Sign(), CAlert.Sign(), CHashSigner.SignHash(), CMessageSigner.SignMessage(), signmessage(), signrawtransaction(), test_ecdsa_edge_cases(), test_ecdsa_end_to_end(), test_ecdsa_recovery_end_to_end(), test_ecdsa_sign_verify(), test_ecmult_gen_blind(), test_schnorr_end_to_end(), test_schnorr_sign_verify(), CCryptoKeyStore.Unlock(), Unserialize(), CDBBatch.Write(), CDB.Write(), CDBWrapper.Write(), CWalletDB.WriteDestData(), and CDataStream.Xor().

◆ messages

def extract_strings_qt.messages = parse_po(out)

Definition at line 58 of file extract_strings_qt.py.

◆ out

extract_strings_qt.out

Definition at line 56 of file extract_strings_qt.py.

Referenced by CTxMemPool.addAddressIndex(), ApplyTxInUndo(), blake32_close(), bmw32_close(), CMempoolAddressDelta.CMempoolAddressDelta(), CScriptCompressor.Compress(), ConnectBlock(), CWallet.CountInputsWithAmount(), createrawtransaction(), cubehash_close(), CKey.Derive(), CExtKey.Derive(), CPubKey.Derive(), CExtPubKey.Derive(), DisconnectBlock(), CCoins.DynamicMemoryUsage(), FormatParagraph(), tinyformat.formatValue(), WalletModel.getBalance(), CWallet.GetCollateralTxIn(), CPrivateSend.GetDenominations(), CWallet.GetMasternodeOutpointAndKeys(), CWallet.GetOutpointAndKeysFromOutput(), WalletModel.getOutputs(), CWallet.GetRealOutpointPrivateSendRounds(), CCoinsViewDB.GetStats(), hatoui(), PaymentServer.ipcSendCommandLine(), CMasternode.IsInputAssociatedWithPubkey(), CCoins.IsPruned(), WalletModel.listCoins(), listunspent(), luffa3_close(), luffa4_close(), luffa5_close(), masternode(), RPCConsole.message(), multiUserAuthorized(), GUIUtil.parseBitcoinURI(), ParseDouble(), ParseInt32(), ParseInt64(), WalletModel.prepareTransaction(), tinyformat::detail::FormatIterator.printFormatStringLiteral(), WalletModelTransaction.reassignAmounts(), RecursiveDynamicUsage(), run_hmac_sha256_tests(), run_rfc6979_hmac_sha256_tests(), run_sha256_tests(), ScriptPubKeyToJSON(), ScriptPubKeyToUniv(), secp256k1_rfc6979_hmac_sha256_generate(), secp256k1_sha256_finalize(), CWallet.SelectCoins(), CWallet.SelectCoinsByDenominations(), CWallet.SelectCoinsDark(), CCoin.SerializationOp(), CExtKey.SetMaster(), tinyformat::detail::FormatIterator.streamStateFromFormat(), test_random_pubkeys(), TxToJSON(), TxToUniv(), CoinControlDialog.updateLabels(), CoinControlDialog.updateView(), and CSVModelWriter.write().

◆ OUT_CPP

string extract_strings_qt.OUT_CPP = "qt/dashstrings.cpp"

Definition at line 12 of file extract_strings_qt.py.

◆ XGETTEXT

extract_strings_qt.XGETTEXT = os.getenv('XGETTEXT', 'xgettext')

Definition at line 54 of file extract_strings_qt.py.