{% block body %} <!-- # This file is part of Tsim Apiak. # # Tsim Apiak is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licence as published by # the Free Software Foundation, either version 3 of the Licence, or # (at your option) any later version. # # In addition to this, you must also comply with clause 4 of the # Apache Licence, version 2.0, concerning attribution. Where there # is a contradiction between the two licences, the GPL # takes preference. # # Foobar is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Tsim Apiak. If not, see <http://www.gnu.org/licenses/>. -->
<b>Na'vi sentence:</b><br/> <formaction="/translate"method="post"> <inputid="word"name="word"type="text"value="{{last}}"style="width: 100%;"/> <selectname="lang"id="lang"> <optionvalue="eng"selected="selected">English</option> <optionvalue="hu">Hungarian - Magyar</option> <optionvalue="de">German - Deutsch</option> <optionvalue="est">Estonian - Eesti</option> <optionvalue="ptbr">Brazilian Portuguese - Português do Brasil</option> </select> <inputname="btn"type="submit"value="Translate!"/> </form>
{% if out %} <tableborder="1"> <tr> <th>Words</th> <th>Translated</th> <th>Parts</th> <th>Data</th> </tr>
{% for wor in out %} <tr> <tdrowspan="4">{{ wor["word"]["navi"] }}</td> <tdrowspan="4">{{ wor["translated"] }}</td> <td>Infixes:</td> <td>{{ u", ".join(wor["inf"]) }}</td> </tr> <tr> <td>Prefixes:</td> <td>{{ u"; ".join(u", ".join(x) for x in wor["pref"]) }}</td> </tr> <tr> <td>Postfixes:</td> <td>{{ u"; ".join(u", ".join(x) for x in wor["post"]) }}</td> </tr> <tr> <td>Lenited:</td> <td>{{ str(wor["len"]) }}</td> </tr>
{% end %} </table>
{% end %} <p>This program uses Eana Eltu for the list of words and infix positions (but nothing else), created by Tuiq and Taronyu. Thanks also go to the rest of the Learn Na'vi community!</p> <scripttype="text/javascript">
document.getElementById("word").focus(); </script>
{% if lang != "eng" %} <scripttype="text/javascript">
if("{{ lang }}" == "hu"){
document.getElementById("lang").selectedIndex = 1
}
if("{{ lang }}" == "de"){
document.getElementById("lang").selectedIndex = 2
}
if("{{ lang }}" == "est"){
document.getElementById("lang").selectedIndex = 3
}
if("{{ lang }}" == "ptbr"){
document.getElementById("lang").selectedIndex = 4
} </script>
{% end %}
{% end %}