{{ range _, cat := GetCategories(false, true) }} T.Add("{{ cat.ID }}", "{{ T(cat.Name) }}") {{end}} {{ range _, language := GetTorrentLanguages() }} T.Add("{{ language.Code }}", "{{ LanguageName(language, T) }}") {{ if language.Tag != language.Code }} T.Add("{{ language.Tag }}", "{{ LanguageName(language, T) }}") {{end}} {{end}} Templates.Add("torrents.item", function(torrent) { return "