1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-09 05:18:18 +03:00

drop .arg() from translation strings

This commit is contained in:
Michail Vourlakos 2021-05-04 09:18:35 +03:00
parent 4d345a5449
commit ce62b31901
11 changed files with 91 additions and 67 deletions

View File

@ -283,8 +283,8 @@ Latte::ImportExport::State Factory::importIndicatorFile(QString compressedFile)
auto showNotificationSucceed = [](QString name, bool updated) {
auto notification = new KNotification("import-done", KNotification::CloseOnTimeout);
notification->setText(updated ? i18nc("indicator_name, imported updated","%0 indicator updated successfully").arg(name) :
i18nc("indicator_name, imported success","%0 indicator installed successfully").arg(name));
notification->setText(updated ? i18nc("indicator_name, imported updated","%0 indicator updated successfully", name) :
i18nc("indicator_name, imported success","%0 indicator installed successfully", name));
notification->sendEvent();
};
@ -373,7 +373,7 @@ void Factory::removeIndicator(QString id)
KMessageBox::createKMessageBox(dialog,
buttonbox,
QMessageBox::Question,
i18n("Do you want to remove completely <b>%0</b> indicator from your system?").arg(pluginName),
i18n("Do you want to remove completely <b>%0</b> indicator from your system?", pluginName),
QStringList(),
QString(),
0,
@ -383,7 +383,7 @@ void Factory::removeIndicator(QString id)
connect(buttonbox, &QDialogButtonBox::accepted, [&, id, pluginName]() {
auto showRemovedSucceed = [](QString name) {
auto notification = new KNotification("remove-done", KNotification::CloseOnTimeout);
notification->setText(i18nc("indicator_name, removed success","<b>%0</b> indicator removed successfully").arg(name));
notification->setText(i18nc("indicator_name, removed success","<b>%0</b> indicator removed successfully", name));
notification->sendEvent();
};

View File

@ -221,7 +221,8 @@ void Manager::loadLayoutOnStartup(QString layoutName)
KMessageBox::createKMessageBox(dialog,
buttonbox,
QMessageBox::Warning,
i18n("<b>Multiple Layouts based on Activities</b> mode did not close properly during the last session.<br/><br/>The following layout(s) <b>[ %0 ]</b> had to be updated for consistency!").arg(layouts.join(",")),
i18n("<b>Multiple Layouts based on Activities</b> mode did not close properly during the last session.<br/><br/>The following layout(s) <b>[ %0 ]</b> had to be updated for consistency!",
layouts.join(",")),
QStringList(),
QString(),
0,

View File

@ -474,7 +474,7 @@ void Synchronizer::hideAllViews()
void Synchronizer::pauseLayout(QString layoutName)
{
if (m_manager->memoryUsage() == MemoryUsage::MultipleLayouts) {
if (m_manager->memoryUsage() == MemoryUsage::MultipleLayouts) {
CentralLayout *layout = centralLayout(layoutName);
if (layout->isOnAllActivities()) {
@ -928,11 +928,12 @@ void Synchronizer::syncMultipleLayoutsToActivities()
}
if (m_manager->corona()->universalSettings()->showInfoWindow()) {
if (newlyActivatedLayouts.count() == 1) {
m_manager->showInfoWindow(i18n("Activating layout: <b>%0</b> ...").arg(newlyActivatedLayouts[0]), 4000, QStringList(Data::Layout::ALLACTIVITIESID));
} else if (newlyActivatedLayouts.count() > 1) {
m_manager->showInfoWindow(i18n("Activating layouts: <b>%0</b> ...").arg(newlyActivatedLayouts.join(", ")), 4000, QStringList(Data::Layout::ALLACTIVITIESID));
}
m_manager->showInfoWindow(i18np("Activating layout: <b>%2</b> ...",
"Activating layouts: <b>%3</b> ...",
newlyActivatedLayouts.count(),
newlyActivatedLayouts[0],
newlyActivatedLayouts.join(", ")),
4000, QStringList(Data::Layout::ALLACTIVITIESID));
}
//! Unload no needed Layouts

View File

@ -420,14 +420,14 @@ void DetailsHandler::selectTextColor()
void DetailsHandler::updateWindowTitle()
{
m_dialog->setWindowTitle(i18nc("<layout name> Details","%0 Details").arg(m_ui->layoutsCmb->currentText()));
m_dialog->setWindowTitle(i18nc("<layout name> Details","%0 Details", m_ui->layoutsCmb->currentText()));
}
KMessageBox::ButtonCode DetailsHandler::saveChangesConfirmation()
{
if (hasChangedData()) {
QString layoutName = c_data.name;
QString saveChangesText = i18n("The settings of <b>%0</b> layout have changed.<br/>Do you want to apply the changes or discard them?").arg(layoutName);
QString saveChangesText = i18n("The settings of <b>%0</b> layout have changed.<br/>Do you want to apply the changes or discard them?", layoutName);
return m_dialog->saveChangesConfirmation(saveChangesText);
}

View File

@ -178,7 +178,7 @@ void ExportTemplateHandler::chooseFileDialog()
if (!file.endsWith(".layout.latte")) {
QString selected = file;
selected = selected.replace(QDir::homePath(), "~");
showInlineMessage(i18n("<i>%0</i> does not end with <i>.layout.latte</i> extension. Selected file <b>rejected</b>.").arg(selected),
showInlineMessage(i18n("<i>%0</i> does not end with <i>.layout.latte</i> extension. Selected file <b>rejected</b>.", selected),
KMessageWidget::Error,
true);
} else {
@ -188,7 +188,7 @@ void ExportTemplateHandler::chooseFileDialog()
if (!file.endsWith(".view.latte")) {
QString selected = file;
selected = selected.replace(QDir::homePath(), "~");
showInlineMessage(i18n("<i>%0</i> does not end with <i>.view.latte</i> extension. Selected file <b>rejected</b>.").arg(selected),
showInlineMessage(i18n("<i>%0</i> does not end with <i>.view.latte</i> extension. Selected file <b>rejected</b>.", selected),
KMessageWidget::Error,
true);
} else {
@ -215,7 +215,7 @@ void ExportTemplateHandler::onExport()
//! Proceed with export
auto showExportTemplateError = [this](const QString &templateName) {
showInlineMessage(i18nc("settings:template export fail","Template <b>%0</b> export <b>failed</b>...").arg(templateName),
showInlineMessage(i18nc("settings:template export fail","Template <b>%0</b> export <b>failed</b>...", templateName),
KMessageWidget::Error,
true);
};
@ -247,7 +247,7 @@ void ExportTemplateHandler::onExport()
}
});
showInlineMessage(i18nc("settings:template export success","Template <b>%0</b> export succeeded...").arg(curbasename),
showInlineMessage(i18nc("settings:template export success","Template <b>%0</b> export succeeded...", curbasename),
KMessageWidget::Positive,
false,
actions);
@ -309,7 +309,7 @@ void ExportTemplateHandler::save()
bool ExportTemplateHandler::overwriteConfirmation(const QString &fileName)
{
return (KMessageBox::warningYesNo(m_dialog,
i18n("The file \"%0\" already exists. Do you wish to overwrite it?").arg(fileName),
i18n("The file \"%0\" already exists. Do you wish to overwrite it?", fileName),
i18n("Overwrite File?"),
KStandardGuiItem::overwrite(),
KStandardGuiItem::cancel()) == KMessageBox::Yes);

View File

@ -535,9 +535,10 @@ void Layouts::initialMessageForErroredLayouts(const int &count)
}
m_handler->showInlineMessage(i18ncp("settings:counted layout with errors",
"<b>Error:</b> There is <b>1 layout</b> that has reported errors.",
"<b>Error:</b> There are <b>%0 layouts</b> that have reported errors.",
count).arg(count),
"<b>Error:</b> There is <b>1 layout</b> that has reported errors.",
"<b>Error:</b> There are <b>%0 layouts</b> that have reported errors.",
count,
count),
KMessageWidget::Error);
}
@ -548,9 +549,9 @@ void Layouts::initialMessageForWarningLayouts(const int &count)
}
m_handler->showInlineMessage(i18ncp("settings:counted layout with warnings",
"<b>Warning:</b> There is <b>1 layout</b> that has reported warnings.",
"<b>Warning:</b> There are <b>%0 layouts</b> that have reported warnings.",
count).arg(count),
"<b>Warning:</b> There is <b>1 layout</b> that has reported warnings.",
"<b>Warning:</b> There are <b>%1 layouts</b> that have reported warnings.",
count),
KMessageWidget::Warning);
}
@ -576,21 +577,28 @@ void Layouts::messageForErroredLayout(const Data::Layout &layout)
if (!layout.hasErrors() && layout.hasWarnings()) {
//! add only warnings first
m_handler->showInlineMessage(i18nc("settings:layout with warnings",
"<b>Warning: %0</b> layout has reported <b>%1 warning(s)</b> that need your attention.").arg(layout.name).arg(layout.warnings),
"<b>Warning: %0</b> layout has reported <b>%1 warning(s)</b> that need your attention.",
layout.name,
layout.warnings),
KMessageWidget::Warning,
false,
actions);
} else if (layout.hasErrors() && !layout.hasWarnings()) {
//! add errors in the end in order to be read by the user
m_handler->showInlineMessage(i18nc("settings:layout with errors",
"<b>Error: %0</b> layout has reported <b>%1 error(s)</b> that you need to repair.").arg(layout.name).arg(layout.errors),
"<b>Error: %0</b> layout has reported <b>%1 error(s)</b> that you need to repair.",
layout.name,
layout.errors),
KMessageWidget::Error,
true,
actions);
} else if (layout.hasErrors() && layout.hasWarnings()) {
//! add most important errors in the end in order to be read by the user
m_handler->showInlineMessage(i18nc("settings:layout with errors and warnings",
"<b>Error: %0</b> layout has reported <b>%1 error(s)</b> and <b>%2 warning(s)</b> that you need to repair.").arg(layout.name).arg(layout.errors).arg(layout.warnings),
"<b>Error: %0</b> layout has reported <b>%1 error(s)</b> and <b>%2 warning(s)</b> that you need to repair.",
layout.name,
layout.errors,
layout.warnings),
KMessageWidget::Error,
true,
actions);
@ -813,10 +821,10 @@ bool Layouts::importLayoutsFromV1ConfigFile(QString file)
if (importedlayouts.count() > 0) {
if (importedlayouts.count() == 1) {
m_handler->showInlineMessage(i18n("Layout <b>%0</b> imported successfully...").arg(importedlayouts[0]),
m_handler->showInlineMessage(i18n("Layout <b>%0</b> imported successfully...", importedlayouts[0]),
KMessageWidget::Positive);
} else {
m_handler->showInlineMessage(i18n("Layouts <b>%0</b> imported successfully...").arg(importedlayouts.join(",")),
m_handler->showInlineMessage(i18n("Layouts <b>%0</b> imported successfully...", importedlayouts.join(",")),
KMessageWidget::Positive);
}
@ -1024,7 +1032,7 @@ void Layouts::onNameDuplicatedFrom(const QString &provenId, const QString &trial
int originalRow = m_model->rowForId(provenId);
Latte::Data::Layout provenLayout = m_model->at(originalRow);
m_handler->showInlineMessage(i18nc("settings: layout name used","Layout <b>%0</b> is already used, please provide a different name...").arg(provenLayout.name),
m_handler->showInlineMessage(i18nc("settings: layout name used","Layout <b>%0</b> is already used, please provide a different name...", provenLayout.name),
KMessageWidget::Error);
QModelIndex tIndex = m_proxyModel->index(tRow, Model::Layouts::NAMECOLUMN);

View File

@ -479,7 +479,7 @@ bool SettingsDialog::saveChanges()
|| (m_acceptedPage == PreferencesPage && m_tabPreferencesHandler->hasChangedData())) {
QString tabName = m_ui->tabWidget->tabBar()->tabText(m_acceptedPage).remove("&");
QString saveChangesText = i18n("The settings of <b>%0</b> tab have changed.<br/>Do you want to apply the changes or discard them?").arg(tabName);
QString saveChangesText = i18n("The settings of <b>%0</b> tab have changed.<br/>Do you want to apply the changes or discard them?", tabName);
KMessageBox::ButtonCode result = saveChangesConfirmation(saveChangesText);

View File

@ -379,7 +379,7 @@ void TabLayouts::switchLayout()
}
m_layoutsController->setOriginalInMultipleMode(false);
m_corona->layoutsManager()->switchToLayout(selectedLayoutOriginal.name, MemoryUsage::SingleLayout);
m_corona->layoutsManager()->switchToLayout(selectedLayoutOriginal.name, MemoryUsage::SingleLayout);
updatePerLayoutButtonsState();
}
@ -449,7 +449,7 @@ void TabLayouts::newLayout(const QString &templateName)
Data::Layout newlayout = m_layoutsController->addLayoutForFile(tdata.id, tdata.name, true);
if (newlayout.errors == 0 && newlayout.warnings == 0) {
showInlineMessage(i18nc("settings:layout added successfully","Layout <b>%0</b> added successfully...").arg(newlayout.name),
showInlineMessage(i18nc("settings:layout added successfully","Layout <b>%0</b> added successfully...", newlayout.name),
KMessageWidget::Positive);
}
}
@ -485,7 +485,7 @@ void TabLayouts::downloadLayout()
if (version == Latte::Layouts::Importer::LayoutVersion2) {
Latte::Data::Layout downloaded = m_layoutsController->addLayoutForFile(entryFile);
showInlineMessage(i18nc("settings:layout downloaded successfully","Layout <b>%0</b> downloaded successfully...").arg(downloaded.name),
showInlineMessage(i18nc("settings:layout downloaded successfully","Layout <b>%0</b> downloaded successfully...", downloaded.name),
KMessageWidget::Positive);
break;
}
@ -569,7 +569,7 @@ void TabLayouts::importLayout()
if (version == Latte::Layouts::Importer::LayoutVersion2) {
Latte::Data::Layout importedlayout = m_layoutsController->addLayoutForFile(file);
showInlineMessage(i18nc("settings:layout imported successfully","Layout <b>%0</b> imported successfully...").arg(importedlayout.name),
showInlineMessage(i18nc("settings:layout imported successfully","Layout <b>%0</b> imported successfully...", importedlayout.name),
KMessageWidget::Positive);
} else if (version == Latte::Layouts::Importer::ConfigVersion1) {
if (!m_layoutsController->importLayoutsFromV1ConfigFile(file)) {
@ -638,7 +638,7 @@ void TabLayouts::exportLayoutForBackup()
connect(exportFileDialog, &QFileDialog::fileSelected, this, [ &, selectedLayout](const QString & file) {
auto showExportLayoutError = [this](const Latte::Data::Layout &layout) {
showInlineMessage(i18nc("settings:layout export fail","Layout <b>%0</b> export <b>failed</b>...").arg(layout.name),
showInlineMessage(i18nc("settings:layout export fail","Layout <b>%0</b> export <b>failed</b>...", layout.name),
KMessageWidget::Error,
true);
};
@ -677,7 +677,7 @@ void TabLayouts::exportLayoutForBackup()
}
});
showInlineMessage(i18nc("settings:layout export success","Layout <b>%0</b> export succeeded...").arg(selectedLayout.name),
showInlineMessage(i18nc("settings:layout export success","Layout <b>%0</b> export succeeded...", selectedLayout.name),
KMessageWidget::Positive,
false,
actions);
@ -768,19 +768,19 @@ void TabLayouts::onLayoutFilesDropped(const QStringList &paths)
}
}
if (layoutNames.count() == 1) {
showInlineMessage(i18nc("settings:layout imported successfully","Layout <b>%0</b> imported successfully...").arg(layoutNames[0]),
KMessageWidget::Positive);
} else if (layoutNames.count() > 1) {
showInlineMessage(i18nc("settings:layouts imported successfully","Layouts <b>%0</b> imported successfully...").arg(layoutNames.join(", )")),
KMessageWidget::Positive);
}
showInlineMessage(i18ncp("settings:layout imported successfully",
"Layout <b>%2</b> imported successfully...",
"Layouts <b>%3</b> imported successfully...",
layoutNames.count(),
layoutNames[0],
layoutNames.join(", ")),
KMessageWidget::Positive);
}
void TabLayouts::onRawLayoutDropped(const QString &rawLayout)
{
Latte::Data::Layout importedlayout = m_layoutsController->addLayoutByText(rawLayout);
showInlineMessage(i18nc("settings:layout imported successfully","Layout <b>%0</b> imported successfully...").arg(importedlayout.name),
showInlineMessage(i18nc("settings:layout imported successfully","Layout <b>%0</b> imported successfully...", importedlayout.name),
KMessageWidget::Positive);
}

View File

@ -683,7 +683,7 @@ void Views::messageForErrorAppletsWithSameId(const Data::Error &error)
}
//! construct message
QString message = i18nc("error id and title", "<b>Error #%0: %1</b> <br/>").arg(error.id).arg(error.name);
QString message = i18nc("error id and title", "<b>Error #%0: %1</b> <br/>",error.id, error.name);
message += "<br/>";
message += i18n("In your layout there are two or more applets with same id. Such situation can create crashes, abnormal behavior and data loss when you activate and use this layout.<br/>");
@ -696,7 +696,11 @@ void Views::messageForErrorAppletsWithSameId(const Data::Error &error)
QString containmentname = viewname.isEmpty() ? error.information[i].containment.visibleName() : viewname;
QString containmentstorageid = error.information[i].containment.storageId;
message += i18nc("applets with same id error, applet name, applet id, containment name, containment id",
"&nbsp;&nbsp;• <b>%0</b> [#%1] inside <b>%2</b> [#%3]<br/>").arg(appletname).arg(appletstorageid).arg(containmentname).arg(containmentstorageid);
"&nbsp;&nbsp;• <b>%0</b> [#%1] inside <b>%2</b> [#%3]<br/>",
appletname,
appletstorageid,
containmentname,
containmentstorageid);
}
message += "<br/>";
@ -716,7 +720,7 @@ void Views::messageForErrorOrphanedParentAppletOfSubContainment(const Data::Erro
}
//! construct message
QString message = i18nc("error id and title", "<b>Error #%0: %1</b> <br/><br/>").arg(error.id).arg(error.name);
QString message = i18nc("error id and title", "<b>Error #%0: %1</b> <br/><br/>", error.id, error.name);
message += i18n("In your layout there are orphaned pseudo applets that link to unexistent subcontainments. Such case is for example a systemtray that has lost connection with its child applets. Such situation can create crashes, abnormal behavior and data loss when you activate and use this layout.<br/>");
message += "<br/>";
@ -732,7 +736,11 @@ void Views::messageForErrorOrphanedParentAppletOfSubContainment(const Data::Erro
QString containmentname = viewname.isEmpty() ? error.information[i].containment.visibleName() : viewname;
QString containmentstorageid = error.information[i].containment.storageId;
message += i18nc("orphaned pseudo applets, applet name, applet id, containment name, containment id",
"&nbsp;&nbsp;• <b>%0</b> [#%1] inside <b>%2</b> [#%3]<br/>").arg(appletname).arg(appletstorageid).arg(containmentname).arg(containmentstorageid);
"&nbsp;&nbsp;• <b>%0</b> [#%1] inside <b>%2</b> [#%3]<br/>",
appletname,
appletstorageid,
containmentname,
containmentstorageid);
}
message += "<br/>";
@ -746,7 +754,9 @@ void Views::messageForErrorOrphanedParentAppletOfSubContainment(const Data::Erro
QString containmentname = viewname.isEmpty() ? error.information[i].containment.visibleName() : viewname;
QString containmentstorageid = error.information[i].containment.storageId;
message += i18nc("orphaned subcontainments, containment name, containment id",
"&nbsp;&nbsp;• <b>%0</b> [#%1] <br/>").arg(containmentname).arg(containmentstorageid);
"&nbsp;&nbsp;• <b>%0</b> [#%1] <br/>",
containmentname,
containmentstorageid);
}
message += "<br/>";
@ -765,7 +775,7 @@ void Views::messageForWarningAppletAndContainmentWithSameId(const Data::Warning
}
//! construct message
QString message = i18nc("warning id and title", "<b>Warning #%0: %1</b> <br/><br/>").arg(warning.id).arg(warning.name);
QString message = i18nc("warning id and title", "<b>Warning #%0: %1</b> <br/><br/>", warning.id, warning.name);
message += i18n("In your layout there are applets and containments with the same id. Such situation is not dangerous but it should not occur.<br/>");
message += "<br/>";
@ -781,7 +791,11 @@ void Views::messageForWarningAppletAndContainmentWithSameId(const Data::Warning
QString containmentname = viewname.isEmpty() ? warning.information[i].containment.visibleName() : viewname;
QString containmentstorageid = warning.information[i].containment.storageId;
message += i18nc("applets, applet name, applet id, containment name, containment id",
"&nbsp;&nbsp;• <b>%0</b> [#%1] inside <b>%2</b> [#%3]<br/>").arg(appletname).arg(appletstorageid).arg(containmentname).arg(containmentstorageid);
"&nbsp;&nbsp;• <b>%0</b> [#%1] inside <b>%2</b> [#%3]<br/>",
appletname,
appletstorageid,
containmentname,
containmentstorageid);
}
message += "<br/>";
@ -795,7 +809,9 @@ void Views::messageForWarningAppletAndContainmentWithSameId(const Data::Warning
QString containmentname = viewname.isEmpty() ? warning.information[i].containment.visibleName() : viewname;
QString containmentstorageid = warning.information[i].containment.storageId;
message += i18nc("containments, containment name, containment id",
"&nbsp;&nbsp;• <b>%0</b> [#%1] <br/>").arg(containmentname).arg(containmentstorageid);
"&nbsp;&nbsp;• <b>%0</b> [#%1] <br/>",
containmentname,
containmentstorageid);
}
message += "<br/>";
@ -816,7 +832,7 @@ void Views::messageForWarningOrphanedSubContainments(const Data::Warning &warnin
QList<int> orphaned;
//! construct message
QString message = i18nc("warning id and title", "<b>Warning #%0: %1</b> <br/><br/>").arg(warning.id).arg(warning.name);
QString message = i18nc("warning id and title", "<b>Warning #%0: %1</b> <br/><br/>", warning.id, warning.name);
message += i18n("In your layout there are orphaned subcontainments that are not used by any dock or panel. Such situation is not dangerous but it is advised to remove them in order to reduce memory usage.<br/>");
message += "<br/>";
@ -830,7 +846,9 @@ void Views::messageForWarningOrphanedSubContainments(const Data::Warning &warnin
QString containmentname = viewname.isEmpty() ? warning.information[i].containment.visibleName() : viewname;
QString containmentstorageid = warning.information[i].containment.storageId;
message += i18nc("orphaned subcontainments, containment name, containment id",
"&nbsp;&nbsp;• <b>%0</b> [#%1] <br/>").arg(containmentname).arg(containmentstorageid);
"&nbsp;&nbsp;• <b>%0</b> [#%1] <br/>",
containmentname,
containmentstorageid);
orphaned << warning.information[i].containment.storageId.toInt();
}

View File

@ -292,7 +292,7 @@ void ViewsHandler::newView(const Data::Generic &templateData)
viewfromtemplate.name = templateData.name;
Data::View newview = m_viewsController->appendViewFromViewTemplate(viewfromtemplate);
showInlineMessage(i18nc("settings:dock/panel added successfully","<b>%0</b> added successfully...").arg(newview.name),
showInlineMessage(i18nc("settings:dock/panel added successfully","<b>%0</b> added successfully...", newview.name),
KMessageWidget::Positive);
}
}
@ -416,7 +416,7 @@ void ViewsHandler::onCurrentLayoutIndexChanged(int row)
void ViewsHandler::updateWindowTitle()
{
m_dialog->setWindowTitle(i18nc("<layout name> Docks/Panels","%0 Docks/Panels").arg(m_ui->layoutsCmb->currentText()));
m_dialog->setWindowTitle(i18nc("<layout name> Docks/Panels","%0 Docks/Panels", m_ui->layoutsCmb->currentText()));
}
KMessageBox::ButtonCode ViewsHandler::removalConfirmation(const int &viewsCount)
@ -426,14 +426,10 @@ KMessageBox::ButtonCode ViewsHandler::removalConfirmation(const int &viewsCount)
}
if (hasChangedData()) {
QString removalTxt = i18n("You are going to <b>remove 1</b> dock or panel completely from your layout.<br/>Would you like to continue?");
if (viewsCount > 1) {
removalTxt = i18n ("You are going to <b>remove %0</b> docks and panels completely from your layout.<br/>Would you like to continue?").arg(viewsCount);
}
return KMessageBox::warningYesNo(m_dialog,
removalTxt,
i18np("You are going to <b>remove 1</b> dock or panel completely from your layout.<br/>Would you like to continue?",
"You are going to <b>remove %1</b> docks and panels completely from your layout.<br/>Would you like to continue?",
viewsCount),
i18n("Approve Removal"));
}
@ -444,7 +440,7 @@ KMessageBox::ButtonCode ViewsHandler::saveChangesConfirmation()
{
if (hasChangedData()) {
QString layoutName = o_data.name;
QString saveChangesText = i18n("The settings of <b>%0</b> layout have changed.<br/>Do you want to apply the changes <b>now</b> or discard them?").arg(layoutName);
QString saveChangesText = i18n("The settings of <b>%0</b> layout have changed.<br/>Do you want to apply the changes <b>now</b> or discard them?", layoutName);
return m_dialog->saveChangesConfirmation(saveChangesText);
}

View File

@ -762,7 +762,7 @@ QVariant Views::data(const QModelIndex &index, int role) const
if (!m_viewsTable[row].onPrimary && !currentScreens.containsId(QString::number(m_viewsTable[row].screen))) {
Data::Screen explicitScr(QString::number(m_viewsTable[row].screen),
i18nc("unknown screen", "Unknown : [%0]").arg(explicitScr.id));
i18nc("unknown screen", "Unknown : [%0]", explicitScr.id));
currentScreens.insertBasedOnId(explicitScr);
}
@ -848,7 +848,7 @@ QVariant Views::data(const QModelIndex &index, int role) const
if (s_screens.containsId(scrId)) {
return s_screens[scrId].name;
} else {
return i18nc("unknown screen", "Unknown : [%0]").arg(scrId);
return i18nc("unknown screen", "Unknown : [%0]", scrId);
}
}
} else if (role == Qt::UserRole) {