Skip to content

Commit

Permalink
wrap strings in gettext function. natcap#1119.
Browse files Browse the repository at this point in the history
  • Loading branch information
davemfish committed Dec 5, 2022
1 parent ade99de commit 0cd5b2a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions workbench/src/renderer/components/ErrorBoundary/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,30 @@ export default class ErrorBoundary extends React.Component {
if (this.state.hasError) {
return (
<Alert className="error-boundary">
<h2>{'\u{1F986}'} Something went wrong</h2>
<h2>{`\u{1F986} ${_('Something went wrong')}`}</h2>
<p>
<em>Please help us fix this by reporting the problem.
You may follow these steps:</em>
<em>
{_(`Please help us fix this by reporting the problem.
You may follow these steps:`)}
</em>
</p>
<ol>
<li>
<b>Find the Workbench log files</b> using the button below.
There may be multiple files with a ".log" extension.
<b>{_('Find the Workbench log files ')}</b>
{_(`using the button below.
There may be multiple files with a ".log" extension.`)}
</li>
<Button
onClick={handleClickFindLogfiles}
>
Find My Logs
{_('Find My Logs')}
</Button>
<br />
<br />
<li>
<b>Create a post on our forum</b> and upload all the log files, along with a
brief description of what happened before you saw this message.
<b>{_('Create a post on our forum ')}</b>
{_(`and upload all the log files, along with a brief description
of what happened before you saw this message.`)}
<br />
<a
href="https://community.naturalcapitalproject.org/"
Expand Down

0 comments on commit 0cd5b2a

Please sign in to comment.