Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
6d0b064c
Commit
6d0b064c
authored
Sep 27, 2017
by
chrisgarrity
Committed by
GitHub
Sep 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1578 from chrisgarrity/hotfix/pt-br
Hotfix/pt br
parents
4e49653f
13284dee
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
122 deletions
+18
-122
.gitignore
.gitignore
+1
-0
bin/lib/localized-urls.json
bin/lib/localized-urls.json
+0
-113
src/views/download/download.jsx
src/views/download/download.jsx
+16
-7
src/views/tips/l10n-static.json
src/views/tips/l10n-static.json
+0
-1
src/views/tips/ttt.json
src/views/tips/ttt.json
+1
-1
No files found.
.gitignore
View file @
6d0b064c
...
@@ -22,3 +22,4 @@ ENV
...
@@ -22,3 +22,4 @@ ENV
# Test
# Test
/.nyc_output
/.nyc_output
/coverage
/coverage
/bin/lib/localized-urls.json
bin/lib/localized-urls.json
deleted
100644 → 0
View file @
4e49653f
{
"ar"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ar/Scratch2Cards.pdf"
},
"ca"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/Scratch2Cards.pdf"
,
"cards.ScratchCardsAllLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/ScratchCardsAll.pdf"
,
"cards.catchCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/catchCards.pdf"
,
"cards.danceCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/danceCards.pdf"
,
"cards.fashionCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/fashionCards.pdf"
,
"cards.flyCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/flyCards.pdf"
,
"cards.hide-seekCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/hide-seekCards.pdf"
,
"cards.musicCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/musicCards.pdf"
,
"cards.nameCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/nameCards.pdf"
,
"cards.petCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/petCards.pdf"
,
"cards.pongCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/pongCards.pdf"
,
"cards.raceCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/raceCards.pdf"
,
"cards.storyCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ca/storyCards.pdf"
},
"cs"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/cs/Scratch2Cards.pdf"
},
"de"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/de/Scratch2Cards.pdf"
},
"en"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/Scratch2Cards.pdf"
,
"cards.ScratchCardsAllLink"
:
"https://resources.scratch.mit.edu/www/cards/en/ScratchCardsAll.pdf"
,
"cards.catchCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/catchCards.pdf"
,
"cards.danceCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/danceCards.pdf"
,
"cards.dressupCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/dressupCards.pdf"
,
"cards.fashionCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/fashionCards.pdf"
,
"cards.flyCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/flyCards.pdf"
,
"cards.hide-seekCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/hide-seekCards.pdf"
,
"cards.musicCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/musicCards.pdf"
,
"cards.nameCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/nameCards.pdf"
,
"cards.petCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/petCards.pdf"
,
"cards.pongCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/pongCards.pdf"
,
"cards.raceCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/raceCards.pdf"
,
"cards.storyCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/storyCards.pdf"
,
"guides.AnimateYourNameGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/AnimateYourNameGuide.pdf"
,
"guides.CatchGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/CatchGuide.pdf"
,
"guides.DanceGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/DanceGuide.pdf"
,
"guides.FashionGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/FashionGuide.pdf"
,
"guides.FlyGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/FlyGuide.pdf"
,
"guides.Getting-Started-Guide-Scratch2Link"
:
"https://resources.scratch.mit.edu/www/guides/en/Getting-Started-Guide-Scratch2.pdf"
,
"guides.HideandSeekGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/HideandSeekGuide.pdf"
,
"guides.MusicGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/MusicGuide.pdf"
,
"guides.NameGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/NameGuide.pdf"
,
"guides.PetGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/PetGuide.pdf"
,
"guides.PongGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/PongGuide.pdf"
,
"guides.RaceGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/RaceGuide.pdf"
,
"guides.StoryGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/StoryGuide.pdf"
},
"es"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/Scratch2Cards.pdf"
,
"cards.catchCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/catchCards.pdf"
,
"cards.danceCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/danceCards.pdf"
,
"cards.fashionCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/fashionCards.pdf"
,
"cards.flyCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/flyCards.pdf"
,
"cards.hide-seekCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/hide-seekCards.pdf"
,
"cards.musicCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/musicCards.pdf"
,
"cards.nameCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/nameCards.pdf"
,
"cards.petCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/petCards.pdf"
,
"cards.pongCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/pongCards.pdf"
,
"cards.raceCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/raceCards.pdf"
,
"cards.storyCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/es/storyCards.pdf"
},
"fr"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/fr/Scratch2Cards.pdf"
},
"hr"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/hr/Scratch2Cards.pdf"
},
"it"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/it/Scratch2Cards.pdf"
},
"ja"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ja/Scratch2Cards.pdf"
},
"ja-hr"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ja-hr/Scratch2Cards.pdf"
},
"ko"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/ko/Scratch2Cards.pdf"
},
"nl"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/nl/Scratch2Cards.pdf"
},
"pt-br"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/pt-br/Scratch2Cards.pdf"
},
"sl"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/sl/Scratch2Cards.pdf"
},
"sv"
:
{
"cards.Scratch2CardsLink"
:
"https://resources.scratch.mit.edu/www/cards/sv/Scratch2Cards.pdf"
},
"zh-tw"
:
{
"cards.ScratchCardsAllLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/ScratchCardsAll.pdf"
,
"cards.catchCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/catchCards.pdf"
,
"cards.danceCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/danceCards.pdf"
,
"cards.fashionCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/fashionCards.pdf"
,
"cards.flyCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/flyCards.pdf"
,
"cards.hide-seekCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/hide-seekCards.pdf"
,
"cards.musicCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/musicCards.pdf"
,
"cards.nameCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/nameCards.pdf"
,
"cards.petCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/petCards.pdf"
,
"cards.pongCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/pongCards.pdf"
,
"cards.raceCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/raceCards.pdf"
,
"cards.storyCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/zh-tw/storyCards.pdf"
}
}
\ No newline at end of file
src/views/download/download.jsx
View file @
6d0b064c
...
@@ -3,6 +3,7 @@ var render = require('../../lib/render.jsx');
...
@@ -3,6 +3,7 @@ var render = require('../../lib/render.jsx');
var
FormattedHTMLMessage
=
require
(
'
react-intl
'
).
FormattedHTMLMessage
;
var
FormattedHTMLMessage
=
require
(
'
react-intl
'
).
FormattedHTMLMessage
;
var
FormattedMessage
=
require
(
'
react-intl
'
).
FormattedMessage
;
var
FormattedMessage
=
require
(
'
react-intl
'
).
FormattedMessage
;
var
injectIntl
=
require
(
'
react-intl
'
).
injectIntl
;
var
api
=
require
(
'
../../lib/api
'
);
var
api
=
require
(
'
../../lib/api
'
);
var
Page
=
require
(
'
../../components/page/www/page.jsx
'
);
var
Page
=
require
(
'
../../components/page/www/page.jsx
'
);
...
@@ -13,7 +14,7 @@ var SubNavigation = require('../../components/subnavigation/subnavigation.jsx');
...
@@ -13,7 +14,7 @@ var SubNavigation = require('../../components/subnavigation/subnavigation.jsx');
require
(
'
./download.scss
'
);
require
(
'
./download.scss
'
);
require
(
'
../../components/forms/button.scss
'
);
require
(
'
../../components/forms/button.scss
'
);
var
Download
=
React
.
createClass
({
var
Download
=
injectIntl
(
React
.
createClass
({
type
:
'
Download
'
,
type
:
'
Download
'
,
getInitialState
:
function
()
{
getInitialState
:
function
()
{
return
{
return
{
...
@@ -21,9 +22,13 @@ var Download = React.createClass({
...
@@ -21,9 +22,13 @@ var Download = React.createClass({
};
};
},
},
componentDidMount
:
function
()
{
componentDidMount
:
function
()
{
var
uri
=
'
/scratchr2/static/sa/version.xml
'
;
if
(
this
.
props
.
intl
.
locale
===
'
pt-br
'
)
{
uri
=
'
/scratchr2/static/sa/pt-br/version.xml
'
;
}
api
({
api
({
host
:
''
,
host
:
''
,
uri
:
'
/scratchr2/static/sa/version.xml
'
,
uri
:
uri
,
responseType
:
'
string
'
responseType
:
'
string
'
},
function
(
err
,
body
,
res
)
{
},
function
(
err
,
body
,
res
)
{
if
(
err
||
res
.
statusCode
>=
400
)
{
if
(
err
||
res
.
statusCode
>=
400
)
{
...
@@ -39,12 +44,16 @@ var Download = React.createClass({
...
@@ -39,12 +44,16 @@ var Download = React.createClass({
}.
bind
(
this
));
}.
bind
(
this
));
},
},
render
:
function
()
{
render
:
function
()
{
var
downloadPath
=
'
/scratchr2/static/sa/Scratch-
'
;
if
(
this
.
props
.
intl
.
locale
===
'
pt-br
'
)
{
downloadPath
=
'
/scratchr2/static/sa/pt-br/Scratch-
'
;
}
if
(
this
.
state
.
swfVersion
.
length
>
0
&&
this
.
state
.
swfVersion
!==
-
1
)
{
if
(
this
.
state
.
swfVersion
.
length
>
0
&&
this
.
state
.
swfVersion
!==
-
1
)
{
var
downloadUrls
=
{
var
downloadUrls
=
{
mac
:
'
/scratchr2/static/sa/Scratch-
'
+
this
.
state
.
swfVersion
+
'
.dmg
'
,
mac
:
downloadPath
+
this
.
state
.
swfVersion
+
'
.dmg
'
,
mac105
:
'
/scratchr2/static/sa/Scratch-
'
+
this
.
state
.
swfVersion
+
'
.air
'
,
mac105
:
downloadPath
+
this
.
state
.
swfVersion
+
'
.air
'
,
windows
:
'
/scratchr2/static/sa/Scratch-
'
+
this
.
state
.
swfVersion
+
'
.exe
'
,
windows
:
downloadPath
+
this
.
state
.
swfVersion
+
'
.exe
'
,
linux
:
'
/scratchr2/static/sa/Scratch-
'
+
this
.
state
.
swfVersion
+
'
.air
'
linux
:
downloadPath
+
this
.
state
.
swfVersion
+
'
.air
'
};
};
}
}
...
@@ -231,6 +240,6 @@ var Download = React.createClass({
...
@@ -231,6 +240,6 @@ var Download = React.createClass({
</
div
>
</
div
>
);
);
}
}
});
})
)
;
render
(<
Page
><
Download
/></
Page
>,
document
.
getElementById
(
'
app
'
));
render
(<
Page
><
Download
/></
Page
>,
document
.
getElementById
(
'
app
'
));
src/views/tips/l10n-static.json
View file @
6d0b064c
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
"cards.pongCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/pongCards.pdf"
,
"cards.pongCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/pongCards.pdf"
,
"cards.raceCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/raceCards.pdf"
,
"cards.raceCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/raceCards.pdf"
,
"cards.storyCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/storyCards.pdf"
,
"cards.storyCardsLink"
:
"https://resources.scratch.mit.edu/www/cards/en/storyCards.pdf"
,
"guides.AnimateYourNameGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/AnimateYourNameGuide.pdf"
,
"guides.CatchGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/CatchGuide.pdf"
,
"guides.CatchGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/CatchGuide.pdf"
,
"guides.DanceGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/DanceGuide.pdf"
,
"guides.DanceGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/DanceGuide.pdf"
,
"guides.FashionGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/FashionGuide.pdf"
,
"guides.FashionGuideLink"
:
"https://resources.scratch.mit.edu/www/guides/en/FashionGuide.pdf"
,
...
...
src/views/tips/ttt.json
View file @
6d0b064c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"bannerUrl"
:
"/images/ttt/animate-your-name-banner.jpg"
,
"bannerUrl"
:
"/images/ttt/animate-your-name-banner.jpg"
,
"tutorialLoc"
:
"/projects/editor/?tip_bar=name"
,
"tutorialLoc"
:
"/projects/editor/?tip_bar=name"
,
"activityLoc"
:
"cards.nameCardsLink"
,
"activityLoc"
:
"cards.nameCardsLink"
,
"guideLoc"
:
"guides.
AnimateYour
NameGuideLink"
"guideLoc"
:
"guides.NameGuideLink"
},
},
{
{
"title"
:
"ttt.MakeItFlyTitle"
,
"title"
:
"ttt.MakeItFlyTitle"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment