diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-02-10 08:49:04 +0000 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-02-10 08:56:27 +0000 |
| commit | 5e903a5ed96809af31cdcf6037e6c284832a02a6 (patch) | |
| tree | 79ca74509bdfd8b1a9a85091ae10af1b95b5f3da /src/net_processing.cpp | |
| parent | Merge #9730: Remove bitseed.xf2.org form the dns seed list (diff) | |
| download | discoin-5e903a5ed96809af31cdcf6037e6c284832a02a6.tar.xz discoin-5e903a5ed96809af31cdcf6037e6c284832a02a6.zip | |
devtools: Handle Qt formatting characters edge-case in update-translations.py
If both numeric format specifiers and "others" are used, assume we're
dealing with a Qt-formatted message. In the case of Qt formatting (see
https://doc.qt.io/qt-5/qstring.html#arg) only numeric formats are
replaced at all. This means "(percentage: %1%)" is valid (which was
introduced in #9461), without needing any kind of escaping that would be
necessary for strprintf. Without this, this function would wrongly
detect '%)' as a printf format specifier.
Diffstat (limited to 'src/net_processing.cpp')
0 files changed, 0 insertions, 0 deletions