Commit 3edba374 authored by Johnny Jazeix's avatar Johnny Jazeix
Browse files

balancebox, handle plural form

parent cc8b7122
......@@ -155,13 +155,13 @@ function saveModel()
levels[i].level = i + 1;
if (!props.file.write(JSON.stringify(levels), userFile))
Core.showMessageDialog(props.editor,
qsTr("Error saving %1 levels to your levels file (%2)")
.arg(numberOfLevel).arg(userFile),
qsTr("Error saving %n level(s) to your levels file (%1)", "", numberOfLevel)
.arg(userFile),
"", null, "", null, null);
else {
Core.showMessageDialog(props.editor,
qsTr("Saved %1 levels to your levels file (%2)")
.arg(numberOfLevel).arg(userFile),
qsTr("Saved %n level(s) to your levels file (%1)", "", numberOfLevel)
.arg(userFile),
"", null, "", null, null);
levelChanged = false;
currentIsNewLevel = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment