Module:Lang: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 440: | Line 440: | ||
local out = {}; |
local out = {}; |
||
local language_name; |
local language_name; |
||
local code, script, region, variant = get_ietf_parts (args.code); |
local code, script, region, variant = get_ietf_parts (args.code or args[1]); |
||
if not (code and script and region and variant) then |
if not (code and script and region and variant) then |
||
return make_error_msg (table.concat ({'{{lang}}: unknown language code: ', args.code or 'missing'}), args.nocat); |
return make_error_msg (table.concat ({'{{lang}}: unknown language code: ', args.code or args[1] or 'missing'}), args.nocat); |
||
end |
end |
||