Content deleted Content added
+iso 639-1; |
No edit summary |
||
Line 226:
for script, code_tbl in pairs (suppress_table) do
local LIMIT = 11; -- max number of subtags on a line before a line break
table.insert (pretty_suppressed,▼
local fragment_tbl = {}; -- groups of LIMIT number of subtags collected here
table.concat ({'[\"', script, '\"] = {', table.concat (code_tbl, ', '), '}'})▼
for i=1, #code_tbl, LIMIT do
local stop = ((i+LIMIT-1) > #code_tbl) and #code_tbl or i+LIMIT-1; -- calculate a table.concat stop position
table.insert (fragment_tbl, table.concat (code_tbl, ', ', i, stop)); -- get the fragment and save it
end
▲ table.insert (pretty_suppressed, -- and make all pretty
▲ table.concat ({'[\"', script, '\"] = {', table.concat (
);
end
table.sort (pretty_suppressed);
-- make
return '<br /><pre>------------------------------< I A N A L A N G U A G E S >--------------------------------------------------<br />--' ..
file_date .. "<br />return {<br />	" .. table.concat (lang_table, ',<br />	') .. "<br />	}<br /><br />" ..
|