Put back default strings on dialogs
But make them work by calling _t in render rather than getDefaultProps(). Also sort out some 'Warning!' strings
This commit is contained in:
parent
9112fc231a
commit
443ab1add7
30 changed files with 31 additions and 78 deletions
|
@ -249,7 +249,6 @@ module.exports = React.createClass({
|
|||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Can't load user settings"),
|
||||
description: ((error && error.message) ? error.message : _t("Server may be unavailable or overloaded")),
|
||||
button: _t("OK"),
|
||||
});
|
||||
});
|
||||
},
|
||||
|
@ -292,7 +291,6 @@ module.exports = React.createClass({
|
|||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Failed to set avatar"),
|
||||
description: ((err && err.message) ? err.message : _t("Operation failed")),
|
||||
button: _t("OK")
|
||||
});
|
||||
});
|
||||
},
|
||||
|
@ -335,7 +333,6 @@ module.exports = React.createClass({
|
|||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Error"),
|
||||
description: errMsg,
|
||||
button: _t("OK"),
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -344,7 +341,6 @@ module.exports = React.createClass({
|
|||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Success"),
|
||||
description: _t("Your password was successfully changed. You will not receive push notifications on other devices until you log back in to them") + ".",
|
||||
button: _t("OK"),
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -372,7 +368,6 @@ module.exports = React.createClass({
|
|||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Invalid Email Address"),
|
||||
description: _t("This doesn't appear to be a valid email address"),
|
||||
button: _t("OK"),
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
@ -392,7 +387,6 @@ module.exports = React.createClass({
|
|||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Unable to add email address"),
|
||||
description: ((err && err.message) ? err.message : _t("Operation failed")),
|
||||
button: _t("OK"),
|
||||
});
|
||||
});
|
||||
ReactDOM.findDOMNode(this.refs.add_email_input).blur();
|
||||
|
@ -418,7 +412,6 @@ module.exports = React.createClass({
|
|||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Unable to remove contact information"),
|
||||
description: ((err && err.message) ? err.message : _t("Operation failed")),
|
||||
button: _t("OK"),
|
||||
});
|
||||
}).done();
|
||||
}
|
||||
|
@ -460,7 +453,6 @@ module.exports = React.createClass({
|
|||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Unable to verify email address"),
|
||||
description: ((err && err.message) ? err.message : _t("Operation failed")),
|
||||
button: _t("OK"),
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue