Module:Lang/utilities: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 18:
local category = 'Lang and lang-xx';
 
table.insert (out, table.concat ({'<span style=\"color:#d33\">Error: <span style="font-family: monospace, monospace;">{{', template, '}}</span>: '}));
table.insert (out, msg);
table.insert (out, table.concat ({' ([[Template:Lang-x2', template, '#Error messages|help]])'}));
table.insert (out, '</span>');
Line 156:
end
if tag:find ('-', 1, true) then
return error_msg_make ('invalid language tag: <codespan style="colorfont-family: inherit; background: inherit; border: none; padding:monospace, inheritmonospace;">' .. tag .. '</codespan>; IETF format not supported', template_name, nocat);
end
if not unicode.is_Latin (text1) then
return error_msg_make ('<codespan style="colorfont-family: inherit; background: inherit; border: none; padding:monospace, inheritmonospace;">&lt;text1></codespan> is not Latin script', template_name, nocat);
end
if unicode.is_Latin (text2) then
return error_msg_make ('<codespan style="colorfont-family: inherit; background: inherit; border: none; padding:monospace, inheritmonospace;">&lt;text2></codespan> is Latin script', template_name, nocat);
end