elements/src/util
Hennadii Stepanov 753f7cccce
scripted-diff: Make translation bilingual
-BEGIN VERIFY SCRIPT-
sed -i 's/inline std::string _(const char\* psz)/inline bilingual_str _(const char\* psz)/' src/util/translation.h
sed -i 's/return G_TRANSLATION_FUN ? (G_TRANSLATION_FUN)(psz) : psz;/return bilingual_str{psz, G_TRANSLATION_FUN ? (G_TRANSLATION_FUN)(psz) : psz};/' src/util/translation.h
sed -i 's/\b_("\([^"]\|\\"\)*")/&.translated/g' $(git grep --files-with-matches '\b_("' src)
echo Hard cases - multiline strings.
sed -i 's/"Visit %s for further information about the software.")/&.translated/g' src/init.cpp
sed -i "s/\"Only rebuild the block database if you are sure that your computer's date and time are correct\")/&.translated/g" src/init.cpp
sed -i 's/" restore from a backup.")/&.translated/g' src/wallet/db.cpp
sed -i 's/" or address book entries might be missing or incorrect.")/&.translated/g' src/wallet/wallet.cpp
echo Special case.
sed -i 's/_(COPYRIGHT_HOLDERS)/&.translated/' src/util/system.cpp test/lint/lint-format-strings.py
-END VERIFY SCRIPT-
2019-07-24 16:33:20 +03:00
..
bip32.cpp Add WriteHDKeypath function and move *HDKeypath to util/bip32.{h,cpp} 2019-02-14 14:00:28 -05:00
bip32.h Add WriteHDKeypath function and move *HDKeypath to util/bip32.{h,cpp} 2019-02-14 14:00:28 -05:00
bytevectorhash.cpp blockfilter: Use unordered_set instead of set in blockfilter. 2018-11-05 09:30:56 -08:00
bytevectorhash.h blockfilter: Use unordered_set instead of set in blockfilter. 2018-11-05 09:30:56 -08:00
error.cpp scripted-diff: Make translation bilingual 2019-07-24 16:33:20 +03:00
error.h [wallet] abort when attempting to fund a transaction above maxtxfee 2019-06-28 22:44:38 -04:00
fees.cpp [wallet] abort when attempting to fund a transaction above maxtxfee 2019-06-28 22:44:38 -04:00
fees.h [build] Add several util units 2019-04-09 17:53:08 -04:00
memory.h
moneystr.cpp Use IsDigit(...) instead of std::isdigit 2018-11-06 17:32:08 +01:00
moneystr.h Add NODISCARD to all {Decode,Parse}[...](...) functions returning bool. Sort includes. 2018-11-05 17:03:11 +01:00
rbf.cpp [build] Add several util units 2019-04-09 17:53:08 -04:00
rbf.h [build] Add several util units 2019-04-09 17:53:08 -04:00
strencodings.cpp Add WriteHDKeypath function and move *HDKeypath to util/bip32.{h,cpp} 2019-02-14 14:00:28 -05:00
strencodings.h dead code: Remove dead option in HexStr conversion 2019-03-10 21:45:31 -06:00
system.cpp scripted-diff: Make translation bilingual 2019-07-24 16:33:20 +03:00
system.h Refactor out translation.h 2019-07-24 16:32:53 +03:00
threadnames.cpp Fix portability issue with pthreads 2019-05-07 00:17:33 +00:00
threadnames.h threads: introduce util/threadnames, refactor thread naming 2019-04-29 13:42:25 -04:00
time.cpp util: Add type safe GetTime 2019-05-23 14:12:32 -04:00
time.h util: Add type safe GetTime 2019-05-23 14:12:32 -04:00
translation.h scripted-diff: Make translation bilingual 2019-07-24 16:33:20 +03:00
url.cpp [build] Add several util units 2019-04-09 17:53:08 -04:00
url.h [build] Add several util units 2019-04-09 17:53:08 -04:00
validation.cpp [build] Add several util units 2019-04-09 17:53:08 -04:00
validation.h [build] Add several util units 2019-04-09 17:53:08 -04:00