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();