forked from qt-creator/qt-creator
Fix tr()-usage in fakevim.
Change-Id: I21b2fcbe6b638b0b07341c23aac6028607de4fdf Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -5028,7 +5028,7 @@ bool FakeVimHandler::Private::handleExMoveCommand(const ExCommand &cmd)
|
|||||||
setMark(QLatin1Char('>'), lastPosition);
|
setMark(QLatin1Char('>'), lastPosition);
|
||||||
|
|
||||||
if (lines > 2)
|
if (lines > 2)
|
||||||
showMessage(MessageInfo, FakeVimHandler::tr("%1 lines moved").arg(lines));
|
showMessage(MessageInfo, FakeVimHandler::tr("%n lines moved", 0, lines));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -6087,7 +6087,7 @@ void FakeVimHandler::Private::yankText(const Range &range, int reg)
|
|||||||
const int lines = document()->findBlock(range.endPos).blockNumber()
|
const int lines = document()->findBlock(range.endPos).blockNumber()
|
||||||
- document()->findBlock(range.beginPos).blockNumber() + 1;
|
- document()->findBlock(range.beginPos).blockNumber() + 1;
|
||||||
if (lines > 2)
|
if (lines > 2)
|
||||||
showMessage(MessageInfo, FakeVimHandler::tr("%1 lines yanked").arg(lines));
|
showMessage(MessageInfo, FakeVimHandler::tr("%n lines yanked", 0, lines));
|
||||||
}
|
}
|
||||||
|
|
||||||
void FakeVimHandler::Private::transformText(const Range &range,
|
void FakeVimHandler::Private::transformText(const Range &range,
|
||||||
|
Reference in New Issue
Block a user