This commit is contained in:
Sean Yesmunt 2019-12-10 14:49:00 -05:00
parent 38f837d50c
commit 35ed493af4
3 changed files with 8 additions and 6 deletions

View file

@ -915,8 +915,6 @@
"Recommended size is 16:9": "Recommended size is 16:9", "Recommended size is 16:9": "Recommended size is 16:9",
"Any amount will give you the highest bid, but larger amounts help your content be trusted and discovered.": "Any amount will give you the highest bid, but larger amounts help your content be trusted and discovered.", "Any amount will give you the highest bid, but larger amounts help your content be trusted and discovered.": "Any amount will give you the highest bid, but larger amounts help your content be trusted and discovered.",
"Loading 3D model.": "Loading 3D model.", "Loading 3D model.": "Loading 3D model.",
"Saved zip archive to /Users/sean/Downloads/.lbryum-2019-12-09T17-21-28.429Z.zip": "Saved zip archive to /Users/sean/Downloads/.lbryum-2019-12-09T17-21-28.429Z.zip",
"PDF opened externally.": "PDF opened externally.",
"Click here": "Click here", "Click here": "Click here",
"to open it again.": "to open it again." "PDF opened externally. %click_here% to open it again.": "PDF opened externally. %click_here% to open it again."
} }

View file

@ -2,6 +2,7 @@
import * as React from 'react'; import * as React from 'react';
import { stopContextMenu } from 'util/context-menu'; import { stopContextMenu } from 'util/context-menu';
import Button from 'component/button'; import Button from 'component/button';
import I18nMessage from 'component/i18nMessage';
// @if TARGET='app' // @if TARGET='app'
import { shell } from 'electron'; import { shell } from 'electron';
// @endif // @endif
@ -38,8 +39,11 @@ class PdfViewer extends React.PureComponent<Props> {
<div className="file-render__viewer--pdf" onContextMenu={stopContextMenu}> <div className="file-render__viewer--pdf" onContextMenu={stopContextMenu}>
{/* @if TARGET='app' */} {/* @if TARGET='app' */}
<p> <p>
{__('PDF opened externally.')} <Button button="link" label={__('Click here')} onClick={this.openFile} />{' '} <I18nMessage
{__('to open it again.')} tokens={{ click_here: <Button button="link" label={__('Click here')} onClick={this.openFile} /> }}
>
PDF opened externally. %click_here% to open it again.
</I18nMessage>
</p> </p>
{/* @endif */} {/* @endif */}

View file

@ -81,7 +81,7 @@ class WalletBackup extends React.PureComponent<Props, State> {
return; return;
} }
this.showSuccessMessage(__('Saved zip archive to ' + outputPath)); this.showSuccessMessage(__('Saved zip archive to %outputPath%', { outputPath }));
shell.showItemInFolder(outputPath); shell.showItemInFolder(outputPath);
} }