Added translations to the web page and item dashboard.

This commit is contained in:
mnatalia 2017-01-20 12:00:25 +02:00
parent 188f9da160
commit e09407571c
2 changed files with 4 additions and 4 deletions

View File

@ -218,7 +218,7 @@ $.extend(erpnext.item, {
return; return;
frappe.require('assets/js/item-dashboard.min.js', function() { frappe.require('assets/js/item-dashboard.min.js', function() {
var section = frm.dashboard.add_section('<h5 style="margin-top: 0px;"><a href="#stock-balance">Stock Levels</a></h5>'); var section = frm.dashboard.add_section('<h5 style="margin-top: 0px;"><a href="#stock-balance">' + __("Stock Levels") + '</a></h5>');
erpnext.item.item_dashboard = new erpnext.stock.ItemDashboard({ erpnext.item.item_dashboard = new erpnext.stock.ItemDashboard({
parent: section, parent: section,
item_code: frm.doc.name item_code: frm.doc.name

View File

@ -24,7 +24,7 @@
<div class="clearfix"> <div class="clearfix">
<h4 style="float: left;">{{ _("Tasks") }}</h4> <h4 style="float: left;">{{ _("Tasks") }}</h4>
<a class="btn btn-secondary btn-default btn-sm" style="float: right; position: relative; top: 10px;" href='/tasks?new=1&project={{ doc.project_name }}'>New task</a> <a class="btn btn-secondary btn-default btn-sm" style="float: right; position: relative; top: 10px;" href='/tasks?new=1&project={{ doc.project_name }}'>{{ _("New task") }}</a>
</div> </div>
<p> <p>
@ -39,7 +39,7 @@
<p><a id= 'more-task' style='display: none;' class='more-tasks small underline'>{{ _("More") }}</a><p> <p><a id= 'more-task' style='display: none;' class='more-tasks small underline'>{{ _("More") }}</a><p>
</div> </div>
{% else %} {% else %}
<p class="text-muted">No tasks</p> <p class="text-muted">{{ _("No tasks") }}</p>
{% endif %} {% endif %}
@ -55,7 +55,7 @@
<p><a class='more-timelogs small underline'>{{ _("More") }}</a><p> <p><a class='more-timelogs small underline'>{{ _("More") }}</a><p>
{% endif %} {% endif %}
{% else %} {% else %}
<p class="text-muted">No time sheets</p> <p class="text-muted">{{ _("No time sheets") }}</p>
{% endif %} {% endif %}
</div> </div>