Android: rephrase sdk download popup question

Remove the double column, put the path in new line to avoid potential
word wrap at the start, and surround it with quotes.

Change-Id: Ifb33e4efaaa13342bfc3a75fc58d67e359e4e804
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Assam Boudjelthia
2022-03-06 16:39:27 +02:00
parent b6c83df7d9
commit 5f16074cb3
3 changed files with 5 additions and 4 deletions

View File

@@ -19692,7 +19692,7 @@ should a repository require SSH-authentication (see documentation on SSH and the
<translation>(SDK-Version: %1, NDK-Version: %2)</translation>
</message>
<message>
<source>Download and install Android SDK Tools to: %1?</source>
<source>Download and install Android SDK Tools to %1?</source>
<translation>Android-SDK-Tools herunterladen und nach %1 installieren?</translation>
</message>
<message>

View File

@@ -1967,7 +1967,7 @@ Prefix with : if the process is private, use a lowercase name if the process is
<translation>Выбранный путь уже содержит корректный пакет инструментов SDK.</translation>
</message>
<message>
<source>Download and install Android SDK Tools to: %1?</source>
<source>Download and install Android SDK Tools to %1?</source>
<translation>Загрузить и установить инструменты Android SDK в %1?</translation>
</message>
<message>

View File

@@ -682,8 +682,9 @@ void AndroidSettingsWidget::downloadSdk()
return;
}
const QString message = tr("Download and install Android SDK Tools to: %1?")
.arg(m_ui.SDKLocationPathChooser->filePath().cleanPath().toUserOutput());
const QString message = tr("Download and install Android SDK Tools to %1?")
.arg("\n\"" + m_ui.SDKLocationPathChooser->filePath().cleanPath().toUserOutput()
+ "\"");
auto userInput = QMessageBox::information(this, AndroidSdkDownloader::dialogTitle(),
message, QMessageBox::Yes | QMessageBox::No);
if (userInput == QMessageBox::Yes)