Module:languages: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 307: Line 307:
-- Differs from table returned by getScriptCodes, as Hants is not normalized into its constituents.
-- Differs from table returned by getScriptCodes, as Hants is not normalized into its constituents.
local codes = self._bestScriptCodes
codes = table.concat(self._rawData["scripts"],", ")
if codes == nil then
codes = codes and split(codes, ",", true, true) or {"None"}
codes = table.concat(self._rawData["scripts"],", ")
self._bestScriptCodes = codes
codes = codes and split(codes, ",", true, true) or {"None"}
self._bestScriptCodes = codes
end
local first_sc = codes[1]
local first_sc = self._rawData.scripts[1]
if first_sc == "All" then
if first_sc == "All" then

Navigation menu