Изменения

м
1 версия импортирована
Строка 563: Строка 563:  
if 4 < inactive:len() then -- inactive date has more than just a year (could be anything)
 
if 4 < inactive:len() then -- inactive date has more than just a year (could be anything)
 
local lang_obj = mw.getContentLanguage(); -- get a language object for this wiki
 
local lang_obj = mw.getContentLanguage(); -- get a language object for this wiki
good, inactive_month = pcall (lang_obj.formatDate, lang_obj, 'xg', inactive); -- try to get the month name from the inactive date
+
good, inactive_month = pcall (lang_obj.formatDate, lang_obj, 'F', inactive); -- try to get the month name from the inactive date
 
if not good then
 
if not good then
 
inactive_month = nil; -- something went wrong so make sure this is unset
 
inactive_month = nil; -- something went wrong so make sure this is unset