Parcourir la source

updated files to call the translating function

version-14
Syed Qadeer il y a 11 ans
Parent
révision
70e6585ca2
3 fichiers modifiés avec 13 ajouts et 13 suppressions
  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 Voir le fichier

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


// description // description
if(this.df.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); .appendTo(this.wrapper);
} }


+ 1
- 1
public/js/wn/form/grid.js Voir le fichier

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


+ 9
- 9
public/js/wn/ui/filters.js Voir le fichier

@@ -90,14 +90,14 @@ wn.ui.Filter = Class.extend({
<div class="fieldname_select_area col-sm-4 form-group"></div>\ <div class="fieldname_select_area col-sm-4 form-group"></div>\
<div class="col-sm-3 form-group">\ <div class="col-sm-3 form-group">\
<select class="condition form-control">\ <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>\ </select>\
</div>\ </div>\
<div class="filter_field col-sm-4 col-xs-11"></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, value: table + "." + df.fieldname,
fieldname: df.fieldname, fieldname: df.fieldname,
table: df.parent table: df.parent
}).text(label));
}).text(wn._(label)));
if(!me.fields_by_name[df.parent]) me.fields_by_name[df.parent] = {}; if(!me.fields_by_name[df.parent]) me.fields_by_name[df.parent] = {};
me.fields_by_name[df.parent][df.fieldname] = df; me.fields_by_name[df.parent][df.fieldname] = df;
} }


Chargement…
Annuler
Enregistrer