মডিউল:ট্র্যাক তালিকায়ন: সংশোধিত সংস্করণের মধ্যে পার্থক্য
বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
convert(lang, num) needs a string |
আফতাবুজ্জামান (আলোচনা | অবদান) সম্পাদনা সারাংশ নেই |
||
৬২ নং লাইন:
-- Try to match times like "1:23:45".
hours, minutes, seconds = convert('en',length):match('^(%d+):(%d%d):(%d%d)$')
if hours and convert('en',hours):sub(1, 1) == '0' then
-- Disallow times like "0:12:34"
self:addWarning(string.format(
৭৪ নং লাইন:
if not seconds then
-- The previous attempt didn't match. Try to match times like "1:23".
minutes, seconds = convert('en',length):match('^(%d?%d):(%d%d)$')
if minutes and convert('en',minutes):find('^
-- Special case to disallow lengths like "01:23". This check has to
-- be here so that lengths like "1:01:23" are still allowed.
৯৬ নং লাইন:
-- Check that the minutes are less than 60 if we have an hours field.
if hours and convert('en',tonumber(minutes)) >= 60 then
self:addWarning(string.format(
"অবৈধ ট্র্যাকের দৈর্ঘ্য '%s' (যদি ঘণ্টা নির্দিষ্ট করা হয়, তবে মিনিটের মান ৬০-এর কম হতে হবে)",
১০৫ নং লাইন:
-- Check that the seconds are less than 60
if convert('en',tonumber(seconds)) >= 60 then
self:addWarning(string.format(
"অবৈধ ট্র্যাকের দৈর্ঘ্য '%s' (সেকেন্ডের মান ৬০-এর কম হতে হবে)",
|