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:
@@ -85,7 +85,6 @@ export default WithMatrixClient(React.createClass({
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Error"),
|
||||
description: msg,
|
||||
button: _t("OK"),
|
||||
});
|
||||
}).finally(() => {
|
||||
if (this._unmounted) return;
|
||||
|
||||
@@ -70,7 +70,7 @@ module.exports = React.createClass({
|
||||
|
||||
var QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
||||
Modal.createDialog(QuestionDialog, {
|
||||
title: _t("Warning"),
|
||||
title: _t("Warning!"),
|
||||
description:
|
||||
<div>
|
||||
{ _t(
|
||||
|
||||
Reference in New Issue
Block a user