mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
-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-
|
||
|---|---|---|
| .. | ||
| bip32.cpp | ||
| bip32.h | ||
| bytevectorhash.cpp | ||
| bytevectorhash.h | ||
| error.cpp | ||
| error.h | ||
| fees.cpp | ||
| fees.h | ||
| memory.h | ||
| moneystr.cpp | ||
| moneystr.h | ||
| rbf.cpp | ||
| rbf.h | ||
| strencodings.cpp | ||
| strencodings.h | ||
| system.cpp | ||
| system.h | ||
| threadnames.cpp | ||
| threadnames.h | ||
| time.cpp | ||
| time.h | ||
| translation.h | ||
| url.cpp | ||
| url.h | ||
| validation.cpp | ||
| validation.h | ||