Difference between revisions of "Module:Int"

Jump to navigation Jump to search
18 bytes added ,  12:21, 27 July 2021
Correctly handle missing messages when `lang="qqx"`
>ExE Boss
m (Linkify “Template:int”; format module source)
>ExE Boss
(Correctly handle missing messages when `lang="qqx"`)
Line 21: Line 21:
lang = templateTranslation.getLanguage()
lang = templateTranslation.getLanguage()
end
end
if (msg:exists() and not msg:isDisabled()) then
 
if (msg:exists() and not msg:isDisabled()) or lang == 'qqx' then
local msgstr = msg:inLanguage(lang):plain()
local msgstr = msg:inLanguage(lang):plain()
return frame:preprocess(msgstr)
return frame:preprocess(msgstr)
Anonymous user

Navigation menu