Module:languages: Difference between revisions

no edit summary
No edit summary
Tags: Manual revert Reverted
No edit summary
Tag: Manual revert
Line 788: Line 788:
if codes == nil then
if codes == nil then
codes = self._data[4]
codes = self._data[4]
codes = codes and split(codes, ",", true, true) or {"Ayer"}
codes = codes and split(codes, ",", true, true) or {"None"}
self._bestScriptCodes = codes
self._bestScriptCodes = codes
end
end
Line 803: Line 803:
first_sc = get_script(first_sc)
first_sc = get_script(first_sc)
local charset = first_sc.characters
local charset = first_sc.characters
return charset and umatch(text, "[" .. charset .. "]") and first_sc or get_script("None")
return charset and umatch(text, "[" .. charset .. "]") and first_sc or get_script("Ayer")
end
end