Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Add t() translation mark to i18nable strings and update translations #1593

Merged
merged 3 commits into from
Sep 21, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add 'Search Gfycat' string translation
  • Loading branch information
jespino committed Sep 21, 2018
commit cde631765ecbebca93d7aeb18c785d2883882502
4 changes: 3 additions & 1 deletion components/gif_picker/components/SearchBar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import {changeOpacity, makeStyleFromTheme} from 'mattermost-redux/utils/theme_ut
import GifSearchIcon from 'components/svg/gif_search_icon';
import GifSearchClearIcon from 'components/svg/gif_search_clear_icon';

import {localizeMessage} from 'utils/utils.jsx';

import './SearchBar.scss';

function mapStateToProps(state) {
Expand Down Expand Up @@ -205,7 +207,7 @@ export class SearchBar extends Component {
className='search-input'
name='searchText'
autoFocus={true}
placeholder={'Search Gfycat'}
placeholder={localizeMessage('gif_picker.gfycat', 'Search Gfycat')}
onChange={this.handleChange}
autoComplete='off'
autoCapitalize='off'
Expand Down
1 change: 1 addition & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1877,6 +1877,7 @@
"get_team_invite_link_modal.help": "Send teammates the link below for them to sign-up to this team site. The Team Invite Link can be shared with multiple teammates as it does not change unless it's regenerated in Team Settings by a Team Admin.",
"get_team_invite_link_modal.helpDisabled": "User creation has been disabled for your team. Please ask your Team Administrator for details.",
"get_team_invite_link_modal.title": "Team Invite Link",
"gif_picker.gfycat": "Search Gfycat",
"help.attaching.downloading": "#### Downloading Files\nDownload an attached file by clicking the download icon next to the file thumbnail or by opening the file previewer and clicking **Download**.",
"help.attaching.dragdrop": "#### Drag and Drop\nUpload a file or selection of files by dragging the files from your computer into the right-hand sidebar or center pane. Dragging and dropping attaches the files to the message input box, then you can optionally type a message and press **ENTER** to post.",
"help.attaching.icon": "#### Attachment Icon\nAlternatively, upload files by clicking the grey paperclip icon inside the message input box. This opens up your system file viewer where you can navigate to the desired files and then click **Open** to upload the files to the message input box. Optionally type a message and then press **ENTER** to post.",
Expand Down