From ab44d1f7e3336d0a12e0e4cd04178cd9084bd034 Mon Sep 17 00:00:00 2001 From: Hans-Werner Hilse Date: Wed, 19 Nov 2014 13:25:32 +0100 Subject: [PATCH] fix item number distinction (plural forms) --- frontend/ui/widget/filechooser.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/ui/widget/filechooser.lua b/frontend/ui/widget/filechooser.lua index f196ed089..505ba248a 100644 --- a/frontend/ui/widget/filechooser.lua +++ b/frontend/ui/widget/filechooser.lua @@ -108,7 +108,10 @@ function FileChooser:genItemTableFromPath(path) -- exclude "." and ".." items = items - 2 end - local istr = util.template(items == 0 and _("0 items") or _("1 item") or items > 1 and _("%1 items"), items) + local istr = util.template( + items == 0 and _("0 items") + or items == 1 and _("1 item") + or _("%1 items"), items) table.insert(item_table, { text = dir.name.."/", mandatory = istr,