Module:Lang/data/iana languages/make: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 49:
code = mw.ustring.match (line, 'Subtag: ([%a%d]+)'); -- extract and save to subtag's code
elseif mw.ustring.match (line, 'Description: .+') then -- if this line is a description line
table.insertlocal (descriptions,desc '\"' ..= mw.ustring.match (line, 'Description: (.+)') .. '\"'); -- extract and save the name wrapped in quote marksdescription
elseif desc = mw.ustring.matchgsub (linedesc, 'Prefix:"', .+'\\"') then; -- ifin thiscase linedescription iscontains aquote descriptionmarks line(see 1959acad)
table.insert (prefixesdescriptions, '\"' .. mw.ustring.match (line, 'Prefix: (.+)')desc .. '\"'); -- extract and save the namedescription wrapped in quote marks
elseif mw.ustring.match (line, 'Prefix: .+') then -- if this line is a prefix line
table.insert (prefixes, '\"' .. mw.ustring.match (line, 'Prefix: (.+)') .. '\"'); -- extract and save the prefix wrapped in quote marks
elseif mw.ustring.match (line, 'Comments: .+') then -- if this line is a comments line
in_comments = true;