comparison MyLilPony.lua @ 30:af32bee5a3d1 i18n

Added a count to the list by pattern command.
author syzler
date Sat, 30 Apr 2011 21:29:43 +0000
parents 830b2ccf349d
children 83e9649a6606
comparison
equal deleted inserted replaced
26:78de94c99487 30:af32bee5a3d1
172 MyLilPony.Log(format(L["msgNoMatchingMountsForPattern"], param)); 172 MyLilPony.Log(format(L["msgNoMatchingMountsForPattern"], param));
173 else 173 else
174 for _, name in pairs(result) do 174 for _, name in pairs(result) do
175 MyLilPony.Print(name); 175 MyLilPony.Print(name);
176 end 176 end
177 MyLilPony.Print(format(L["msgCountMatchingMountsForPattern"], #result));
177 end 178 end
178 elseif MyLilPony.StringMatchIgnoreCase(arg, "^%d+$") then 179 elseif MyLilPony.StringMatchIgnoreCase(arg, "^%d+$") then
179 local result = MyLilPony.CallMountById(tonumber(arg)); 180 local result = MyLilPony.CallMountById(tonumber(arg));
180 if not result then 181 if not result then
181 MyLilPony.Log(format(L["msgNoMatchingMountsForId"], arg)); 182 MyLilPony.Log(format(L["msgNoMatchingMountsForId"], arg));