[MERGE] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607082958-a59md26e0nmhzsf7
This commit is contained in:
commit
7a0308cdfe
|
@ -251,9 +251,9 @@ instance.web.CrashManager = instance.web.Class.extend({
|
|||
if (handler) {
|
||||
new (handler)(this, error).display();
|
||||
return;
|
||||
};
|
||||
}
|
||||
if (error.data.name === "openerp.addons.web.session SessionExpiredException") {
|
||||
this.show_warning({type: "Session Expired", data: { message: "Your OpenERP session expired. Please refresh the current web page." }});
|
||||
this.show_warning({type: "Session Expired", data: { message: _t("Your OpenERP session expired. Please refresh the current web page.") }});
|
||||
return;
|
||||
}
|
||||
if (error.data.exception_type === "except_osv" || error.data.exception_type === "warning"
|
||||
|
@ -530,16 +530,11 @@ instance.web.DatabaseManager = instance.web.Widget.extend({
|
|||
'login': 'admin',
|
||||
'password': form_obj['create_admin_pwd'],
|
||||
'login_successful': function() {
|
||||
var action = {
|
||||
type: "ir.actions.client",
|
||||
tag: 'reload',
|
||||
params: {
|
||||
url_search : {
|
||||
db: form_obj['db_name'],
|
||||
},
|
||||
}
|
||||
};
|
||||
self.do_action(action);
|
||||
var url = '/?db=' + form_obj['db_name'];
|
||||
if (self.session.debug) {
|
||||
url += '&debug';
|
||||
}
|
||||
instance.web.redirect(url);
|
||||
},
|
||||
},
|
||||
_push_me: false,
|
||||
|
@ -1374,7 +1369,7 @@ instance.web.WebClient = instance.web.Client.extend({
|
|||
if (browser_offset !== user_offset) {
|
||||
var $icon = $(QWeb.render('WebClient.timezone_systray'));
|
||||
$icon.on('click', function() {
|
||||
var notification = self.do_warn(_t("Timezone mismatch"), QWeb.render('WebClient.timezone_notification', {
|
||||
var notification = self.do_warn(_t("Timezone Mismatch"), QWeb.render('WebClient.timezone_notification', {
|
||||
user_timezone: instance.session.user_context.tz || 'UTC',
|
||||
user_offset: user_offset,
|
||||
browser_offset: browser_offset,
|
||||
|
|
|
@ -2343,7 +2343,7 @@ instance.web.form.FieldEmail = instance.web.form.FieldChar.extend({
|
|||
},
|
||||
on_button_clicked: function() {
|
||||
if (!this.get('value') || !this.is_syntax_valid()) {
|
||||
this.do_warn(_t("E-mail error"), _t("Can't send email to invalid e-mail address"));
|
||||
this.do_warn(_t("E-mail Error"), _t("Can't send email to invalid e-mail address"));
|
||||
} else {
|
||||
location.href = 'mailto:' + this.get('value');
|
||||
}
|
||||
|
@ -2373,7 +2373,7 @@ instance.web.form.FieldUrl = instance.web.form.FieldChar.extend({
|
|||
},
|
||||
on_button_clicked: function() {
|
||||
if (!this.get('value')) {
|
||||
this.do_warn(_t("Resource error"), _t("This resource is empty"));
|
||||
this.do_warn(_t("Resource Error"), _t("This resource is empty"));
|
||||
} else {
|
||||
var url = $.trim(this.get('value'));
|
||||
if(/^www\./i.test(url))
|
||||
|
@ -5373,7 +5373,7 @@ instance.web.form.FieldMany2ManyBinaryMultiFiles = instance.web.form.AbstractFie
|
|||
}
|
||||
|
||||
if (result.error || !result.id ) {
|
||||
this.do_warn( _t('Uploading error'), result.error);
|
||||
this.do_warn( _t('Uploading Error'), result.error);
|
||||
delete this.data[0];
|
||||
} else {
|
||||
if (this.data[0] && this.data[0].filename == result.filename && this.data[0].upload) {
|
||||
|
|
Loading…
Reference in New Issue