[[Module:jdt-translit]] errors

Fragment of a discussion from User talk:Rua

"lang" is nil.

CodeCat18:26, 27 May 2015

Ok. So what's the point of having the lang and sc arguments to the tr function if nothing is even passed to them?

WikiTiki8918:29, 27 May 2015
 

And what's wrong now that lang is not nil?

WikiTiki8918:32, 27 May 2015

I figured it out. Transliteration functions receive strings for lang and sc. So you need to retrieve the language and script objects first.

This really shouldn't be this way though. It was left like this because trying to change it would have broken the transliteration modules for a while until everything was updated.

CodeCat19:28, 27 May 2015

Ok thanks!

WikiTiki8919:37, 27 May 2015