Make initTranslations a member function of BitcoinApplication class#423
Make initTranslations a member function of BitcoinApplication class#423jarolrod wants to merge 1 commit into
Conversation
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.
shaavan
left a comment
There was a problem hiding this comment.
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.
And I cannot get the point of moving it into the non-static function member of the |
|
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. ConflictsReviewers, 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. |
| /// Initialize prune setting | ||
| void InitPruneSetting(int64_t prune_MiB); | ||
| /** Set up translations */ | ||
| void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTranslator, QTranslator &translatorBase, QTranslator &translator); |
There was a problem hiding this comment.
What about making it a static member function? I slightly like the idea of grouping it that way, but making it a normal member function is not needed)
(Sure, closing is also fine with me)
Moves the
initTranslationsfunction from a static function to a member function of theBitcoinApplicationclass. This is for correctness and to clarify that theQApplicationbeing worked on is ourBitcoinApplicationobject.