initTranslations
function from a static function to a member function of the BitcoinApplication
class. This is for correctness and to clarify that the QApplication
being worked on is our BitcoinApplication
object.
initTranslations
function from a static function to a member function of the BitcoinApplication
class. This is for correctness and to clarify that the QApplication
being worked on is our BitcoinApplication
object.
Moves the initTranslations function from a static function to a member
function of the BitcoinApplication class. This is for correctness
and to clarify that the QApplication being worked on is our
BitcoinApplication object.
Concept ACK
removeTranslator
and installTranlator
function removes/installs translation files to “this” application. (Source removeTranslator, installTranslator )
It makes sense for a function that deals with these two functions to be part of the BitcoinApplication class, then be a standalone static function.
This is for correctness…
QCoreApplication::installTranslator
is a static
function member of the QCoreApplication
class.
And I cannot get the point of moving it into the non-static function member of the BitcoinApplication
class when we actually need no access to any data member of the latter.
the mentioned installTranslator is a function that we use within our initTranslator function. I think this makes things clearer, but this is extremely low-priority.
Feel free to close if not wanted 🥃
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
47@@ -47,6 +48,8 @@ class BitcoinApplication: public QApplication
48 void createOptionsModel(bool resetSettings);
49 /// Initialize prune setting
50 void InitPruneSetting(int64_t prune_MiB);
51+ /** Set up translations */
52+ void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTranslator, QTranslator &translatorBase, QTranslator &translator);