Module:Lang: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(synch from sandbox;) |
No edit summary |
||
Line 1,048: | Line 1,048: | ||
args.text = args[2]; -- get the transliterated text |
args.text = args[2]; -- get the transliterated text |
||
else |
else |
||
if args[1]:match ('^%a%a%a?%a?$') then |
if args[1] and args[1]:match ('^%a%a%a?%a?$') then -- args[2] missing; is args[1] a code or its it the transliterated text? |
||
return make_error_msg ('no text', args, 'transl'); -- args[1] is a code so we're missing text |
return make_error_msg ('no text', args, 'transl'); -- args[1] is a code so we're missing text |
||
else |
else |
||
args.text = args[1]; -- args[1] is not a code so we're missing that; assign args.text for error message |
args.text = args[1]; -- args[1] is not a code so we're missing that; assign args.text for error message |