Module:Lang: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 362:
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.no_cat);
end
if not is_set (args.text) then
return make_error_msg ('{{lang}}: no text', args.no_cat);
end
 
Line 374:
 
if args.text:match ("%f[\']\'\'[^\']+\'\'%f[^\']") or args.text:match ("\'\'\'\'\'[^\']+\'\'\'\'\'") then -- italic but not bold or bold italic
return make_error_msg ('{{lang-xx}}: text has italic markup', args.no_cat);
end
Line 428:
if not (code and script and region and variant) then
return make_error_msg (table.concat ({'{{lang-xx}}: unknown language code: ', args.code or 'missing'}), args.no_cat);
end
if not is_set (args.text) then
return make_error_msg ('{{lang-xx}}: no text', args.no_cat);
end
 
if args.text:match ("%f[\']\'\'[^\']+\'\'%f[^\']") or args.text:match ("\'\'\'\'\'[^\']+\'\'\'\'\'") then -- italic but not bold or bold italic
return make_error_msg ('{{lang-xx}}: text has italic markup', args.no_cat);
end
Line 471:
table.insert (out, translit);
else
return make_error_msg (table.concat ({'{{lang-xx}}: invalid translit std: \'', args.std or 'missing', '\' or script: \'', args.script or 'missing', '\''}), 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