Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
logging-scratch-gui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Goessmann
logging-scratch-gui
Commits
b1f3751e
Commit
b1f3751e
authored
6 years ago
by
Warao Gil
Browse files
Options
Downloads
Patches
Plain Diff
Add Intl to Crash Message Component.
parent
f9fd7c90
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/crash-message/crash-message.jsx
+18
-12
18 additions, 12 deletions
src/components/crash-message/crash-message.jsx
with
18 additions
and
12 deletions
src/components/crash-message/crash-message.jsx
+
18
−
12
View file @
b1f3751e
/* eslint-disable react/jsx-no-literals */
/*
@todo Rule is disabled because this component is rendered outside the
intl provider right now so cannot be translated.
*/
import
PropTypes
from
'
prop-types
'
;
import
PropTypes
from
'
prop-types
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Box
from
'
../box/box.jsx
'
;
import
Box
from
'
../box/box.jsx
'
;
import
{
FormattedMessage
}
from
'
react-intl
'
;
import
styles
from
'
./crash-message.css
'
;
import
styles
from
'
./crash-message.css
'
;
import
reloadIcon
from
'
./reload.svg
'
;
import
reloadIcon
from
'
./reload.svg
'
;
...
@@ -19,19 +14,30 @@ const CrashMessage = props => (
...
@@ -19,19 +14,30 @@ const CrashMessage = props => (
src
=
{
reloadIcon
}
src
=
{
reloadIcon
}
/>
/>
<
h2
>
<
h2
>
Oops! Something went wrong.
<
FormattedMessage
defaultMessage
=
"Oops! Something went wrong."
description
=
"Crash Message title"
id
=
"gui.crashMessage.label"
/>
</
h2
>
</
h2
>
<
p
>
<
p
>
We are so sorry, but it looks like Scratch has crashed. This bug has been
<
FormattedMessage
automatically reported to the Scratch Team. Please refresh your page to try
defaultMessage
=
"
We
are
so
sorry
,
but
it
looks
like
Scratch
has
crashed
.
This
bug
has
been
again.
automatically
reported
to
the
Scratch
Team
.
Please
refresh
your
page
to
try
again
."
description
=
"Message to inform the user that page has crashed."
id
=
"gui.crashMessage.description"
/>
</
p
>
</
p
>
<
button
<
button
className
=
{
styles
.
reloadButton
}
className
=
{
styles
.
reloadButton
}
onClick
=
{
props
.
onReload
}
onClick
=
{
props
.
onReload
}
>
>
Reload
<
FormattedMessage
defaultMessage
=
"Reload"
description
=
"Button to reload the page when page crashes"
id
=
"gui.crashMessage.reload"
/>
</
button
>
</
button
>
</
Box
>
</
Box
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment