Merge pull request #248 from MaxMorais/patch-3

Fix Translation in Field Description
This commit is contained in:
Rushabh Mehta 2013-08-29 18:56:23 -07:00
commit ff31652c4d

View file

@ -225,7 +225,7 @@ wn.ui.form.ControlInput = wn.ui.form.Control.extend({
if(this.only_input || this.df.description===this._description)
return;
if(this.df.description) {
this.$wrapper.find(".help-box").html(this.df.description);
this.$wrapper.find(".help-box").html(wn._(this.df.description));
} else {
this.set_empty_description();
}
@ -807,4 +807,4 @@ wn.ui.form.fieldtype_icons = {
"Datetime": "icon-time",
"Code": "icon-code",
"Select": "icon-flag"
};
};