Skip to content

Commit

Permalink
A lot of text style fixes and translations (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
CubesterYT authored Jun 14, 2024
1 parent eb7df9e commit bd8777f
Show file tree
Hide file tree
Showing 48 changed files with 1,192 additions and 790 deletions.
50 changes: 40 additions & 10 deletions extensions/-SIPC-/consoles.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
arguments: {
string: {
type: Scratch.ArgumentType.STRING,
defaultValue: Scratch.translate("log"),
defaultValue: Scratch.translate({
default: "Log",
description: "Default value",
}),
},
},
},
Expand All @@ -46,7 +49,10 @@
arguments: {
string: {
type: Scratch.ArgumentType.STRING,
defaultValue: Scratch.translate("Information"),
defaultValue: Scratch.translate({
default: "Information",
description: "Default value",
}),
},
},
},
Expand All @@ -57,7 +63,10 @@
arguments: {
string: {
type: Scratch.ArgumentType.STRING,
defaultValue: Scratch.translate("Warning"),
defaultValue: Scratch.translate({
default: "Warning",
description: "Default value",
}),
},
},
},
Expand All @@ -68,7 +77,10 @@
arguments: {
string: {
type: Scratch.ArgumentType.STRING,
defaultValue: Scratch.translate("Error"),
defaultValue: Scratch.translate({
default: "Error",
description: "Default value",
}),
},
},
},
Expand All @@ -79,7 +91,10 @@
arguments: {
string: {
type: Scratch.ArgumentType.STRING,
defaultValue: Scratch.translate("Debug"),
defaultValue: Scratch.translate({
default: "Debug",
description: "Default value",
}),
},
},
},
Expand All @@ -92,7 +107,10 @@
arguments: {
string: {
type: Scratch.ArgumentType.STRING,
defaultValue: Scratch.translate("group"),
defaultValue: Scratch.translate({
default: "Group",
description: "Default value",
}),
},
},
},
Expand All @@ -105,7 +123,10 @@
arguments: {
string: {
type: Scratch.ArgumentType.STRING,
defaultValue: Scratch.translate("group"),
defaultValue: Scratch.translate({
default: "Group",
description: "Default value",
}),
},
},
},
Expand All @@ -123,7 +144,10 @@
arguments: {
string: {
type: Scratch.ArgumentType.STRING,
defaultValue: Scratch.translate("Time"),
defaultValue: Scratch.translate({
default: "Time",
description: "Default value",
}),
},
},
},
Expand All @@ -134,7 +158,10 @@
arguments: {
string: {
type: Scratch.ArgumentType.STRING,
defaultValue: Scratch.translate("Time"),
defaultValue: Scratch.translate({
default: "Time",
description: "Default value",
}),
},
},
},
Expand All @@ -147,7 +174,10 @@
arguments: {
string: {
type: Scratch.ArgumentType.STRING,
defaultValue: Scratch.translate("Time"),
defaultValue: Scratch.translate({
default: "Time",
description: "Default value",
}),
},
},
},
Expand Down
8 changes: 4 additions & 4 deletions extensions/-SIPC-/recording.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@
{
opcode: "startRecording",
blockType: Scratch.BlockType.COMMAND,
text: Scratch.translate("Start recording"),
text: Scratch.translate("start recording"),
blockIconURI: icon,
arguments: {},
},
{
opcode: "stopRecording",
blockType: Scratch.BlockType.COMMAND,
text: Scratch.translate("Stop recording"),
text: Scratch.translate("stop recording"),
blockIconURI: icon,
arguments: {},
},
{
opcode: "stopRecordingAndDownload",
blockType: Scratch.BlockType.COMMAND,
text: Scratch.translate(
"Stop recording and download with [name] as filename"
"stop recording and download with [name] as filename"
),
blockIconURI: icon,
arguments: {
Expand All @@ -50,7 +50,7 @@
{
opcode: "isRecording",
blockType: Scratch.BlockType.BOOLEAN,
text: Scratch.translate("Recording?"),
text: Scratch.translate("recording?"),
blockIconURI: icon,
arguments: {},
},
Expand Down
2 changes: 1 addition & 1 deletion extensions/-SIPC-/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{
opcode: "Timedata",
blockType: Scratch.BlockType.REPORTER,
text: Scratch.translate("get [Timedata] from [timestamp]"),
text: Scratch.translate("[Timedata] from [timestamp]"),
arguments: {
timestamp: {
type: Scratch.ArgumentType.NUMBER,
Expand Down
26 changes: 14 additions & 12 deletions extensions/0832/rxFS.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
blockIconURI: wenj,
opcode: "start",
blockType: Scratch.BlockType.COMMAND,
text: "New [STR] ",
text: Scratch.translate("new [STR]"),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -42,23 +42,23 @@
blockIconURI: wenj,
opcode: "file",
blockType: Scratch.BlockType.COMMAND,
text: "Set [STR] to [STR2] ",
text: Scratch.translate("set [STR] to [STR2]"),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
defaultValue: "📃",
},
STR2: {
type: Scratch.ArgumentType.STRING,
defaultValue: "rxFS is good!",
defaultValue: Scratch.translate("rxFS is good!"),
},
},
},
{
blockIconURI: wenj,
opcode: "sync",
blockType: Scratch.BlockType.COMMAND,
text: "Change the location of [STR] to [STR2] ",
text: Scratch.translate("change the location of [STR] to [STR2]"),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -74,7 +74,7 @@
blockIconURI: wenj,
opcode: "del",
blockType: Scratch.BlockType.COMMAND,
text: "Delete [STR] ",
text: Scratch.translate("delete [STR]"),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -86,7 +86,7 @@
blockIconURI: wenj,
opcode: "webin",
blockType: Scratch.BlockType.REPORTER,
text: "Load [STR] from the network",
text: Scratch.translate("load [STR] from the network"),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -98,7 +98,7 @@
blockIconURI: wenj,
opcode: "open",
blockType: Scratch.BlockType.REPORTER,
text: "Open [STR]",
text: Scratch.translate("open [STR]"),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -110,14 +110,14 @@
blockIconURI: file,
opcode: "clean",
blockType: Scratch.BlockType.COMMAND,
text: "Clear file system",
text: Scratch.translate("clear file system"),
arguments: {},
},
{
blockIconURI: file,
opcode: "in",
blockType: Scratch.BlockType.COMMAND,
text: "Import file system from [STR]",
text: Scratch.translate("import file system from [STR]"),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -129,14 +129,16 @@
blockIconURI: file,
opcode: "out",
blockType: Scratch.BlockType.REPORTER,
text: "Export file system",
text: Scratch.translate("export file system"),
arguments: {},
},
{
blockIconURI: file,
opcode: "list",
blockType: Scratch.BlockType.REPORTER,
text: "List the contents under the same folder [STR]",
text: Scratch.translate(
"list the contents under the same folder [STR]"
),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -148,7 +150,7 @@
blockIconURI: file,
opcode: "search",
blockType: Scratch.BlockType.REPORTER,
text: "Search [STR]",
text: Scratch.translate("search [STR]"),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand Down
22 changes: 11 additions & 11 deletions extensions/0832/rxFS2.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
blockIconURI: file,
opcode: "start",
blockType: Scratch.BlockType.COMMAND,
text: Scratch.translate({ id: "start", default: "Create [STR]" }),
text: Scratch.translate({ id: "start", default: "create [STR]" }),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -52,7 +52,7 @@
blockType: Scratch.BlockType.COMMAND,
text: Scratch.translate({
id: "folder",
default: "Set [STR] to [STR2]",
default: "set [STR] to [STR2]",
}),
arguments: {
STR: {
Expand All @@ -74,7 +74,7 @@
blockType: Scratch.BlockType.COMMAND,
text: Scratch.translate({
id: "sync",
default: "Change the location of [STR] to [STR2]",
default: "change the location of [STR] to [STR2]",
}),
arguments: {
STR: {
Expand All @@ -91,7 +91,7 @@
blockIconURI: file,
opcode: "del",
blockType: Scratch.BlockType.COMMAND,
text: Scratch.translate({ id: "del", default: "Delete [STR]" }),
text: Scratch.translate({ id: "del", default: "delete [STR]" }),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -105,7 +105,7 @@
blockType: Scratch.BlockType.REPORTER,
text: Scratch.translate({
id: "webin",
default: "Load [STR] from the web",
default: "load [STR] from the web",
}),
arguments: {
STR: {
Expand All @@ -118,7 +118,7 @@
blockIconURI: file,
opcode: "open",
blockType: Scratch.BlockType.REPORTER,
text: Scratch.translate({ id: "open", default: "Open [STR]" }),
text: Scratch.translate({ id: "open", default: "open [STR]" }),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand All @@ -133,7 +133,7 @@
blockType: Scratch.BlockType.COMMAND,
text: Scratch.translate({
id: "clean",
default: "Clear the file system",
default: "clear the file system",
}),
arguments: {},
},
Expand All @@ -143,7 +143,7 @@
blockType: Scratch.BlockType.COMMAND,
text: Scratch.translate({
id: "in",
default: "Import file system from [STR]",
default: "import file system from [STR]",
}),
arguments: {
STR: {
Expand All @@ -158,7 +158,7 @@
blockType: Scratch.BlockType.REPORTER,
text: Scratch.translate({
id: "out",
default: "Export file system",
default: "export file system",
}),
arguments: {},
},
Expand All @@ -168,7 +168,7 @@
blockType: Scratch.BlockType.REPORTER,
text: Scratch.translate({
id: "list",
default: "List all files under [STR]",
default: "list all files under [STR]",
}),
arguments: {
STR: {
Expand All @@ -181,7 +181,7 @@
blockIconURI: folder,
opcode: "search",
blockType: Scratch.BlockType.REPORTER,
text: Scratch.translate({ id: "search", default: "Search [STR]" }),
text: Scratch.translate({ id: "search", default: "search [STR]" }),
arguments: {
STR: {
type: Scratch.ArgumentType.STRING,
Expand Down
2 changes: 1 addition & 1 deletion extensions/Lily/AllMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
getInfo() {
return {
id: "lmsAllMenus",
name: "All Menus",
name: Scratch.translate("All Menus"),
blocks: [
{
blockType: Scratch.BlockType.XML,
Expand Down
Loading

0 comments on commit bd8777f

Please sign in to comment.