/tsimapiak/parse.py |
---|
109,8 → 109,8 |
temp = splitword[wor][:-3] + u"ng" |
if temp in wordin[wor]: |
center = temp |
if splitword[wor].endswith(u"fo"): |
temp = splitword[wor][:-2] + u"f" |
if splitword[wor].endswith(u"po"): |
temp = splitword[wor][:-2] + u"p" |
if temp in wordin[wor]: |
center = temp |
if splitword[wor].endswith(u"tsa"): |
/ircbot/bot.py |
---|
58,7 → 58,7 |
if (cmd.split(" ")[0] == "tr") or (cmd.split(" ")[0] == "translate"): |
lang = "eng" |
if len(cmd.split(" ")) > 1 and cmd.split(" ")[1].startswith("-"): |
if cmd.split(" ")[1][1:] in ("hu", "de", "ptbr", "est", "sv", "nl"): |
if cmd.split(" ")[1][1:] in ("hu", "de", "ptbr", "est", "sv"): |
lang = cmd.split(" ")[1][1:] |
sent = " ".join(cmd.split(" ")[2:]) |
else: |
/webapp/templates/translate.html |
---|
35,7 → 35,6 |
<option value="est">Estonian - Eesti</option> |
<option value="ptbr">Brazilian Portuguese - Português do Brasil</option> |
<option value="sv">Swedish - Svenska</option> |
<option value="nl">Dutch - Nederlands</option> |
</select> |
<input name="btn" type="submit" value="Translate!" /> |
</form> |
90,9 → 89,6 |
if("{{ lang }}" == "sv"){ |
document.getElementById("lang").selectedIndex = 5 |
} |
if("{{ lang }}" == "nl"){ |
document.getElementById("lang").selectedIndex = 6 |
} |
</script> |
{% end %} |
{% end %} |