';
$.ajax({
type: "GET",
url: '?Handler=BNumPartial&poemId=' + String(poemId) + '&coupletIndex=' + String(index),
@@ -370,7 +370,7 @@ function switchPlayerScrollLock() {
lockButton.classList.toggle('recitation-scrollunlock');
lockButton.classList.toggle('recitation-scrolllock');
});
- alert('قفل متن روی خوانش فعال شد.');
+ alert('قرأت پر متن کا قفل فعال ہو گیا.');
}
else {
const lockButtons = document.querySelectorAll('.recitation-scrolllock');
@@ -378,7 +378,7 @@ function switchPlayerScrollLock() {
lockButtons.classList.toggle('recitation-scrollunlock');
lockButtons.classList.toggle('recitation-scrolllock');
});
- alert('قفل متن روی خوانش غیرفعال شد.');
+ alert('قرأت پر متن کا قفل بند ہو گیا.');
}
}
@@ -626,7 +626,7 @@ function fillnarrations(coupletIndex) {
var comboId = '#narrators-' + coupletIndex;
for (var i = 0; i < narrators.length; i++) {
- $(comboId).append(new Option(narrators[i].replace(/<\/?[^>]+(>|$)/g, "").replace('به خوانش ', '').replace('میخواهید شما بخوانید؟ اینجا را ببینید.', '').replace('(دریافت)', ''), i));
+ $(comboId).append(new Option(narrators[i].replace(/<\/?[^>]+(>|$)/g, "").replace('قرأت ', '').replace('کیا آپ پڑھنا چاہیں گے؟ یہاں دیکھیں.', '').replace('(ڈاؤن لوڈ)', ''), i));
}
// default the combobox to whichever recitation is currently playing at the
@@ -705,10 +705,10 @@ function playCouplet(coupletIndex) {
var audioControl = document.getElementById('audio-' + String(recitaionIds[recitationIndex]));
audioControl.play();
var buttonList = '#listen-' + coupletIndex;
- $(buttonList).text('در حال دریافت خوانش ...');
+ $(buttonList).text('قرأت ڈاؤن لوڈ ہو رہی ہے ...');
setTimeout(function () {
audioControl.currentTime = verseStart;
- $(buttonList).text('در حال خواندن');
+ $(buttonList).text('پڑھا جا رہا ہے');
}, 100);
foundCouplet = true;
return false;
@@ -716,7 +716,7 @@ function playCouplet(coupletIndex) {
});
if (!foundCouplet) {
- alert('در این خوانش این خط خوانده نشده است.');
+ alert('اس قرأت میں یہ سطر نہیں پڑھی گئی.');
}
}
});
@@ -741,7 +741,7 @@ function switchBookmark(poemId, coupletIndex, divSuffix) {
var bookmark = bookmarks[i];
if (bookmark.coupletIndex == coupletIndex) {
if (bookmark.privateNote != null && bookmark.privateNote != '') {
- if (!confirm('با حذف این نشان یادداشت آن نیز حذف خواهد شد. از این کار اطمینان دارید؟')) {
+ if (!confirm('نشان ہٹانے سے اس کا نوٹ بھی حذف ہو جائے گا۔ کیا آپ کو یقین ہے؟')) {
return;
}
}
@@ -823,7 +823,7 @@ function sortComments(poemId, sortOrder) {
type: "GET",
url: '?handler=CommentsPartial&poemId=' + String(poemId) + '&sortOrder=' + sortOrder,
error: function (err) {
- alert('خطا در بارگذاری حاشیهها: ' + err.responseText);
+ alert('حاشیے لوڈ کرنے میں خرابی: ' + err.responseText);
},
success: function (html) {
wrapper.innerHTML = html;
@@ -864,7 +864,7 @@ function paginateComments() {
button.id = 'comments-show-more';
button.setAttribute('role', 'button');
button.className = 'cursor-pointer comments-link';
- button.innerText = 'نمایش همهٔ حاشیهها (' + toPersianNumber(roots.length - shown) + ' مورد دیگر)';
+ button.innerText = 'تمام حاشیے دکھائیں (' + toPersianNumber(roots.length - shown) + ' مزید)';
button.onclick = function () {
for (var i = shown; i < roots.length; i++) {
roots[i].style.display = '';
@@ -903,7 +903,7 @@ function revealCommentFromUrlHash() {
function rateComment(commentId, value, loggedIn, divSuffix) {
if (!loggedIn) {
- alert('برای رأی دادن به حاشیهها لازم است با نام کاربری خود وارد دیوان شوید.');
+ alert('حاشیوں کو ووٹ دینے کے لیے دیوان میں داخل ہوں.');
return;
}
@@ -923,7 +923,7 @@ function rateComment(commentId, value, loggedIn, divSuffix) {
value: newValue
},
error: function (err) {
- alert('خطا در ثبت رأی: ' + err.responseText);
+ alert('ووٹ درج کرنے میں خرابی: ' + err.responseText);
},
success: function (result) {
_applyCommentRatingResult(commentId, divSuffix, result);
@@ -1090,7 +1090,7 @@ async function webSharePoem() {
function copyPoemText() {
var text = getPoemText();
navigator.clipboard.writeText(text);
- alert('متن در حافظه رونوشت شد.');
+ alert('متن نقل ہو گیا.');
}
function copyPoemLink() {
@@ -1099,7 +1099,7 @@ function copyPoemLink() {
url = url.substring(0, url.indexOf('#'));
}
navigator.clipboard.writeText(url);
- alert('نشانی در حافظه رونوشت شد.');
+ alert('ربط نقل ہو گیا.');
}
function copyCoupletUrl(coupletIndex) {
@@ -1109,7 +1109,7 @@ function copyCoupletUrl(coupletIndex) {
}
url += ('#bn' + String(coupletIndex + 1));
navigator.clipboard.writeText(url);
- alert('نشانی در حافظه رونوشت شد.');
+ alert('ربط نقل ہو گیا.');
}
function getCoupletText(coupletIndex) {
@@ -1132,7 +1132,7 @@ async function webShareCouplet(coupletIndex) {
try {
await navigator.share({ title, text, url });
} catch (error) {
- alert('از همرسانی روی مرورگر جاری شما پشتیبانی نمیشود.')
+ alert('آپ کا براؤزر شیئر کرنے کی سہولت نہیں رکھتا.')
}
}
@@ -1140,13 +1140,13 @@ async function webShareCouplet(coupletIndex) {
function copyCoupletText(coupletIndex) {
var text = getCoupletText(coupletIndex);
navigator.clipboard.writeText(text);
- alert('متن در حافظه رونوشت شد.');
+ alert('متن نقل ہو گیا.');
}
function copySummeriesText() {
var text = getSummeriesText();
navigator.clipboard.writeText(text);
- alert('متن در حافظه رونوشت شد.');
+ alert('متن نقل ہو گیا.');
}
@@ -1163,7 +1163,7 @@ function postComment(coupletIndex, buttonSelector) {
e.preventDefault(); // avoid to execute the actual submit of the form.
- $(buttonSelector).text('در حال درج حاشیه ...');
+ $(buttonSelector).text('حاشیہ درج ہو رہا ہے ...');
$(buttonSelector).prop("disabled", true);
$('#comment-error').remove();
@@ -1184,7 +1184,7 @@ function postComment(coupletIndex, buttonSelector) {
url: url,
data: form.serialize(), // serializes the form's elements.
error: function () {
- $(buttonSelector).text('درج حاشیه');
+ $(buttonSelector).text('حاشیہ لکھیں');
$(buttonSelector).prop("disabled", false);
},
success: function (data) {
@@ -1197,7 +1197,7 @@ function postComment(coupletIndex, buttonSelector) {
if (parent2 != null)
$rendered.clone(true).appendTo(parent2);
}
- $(buttonSelector).text('درج حاشیه');
+ $(buttonSelector).text('حاشیہ لکھیں');
$(buttonSelector).prop("disabled", false);
if (!hadAnyError) {
form[0].reset();
@@ -1211,7 +1211,7 @@ function postComment(coupletIndex, buttonSelector) {
function replyComment(commentId, loggedIn, divSuffix) {
if (!loggedIn) {
- alert('برای پاسخگویی لازم است با نام کاربری خود وارد دیوان شوید.');
+ alert('جواب دینے کے لیے دیوان میں داخل ہوں.');
return;
}
$("#refComment").html($('#comment-text-' + commentId + divSuffix).html());
@@ -1226,7 +1226,7 @@ function postReplyComment() {
e.preventDefault(); // avoid to execute the actual submit of the form.
- $('#replycomment').text('در حال درج پاسخ به حاشیه ...');
+ $('#replycomment').text('جواب درج ہو رہا ہے ...');
$('#replycomment').prop("disabled", true);
$('#comment-error').remove();
@@ -1240,7 +1240,7 @@ function postReplyComment() {
url: url,
data: form.serialize(), // serializes the form's elements.
error: function () {
- $('#replycomment').text('درج پاسخ به حاشیه');
+ $('#replycomment').text('حاشیے کا جواب لکھیں');
$('#replycomment').prop("disabled", false);
},
success: function (data) {
@@ -1263,7 +1263,7 @@ function postReplyComment() {
}
function deleteMyComment(commentId, coupletIndex) {
- if (!confirm('آیا از حذف این حاشیه اطمینان دارید؟'))
+ if (!confirm('کیا آپ یہ حاشیہ حذف کرنا چاہتے ہیں؟'))
return;
var url = '?handler=MyComment';
@@ -1290,7 +1290,7 @@ function deleteMyComment(commentId, coupletIndex) {
}
function deleteMistake(mistakeId) {
- if (!confirm('آیا از حذف این اشکال اطمینان دارید؟'))
+ if (!confirm('کیا آپ یہ خامی حذف کرنا چاہتے ہیں؟'))
return;
var url = '?handler=Mistake';
@@ -1311,7 +1311,7 @@ function deleteMistake(mistakeId) {
}
function editMistakeReason(mistakeId, reasonText) {
- var edited = prompt('ویرایش', reasonText);
+ var edited = prompt('ترمیم', reasonText);
if (edited == null) return;
@@ -1326,7 +1326,7 @@ function editMistakeReason(mistakeId, reasonText) {
reasonText: edited,
},
success: function () {
- alert('انجام شد.');
+ alert('ہو گیا.');
},
});
}
@@ -1347,7 +1347,7 @@ function editComment() {
e.preventDefault(); // avoid to execute the actual submit of the form.
- $('#editcomment').text('در حال ویرایش حاشیه ...');
+ $('#editcomment').text('حاشیے میں ترمیم ہو رہی ہے ...');
$('#editcomment').prop("disabled", true);
var url = '?handler=MyComment';
@@ -1367,7 +1367,7 @@ function editComment() {
},
error: function (xhr) {
tryShowSanitizerErrorFromXhr(xhr, originalHtml);
- $('#editcomment').text('ویرایش حاشیه');
+ $('#editcomment').text('حاشیے میں ترمیم');
$('#editcomment').prop("disabled", false);
},
success: function () {
@@ -1384,7 +1384,7 @@ function editComment() {
}
}
- $('#editcomment').text('ویرایش حاشیه');
+ $('#editcomment').text('حاشیے میں ترمیم');
$('#editcomment').prop("disabled", false);
},
@@ -1399,7 +1399,7 @@ function copyCommentUrl(commentId) {
}
url += ('#comment-' + String(commentId));
navigator.clipboard.writeText(url);
- alert('نشانی در حافظه رونوشت شد.');
+ alert('ربط نقل ہو گیا.');
}
function onSelectedPoetChanged() {
@@ -1422,7 +1422,7 @@ function onSelectedPoetChanged() {
}
option = document.createElement('option');
option.setAttribute('value', 0);
- option.appendChild(document.createTextNode('در همهٔ بخشها'));
+ option.appendChild(document.createTextNode('تمام حصوں میں'));
select.appendChild(option);
for (var i = 0; i < poet.cat.children.length; i++) {
option = document.createElement('option');
@@ -1443,7 +1443,7 @@ function loadMoreRelatedPoems(poemId, skip, rhythm, rhymeLetters, poemFullUrl, s
}
var divParent = document.getElementById('load-more-related-' + String(sectionIndex));
var imgeId = 'load-more-related-loadingimg-' + String(sectionIndex);
- divParent.innerHTML = divParent.innerHTML + '';
+ divParent.innerHTML = divParent.innerHTML + '';
$.ajax({
type: "GET",
@@ -1467,7 +1467,7 @@ function loadMoreRelatedFromPoet(poetId, rhythm, rhymeLetters, skipPoemFullUrl1,
var divId = 'more-related-placeholder-' + String(poetId) + '-' + String(sectionIndex);
var divParent = document.getElementById(divId);
var imgeId = 'load-more-related-loadingimg-' + String(poetId) + '-' + String(sectionIndex);
- divParent.innerHTML = divParent.innerHTML + '';
+ divParent.innerHTML = divParent.innerHTML + '';
$.ajax({
type: "GET",
@@ -1555,10 +1555,10 @@ function persianizeNumerals(value) {
}
// Home page (Index.cshtml) only: the top search box (#s) used to just submit a full poem search
-// (POST-free GET to /search) and the home page separately had its own "جستجوی سخنور" inline box
+// (POST-free GET to /search) and the home page separately had its own "شاعر تلاش کریں" inline box
// (#findpoet, now removed) that filtered the poet list live as you typed. This merges that second
// behavior into the top box: typing filters poets live (same underlying match as onInlineSearch,
-// against every ".poet" element's data-value), while submitting the form (Enter / the "بیاب" button)
+// against every ".poet" element's data-value), while submitting the form (Enter / the "تلاش کریں" button)
// still does the original full poem search unchanged - so nothing about submission itself changes.
// homeBooksCache is filled once by initHomeBooksShelf() further below - the same catalog backing
// the "قفسهٔ کتابها" shelf is reused here so a search also matches book names, not just poets.
@@ -1712,7 +1712,7 @@ function buildBookSpine(book) {
var closeBtn = document.createElement('button');
closeBtn.type = 'button';
closeBtn.className = 'spine-cover-close';
- closeBtn.setAttribute('aria-label', 'بستن');
+ closeBtn.setAttribute('aria-label', 'بند کریں');
closeBtn.textContent = '×';
closeBtn.addEventListener('click', function (e) {
e.stopPropagation();
@@ -1912,7 +1912,7 @@ function loadCatRecitations(catId) {
var divParent = document.getElementById('recitations-section');
var imgElementId = 'loadingimg';
- divParent.innerHTML = divParent.innerHTML + '