Difference between revisions of "Module:Template translation"
Jump to navigation
Jump to search
m
support the uselang parameter
en>Verdy p m |
en>Verdy p 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 |