[fix] re-make setup wizard slides on change of language

This commit is contained in:
Anand Doshi 2015-11-16 12:58:14 +05:30
parent 834b3e6f83
commit 1ed82834ce
2 changed files with 354 additions and 351 deletions

View File

@ -5,8 +5,9 @@ frappe.pages['setup-wizard'].on_page_load = function(wrapper) {
frappe.set_route("desk"); frappe.set_route("desk");
return; return;
} }
} };
function load_erpnext_slides() {
$.extend(erpnext.wiz, { $.extend(erpnext.wiz, {
region: { region: {
title: __("Region"), title: __("Region"),
@ -400,9 +401,11 @@ erpnext.wiz.fiscal_years = {
"South Africa": ["03-01", "02-28"], "South Africa": ["03-01", "02-28"],
"Thailand": ["10-01", "09-30"], "Thailand": ["10-01", "09-30"],
"United Kingdom": ["04-01", "03-31"], "United Kingdom": ["04-01", "03-31"],
} };
};
frappe.wiz.on("before_load", function() { frappe.wiz.on("before_load", function() {
load_erpnext_slides();
frappe.wiz.add_slide(erpnext.wiz.user); frappe.wiz.add_slide(erpnext.wiz.user);
frappe.wiz.add_slide(erpnext.wiz.org); frappe.wiz.add_slide(erpnext.wiz.org);
frappe.wiz.add_slide(erpnext.wiz.branding); frappe.wiz.add_slide(erpnext.wiz.branding);

View File

@ -18,7 +18,7 @@
<br> <br>
<hr> <hr>
<h3>Next Steps</h3> <h3>{%= __("Next Steps") %}</h3>
<ul class="list-unstyled"> <ul class="list-unstyled">
<li><a class="text-muted" href="#">{%= __("Go to the Desktop and start using ERPNext") %}</a></li> <li><a class="text-muted" href="#">{%= __("Go to the Desktop and start using ERPNext") %}</a></li>
<li><a class="text-muted" href="#Module/Learn">{%= __("View a list of all the help videos") %}</a></li> <li><a class="text-muted" href="#Module/Learn">{%= __("View a list of all the help videos") %}</a></li>