wrap text strings in language function

This commit is contained in:
Sean Yesmunt 2018-07-09 00:57:31 -04:00
parent bdf1634573
commit 1d8728c8ed
3 changed files with 6 additions and 6 deletions

View file

@ -32,7 +32,7 @@ class FileRender extends React.PureComponent<Props> {
const { fileType } = source;
const viewer = mediaType && source && (mediaTypes[mediaType] || fileTypes[fileType]);
const unsupportedMessage = "Sorry, looks like we can't preview this file.";
const unsupportedMessage = __("Sorry, looks like we can't preview this file.");
const unsupported = <LoadingScreen status={unsupportedMessage} spinner={false} />;
// Return viewer

View file

@ -16,7 +16,7 @@ class VideoPlayButton extends React.PureComponent<Props> {
const disabled = isLoading || fileInfo === undefined;
const doesPlayback = ['audio', 'video'].indexOf(mediaType) !== -1;
const icon = doesPlayback ? icons.PLAY : icons.EYE;
const label = doesPlayback ? 'Play' : 'Preview';
const label = doesPlayback ? __('Play') : __('View');
return <Button button="primary" disabled={disabled} label={label} icon={icon} onClick={play} />;
}

View file

@ -229,12 +229,12 @@ class VideoPlayer extends React.PureComponent {
};
// Loading message
const noFileMessage = 'Waiting for blob.';
const noMetadataMessage = 'Waiting for metadata.';
const noFileMessage = __('Waiting for blob.');
const noMetadataMessage = __('Waiting for metadata.');
// Error message
const unplayableMessage = "Sorry, looks like we can't play this file.";
const unsupportedMessage = "Sorry, looks like we can't preview this file.";
const unplayableMessage = __("Sorry, looks like we can't play this file.");
const unsupportedMessage = __("Sorry, looks like we can't preview this file.");
// Files
const isLoadingFile = !fileSource && isFileType;