Skip to content

Commit

Permalink
more tweaks to i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
walterbender committed Dec 9, 2023
1 parent 1323bb2 commit 89a0b23
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
18 changes: 17 additions & 1 deletion js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,4 +626,20 @@ blocks. Everything else is calculated for you.)
"Blocks maintain a list of connections to other blocks.")

In the figure about and in the code example above, the `divide` block
connection 0 connects to the `newnote` block connection 1, etc.
connection 0 connects to the `newnote` block connection 1, etc.

----

Checkbox regarding adding new languages to the Language pulldown menu.

You must update three files: ```index.html```, ```js/toolbox.js``` and ```js/languagebox.js```

[ ] In ```index.html```, add an element for the language you are adding to ```"languagedropdown"```

[ ] In ```toolbox.js```, add to the strings for both MUSIC BLOCKS and TURTLE ART

[ ] and add a click event to ```renderLanguageSelectIcon```

[ ] In ```languagebox.js```, add an event handler,

[ ] and add a dictionary entry for "Refresh your browser to change your language preference."
27 changes: 26 additions & 1 deletion js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,31 @@ class Toolbar {
_("Save sheet music as Lilypond"),
_("Save block artwork as SVG"),
_("Confirm"),
_("Select language")
_("Select language"),
_("Save project as HTML"),
_("Save turtle artwork as PNG"),
_("Save project as HTML"),
_("Save turtle artwork as SVG"),
_("Save turtle artwork as PNG"),
_("Save block artwork as SVG"),
_("Confirm"),
_("English (United States)"),
_("English (United Kingdom)"),
_("日本語"),
_("한국인"),
_("español"),
_("português"),
_("にほんご"),
_("中文"),
_("ภาษาไทย"),
_("aymara"),
_("quechua"),
_("guarani"),
_("हिंदी"),
_("తెలుగు"),
_("igbo"),
_("عربى"),
_("עִברִית")
];
} else {
strings = [
Expand Down Expand Up @@ -245,6 +269,7 @@ class Toolbar {
_("quechua"),
_("guarani"),
_("हिंदी"),
_("తెలుగు"),
_("igbo"),
_("عربى"),
_("עִברִית")
Expand Down

0 comments on commit 89a0b23

Please sign in to comment.