45,638
edits
No edit summary |
No edit summary |
||
Line 682: | Line 682: | ||
function Language:transliterate(text, sc, module_override) | function Language:transliterate(text, sc, module_override) | ||
-- If there is no text, or the language doesn't have transliteration data and there's no override, return nil. | -- If there is no text, or the language doesn't have transliteration data and there's no override, return nil. | ||
if not (self._rawData. | if not (self._rawData.translit_module or module_override) then | ||
return nil, false, {} | return nil, false, {} | ||
elseif (not text) or text == "" or text == "-" then | elseif (not text) or text == "" or text == "-" then |