About to -> you are about to

You're is used in some other places but im lazy

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2022-12-26 14:33:50 +00:00
parent cbe5af235c
commit bf04becc9e
8 changed files with 13 additions and 14 deletions

View File

@ -65,8 +65,7 @@ QString GuiUtil::uploadPaste(const QString &name, const QString &text, QWidget *
if (baseUrl.isValid()) { if (baseUrl.isValid()) {
auto response = CustomMessageBox::selectable(parentWidget, QObject::tr("Confirm Upload"), auto response = CustomMessageBox::selectable(parentWidget, QObject::tr("Confirm Upload"),
QObject::tr("About to upload: %1\n" QObject::tr("You are about to upload \"%1\" to %2.\n"
"Uploading to: %2\n"
"You should double-check for personal information.\n\n" "You should double-check for personal information.\n\n"
"Are you sure?") "Are you sure?")
.arg(name, baseUrl.host()), .arg(name, baseUrl.host()),

View File

@ -2095,7 +2095,7 @@ void MainWindow::on_actionDeleteInstance_triggered()
auto id = m_selectedInstance->id(); auto id = m_selectedInstance->id();
auto response = CustomMessageBox::selectable(this, tr("Confirm Deletion"), auto response = CustomMessageBox::selectable(this, tr("Confirm Deletion"),
tr("About to delete: %1\n" tr("You are about to delete \"%1\".\n"
"This may be permanent and will completely delete the instance.\n\n" "This may be permanent and will completely delete the instance.\n\n"
"Are you sure?") "Are you sure?")
.arg(m_selectedInstance->name()), .arg(m_selectedInstance->name()),

View File

@ -176,12 +176,12 @@ void ExternalResourcesPage::removeItem()
bool multiple = count > 1; bool multiple = count > 1;
if (multiple) { if (multiple) {
text = tr("About to remove: %1 items\n" text = tr("You are about to remove %1 items.\n"
"This may be permanent and they will be gone from the folder.\n\n" "This may be permanent and they will be gone from the folder.\n\n"
"Are you sure?") "Are you sure?")
.arg(count); .arg(count);
} else if (folder) { } else if (folder) {
text = tr("About to remove: %1 (folder)\n" text = tr("You are about to remove the folder \"%1\".\n"
"This may be permanent and it will be gone from the parent folder.\n\n" "This may be permanent and it will be gone from the parent folder.\n\n"
"Are you sure?") "Are you sure?")
.arg(m_model->at(selection.indexes().at(0).row()).fileinfo().fileName()); .arg(m_model->at(selection.indexes().at(0).row()).fileinfo().fileName());

View File

@ -221,7 +221,7 @@ void OtherLogsPage::on_btnDelete_clicked()
return; return;
} }
if (QMessageBox::question(this, tr("Confirm Deletion"), if (QMessageBox::question(this, tr("Confirm Deletion"),
tr("About to delete: %1\n" tr("You are about to delete \"%1\".\n"
"This may be permanent and it will be gone from the logs folder.\n\n" "This may be permanent and it will be gone from the logs folder.\n\n"
"Are you sure?") "Are you sure?")
.arg(m_currentFile), .arg(m_currentFile),

View File

@ -383,12 +383,12 @@ void ScreenshotsPage::on_actionUpload_triggered()
QString text; QString text;
if (selection.size() > 1) if (selection.size() > 1)
text = tr("About to upload: %1 screenshots\n\n" text = tr("You are about to upload %1 screenshots.\n\n"
"Are you sure?") "Are you sure?")
.arg(selection.size()); .arg(selection.size());
else else
text = text =
tr("About to upload the selected screenshot.\n\n" tr("You are about to upload the selected screenshot.\n\n"
"Are you sure?"); "Are you sure?");
auto response = CustomMessageBox::selectable(this, "Confirm Upload", text, QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No, auto response = CustomMessageBox::selectable(this, "Confirm Upload", text, QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No,
@ -515,12 +515,12 @@ void ScreenshotsPage::on_actionDelete_triggered()
int count = ui->listView->selectionModel()->selectedRows().size(); int count = ui->listView->selectionModel()->selectedRows().size();
QString text; QString text;
if (count > 1) if (count > 1)
text = tr("About to delete: %1 screenshots\n" text = tr("You are about to delete %1 screenshots.\n"
"This may be permanent and they will be gone from the folder.\n\n" "This may be permanent and they will be gone from the folder.\n\n"
"Are you sure?") "Are you sure?")
.arg(count); .arg(count);
else else
text = tr("About to delete the selected screenshot.\n" text = tr("You are about to delete the selected screenshot.\n"
"This may be permanent and it will be gone from the folder.\n\n" "This may be permanent and it will be gone from the folder.\n\n"
"Are you sure?") "Are you sure?")
.arg(count); .arg(count);

View File

@ -802,7 +802,7 @@ void ServersPage::on_actionAdd_triggered()
void ServersPage::on_actionRemove_triggered() void ServersPage::on_actionRemove_triggered()
{ {
auto response = CustomMessageBox::selectable(this, tr("Confirm Removal"), auto response = CustomMessageBox::selectable(this, tr("Confirm Removal"),
tr("About to remove: %1\n" tr("You are about to remove \"%1\".\n"
"This is permanent and the server will be gone from your list forever (A LONG TIME).\n\n" "This is permanent and the server will be gone from your list forever (A LONG TIME).\n\n"
"Are you sure?") "Are you sure?")
.arg(m_model->at(currentServer)->m_name), .arg(m_model->at(currentServer)->m_name),

View File

@ -327,7 +327,7 @@ void VersionPage::on_actionRemove_triggered()
if (component->isCustom()) if (component->isCustom())
{ {
auto response = CustomMessageBox::selectable(this, tr("Confirm Removal"), auto response = CustomMessageBox::selectable(this, tr("Confirm Removal"),
tr("About to remove: %1\n" tr("You are about to remove \"%1\".\n"
"This is permanent and will completely remove the custom component.\n\n" "This is permanent and will completely remove the custom component.\n\n"
"Are you sure?") "Are you sure?")
.arg(component->getName()), .arg(component->getName()),
@ -726,7 +726,7 @@ void VersionPage::on_actionRevert_triggered()
auto component = m_profile->getComponent(version); auto component = m_profile->getComponent(version);
auto response = CustomMessageBox::selectable(this, tr("Confirm Reversion"), auto response = CustomMessageBox::selectable(this, tr("Confirm Reversion"),
tr("About to revert: %1\n" tr("You are about to revert \"%1\".\n"
"This is permanent and will completely revert your customizations.\n\n" "This is permanent and will completely revert your customizations.\n\n"
"Are you sure?") "Are you sure?")
.arg(component->getName()), .arg(component->getName()),

View File

@ -195,7 +195,7 @@ void WorldListPage::on_actionRemove_triggered()
return; return;
auto result = CustomMessageBox::selectable(this, tr("Confirm Deletion"), auto result = CustomMessageBox::selectable(this, tr("Confirm Deletion"),
tr("About to delete: %1\n" tr("You are about to delete \"%1\".\n"
"The world may be gone forever (A LONG TIME).\n\n" "The world may be gone forever (A LONG TIME).\n\n"
"Are you sure?") "Are you sure?")
.arg(m_worlds->allWorlds().at(proxiedIndex.row()).name()), .arg(m_worlds->allWorlds().at(proxiedIndex.row()).name()),