|
|
|
@ -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,
|
|
|
|
|