Module:Template translation: Difference between revisions

Content added Content deleted
mNo edit summary
m (support the uselang parameter)
Line 96: Line 96:
-- Get the last subpage and check if it matches a known language code.
-- Get the last subpage and check if it matches a known language code.
local subpage = this.getLanguageSubpage()
local subpage = args['uselang'] or ''
if (subpage == '') then
subpage = this.getLanguageSubpage()
end
if (subpage == '')
if (subpage == '')
then
then