changeset 1943 | 03dcac72692b |
parent 1905 | b1ec8db513f2 |
child 2948 | 3f21a9dc93d0 |
--- a/QTfrontend/misc.h Sun Apr 05 07:51:18 2009 +0000 +++ b/QTfrontend/misc.h Sun Apr 05 07:56:05 2009 +0000 @@ -34,12 +34,10 @@ QString textFromValue(int value) const { - switch (value) - { - case 0 : return tr("Never"); - case 1 : return tr("Every turn"); - default : return tr("Each %1 turn").arg(value); - } + if (!value) + return tr("Never"); + else + return tr("Every %1 turn", "", value).arg(value); } };