mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Localize category labels
Added formatMessage to the name attribute for: * music * pen * translate * video motion Skipped speak extension - trademarked name Skipped extensions that are not yet localized at all.
This commit is contained in:
parent
da30abbfb5
commit
1e3907e922
4 changed files with 20 additions and 4 deletions
|
@ -623,7 +623,11 @@ class Scratch3MusicBlocks {
|
||||||
getInfo () {
|
getInfo () {
|
||||||
return {
|
return {
|
||||||
id: 'music',
|
id: 'music',
|
||||||
name: 'Music',
|
name: formatMessage({
|
||||||
|
id: 'music.categoryName',
|
||||||
|
default: 'Music',
|
||||||
|
description: 'Label for the Music extension category'
|
||||||
|
}),
|
||||||
menuIconURI: menuIconURI,
|
menuIconURI: menuIconURI,
|
||||||
blockIconURI: blockIconURI,
|
blockIconURI: blockIconURI,
|
||||||
blocks: [
|
blocks: [
|
||||||
|
|
|
@ -282,7 +282,11 @@ class Scratch3PenBlocks {
|
||||||
getInfo () {
|
getInfo () {
|
||||||
return {
|
return {
|
||||||
id: 'pen',
|
id: 'pen',
|
||||||
name: 'Pen',
|
name: formatMessage({
|
||||||
|
id: 'pen.categoryName',
|
||||||
|
default: 'Pen',
|
||||||
|
description: 'Label for the pen extension category'
|
||||||
|
}),
|
||||||
blockIconURI: blockIconURI,
|
blockIconURI: blockIconURI,
|
||||||
blocks: [
|
blocks: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -86,7 +86,11 @@ class Scratch3TranslateBlocks {
|
||||||
getInfo () {
|
getInfo () {
|
||||||
return {
|
return {
|
||||||
id: 'translate',
|
id: 'translate',
|
||||||
name: 'Translate',
|
name: formatMessage({
|
||||||
|
id: 'translate.categoryName',
|
||||||
|
default: 'Translate',
|
||||||
|
description: 'Label for the translate extension category'
|
||||||
|
}),
|
||||||
menuIconURI: '', // TODO: Add the final icons.
|
menuIconURI: '', // TODO: Add the final icons.
|
||||||
blockIconURI: '',
|
blockIconURI: '',
|
||||||
blocks: [
|
blocks: [
|
||||||
|
|
|
@ -372,7 +372,11 @@ class Scratch3VideoSensingBlocks {
|
||||||
// Return extension definition
|
// Return extension definition
|
||||||
return {
|
return {
|
||||||
id: 'videoSensing',
|
id: 'videoSensing',
|
||||||
name: 'Video Motion',
|
name: formatMessage({
|
||||||
|
id: 'videoSensing.categoryName',
|
||||||
|
default: 'Video Motion',
|
||||||
|
description: 'Label for the video motion extension category'
|
||||||
|
}),
|
||||||
blocks: [
|
blocks: [
|
||||||
{
|
{
|
||||||
// @todo this hat needs to be set itself to restart existing
|
// @todo this hat needs to be set itself to restart existing
|
||||||
|
|
Loading…
Reference in a new issue