Skip to content

Commit ec72e05

Browse files
authored
Fix i18n: Add missing Telugu translation and localize buttons (#5138)
* Fix i18n: Add missing Telugu translation and localize confirm and cancel buttons * Add Telugu translation for 'Clear Workspace'
1 parent b4e1307 commit ec72e05

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

js/activity.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,8 +1443,8 @@ class Activity {
14431443

14441444
const importConfirm = document.createElement("button");
14451445
importConfirm.classList.add("confirm-button");
1446-
importConfirm.textContent = "Confirm";
1447-
this.addEventListener(importConfirm, "click", () => {
1446+
importConfirm.textContent = _("Confirm");
1447+
importConfirm.addEventListener("click", () => {
14481448
const maxNoteBlocks = select.value;
14491449
transcribeMidi(midi, maxNoteBlocks);
14501450
document.body.removeChild(modal);
@@ -1453,8 +1453,8 @@ class Activity {
14531453

14541454
const cancelBtn = document.createElement("button");
14551455
cancelBtn.classList.add("cancel-button");
1456-
cancelBtn.textContent = "Cancel";
1457-
this.addEventListener(cancelBtn, "click", () => {
1456+
cancelBtn.textContent = _("Cancel");
1457+
cancelBtn.addEventListener("click", () => {
14581458
document.body.removeChild(modal);
14591459
});
14601460
modal.appendChild(cancelBtn);
@@ -1486,7 +1486,7 @@ class Activity {
14861486

14871487
const confirmBtn = document.createElement("button");
14881488
confirmBtn.classList.add("confirm-button");
1489-
confirmBtn.textContent = "Confirm";
1489+
confirmBtn.textContent = _("Confirm");
14901490
confirmBtn.style.backgroundColor = platformColor.blueButton;
14911491
confirmBtn.style.color = "white";
14921492
confirmBtn.style.border = "none";
@@ -1502,7 +1502,7 @@ class Activity {
15021502

15031503
const cancelBtn = document.createElement("button");
15041504
cancelBtn.classList.add("cancel-button");
1505-
cancelBtn.textContent = "Cancel";
1505+
cancelBtn.textContent = _("Cancel");
15061506
cancelBtn.style.backgroundColor = "#f1f1f1";
15071507
cancelBtn.style.color = "black";
15081508
cancelBtn.style.border = "none";

locales/te.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@
343343
"Turn on/off lines for cartesian or polar grids.": "కార్టీesian లేదా పోలార్ గ్రిడ్‌ల కోసం గీతలను ఆన్/ఆఫ్ చేయండి.",
344344
"Turn on/off music staffs.": "సంగీత స్టాఫ్‌లను ఆన్/ఆఫ్ చేయండి.",
345345
"Clear": "క్లియర్",
346+
"Clear Workspace": "వర్క్‌స్పేస్‌ను క్లియర్ చేయండి",
346347
"Clear the screen and return the mice to their initial positions.": "స్క్రీన్‌ను తిరిగిపెట్టండి మరియు మొదటి స్థానాలకు మైస్‌ని తిరిగిపెట్టండి.",
347348
"Collapse": "అసంగతి",
348349
"Collapse the graphics window.": "గ్రాఫిక్స్ విండోను పొరగండి.",

po/te.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ msgstr "బ్లాక్‌లను శోధించండి"
248248
msgid "Are you sure you want to clear the workspace?"
249249
msgstr "మీరు ఖచ్చితంగా వర్క్‌స్పేస్‌ను క్లియర్ చేయాలనుకుంటున్నారా?"
250250

251+
#: js/activity.js:1472
252+
msgid "Clear Workspace"
253+
msgstr "వర్క్‌స్పేస్‌ను క్లియర్ చేయండి"
254+
251255
#: js/activity.js:1577
252256
msgid "Enter file name"
253257
msgstr "ఫైల్ పేరును నమోదు చేయండి"

0 commit comments

Comments
 (0)