Przeglądaj źródła

updated files to call the translating function

version-14
Syed Qadeer 11 lat temu
rodzic
commit
70e6585ca2
3 zmienionych plików z 13 dodań i 13 usunięć
  1. +3
    -3
      public/js/wn/form/control.js
  2. +1
    -1
      public/js/wn/form/grid.js
  3. +9
    -9
      public/js/wn/ui/filters.js

+ 3
- 3
public/js/wn/form/control.js Wyświetl plik

@@ -29,7 +29,7 @@ wn.ui.form.Control = Class.extend({
// if developer_mode=1, show fieldname as tooltip
if(wn.boot.profile && wn.boot.profile.name==="Administrator" &&
wn.boot.developer_mode===1 && this.$wrapper) {
this.$wrapper.attr("title", this.df.fieldname);
this.$wrapper.attr("title", wn._(this.df.fieldname));
}
},
make: function() {
@@ -788,7 +788,7 @@ wn.ui.form.ControlTable = wn.ui.form.Control.extend({
// add title if prev field is not column / section heading or html
if(["Column Break", "Section Break", "HTML"].indexOf(
wn.model.get("DocField", {parent: this.frm.doctype, idx: this.df.idx-1}).fieldtype)===-1) {
$("<label>" + this.df.label + "<label>").appendTo(this.wrapper);
$("<label>" + wn._(this.df.label) + "<label>").appendTo(this.wrapper);
}
this.grid = new wn.ui.form.Grid({
@@ -802,7 +802,7 @@ wn.ui.form.ControlTable = wn.ui.form.Control.extend({

// description
if(this.df.description) {
$('<p class="text-muted small">' + this.df.description + '</p>')
$('<p class="text-muted small">' + wn._(this.df.description) + '</p>')
.appendTo(this.wrapper);
}


+ 1
- 1
public/js/wn/form/grid.js Wyświetl plik

@@ -17,7 +17,7 @@ wn.ui.form.Grid = Class.extend({
<div class="rows"></div>\
<div style="margin-top: 5px; margin-bottom: -5px;">\
<a href="#" class="grid-add-row">+ '+wn._("Add new row")+'.</a>\
<span class="text-muted">Click on row to edit.</span></div>\
<span class="text-muted">' + wn._("Click on row to edit.") + '</span></div>\
</div>\
</div>\
</div>').appendTo(this.parent);


+ 9
- 9
public/js/wn/ui/filters.js Wyświetl plik

@@ -90,14 +90,14 @@ wn.ui.Filter = Class.extend({
<div class="fieldname_select_area col-sm-4 form-group"></div>\
<div class="col-sm-3 form-group">\
<select class="condition form-control">\
<option value="=">Equals</option>\
<option value="like">Like</option>\
<option value=">=">Greater or equals</option>\
<option value="<=">Less or equals</option>\
<option value=">">Greater than</option>\
<option value="<">Less than</option>\
<option value="in">In</option>\
<option value="!=">Not equals</option>\
<option value="=">' + wn._("Equals") + '</option>\
<option value="like">' + wn._("Like") + '</option>\
<option value=">=">' + wn._("Greater or equals") + '</option>\
<option value="<=">' + wn._("Less or equals") + '</option>\
<option value=">">' + wn._("Greater than") + '</option>\
<option value="<">' + wn._("Less than") + '</option>\
<option value="in">' + wn._("In") + '</option>\
<option value="!=">' + wn._("Not equals") + '</option>\
</select>\
</div>\
<div class="filter_field col-sm-4 col-xs-11"></div>\
@@ -357,7 +357,7 @@ wn.ui.FieldSelect = Class.extend({
value: table + "." + df.fieldname,
fieldname: df.fieldname,
table: df.parent
}).text(label));
}).text(wn._(label)));
if(!me.fields_by_name[df.parent]) me.fields_by_name[df.parent] = {};
me.fields_by_name[df.parent][df.fieldname] = df;
}


Ładowanie…
Anuluj
Zapisz