Skip to content

Commit a7659a5

Browse files
committed
Add remaining translations
1 parent a3ebeb5 commit a7659a5

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

‎src/components/views/rooms/SearchBar.js‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg');
2121
var sdk = require('matrix-react-sdk');
2222
var classNames = require('classnames');
2323
var AccessibleButton = require('matrix-react-sdk/lib/components/views/elements/AccessibleButton');
24+
import { _t } from "matrix-react-sdk/lib/languageHandler";
2425

2526
module.exports = React.createClass({
2627
displayName: 'SearchBar',
@@ -59,10 +60,10 @@ module.exports = React.createClass({
5960

6061
return (
6162
<div className="mx_SearchBar">
62-
<input ref="search_term" className="mx_SearchBar_input" type="text" autoFocus={true} placeholder="Search..." onKeyDown={this.onSearchChange}/>
63-
<AccessibleButton className={ searchButtonClasses } onClick={this.onSearch}><img src="img/search-button.svg" width="37" height="37" alt="Search"/></AccessibleButton>
64-
<AccessibleButton className={ thisRoomClasses } onClick={this.onThisRoomClick}>This Room</AccessibleButton>
65-
<AccessibleButton className={ allRoomsClasses } onClick={this.onAllRoomsClick}>All Rooms</AccessibleButton>
63+
<input ref="search_term" className="mx_SearchBar_input" type="text" autoFocus={true} placeholder={_t("Search…")} onKeyDown={this.onSearchChange}/>
64+
<AccessibleButton className={ searchButtonClasses } onClick={this.onSearch}><img src="img/search-button.svg" width="37" height="37" alt={_t("Search")}/></AccessibleButton>
65+
<AccessibleButton className={ thisRoomClasses } onClick={this.onThisRoomClick}>{_t("This Room")}</AccessibleButton>
66+
<AccessibleButton className={ allRoomsClasses } onClick={this.onAllRoomsClick}>{_t("All Rooms")}</AccessibleButton>
6667
<AccessibleButton className="mx_SearchBar_cancel" onClick={this.props.onCancelClick}><img src="img/cancel.svg" width="18" height="18" /></AccessibleButton>
6768
</div>
6869
);

‎src/i18n/strings/en_EN.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"Advanced notification settings": "Advanced notification settings",
66
"All messages": "All messages",
77
"All messages (loud)": "All messages (loud)",
8+
"All Rooms": "All Rooms",
89
"All notifications are currently disabled for all targets.": "All notifications are currently disabled for all targets.",
910
"An error occurred whilst saving your email notification preferences.": "An error occurred whilst saving your email notification preferences.",
1011
"Call invitation": "Call invitation",
@@ -103,6 +104,8 @@
103104
"Riot uses many advanced browser features, some of which are not available or experimental in your current browser.": "Riot uses many advanced browser features, some of which are not available or experimental in your current browser.",
104105
"Room directory": "Room directory",
105106
"Room not found": "Room not found",
107+
"Search": "Search",
108+
"Search…": "Search…",
106109
"Search for a room": "Search for a room",
107110
"Send": "Send",
108111
"Send logs": "Send logs",
@@ -113,6 +116,7 @@
113116
"The Home Server may be too old to support third party networks": "The Home Server may be too old to support third party networks",
114117
"There are advanced notifications which are not shown here": "There are advanced notifications which are not shown here",
115118
"The server may be unavailable or overloaded": "The server may be unavailable or overloaded",
119+
"This Room": "This Room",
116120
"This room is inaccessible to guests. You may be able to join if you register": "This room is inaccessible to guests. You may be able to join if you register",
117121
" to room": " to room",
118122
"Unable to fetch notification target list": "Unable to fetch notification target list",

0 commit comments

Comments
 (0)