Translate search button titles
Signed-off-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
parent
438ad54701
commit
b2deb548d3
2 changed files with 4 additions and 2 deletions
|
@ -16,6 +16,7 @@ limitations under the License.
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import { _t } from '../../../languageHandler';
|
||||||
|
|
||||||
class Search extends React.PureComponent {
|
class Search extends React.PureComponent {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
|
@ -40,7 +41,7 @@ class Search extends React.PureComponent {
|
||||||
onChange={ev => this.props.onChange(ev.target.value)} ref={this.inputRef} />
|
onChange={ev => this.props.onChange(ev.target.value)} ref={this.inputRef} />
|
||||||
<button onClick={() => this.props.onChange("")}
|
<button onClick={() => this.props.onChange("")}
|
||||||
className={`mx_EmojiPicker_search_icon ${this.props.query ? "mx_EmojiPicker_search_clear" : ""}`}
|
className={`mx_EmojiPicker_search_icon ${this.props.query ? "mx_EmojiPicker_search_clear" : ""}`}
|
||||||
title={this.props.query ? "Cancel search" : "Search"} />
|
title={this.props.query ? _t("Cancel search") : _t("Search")} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1840,5 +1840,6 @@
|
||||||
"Objects": "Objects",
|
"Objects": "Objects",
|
||||||
"Symbols": "Symbols",
|
"Symbols": "Symbols",
|
||||||
"Flags": "Flags",
|
"Flags": "Flags",
|
||||||
"React": "React"
|
"React": "React",
|
||||||
|
"Cancel search": "Cancel search"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue