Fix translate setup.js
This commit is contained in:
parent
058e246be6
commit
b7a6b850cf
@ -5,12 +5,12 @@ wn.pages['Setup'].onload = function(wrapper) {
|
||||
if(msg_dialog && msg_dialog.display) msg_dialog.hide();
|
||||
wn.ui.make_app_page({
|
||||
parent: wrapper,
|
||||
title: 'Setup',
|
||||
title: wn._('Setup'),
|
||||
single_column: true
|
||||
});
|
||||
|
||||
wrapper.appframe.add_module_icon("Setup");
|
||||
wrapper.appframe.add_button("Refresh", function() {
|
||||
wrapper.appframe.add_button(wn._("Refresh"), function() {
|
||||
wn.pages.Setup.make(wrapper);
|
||||
}, "icon-refresh");
|
||||
|
||||
@ -110,7 +110,7 @@ wn.pages.Setup.make = function(wrapper) {
|
||||
})
|
||||
|
||||
} else if(item.single) {
|
||||
$('<a class="view-link"><i class="icon-edit"></i> Edit</a>')
|
||||
$('<a class="view-link"><i class="icon-edit"></i>'+wn._('Edit')+'</a>')
|
||||
.appendTo($links)
|
||||
|
||||
$links.find(".view-link")
|
||||
@ -119,11 +119,11 @@ wn.pages.Setup.make = function(wrapper) {
|
||||
wn.set_route("Form", $(this).attr("data-doctype"));
|
||||
})
|
||||
} else if(item.type !== "Link"){
|
||||
$('<a class="new-link"><i class="icon-plus"></i> New</a> \
|
||||
$('<a class="new-link"><i class="icon-plus"></i>'+wn._('New')+'</a> \
|
||||
<span class="text-muted">|</span> \
|
||||
<a class="view-link"><i class="icon-list"></i> View</a> \
|
||||
<a class="view-link"><i class="icon-list"></i>'+wn._('View')+'</a> \
|
||||
<span class="text-muted">|</span> \
|
||||
<a class="import-link"><i class="icon-upload"></i> Import</a>')
|
||||
<a class="import-link"><i class="icon-upload"></i>'+wn._('Import')+'</a>')
|
||||
.appendTo($links)
|
||||
|
||||
$links.find(".view-link")
|
||||
@ -180,11 +180,11 @@ wn.pages.Setup.make = function(wrapper) {
|
||||
if(r.message) {
|
||||
body.empty();
|
||||
if(wn.boot.expires_on) {
|
||||
$(body).prepend("<div class='text-muted' style='text-align:right'>Account expires on "
|
||||
$(body).prepend("<div class='text-muted' style='text-align:right'>"+wn.("Account expires on")
|
||||
+ wn.datetime.global_date_format(wn.boot.expires_on) + "</div>");
|
||||
}
|
||||
|
||||
$completed = $('<h4>Setup Completed <span class="completed-percent"></span><h4>\
|
||||
$completed = $('<h4>'+wn._("Setup Completed")+'<span class="completed-percent"></span><h4>\
|
||||
<div class="progress"><div class="progress-bar"></div></div>')
|
||||
.appendTo(body);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user