Skip to content

Commit

Permalink
string repair
Browse files Browse the repository at this point in the history
  • Loading branch information
walterbender committed Sep 24, 2024
1 parent b660898 commit cb2931e
Show file tree
Hide file tree
Showing 8 changed files with 5,595 additions and 5,188 deletions.
2 changes: 1 addition & 1 deletion js/blocks/EnsembleBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ function setupEnsembleBlocks(activity) {
//.TRANS: convert current note for this turtle to piano key (1-88)
super("turtlepitch", _("turtle pitch number"));
this.setHelpString([
_("The Turrle pitch block returns the current pitch number being played by the specified turtle."),
_("The Turtle pitch block returns the current pitch number being played by the specified turtle."),
"documentation",
""
]);
Expand Down
2 changes: 1 addition & 1 deletion js/blocks/WidgetBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@ function setupWidgetBlocks(activity) {
"aimusic"
]);

//.TRANS: the speed at music is should be played.
//.TRANS: AI-generated music
this.formBlock({ name: _("aimusic"), canCollapse: true });
this.makeMacro((x, y) => [
[0, "aimusic", x, y, [null, 1]],
Expand Down
2 changes: 1 addition & 1 deletion js/turtleactions/DictActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function setupDictActions(activity) {
return msg;
}
else if(! (key in activity.logo.turtleDicts[turtle][dict])){
var msg=_("Key with this name does not exist in "+dict);
var msg=_("Key with this name does not exist in ") + dict;
return msg;
}

Expand Down
6 changes: 3 additions & 3 deletions js/turtleactions/IntervalsActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ function setupIntervalsActions(activity) {
let os = numberToStringMap[Math.abs(octave) - 1] || Math.abs(octave);
if (totalIntervals % 12 === 0 && letterGap === 0) {
if (octave < 0) {
if(octave===-1)os = _('a')
const a = os + " " + _('perfect') + " "+ plural + " " + _("below");
if (octave === -1) os = _('a')
const a = os + " " + _('perfect') + " " + plural + " " + _("below");
return a.charAt(0).toUpperCase() + a.slice(1);
}
if (octave > 1) {
Expand All @@ -127,7 +127,7 @@ function setupIntervalsActions(activity) {
}

if (totalIntervals > 21) {
if (octave >=1) {
if (octave >= 1) {
lastWord = ", " + _('plus') + " " + os + " " + plural;
}
while (totalIntervals > 12) totalIntervals -= 12;
Expand Down
4 changes: 2 additions & 2 deletions js/widgets/musickeyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -3176,8 +3176,8 @@ function MusicKeyboard(activity) {
this.activity.blocks.loadNewBlocks(newStack);
}

if (actionGroups > 1) this.activity.textMsg(_("New action blocks generated!"));
else this.activity.textMsg(_("New action block generated"));
if (actionGroups > 1) this.activity.textMsg(_("New action blocks generated."));
else this.activity.textMsg(_("New action block generated."));
};

/**
Expand Down
2 changes: 1 addition & 1 deletion planet/js/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ $(document).ready(() => {
// eslint-disable-next-line no-unused-vars
document.getElementById("view-more-chips").addEventListener("click", (evt) => {
const showMore = _("Show more tags") + " ▼";
const showLess = _("Show fewer tags" + " ▲");
const showLess = _("Show fewer tags") + " ▲";
toggleExpandable("morechips", "flexchips");
toggleText("view-more-chips", showMore, showLess);
});
Expand Down
11 changes: 5 additions & 6 deletions po/MusicBlocks.pot
Original file line number Diff line number Diff line change
Expand Up @@ -3785,7 +3785,7 @@ msgid "turtle pitch number"
msgstr ""

#: js/blocks/EnsembleBlocks.js:643
msgid "The Turrle pitch block returns the current pitch number being played by the specified turtle."
msgid "The Turtle pitch block returns the current pitch number being played by the specified turtle."
msgstr ""

#: js/blocks/EnsembleBlocks.js:747
Expand Down Expand Up @@ -6699,7 +6699,7 @@ msgid "The Status block opens a tool for inspecting the status of Music Blocks a
msgstr ""

#: js/blocks/WidgetBlocks.js:1580
#.TRANS: the speed at music is should be played.
#.TRANS: AI-generated music
msgid "aimusic"
msgstr ""

Expand Down Expand Up @@ -6729,8 +6729,7 @@ msgid "Dictionary with this name does not exist"
msgstr ""

#: js/turtleactions/DictActions.js:259
msgid "Key with this name does not exist in \"+dict);
"
msgid "Key with this name does not exist in "
msgstr ""

#: js/turtleactions/DrumActions.js:227
Expand Down Expand Up @@ -7198,7 +7197,7 @@ msgid "duration"
msgstr ""

#: js/widgets/musickeyboard.js:3179
msgid "New action blocks generated!"
msgid "New action blocks generated"
msgstr ""

#: js/widgets/musickeyboard.js:3180
Expand Down Expand Up @@ -7589,7 +7588,7 @@ msgid "Download as File"
msgstr ""

#: planet/js/helper.js:150
msgid "Show fewer tags\" + \""
msgid "Show fewer tags"
msgstr ""

#: plugins/accelerometer.rtp:48
Expand Down
Loading

0 comments on commit cb2931e

Please sign in to comment.