[FIX] Message translation issues in notification dialogs
authorAmit Dodiya <ado@openerp.com>
Thu, 5 Jul 2012 13:46:46 +0000 (19:16 +0530)
committerAmit Dodiya <ado@openerp.com>
Thu, 5 Jul 2012 13:46:46 +0000 (19:16 +0530)
bzr revid: ado@openerp.com-20120705134646-lst4ltizxjxdegf3

1  2 
addons/web/static/src/js/view_form.js

@@@ -3417,9 -3417,9 +3417,9 @@@ openerp.web.form.FieldBinary = openerp.
      on_file_uploaded: function(size, name, content_type, file_base64) {
          delete(window[this.iframe]);
          if (size === false) {
-             this.do_warn("File Upload", "There was a problem while uploading your file");
+             this.do_warn(_t("File Upload", "There was a problem while uploading your file"));
              // TODO: use openerp web crashmanager
 -            console.warn(_t("Error while uploading file : "), name);
 +            console.warn("Error while uploading file : ", name);
          } else {
              this.on_file_uploaded_and_valid.apply(this, arguments);
              this.on_ui_change();