Thread:User talk:CodeCat/Script-related issue in the templates

I noticed a script-related issue in our templates, I don't know which module is responsible exactly as I've completely forgotten which module do what because I wasn't here for a while but it must be related to language utilites or script utilites or their related modules so I'm bringing it up here. The problem is script is chosen solely based on the script detection function and if it fails, the "None" class is used, instead of the first script in m.lang.scripts.

Examples:

Related data in Module:languages/data3/c, note "scripts": m["ccp"] = { names = {"Chakma"}, type = "regular", scripts = {"Cakm"}, family = "inc"}

Related data in Module:scripts/data, note the lack of "characters": m["Cakm"] = { names = { "Chakma" }, }