This commit is contained in:
parent
46bb29a3af
commit
d419c42a4f
73 changed files with 4660 additions and 639 deletions
|
@ -18,6 +18,7 @@ import MatrixClientPeg from "./MatrixClientPeg";
|
|||
import dis from "./dispatcher";
|
||||
import Tinter from "./Tinter";
|
||||
import sdk from './index';
|
||||
import _t from 'counterpart-riot';
|
||||
import Modal from './Modal';
|
||||
|
||||
|
||||
|
@ -41,7 +42,7 @@ class Command {
|
|||
}
|
||||
|
||||
getUsage() {
|
||||
return "Usage: " + this.getCommandWithArgs();
|
||||
return _t('Usage') + ': ' + this.getCommandWithArgs();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,8 +69,9 @@ const commands = {
|
|||
const ErrorDialog = sdk.getComponent('dialogs.ErrorDialog');
|
||||
// TODO Don't explain this away, actually show a search UI here.
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: "/ddg is not a command",
|
||||
description: "To use it, just wait for autocomplete results to load and tab through them.",
|
||||
title: _t('/ddg is not a command'),
|
||||
description: _t('To use it, just wait for autocomplete results to load and tab through them') + '.',
|
||||
button: _t("OK"),
|
||||
});
|
||||
return success();
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue