Translate search button titles

Signed-off-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
Tulir Asokan 2019-10-20 12:40:55 +03:00
parent 438ad54701
commit b2deb548d3
2 changed files with 4 additions and 2 deletions

View file

@ -16,6 +16,7 @@ limitations under the License.
import React from 'react';
import PropTypes from 'prop-types';
import { _t } from '../../../languageHandler';
class Search extends React.PureComponent {
static propTypes = {
@ -40,7 +41,7 @@ class Search extends React.PureComponent {
onChange={ev => this.props.onChange(ev.target.value)} ref={this.inputRef} />
<button onClick={() => this.props.onChange("")}
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>
);
}

View file

@ -1840,5 +1840,6 @@
"Objects": "Objects",
"Symbols": "Symbols",
"Flags": "Flags",
"React": "React"
"React": "React",
"Cancel search": "Cancel search"
}