1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-03 09:47:22 +03:00

Fix i18np call

The first argument is the one that decides whether the first form or the
second form will be used, so needs to be a number, second argument gets
substituted onto the %2

Using join() of a string list of 1 just gives you the string
This commit is contained in:
Albert Astals Cid 2021-05-06 22:19:14 +02:00 committed by Michail Vourlakos
parent 156103af4f
commit 4571c255ed

View File

@ -830,10 +830,10 @@ bool Layouts::importLayoutsFromV1ConfigFile(QString file)
}
if (importedlayouts.count() > 0) {
m_handler->showInlineMessage(i18np("Layout <b>%1</b> imported successfully...",
m_handler->showInlineMessage(i18np("Layout <b>%2</b> imported successfully...",
"Layouts <b>%2</b> imported successfully...",
importedlayouts[0],
importedlayouts.join(",")),
importedlayouts.count(),
importedlayouts.join(",")),
KMessageWidget::Positive);
return true;