mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
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 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>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1840,5 +1840,6 @@
|
|||
"Objects": "Objects",
|
||||
"Symbols": "Symbols",
|
||||
"Flags": "Flags",
|
||||
"React": "React"
|
||||
"React": "React",
|
||||
"Cancel search": "Cancel search"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue