Use Object::tr
, QT_TRANSLATE_NOOP
, and QCoreApplication::translate
as appropriate instead of using _()
which doesn’t get picked up.
Replaces bitcoin/bitcoin#22764
Edit: I checked that the strings end up in the appropriate context in bitcoin_en.ts
after make translate
:
- “Settings file could not be read” “Settings file could not be written” end up in
bitcoin-core
- “(press q to shutdown and continue later)” and “press q to shutdown” end up in
SplashScreen