summaryrefslogtreecommitdiffstats
path: root/templates/translation/_page.html
diff options
context:
space:
mode:
authorSimon Rettberg2014-09-02 18:46:24 +0200
committerSimon Rettberg2014-09-02 18:46:24 +0200
commit32f22e10ff63a555e5b80207dc524390aa4bc6c1 (patch)
tree702a01c3ba1dc2a5ca6ebc4a7810005a8c76a16f /templates/translation/_page.html
parent[Render] Show untranslated tags in rendered output (diff)
downloadslx-admin-32f22e10ff63a555e5b80207dc524390aa4bc6c1.tar.gz
slx-admin-32f22e10ff63a555e5b80207dc524390aa4bc6c1.tar.xz
slx-admin-32f22e10ff63a555e5b80207dc524390aa4bc6c1.zip
[i18n] Language handling is now completely dynamic, no more hardcoded de,en,pt
Diffstat (limited to 'templates/translation/_page.html')
-rw-r--r--templates/translation/_page.html36
1 files changed, 6 insertions, 30 deletions
diff --git a/templates/translation/_page.html b/templates/translation/_page.html
index 8e5e4bab..dee651a7 100644
--- a/templates/translation/_page.html
+++ b/templates/translation/_page.html
@@ -5,36 +5,12 @@
</div>
<div class="panel-body">
<p>{{lang_adminInfo}}</p>
+ <ul class="nav nav-pills nav-stacked">
+ <li><a href="?do=Translation&amp;page=templates">{{lang_editTemplates}}</a></li>
+ <li><a href="?do=Translation&amp;page=messages">{{lang_editMessages}}</a></li>
+ <li><a href="?do=Translation&amp;page=hardcoded">{{lang_editHardcoded}}</a></li>
+ <li><a href="?do=Translation&amp;page=settings">{{lang_editSettings}}</a></li>
+ </ul>
</div>
- <ul class="list-group">
- <a href="?do=Translation&page=messages" class="list-group-item active">{{lang_editMessages}}</a>
- </ul>
- </div>
- <div class="panel panel-default">
- <table class="table table-hover">
- <thead>
- <tr>
- <th>Template</th>
- <th style='text-align:center;'>{{lang_german}}</th>
- <th style='text-align:center;'>{{lang_english}}</th>
- <th style='text-align:center;'>{{lang_portuguese}}</th>
- <tr>
- </thead>
- <tbody>
- {{#table}}
- <tr onclick="goTo('{{link}}');">
- <td>{{template}}</td>
- <td style='width:230px;text-align:center;'>{{{de}}}</td>
- <td style='width:230px;text-align:center;'>{{{en}}}</td>
- <td style='width:230px;text-align:center;'>{{{pt}}}</td>
- </tr>
- {{/table}}
- </tbody>
- </table>
</div>
</div>
-<script>
-function goTo(link){
- window.location.href = "?do=Translation&page=templates&template=" + link;
-}
-</script>