mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Merge pull request #1246 from chrisgarrity/feature/translate-labels
Localize category labels
This commit is contained in:
commit
f0951d16fa
4 changed files with 20 additions and 4 deletions
|
@ -623,7 +623,11 @@ class Scratch3MusicBlocks {
|
|||
getInfo () {
|
||||
return {
|
||||
id: 'music',
|
||||
name: 'Music',
|
||||
name: formatMessage({
|
||||
id: 'music.categoryName',
|
||||
default: 'Music',
|
||||
description: 'Label for the Music extension category'
|
||||
}),
|
||||
menuIconURI: menuIconURI,
|
||||
blockIconURI: blockIconURI,
|
||||
blocks: [
|
||||
|
|
|
@ -282,7 +282,11 @@ class Scratch3PenBlocks {
|
|||
getInfo () {
|
||||
return {
|
||||
id: 'pen',
|
||||
name: 'Pen',
|
||||
name: formatMessage({
|
||||
id: 'pen.categoryName',
|
||||
default: 'Pen',
|
||||
description: 'Label for the pen extension category'
|
||||
}),
|
||||
blockIconURI: blockIconURI,
|
||||
blocks: [
|
||||
{
|
||||
|
|
|
@ -86,7 +86,11 @@ class Scratch3TranslateBlocks {
|
|||
getInfo () {
|
||||
return {
|
||||
id: 'translate',
|
||||
name: 'Translate',
|
||||
name: formatMessage({
|
||||
id: 'translate.categoryName',
|
||||
default: 'Translate',
|
||||
description: 'Label for the translate extension category'
|
||||
}),
|
||||
menuIconURI: '', // TODO: Add the final icons.
|
||||
blockIconURI: '',
|
||||
blocks: [
|
||||
|
|
|
@ -372,7 +372,11 @@ class Scratch3VideoSensingBlocks {
|
|||
// Return extension definition
|
||||
return {
|
||||
id: 'videoSensing',
|
||||
name: 'Video Motion',
|
||||
name: formatMessage({
|
||||
id: 'videoSensing.categoryName',
|
||||
default: 'Video Motion',
|
||||
description: 'Label for the video motion extension category'
|
||||
}),
|
||||
blocks: [
|
||||
{
|
||||
// @todo this hat needs to be set itself to restart existing
|
||||
|
|
Loading…
Reference in a new issue