Module:Lang: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(synch from sandbox;)
(enable suppressed script error;)
Line 234: Line 234:
end
end
end
end
-- if lang_name_table.suppressed[script] then -- ensure that code-script does not use a suppressed script
if lang_name_table.suppressed[script] then -- ensure that code-script does not use a suppressed script
-- if in_array (code, lang_name_table.suppressed[script]) then
if in_array (code, lang_name_table.suppressed[script]) then
-- return code, nil, nil, nil, table.concat ({'script: ', script, ' not supported for code: ', code}); -- language code ok, script is suppressed for this code
return code, nil, nil, nil, nil, table.concat ({'script: ', script, ' not supported for code: ', code}); -- language code ok, script is suppressed for this code
-- end
end
-- end
end


if is_set (region) then
if is_set (region) then
if is_set (args_region) then
if is_set (args_region) then
return code, nil, nil, nil, nil, 'redundant region tag'; -- both code with region and |region= not allowed
return code, nil, nil, nil, nil, 'redundant region tag'; -- both code with region and |region= not allowed
end
end
else
else