মডিউল:ট্র্যাক তালিকায়ন: সংশোধিত সংস্করণের মধ্যে পার্থক্য
বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
আফতাবুজ্জামান (আলোচনা | অবদান) সম্পাদনা সারাংশ নেই |
this should do what is requested on talk but needs testing! |
||
২০ নং লাইন:
end
end
end▼
-- অনুবাদে কোন পরিবর্তন হলে এখানে করুন▼
-- যদি ক্ষেত্রের জন্য বেশ কিছু bangla পরামিতি থাকে, তাহলে Lua টেবিল থেকে একটি স্ট্রিং প্রতিস্থাপন করুন▼
local fieldTranslations = {▼
-- Track.fields▼
['নম্বর'] = 'number',
['শিরোনাম'] = 'title',
['টীকা'] = 'note',
['দৈর্ঘ্য'] = 'length',
['কথা'] = 'lyrics',
['সঙ্গীত'] = 'music',
['লেখক'] = 'writer',
['অতিরিক্ত'] = 'extra',
-- TrackListing.fields▼
['نویسنده_همه'] = 'all_writing',
['سراینده_همه'] = 'all_lyrics',
['آهنگساز_همه'] = 'all_music',
['جمعشونده'] = 'collapsed',
['عنوان'] = 'headline',
['ستون_اضافی'] = 'extra_column',
['مدت_کل'] = 'total_length',
['پهنای_نام'] = 'title_width',
['پهنای_نویسنده'] = 'writing_width',
['پهنای_سراینده'] = 'lyrics_width',
['پهنای_آهنگساز'] = 'music_width',
['پهنای_اضافی'] = 'extra_width',
['رده'] = 'category',
-- TrackListing.deprecatedFields▼
['شرکتکنندگان_نویسندگی'] = 'writing_credits',
['شرکتکنندگان_سرودن'] = 'lyrics_credits',
['شرکتکنندگان_آهنگسازی'] = 'music_credits',
}▼
local function translateFields(param)▼
return fieldTranslations[param] or param
end
৫৯ ⟶ ৯৭ নং লাইন:
end
local enLength = convert('en', length)
local hours, minutes, seconds
-- Try to match times like "1:23:45".
hours, minutes, seconds =
if hours and
-- 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 =
if minutes and
-- 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
self:addWarning(string.format(
"অবৈধ ট্র্যাকের দৈর্ঘ্য '%s' (যদি ঘণ্টা নির্দিষ্ট করা হয়, তবে মিনিটের মান ৬০-এর কম হতে হবে)",
১০৫ ⟶ ১৪৪ নং লাইন:
-- Check that the seconds are less than 60
if
self:addWarning(string.format(
"অবৈধ ট্র্যাকের দৈর্ঘ্য '%s' (সেকেন্ডের মান ৬০-এর কম হতে হবে)",
১৩২ ⟶ ১৭১ নং লাইন:
writer = true,
extra = true,
▲}
▲-- অনুবাদে কোন পরিবর্তন হলে এখানে করুন
▲-- যদি ক্ষেত্রের জন্য বেশ কিছু bangla পরামিতি থাকে, তাহলে Lua টেবিল থেকে একটি স্ট্রিং প্রতিস্থাপন করুন
▲local fieldTranslations = {
▲ -- Track.fields
▲ -- TrackListing.fields
▲ -- TrackListing.deprecatedFields
}
৩০২ ⟶ ৩০৭ নং লাইন:
music_credits = true,
}
▲local function translateFields(param)
▲end
function TrackListing.new(data)
৬৪৯ ⟶ ৬৩২ নং লাইন:
tracks[num][prefix] = v
else
data[translateFields(k)] = convert('en', v
end
end
|