/templates/type/i18n/view.tmpl
Type: /type/template
body: value: $def with (page)

$ lang = page.key.split('.')[-1]
$ namespace = find_i18n_namespace(page.key)

<script>
function change_ns(ns) {
	document.forms['i18n']['ns'].value = ns;
	document.forms['i18n'].submit();
}

function changelang() {
    var lang = \$("#id_lang").attr('value');
	window.location.href = "/i18n$namespace/strings." + lang;
}

</script>

<div id="biblio-form-body">
<table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" width="100%">

$var title: $page.key

<div id="header">
<div style="float:left;padding-left:10px;padding-right:15px;"></div>
    <div class="button-border"><div id="title">$page.key
<button type="button" name="submit" value="$_.edit" class="action"  onclick="window.location.href = '$changequery(m='edit')';">$_.edit</button><img src="/static/images/flourish.gif"  alt="]" /></div>
</div>
</div>

<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td style="vertical-align: top; white-space: nowrap; padding-right: 30px">


$ xnamespace = namespace or "/"

$for ns in _.get_namespaces():
    $if ns == xnamespace:
        <img alt="&rarr;" src="/static/images/arrow.red.png" style="margin-left: -20px"/>
        $(ns or "root")
    $else:
        <a href="/i18n$ns/strings.$lang" >$ns</a>     
    <span id="count" style="font-size: 0.8em; ">$(_.get_count(ns, lang))/$_.get_count(ns)</span> <br/>

</td>
<td style="vertical-align: top" width="100%">
    <table id="strings_table">
    $for key in _.getkeys(namespace, lang):
        <tr>
            <td class="formheader-i18n">$key</td>
            <td width="100%" style="padding-left: 20px">$page.get('string_' + key, '')</td>
        </tr>
    </table>
<br/>
    


</td>
</tr>
</table>

</td><td style="padding-left: 40px; padding-top: 30px" valign="top">

    <img src="/static/logos/logo-${lang}.gif" border="0" width="180" height="266" />

<br/><br/>
<span class="green"><span class="formheader">
Language: $:Dropdown('lang', _.get_languages(), onchange="changelang();", id="id_lang", value=lang).render()
</span></span>
<input type="hidden" name="ns" value="$namespace">

<div class="formheader" style="margin-top: 20px; font-weight: normal">Use the pulldown menu to toggle between the default string set of English (en) and your desired language to begin working with translations.</div>

</td></tr></table>

<br /><br /><br />

</div></div>
title: type/i18n/view template