Fix translate stock_reconciliation.js

This commit is contained in:
Bárbara Perretti 2013-10-03 15:15:01 -03:00
parent 995994f7c4
commit 8252f2a34f

View File

@ -48,13 +48,13 @@ erpnext.stock.StockReconciliation = erpnext.stock.StockController.extend({
this.show_download_template(); this.show_download_template();
this.show_upload(); this.show_upload();
if(this.frm.doc.reconciliation_json) { if(this.frm.doc.reconciliation_json) {
this.frm.set_intro("You can submit this Stock Reconciliation."); this.frm.set_intro(wn._("You can submit this Stock Reconciliation."));
} else { } else {
this.frm.set_intro("Download the Template, fill appropriate data and \ this.frm.set_intro(wn._("Download the Template, fill appropriate data and \
attach the modified file."); attach the modified file."));
} }
} else if(this.frm.doc.docstatus == 1) { } else if(this.frm.doc.docstatus == 1) {
this.frm.set_intro("Cancelling this Stock Reconciliation will nullify its effect."); this.frm.set_intro(wn._("Cancelling this Stock Reconciliation will nullify its effect."));
this.show_stock_ledger(); this.show_stock_ledger();
this.show_general_ledger(); this.show_general_ledger();
} else { } else {
@ -66,20 +66,20 @@ erpnext.stock.StockReconciliation = erpnext.stock.StockController.extend({
show_download_template: function() { show_download_template: function() {
var me = this; var me = this;
this.frm.add_custom_button("Download Template", function() { this.frm.add_custom_button(wn._("Download Template"), function() {
this.title = "Stock Reconcilation Template"; this.title = wn._("Stock Reconcilation Template");
wn.tools.downloadify([["Stock Reconciliation"], wn.tools.downloadify([[wn._("Stock Reconciliation")],
["----"], ["----"],
["Stock Reconciliation can be used to update the stock on a particular date," [wn._("Stock Reconciliation can be used to update the stock on a particular date, ")
+ " usually as per physical inventory."], + wn._("usually as per physical inventory.")],
["When submitted, the system creates difference entries" [wn._("When submitted, the system creates difference entries ")
+ " to set the given stock and valuation on this date."], + wn._("to set the given stock and valuation on this date.")],
["It can also be used to create opening stock entries and to fix stock value."], [wn._("It can also be used to create opening stock entries and to fix stock value.")],
["----"], ["----"],
["Notes:"], [wn._("Notes:")],
["Item Code and Warehouse should already exist."], [wn._("Item Code and Warehouse should already exist.")],
["You can update either Quantity or Valuation Rate or both."], [wn._("You can update either Quantity or Valuation Rate or both.")],
["If no change in either Quantity or Valuation Rate, leave the cell blank."], [wn._("If no change in either Quantity or Valuation Rate, leave the cell blank.")],
["----"], ["----"],
["Item Code", "Warehouse", "Quantity", "Valuation Rate"]], null, this); ["Item Code", "Warehouse", "Quantity", "Valuation Rate"]], null, this);
return false; return false;
@ -113,8 +113,8 @@ erpnext.stock.StockReconciliation = erpnext.stock.StockController.extend({
show_download_reconciliation_data: function() { show_download_reconciliation_data: function() {
var me = this; var me = this;
if(this.frm.doc.reconciliation_json) { if(this.frm.doc.reconciliation_json) {
this.frm.add_custom_button("Download Reconcilation Data", function() { this.frm.add_custom_button(wn._("Download Reconcilation Data"), function() {
this.title = "Stock Reconcilation Data"; this.title = wn._("Stock Reconcilation Data");
wn.tools.downloadify(JSON.parse(me.frm.doc.reconciliation_json), null, this); wn.tools.downloadify(JSON.parse(me.frm.doc.reconciliation_json), null, this);
return false; return false;
}, "icon-download"); }, "icon-download");