Skip to content

Conversation

cyrossignol
Copy link
Member

@cyrossignol cyrossignol commented Apr 30, 2019

We briefly touched on translations in #1447, so I'm pushing this for closer review. I fixed the code from that PR to work idiomatically with Qt's translation system, updated a couple other locations that contained un-translatable expressions in _(...) calls (90a57e9), and regenerated the translation units (a97e2b5). This pruned some entries that don't exist today, fixed a few that we never updated, and added new entries that were missing for the Scraper, side staking, and the changes in the previous PR.

Might be good to do this each time a release cycle ends. Hopefully it encourages more participation from translators.

@@ -392,8 +392,7 @@ bool CTxDB::LoadBlockIndex()
nLoaded +=10000;
if (nLoaded > nHighest) nHighest=nLoaded;
if (nHighest < nGrandfather) nHighest=nGrandfather;
std::string sBlocksLoaded = ToString(nLoaded) + "/" + ToString(nHighest) + " Blocks Loaded";
uiInterface.InitMessage(_(sBlocksLoaded.c_str()));
uiInterface.InitMessage(strprintf("%" PRId64 "/%" PRId64 " %s", nLoaded, nHighest, _("Blocks Loaded")));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad string format. Some languages require the number between blocks and loaded.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, unfortunately _(...) doesn't provide a way to pass arguments for placeholder variants like tr(...) does, but it looks like we only use tr() in the GUI code. We could expand the uiInterface to support that later, maybe...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Do not worry about it. This is good enough.

@jamescowens jamescowens merged commit c6f4bce into gridcoin-community:development May 12, 2019
@cyrossignol cyrossignol deleted the 1446-miner-status branch July 29, 2019 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants