diff options
author | Friedemann Kleint <[email protected]> | 2010-09-13 16:51:18 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2010-09-13 16:51:43 +0200 |
commit | 66ad76de4f79a5e410bb66b49c6f7ceb456ba266 (patch) | |
tree | fadce2cb320a71ff5ce247612a631bd50002c957 /src/plugins/debugger/watchhandler.cpp | |
parent | 947f0f3a30fd5604bbb788c3c8268c3cf614c1fa (diff) |
I18n: tr-fixes.
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index dbfa14b899e..7d55dc7f413 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -462,9 +462,10 @@ static inline QString formattedValue(const WatchData &data, int format) result = WatchHandler::tr("<invalid>"); else if (result == QLatin1String("<not accessible>")) result = WatchHandler::tr("<not accessible>"); - else if (result.endsWith(" items>")) - result = WatchHandler::tr("<%1 items>") - .arg(result.mid(1, result.indexOf(' ') - 1)); + else if (result.endsWith(" items>")) { + const int size = result.mid(1, result.indexOf(' ') - 1).toInt(); + result = WatchHandler::tr("<%n items>", 0, size); + } } return result; } |