forked from qt-creator/qt-creator
Tr/Python: Fix translation issues
- Use parametrization - Split message that relied on sentence structure of the language Change-Id: I5c0cca684bc9c94219e740fe0292e358a91714da Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -81,8 +81,10 @@ void PipInstallTask::cancel()
|
||||
m_process.stop();
|
||||
m_process.waitForFinished();
|
||||
Core::MessageManager::writeFlashing(
|
||||
Tr::tr("The %1 installation was canceled by %2.")
|
||||
.arg(packagesDisplayName(), m_killTimer.isActive() ? Tr::tr("user") : Tr::tr("time out")));
|
||||
m_killTimer.isActive()
|
||||
? Tr::tr("The installation of \"%1\" was canceled by timeout.").arg(packagesDisplayName())
|
||||
: Tr::tr("The installation of \"%1\" was canceled by the user.")
|
||||
.arg(packagesDisplayName()));
|
||||
}
|
||||
|
||||
void PipInstallTask::handleDone()
|
||||
|
||||
Reference in New Issue
Block a user