Module:Lang: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 561:
if not subtags[name] then
return msg; -- some sort of error detected, return the error message
end
end
 
if is_set (subtags.variant) then -- special case test for |variant=
if not in_array (code, lang_name_table.variant[subtags.variant]['prefixes']) then
return make_error_msg (table.concat ({'{{lang-xx}}: invalid code-variant combination: ', code, '-', subtags.variant}), args.nocat);
end
end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu