Commit 157108df by Őry Máté

one: add i18n to templates

parent 47c0dcd0
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
<div class="boxes"> <div class="boxes">
<div class="contentblock"> <div class="contentblock">
<h2> <h2>
...@@ -21,7 +23,7 @@ ...@@ -21,7 +23,7 @@
</li> </li>
<li class="wm small real" data-bind="visible: files().length == 0"> <li class="wm small real" data-bind="visible: files().length == 0">
<div class="summary"> <div class="summary">
<div class="name">Nincs megjeleníthető fájl.</div> <div class="name">{% trans "No files." %}</div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
</li> </li>
...@@ -32,13 +34,13 @@ ...@@ -32,13 +34,13 @@
<div class="info" data-bind="text: size"></div> <div class="info" data-bind="text: size"></div>
<div class="actions"> <div class="actions">
<a href="#" data-bind="click: $parent.rename, clickBubble: false"> <a href="#" data-bind="click: $parent.rename, clickBubble: false">
<img src="/static/icons/pencil.png" alt="rename" /> <img src="/static/icons/pencil.png" alt="{% trans "rename" %}" />
</a> </a>
<a href="#" data-bind="click: $parent.delete, clickBubble: false"> <a href="#" data-bind="click: $parent.delete, clickBubble: false">
<img src="/static/icons/minus-circle.png" alt="delete" /> <img src="/static/icons/minus-circle.png" alt="{% trans "remove" %}" />
</a> </a>
<a href="#" data-bind="click: $parent.download, clickBubble: false"> <a href="#" data-bind="click: $parent.download, clickBubble: false">
<img src="/static/icons/download-cloud.png" alt="download" /> <img src="/static/icons/download-cloud.png" alt="{% trans "download" %}" />
</a> </a>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
...@@ -46,8 +48,8 @@ ...@@ -46,8 +48,8 @@
<div class="details"> <div class="details">
<div class="details-container"> <div class="details-container">
<ul> <ul>
<li>Módosítva: <span class="value" data-bind="text: mTime"></span></li> <li>{% trans "Last modification" %}: <span class="value" data-bind="text: mTime"></span></li>
<li>Típus: <span class="value" data-bind="text: type"></span></li> <li>{% trans "Type" %}: <span class="value" data-bind="text: type"></span></li>
</ul> </ul>
</div> </div>
</div> </div>
...@@ -56,16 +58,16 @@ ...@@ -56,16 +58,16 @@
<li class="file-details wm" id="load-more-files" data-bind="visible: (files().length>0 && files().length != allFiles.length)"> <li class="file-details wm" id="load-more-files" data-bind="visible: (files().length>0 && files().length != allFiles.length)">
<div class="summary" data-bind="click: showMore"> <div class="summary" data-bind="click: showMore">
<div class="name filetype-more"> <div class="name filetype-more">
Mutass több fájlt! {% trans "Show more files…" %}
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
</li> </li>
<li class="wm"> <li class="wm">
<div class="summary"> <div class="summary">
<div class="name filetype-new-folder">Új mappa</div> <div class="name filetype-new-folder">{% trans "Create folder" %}</div>
<div id="new-folder-form"> <div id="new-folder-form">
<input type="text" placeholder="Új mappa neve" data-bind="value: newFolderName, click: function(m,e){console.log(arguments); e.preventDefault(); e.stopPropagation(); return false;}" /> <input type="text" placeholder="{% trans "Name of new folder" %}" data-bind="value: newFolderName, click: function(m,e){console.log(arguments); e.preventDefault(); e.stopPropagation(); return false;}" />
<input type="submit" data-bind="click: newFolder, clickBubble: false" value="Létrehozás" /> <input type="submit" data-bind="click: newFolder, clickBubble: false" value="Létrehozás" />
</div> </div>
<div class="clear"></div> <div class="clear"></div>
...@@ -76,13 +78,14 @@ ...@@ -76,13 +78,14 @@
<div class="quota"> <div class="quota">
<div id="upload-progress" class="used" style="background-color: rgba(0,255,0,0.2);" data-bind="style: {width: uploadProgress}"></div> <div id="upload-progress" class="used" style="background-color: rgba(0,255,0,0.2);" data-bind="style: {width: uploadProgress}"></div>
</div> </div>
<div class="name filetype-up">Fájlfeltöltés</div> <div class="name filetype-up">{% trans "File upload" %}</div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="details"> <div class="details">
<div class="container"> <div class="container">
<div id="upload-zone" class="upload-zone"> <div id="upload-zone" class="upload-zone">
A feltöltéshez húzza ide a fájlt. <a href="#" id="old-upload">Hagyományos fájltfeltöltési felület</a> <p>{% trans "Drag and drop files here to start uploading." %}</p>
<p>{% trans 'You can also use the <a href="#" id="old-upload">the traditional upload form</a>.' %}</p>
<img class="preview" /> <img class="preview" />
</div> </div>
<div style="display: none" id="upload-progress-text" class="upload-zone"></div> <div style="display: none" id="upload-progress-text" class="upload-zone"></div>
...@@ -102,9 +105,8 @@ ...@@ -102,9 +105,8 @@
<div class="softLimit" data-bind="style: {left: quota.softPos}"></div> <div class="softLimit" data-bind="style: {left: quota.softPos}"></div>
</div> </div>
<div class="name"> <div class="name">
Kvóta: <span data-bind="text: quota.used"></span>/ {% trans "File quota" %}: <abbr data-bind="text: quota.used" title="{% trans "Used space" %}"></span>/<abbr data-bind="text: quota.soft" title="{% trans "soft limit" %}"></abbr>
<abbr data-bind="text: quota.soft" title="Soft limit"></abbr> (<abbr title="{% trans "hard limit" %}" data-bind="text: quota.hard"></abbr>)
(<abbr title="Hard limit" data-bind="text: quota.hard"></abbr>)
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
......
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %} {% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block content %} {% block content %}
<div class="boxes"> <div class="boxes">
...@@ -9,14 +11,14 @@ ...@@ -9,14 +11,14 @@
{% include "box-vmlist.html" %} {% include "box-vmlist.html" %}
<li id="new-wm-button" class="wm new"> <li id="new-wm-button" class="wm new">
<div class="summary"> <div class="summary">
<div class="name">Új gép indítása</div> <div class="name">{% trans "Start new machine" %}</div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
</li> </li>
<li id="new-wm" style="display: none"> <li id="new-wm" style="display: none">
<h2>Rendelkezésre álló sablonok</h2> <h2>{% trans "Available templates" %}</h2>
<p> <p>
Mese, hogy mit is lehet csinálni. {% trans "Choose one of the following templates to launch." %}
</p> </p>
<div class="container"> <div class="container">
<ul class="wm-list modal"> <ul class="wm-list modal">
...@@ -32,14 +34,15 @@ ...@@ -32,14 +34,15 @@
</div> </div>
<div class="details"> <div class="details">
<h3> <h3>
Részletek {% trans "Details" %}
</h3> </h3>
<ul> <ul>
<li class="name">Rendszer: <span class="value">{{m.disk.name}}</span></li> <li class="name">{% trans "System" %}: <span class="value">{{m.disk.name}}</span></li>
<li class="type">Instance típus: <span class="value">{{m.instance_type.name}}</span></li> <li class="type">{% trans "Size" %}: <span class="value">{{m.instance_type.name}}</span></li>
<li class="memory">Memória: <span class="value">{{m.instance_type.RAM}} MiB</span></li> <li class="memory">{% trans "Memory" %}:
<li class="cpu">CPU magok: <span class="value">{{m.instance_type.CPU}}</span></li> <span class="value">{% blocktrans with m=m.instance_type.RAM %}{{m}} MiB{% endblocktrans %}</span></li>
<li>&nbsp;<span class="value"><input type="submit" value="Indítás"/></span></li> <li class="cpu">{% trans "CPU cores" %}: <span class="value">{{m.instance_type.CPU}}</span></li>
<li>&nbsp;<span class="value"><input type="submit" value="{% trans "Launch" %}"/></span></li>
</ul> </ul>
</div> </div>
</form> </form>
...@@ -53,14 +56,14 @@ ...@@ -53,14 +56,14 @@
<div class="quota"> <div class="quota">
<div class="used" style="background-color: rgba(0,255,0,0.2); width: 0%"></div> <div class="used" style="background-color: rgba(0,255,0,0.2); width: 0%"></div>
</div> </div>
<div class="name">Saját Kvóta: 0/10</div> <div class="name">{% blocktrans with used=3 all=10 %}Personal quota: {{used}}/{{all}}{% endblocktrans %}</div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
<div class="contentblock" id="template"> <div class="contentblock" id="template">
<h2>Saját sablonok</h2> <h2>{% trans "My templates" %}</h2>
<ul class="wm-list"> <ul class="wm-list">
<li class="wm"> <li class="wm">
<div class="summary"> <div class="summary">
...@@ -70,19 +73,19 @@ ...@@ -70,19 +73,19 @@
<div class="name">Win7 Matlab</div> <div class="name">Win7 Matlab</div>
<div class="status">2/10</div> <div class="status">2/10</div>
<div class="actions"> <div class="actions">
<a href="#" title="Átnevezés"><img src="/static/icons/pencil.png" alt="rename" /></a> <a href="#" title="{% trans "Rename" %}"><img src="/static/icons/pencil.png" alt="{% trans "Rename" %}" /></a>
<a href="#" title="Törlés"><img src="/static/icons/minus-circle.png" alt="delete" /></a> <a href="#" title="{% trans "Remove" %}"><img src="/static/icons/minus-circle.png" alt="{% trans "Remove" %}" /></a>
<a href="#" title="Megosztás"><img src="static/icons/user-share.png" alt="share" /></a> <a href="#" title="{% trans "Share" %}"><img src="static/icons/user-share.png" alt="{% trans "Share" %}" /></a>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="details"> <div class="details">
<ul> <ul>
<li class="name">Rendszer: <span class="value">Windows 7 Desktop</span></li> <li class="name">{% trans "System" %}: <span class="value">Windows 7 Desktop</span></li>
<li class="description">Leírás: <span class="value">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin nibh arcu, cursus et sodales eu, iaculis id metus. Suspendisse et mauris nisi, luctus feugiat nisi. Nullam elementum tincidunt urna a luctus.</span><div class="clear"></div></li> <li class="description">{% trans "Description" %}: <span class="value">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin nibh arcu, cursus et sodales eu, iaculis id metus. Suspendisse et mauris nisi, luctus feugiat nisi. Nullam elementum tincidunt urna a luctus.</span><div class="clear"></div></li>
<li class="date">Létrehozva: <span class="value">2013.01.10. 13:40:22</span></li> <li class="date">{% trans "Created at" %}: <span class="value">2013.01.10. 13:40:22</span></li>
<li class="date">Módosítva: <span class="value">2013.01.10. 13:40:22</span></li> <li class="date">{% trans "Modifiad at" %}: <span class="value">2013.01.10. 13:40:22</span></li>
<li class="count">Futó példányok: <span class="value">1 db</span></li> <li class="count">{% trans "Running instances" %}: <span class="value">1</span></li>
</ul> </ul>
</div> </div>
</li> </li>
...@@ -137,7 +140,7 @@ ...@@ -137,7 +140,7 @@
<li class="wm"> <li class="wm">
<div class="summary unfinished"> <div class="summary unfinished">
<div class="name">Win7 Matlab</div> <div class="name">Win7 Matlab</div>
<div class="status">FÉLKÉSZ</div> <div class="status">{% trans "unfinished" %}</div>
<div class="actions"> <div class="actions">
<a href="#" title="Átnevezés"><img src="/static/icons/pencil.png" alt="rename" /></a> <a href="#" title="Átnevezés"><img src="/static/icons/pencil.png" alt="rename" /></a>
<a href="#" title="Törlés"><img src="/static/icons/minus-circle.png" alt="delete" /></a> <a href="#" title="Törlés"><img src="/static/icons/minus-circle.png" alt="delete" /></a>
...@@ -165,7 +168,7 @@ ...@@ -165,7 +168,7 @@
<div class="quota"> <div class="quota">
<div class="used" style="background-color: rgba(0,255,0,0.2); width: 19%"></div> <div class="used" style="background-color: rgba(0,255,0,0.2); width: 19%"></div>
</div> </div>
<div class="name">Elosztható Kvóta: 19/100</div> <div class="name">{% blocktrans with used=19 all=100 %}Share quota: {{used}}/{{all}}{% endblocktrans %}</div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
</li> </li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment