Fix translation issue when moderating post

Resolves #270.
This commit is contained in:
Trevor Slocum 2023-01-05 10:22:07 -08:00
parent 2befc70988
commit baba988f0a
2 changed files with 72 additions and 71 deletions

View File

@ -1368,7 +1368,7 @@ function manageModeratePost($post, $compact=false) {
} }
} }
} else { } else {
$delete_info = __('Belongs to ' . postLink('>>' . $post['id']) . '.'); $delete_info = sprintf(__('Belongs to %s'), postLink('>>' . $post['id']));
} }
$sticky_html = ""; $sticky_html = "";

View File

@ -1,8 +1,8 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2021-08-05 11:29-0700\n" "POT-Creation-Date: 2023-01-05 10:20-0800\n"
"PO-Revision-Date: 2021-08-05 11:29-0700\n" "PO-Revision-Date: 2023-01-05 10:20-0800\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: en\n" "Language: en\n"
@ -17,201 +17,201 @@ msgstr ""
"X-Poedit-SearchPath-1: inc/functions.php\n" "X-Poedit-SearchPath-1: inc/functions.php\n"
"X-Poedit-SearchPath-2: inc/html.php\n" "X-Poedit-SearchPath-2: inc/html.php\n"
#: imgboard.php:44 #: imgboard.php:41
msgid "Click here to go back" msgid "Click here to go back"
msgstr "" msgstr ""
#: imgboard.php:70 #: imgboard.php:62
msgid "TINYIB_HCAPTCHA_SITE and TINYIB_HCAPTCHA_SECRET must be configured." msgid "TINYIB_HCAPTCHA_SITE and TINYIB_HCAPTCHA_SECRET must be configured."
msgstr "" msgstr ""
#: imgboard.php:74 #: imgboard.php:66
msgid "TINYIB_RECAPTCHA_SITE and TINYIB_RECAPTCHA_SECRET must be configured." msgid "TINYIB_RECAPTCHA_SITE and TINYIB_RECAPTCHA_SECRET must be configured."
msgstr "" msgstr ""
#: imgboard.php:82 #: imgboard.php:74
msgid "TINYIB_TRIPSEED must be configured." msgid "TINYIB_TRIPSEED must be configured."
msgstr "" msgstr ""
#: imgboard.php:89 imgboard.php:991 #: imgboard.php:81 imgboard.php:991
msgid "Unknown database mode specified." msgid "Unknown database mode specified."
msgstr "" msgstr ""
#: imgboard.php:250 #: imgboard.php:242
#, php-format #, php-format
msgid "Directory '%s' can not be written to. Please modify its permissions." msgid "Directory '%s' can not be written to. Please modify its permissions."
msgstr "" msgstr ""
#: imgboard.php:269 #: imgboard.php:263
msgid "Posting is currently disabled.<br>Please try again in a few moments." msgid "Posting is currently disabled.<br>Please try again in a few moments."
msgstr "" msgstr ""
#: imgboard.php:298 inc/functions.php:462 #: imgboard.php:292 inc/functions.php:482
msgid "Invalid parent thread ID supplied, unable to create post." msgid "Invalid parent thread ID supplied, unable to create post."
msgstr "" msgstr ""
#: imgboard.php:300 #: imgboard.php:294
msgid "Replies are not allowed to locked threads." msgid "Replies are not allowed to locked threads."
msgstr "" msgstr ""
#: imgboard.php:377 #: imgboard.php:371
msgid "Your post contains a blocked keyword." msgid "Your post contains a blocked keyword."
msgstr "" msgstr ""
#: imgboard.php:404 inc/html.php:1509 inc/html.php:1547 #: imgboard.php:398 inc/html.php:1509 inc/html.php:1547
msgid "Keyword" msgid "Keyword"
msgstr "" msgstr ""
#: imgboard.php:408 #: imgboard.php:402
#, php-format #, php-format
msgid "Your IP address (%1$s) is banned until %2$s." msgid "Your IP address (%1$s) is banned until %2$s."
msgstr "" msgstr ""
#: imgboard.php:410 #: imgboard.php:404
#, php-format #, php-format
msgid "Your IP address (%s) is permanently banned." msgid "Your IP address (%s) is permanently banned."
msgstr "" msgstr ""
#: imgboard.php:413 inc/html.php:1210 inc/html.php:1247 #: imgboard.php:407 inc/html.php:1210 inc/html.php:1247
msgid "Reason" msgid "Reason"
msgstr "" msgstr ""
#: imgboard.php:424 #: imgboard.php:418
msgid "Embedding a URL and uploading a file at the same time is not supported." msgid "Embedding a URL and uploading a file at the same time is not supported."
msgstr "" msgstr ""
#: imgboard.php:430 #: imgboard.php:424
#, php-format #, php-format
msgid "Invalid embed URL. Only %s URLs are supported." msgid "Invalid embed URL. Only %s URLs are supported."
msgstr "" msgstr ""
#: imgboard.php:435 imgboard.php:444 inc/functions.php:493 #: imgboard.php:429 imgboard.php:438 inc/functions.php:513
#: inc/functions.php:875 #: inc/functions.php:895
#, php-format #, php-format
msgid "That file is larger than %s." msgid "That file is larger than %s."
msgstr "" msgstr ""
#: imgboard.php:440 imgboard.php:450 #: imgboard.php:434 imgboard.php:444
msgid "Failed to download file at specified URL." msgid "Failed to download file at specified URL."
msgstr "" msgstr ""
#: imgboard.php:472 #: imgboard.php:466
msgid "Error while processing audio/video." msgid "Error while processing audio/video."
msgstr "" msgstr ""
#: imgboard.php:479 inc/functions.php:900 inc/functions.php:911 #: imgboard.php:473 inc/functions.php:920 inc/functions.php:931
msgid "Could not create thumbnail." msgid "Could not create thumbnail."
msgstr "" msgstr ""
#: imgboard.php:502 #: imgboard.php:496
msgid "upload a file or embed a URL" msgid "upload a file or embed a URL"
msgstr "" msgstr ""
#: imgboard.php:504 #: imgboard.php:498
msgid "upload a file" msgid "upload a file"
msgstr "" msgstr ""
#: imgboard.php:506 #: imgboard.php:500
msgid "embed a URL" msgid "embed a URL"
msgstr "" msgstr ""
#: imgboard.php:509 #: imgboard.php:503
#, php-format #, php-format
msgid "Please %s to start a new thread." msgid "Please %s to start a new thread."
msgstr "" msgstr ""
#: imgboard.php:515 #: imgboard.php:509
#, php-format #, php-format
msgid "Please enter a message and/or %s." msgid "Please enter a message and/or %s."
msgstr "" msgstr ""
#: imgboard.php:517 #: imgboard.php:511
msgid "Please enter a message." msgid "Please enter a message."
msgstr "" msgstr ""
#: imgboard.php:519 #: imgboard.php:513
#, php-format #, php-format
msgid "Please %s." msgid "Please %s."
msgstr "" msgstr ""
#: imgboard.php:525 #: imgboard.php:519
#, php-format #, php-format
msgid "Your %s will be shown <b>once it has been approved</b>." msgid "Your %s will be shown <b>once it has been approved</b>."
msgstr "" msgstr ""
#: imgboard.php:548 #: imgboard.php:542
msgid "Updating thread..." msgid "Updating thread..."
msgstr "" msgstr ""
#: imgboard.php:561 #: imgboard.php:555
msgid "Updating index..." msgid "Updating index..."
msgstr "" msgstr ""
#: imgboard.php:566 #: imgboard.php:560
msgid "Created staff post" msgid "Created staff post"
msgstr "" msgstr ""
#: imgboard.php:572 #: imgboard.php:566
msgid "This post has been deleted" msgid "This post has been deleted"
msgstr "" msgstr ""
#: imgboard.php:574 #: imgboard.php:568
msgid "This post requires moderation before it can be displayed" msgid "This post requires moderation before it can be displayed"
msgstr "" msgstr ""
#: imgboard.php:587 #: imgboard.php:581
msgid "Automatic refreshing is disabled." msgid "Automatic refreshing is disabled."
msgstr "" msgstr ""
#: imgboard.php:612 imgboard.php:762 #: imgboard.php:608 imgboard.php:762
msgid "Reporting is disabled." msgid "Reporting is disabled."
msgstr "" msgstr ""
#: imgboard.php:617 imgboard.php:716 #: imgboard.php:613 imgboard.php:714
msgid "" msgid ""
"Sorry, an invalid post identifier was sent. Please go back, refresh the " "Sorry, an invalid post identifier was sent. Please go back, refresh the "
"page, and try again." "page, and try again."
msgstr "" msgstr ""
#: imgboard.php:621 #: imgboard.php:617
msgid "Moderators have determined that post does not break any rules." msgid "Moderators have determined that post does not break any rules."
msgstr "" msgstr ""
#: imgboard.php:626 #: imgboard.php:622
msgid "You have already submitted a report for that post." msgid "You have already submitted a report for that post."
msgstr "" msgstr ""
#: imgboard.php:662 inc/html.php:227 inc/html.php:969 #: imgboard.php:658 inc/html.php:227 inc/html.php:969
msgid "(enter the text below)" msgid "(enter the text below)"
msgstr "" msgstr ""
#: imgboard.php:666 #: imgboard.php:662
msgid "Please complete a CAPTCHA to submit your report" msgid "Please complete a CAPTCHA to submit your report"
msgstr "" msgstr ""
#: imgboard.php:667 inc/html.php:117 inc/html.php:1113 inc/html.php:1165 #: imgboard.php:663 inc/html.php:117 inc/html.php:1113 inc/html.php:1165
#: inc/html.php:1213 inc/html.php:1261 #: inc/html.php:1213 inc/html.php:1261
msgid "Submit" msgid "Submit"
msgstr "" msgstr ""
#: imgboard.php:689 #: imgboard.php:685
msgid "Post reported." msgid "Post reported."
msgstr "" msgstr ""
#: imgboard.php:693 #: imgboard.php:691
msgid "Tick the box next to a post and click \"Delete\" to delete it." msgid "Tick the box next to a post and click \"Delete\" to delete it."
msgstr "" msgstr ""
#: imgboard.php:697 #: imgboard.php:695
msgid "" msgid ""
"Post deletion is currently disabled.<br>Please try again in a few moments." "Post deletion is currently disabled.<br>Please try again in a few moments."
msgstr "" msgstr ""
#: imgboard.php:724 #: imgboard.php:722
msgid "Post deleted." msgid "Post deleted."
msgstr "" msgstr ""
#: imgboard.php:726 #: imgboard.php:724
msgid "Invalid password." msgid "Invalid password."
msgstr "" msgstr ""
@ -411,90 +411,90 @@ msgstr ""
msgid "Password updated" msgid "Password updated"
msgstr "" msgstr ""
#: inc/functions.php:321 #: inc/functions.php:341
msgid "Please enter the CAPTCHA text." msgid "Please enter the CAPTCHA text."
msgstr "" msgstr ""
#: inc/functions.php:323 #: inc/functions.php:343
msgid "" msgid ""
"Incorrect CAPTCHA text entered. Please try again.<br>Click the image to " "Incorrect CAPTCHA text entered. Please try again.<br>Click the image to "
"retrieve a new CAPTCHA." "retrieve a new CAPTCHA."
msgstr "" msgstr ""
#: inc/functions.php:372 #: inc/functions.php:392
#, php-format #, php-format
msgid "" msgid ""
"Please shorten your message, or post it in multiple parts. Your message is " "Please shorten your message, or post it in multiple parts. Your message is "
"%1$d characters long, and the maximum allowed is %2$d." "%1$d characters long, and the maximum allowed is %2$d."
msgstr "" msgstr ""
#: inc/functions.php:405 #: inc/functions.php:425
msgid "Invalid key." msgid "Invalid key."
msgstr "" msgstr ""
#: inc/functions.php:416 #: inc/functions.php:436
msgid "Invalid username or password." msgid "Invalid username or password."
msgstr "" msgstr ""
#: inc/functions.php:496 #: inc/functions.php:516
#, php-format #, php-format
msgid "" msgid ""
"The uploaded file exceeds the upload_max_filesize directive (%s) in php.ini." "The uploaded file exceeds the upload_max_filesize directive (%s) in php.ini."
msgstr "" msgstr ""
#: inc/functions.php:499 #: inc/functions.php:519
msgid "The uploaded file was only partially uploaded." msgid "The uploaded file was only partially uploaded."
msgstr "" msgstr ""
#: inc/functions.php:502 #: inc/functions.php:522
msgid "No file was uploaded." msgid "No file was uploaded."
msgstr "" msgstr ""
#: inc/functions.php:505 #: inc/functions.php:525
msgid "Missing a temporary folder." msgid "Missing a temporary folder."
msgstr "" msgstr ""
#: inc/functions.php:508 #: inc/functions.php:528
msgid "Failed to write file to disk" msgid "Failed to write file to disk"
msgstr "" msgstr ""
#: inc/functions.php:511 #: inc/functions.php:531
msgid "Unable to save the uploaded file." msgid "Unable to save the uploaded file."
msgstr "" msgstr ""
#: inc/functions.php:519 #: inc/functions.php:539
#, php-format #, php-format
msgid "" msgid ""
"Duplicate file uploaded. That file has already been posted <a href=\"%s" "Duplicate file uploaded. That file has already been posted <a "
"\">here</a>." "href=\"%s\">here</a>."
msgstr "" msgstr ""
#: inc/functions.php:611 inc/functions.php:684 #: inc/functions.php:631 inc/functions.php:704
msgid "" msgid ""
"Unable to read the uploaded file while creating its thumbnail. A common " "Unable to read the uploaded file while creating its thumbnail. A common "
"cause for this is an incorrect extension when the file is actually of a " "cause for this is an incorrect extension when the file is actually of a "
"different type." "different type."
msgstr "" msgstr ""
#: inc/functions.php:836 #: inc/functions.php:856
msgid "File transfer failure. Please retry the submission." msgid "File transfer failure. Please retry the submission."
msgstr "" msgstr ""
#: inc/functions.php:845 #: inc/functions.php:865
msgid "" msgid ""
"Failed to read the MIME type and size of the uploaded file. Please retry the " "Failed to read the MIME type and size of the uploaded file. Please retry the "
"submission." "submission."
msgstr "" msgstr ""
#: inc/functions.php:859 inc/functions.php:864 #: inc/functions.php:879 inc/functions.php:884
msgid "Could not copy uploaded file." msgid "Could not copy uploaded file."
msgstr "" msgstr ""
#: inc/functions.php:872 #: inc/functions.php:892
msgid "File transfer failure. Please go back and try again." msgid "File transfer failure. Please go back and try again."
msgstr "" msgstr ""
#: inc/functions.php:928 inc/functions.php:951 #: inc/functions.php:948 inc/functions.php:971
msgid "Sorry, your video appears to be corrupt." msgid "Sorry, your video appears to be corrupt."
msgstr "" msgstr ""
@ -958,7 +958,8 @@ msgid "%d replies will be deleted."
msgstr "" msgstr ""
#: inc/html.php:1371 #: inc/html.php:1371
msgid "Belongs to " #, php-format
msgid "Belongs to %s"
msgstr "" msgstr ""
#: inc/html.php:1378 #: inc/html.php:1378