summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimon Rettberg2014-08-25 13:32:20 +0200
committerSimon Rettberg2014-08-25 13:32:20 +0200
commitd63b74b95b913df7204695add1091baf55523b24 (patch)
tree90c78eb04981cedc30e2df68c0cb68704a9f8663 /templates
parent[i18n] Moved all texts from cat_setting and setting to json files (diff)
downloadslx-admin-d63b74b95b913df7204695add1091baf55523b24.tar.gz
slx-admin-d63b74b95b913df7204695add1091baf55523b24.tar.xz
slx-admin-d63b74b95b913df7204695add1091baf55523b24.zip
[i18n] Template translation is now dynamic wrt number of languages
Diffstat (limited to 'templates')
-rw-r--r--templates/translation/template.html24
1 files changed, 10 insertions, 14 deletions
diff --git a/templates/translation/template.html b/templates/translation/template.html
index 11d4e4e7..87c0f01b 100644
--- a/templates/translation/template.html
+++ b/templates/translation/template.html
@@ -13,26 +13,22 @@
<thead>
<tr>
<th>Mustache Tag</th>
- <th style='width:250px;text-align:center;'>{{lang_germanJSON}}</th>
- <th style='width:250px;text-align:center;'>{{lang_englishJSON}}</th>
- <th style='width:250px;text-align:center;'>{{lang_portugueseJSON}}</th>
- <th style='width:100px;text-align:center;'></th>
+ {{#langs}}
+ <th>{{lang}}</th>
+ {{/langs}}
+ <th></th>
</tr>
</thead>
<tbody>
{{#tags}}
<tr class="{{class}}" id="{{tag}}">
<td>{{tag}}</td>
- <td style='text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_germanTAG}}" value="{{de}}" name="lang#de#{{tag}}">
+ {{#langs}}
+ <td style="text-align:center">
+ <input type="text" class="form-control" placeholder="{{placeholder}}" value="{{translation}}" name="lang#{{lang}}#{{tag}}">
</td>
- <td style='text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_englishTAG}}" value="{{en}}" name="lang#en#{{tag}}">
- </td>
- <td style='text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_portugueseTAG}}" value="{{pt}}" name="lang#pt#{{tag}}">
- </td>
- <td style='text-align:center;'>
+ {{/langs}}
+ <td style="text-align:center">
<a class="btn btn-danger btn-xs" href="?do=Translation&template={{template}}&delete={{tag}}"><span class="glyphicon glyphicon-remove"></span> {{lang_deleteTAG}}</a>
</td>
</tr>
@@ -42,7 +38,7 @@
</tbody>
</table>
<a class="btn btn-primary" href='?do=Translation' >{{lang_back}}</a>
- <button class="btn btn-primary" type="button" onclick="addTag(true);" >{{lang_createTag}}</button>
+ <button class="btn btn-primary" type="button" onclick="addTag()" >{{lang_createTag}}</button>
<input type="hidden" name="update" value="true">
<input type="hidden" name="path" value="{{template}}">
<input type="hidden" name="token" value="{{token}}">