Expand internationalization support

This commit is contained in:
Trevor Slocum 2020-10-01 13:45:48 -07:00
parent e2202922c8
commit f155e1d4ad
2 changed files with 101 additions and 83 deletions

View File

@ -204,8 +204,10 @@ EOF;
EOF; EOF;
} }
if (TINYIB_REQMOD == 'files' || TINYIB_REQMOD == 'all') { if (TINYIB_REQMOD == 'all') {
$reqmod_html = '<li>All posts' . (TINYIB_REQMOD == 'files' ? ' with a file attached' : '') . ' will be moderated before being shown.</li>'; $reqmod_html = '<li>' . __('All posts are moderated before being shown.') . '</li>';
} else if (TINYIB_REQMOD == 'files') {
$reqmod_html = '<li>' . __('All posts with a file attached are moderated before being shown.') . '</li>';
} }
$thumbnails_html = ''; $thumbnails_html = '';
@ -352,11 +354,11 @@ function buildPost($post, $res) {
} }
if ($post["stickied"] == 1) { if ($post["stickied"] == 1) {
$reflink .= ' <img src="sticky.png" alt="Stickied" title="Stickied" width="16" height="16">'; $reflink .= ' <img src="sticky.png" alt="' . __('Stickied') . '" title="' . __('Stickied') . '" width="16" height="16">';
} }
if ($post["locked"] == 1) { if ($post["locked"] == 1) {
$reflink .= ' <img src="lock.png" alt="Locked" title="Locked" width="16" height="16">'; $reflink .= ' <img src="lock.png" alt="' . __('Locked') . '" title="' . __('Locked') . '" width="16" height="16">';
} }
if (!isset($post["omitted"])) { if (!isset($post["omitted"])) {

View File

@ -1,8 +1,8 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2020-09-27 07:27-0700\n" "POT-Creation-Date: 2020-10-01 13:45-0700\n"
"PO-Revision-Date: 2020-09-27 07:28-0700\n" "PO-Revision-Date: 2020-10-01 13:45-0700\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: en\n" "Language: en\n"
@ -173,7 +173,7 @@ msgstr ""
msgid "Form data was lost. Please go back and try again." msgid "Form data was lost. Please go back and try again."
msgstr "" msgstr ""
#: inc/functions.php:214 inc/html.php:1022 #: inc/functions.php:214 inc/html.php:1024
msgid "Anonymous" msgid "Anonymous"
msgstr "" msgstr ""
@ -244,7 +244,7 @@ msgstr ""
msgid "Supported file types are %s." msgid "Supported file types are %s."
msgstr "" msgstr ""
#: inc/html.php:82 inc/html.php:774 inc/html.php:804 #: inc/html.php:82 inc/html.php:776 inc/html.php:806
msgid "Submit" msgid "Submit"
msgstr "" msgstr ""
@ -291,281 +291,297 @@ msgstr ""
msgid "(paste a YouTube URL)" msgid "(paste a YouTube URL)"
msgstr "" msgstr ""
#: inc/html.php:218 #: inc/html.php:208
msgid "All posts are moderated before being shown."
msgstr ""
#: inc/html.php:210
msgid "All posts with a file attached are moderated before being shown."
msgstr ""
#: inc/html.php:220
#, php-format #, php-format
msgid "Images greater than %s will be thumbnailed." msgid "Images greater than %s will be thumbnailed."
msgstr "" msgstr ""
#: inc/html.php:223 #: inc/html.php:225
#, php-format #, php-format
msgid "Currently %s unique user posts." msgid "Currently %s unique user posts."
msgstr "" msgstr ""
#: inc/html.php:236 #: inc/html.php:238
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#: inc/html.php:250 #: inc/html.php:252
msgid "E-mail" msgid "E-mail"
msgstr "" msgstr ""
#: inc/html.php:264 #: inc/html.php:266
msgid "Subject" msgid "Subject"
msgstr "" msgstr ""
#: inc/html.php:278 #: inc/html.php:280
msgid "Message" msgid "Message"
msgstr "" msgstr ""
#: inc/html.php:297 inc/html.php:563 #: inc/html.php:299 inc/html.php:565
msgid "Password" msgid "Password"
msgstr "" msgstr ""
#: inc/html.php:298 #: inc/html.php:300
msgid "(for post and file deletion)" msgid "(for post and file deletion)"
msgstr "" msgstr ""
#: inc/html.php:372 #: inc/html.php:357
msgid "Stickied"
msgstr ""
#: inc/html.php:361
msgid "Locked"
msgstr ""
#: inc/html.php:374
msgid "Embed:" msgid "Embed:"
msgstr "" msgstr ""
#: inc/html.php:372 #: inc/html.php:374
msgid "File:" msgid "File:"
msgstr "" msgstr ""
#: inc/html.php:469 #: inc/html.php:471
msgid "Reply" msgid "Reply"
msgstr "" msgstr ""
#: inc/html.php:475 #: inc/html.php:477
msgid "Post truncated. Click Reply to view." msgid "Post truncated. Click Reply to view."
msgstr "" msgstr ""
#: inc/html.php:486 #: inc/html.php:488
msgid "1 post omitted. Click Reply to view." msgid "1 post omitted. Click Reply to view."
msgstr "" msgstr ""
#: inc/html.php:488 #: inc/html.php:490
#, php-format #, php-format
msgid "%d posts omitted. Click Reply to view." msgid "%d posts omitted. Click Reply to view."
msgstr "" msgstr ""
#: inc/html.php:504 inc/html.php:539 inc/html.php:551 #: inc/html.php:506 inc/html.php:541 inc/html.php:553
msgid "Catalog" msgid "Catalog"
msgstr "" msgstr ""
#: inc/html.php:514 #: inc/html.php:516
msgid "Previous" msgid "Previous"
msgstr "" msgstr ""
#: inc/html.php:527 #: inc/html.php:529
msgid "Next" msgid "Next"
msgstr "" msgstr ""
#: inc/html.php:551 inc/html.php:553 inc/html.php:694 #: inc/html.php:553 inc/html.php:555 inc/html.php:696
msgid "Return" msgid "Return"
msgstr "" msgstr ""
#: inc/html.php:553 #: inc/html.php:555
msgid "Posting mode: Reply" msgid "Posting mode: Reply"
msgstr "" msgstr ""
#: inc/html.php:561 #: inc/html.php:563
msgid "Manage" msgid "Manage"
msgstr "" msgstr ""
#: inc/html.php:562 #: inc/html.php:564
msgid "Style" msgid "Style"
msgstr "" msgstr ""
#: inc/html.php:564 inc/html.php:946 #: inc/html.php:566 inc/html.php:948
msgid "Delete" msgid "Delete"
msgstr "" msgstr ""
#: inc/html.php:565 #: inc/html.php:567
msgid "Delete Post" msgid "Delete Post"
msgstr "" msgstr ""
#: inc/html.php:699 inc/html.php:973 #: inc/html.php:701 inc/html.php:975
msgid "Status" msgid "Status"
msgstr "" msgstr ""
#: inc/html.php:701 #: inc/html.php:703
msgid "Bans" msgid "Bans"
msgstr "" msgstr ""
#: inc/html.php:703 #: inc/html.php:705
msgid "Moderate Post" msgid "Moderate Post"
msgstr "" msgstr ""
#: inc/html.php:703 #: inc/html.php:705
msgid "Raw Post" msgid "Raw Post"
msgstr "" msgstr ""
#: inc/html.php:705 #: inc/html.php:707
msgid "Rebuild All" msgid "Rebuild All"
msgstr "" msgstr ""
#: inc/html.php:708 #: inc/html.php:710
msgid "Update" msgid "Update"
msgstr "" msgstr ""
#: inc/html.php:711 #: inc/html.php:713
msgid "Migrate Database" msgid "Migrate Database"
msgstr "" msgstr ""
#: inc/html.php:713 #: inc/html.php:715
msgid "Log Out" msgid "Log Out"
msgstr "" msgstr ""
#: inc/html.php:719 #: inc/html.php:721
msgid "Manage mode" msgid "Manage mode"
msgstr "" msgstr ""
#: inc/html.php:751 #: inc/html.php:753
msgid "Log In" msgid "Log In"
msgstr "" msgstr ""
#: inc/html.php:752 #: inc/html.php:754
msgid "Enter an administrator or moderator password" msgid "Enter an administrator or moderator password"
msgstr "" msgstr ""
#: inc/html.php:768 #: inc/html.php:770
msgid "Ban an IP address" msgid "Ban an IP address"
msgstr "" msgstr ""
#: inc/html.php:769 #: inc/html.php:771
msgid "IP Address:" msgid "IP Address:"
msgstr "" msgstr ""
#: inc/html.php:770 #: inc/html.php:772
msgid "Expire(sec):" msgid "Expire(sec):"
msgstr "" msgstr ""
#: inc/html.php:771 #: inc/html.php:773
msgid "Reason:" msgid "Reason:"
msgstr "" msgstr ""
#: inc/html.php:772 #: inc/html.php:774
msgid "never" msgid "never"
msgstr "" msgstr ""
#: inc/html.php:773 #: inc/html.php:775
msgid "optional" msgid "optional"
msgstr "" msgstr ""
#: inc/html.php:792 #: inc/html.php:794
msgid "IP Address" msgid "IP Address"
msgstr "" msgstr ""
#: inc/html.php:792 #: inc/html.php:794
msgid "Set At" msgid "Set At"
msgstr "" msgstr ""
#: inc/html.php:792 #: inc/html.php:794
msgid "Expires" msgid "Expires"
msgstr "" msgstr ""
#: inc/html.php:792 #: inc/html.php:794
msgid "Reason" msgid "Reason"
msgstr "" msgstr ""
#: inc/html.php:794 #: inc/html.php:796
msgid "Does not expire" msgid "Does not expire"
msgstr "" msgstr ""
#: inc/html.php:796 #: inc/html.php:798
msgid "lift" msgid "lift"
msgstr "" msgstr ""
#: inc/html.php:823 #: inc/html.php:825
msgid "This will delete the entire thread below." msgid "This will delete the entire thread below."
msgstr "" msgstr ""
#: inc/html.php:823 #: inc/html.php:825
msgid "This will delete the post below." msgid "This will delete the post below."
msgstr "" msgstr ""
#: inc/html.php:824 #: inc/html.php:826
msgid "Thread" msgid "Thread"
msgstr "" msgstr ""
#: inc/html.php:824 #: inc/html.php:826
msgid "Post" msgid "Post"
msgstr "" msgstr ""
#: inc/html.php:830 #: inc/html.php:832
msgid "Un-sticky" msgid "Un-sticky"
msgstr "" msgstr ""
#: inc/html.php:830 #: inc/html.php:832
msgid "Sticky" msgid "Sticky"
msgstr "" msgstr ""
#: inc/html.php:831 #: inc/html.php:833
msgid "Return this thread to a normal state." msgid "Return this thread to a normal state."
msgstr "" msgstr ""
#: inc/html.php:831 #: inc/html.php:833
msgid "Keep this thread at the top of the board." msgid "Keep this thread at the top of the board."
msgstr "" msgstr ""
#: inc/html.php:845 #: inc/html.php:847
msgid "Unlock" msgid "Unlock"
msgstr "" msgstr ""
#: inc/html.php:845 #: inc/html.php:847
msgid "Lock" msgid "Lock"
msgstr "" msgstr ""
#: inc/html.php:846 #: inc/html.php:848
msgid "Allow replying to this thread." msgid "Allow replying to this thread."
msgstr "" msgstr ""
#: inc/html.php:846 #: inc/html.php:848
msgid "Disallow replying to this thread." msgid "Disallow replying to this thread."
msgstr "" msgstr ""
#: inc/html.php:867 #: inc/html.php:869
msgid "Action" msgid "Action"
msgstr "" msgstr ""
#: inc/html.php:918 #: inc/html.php:920
msgid "thread" msgid "thread"
msgstr "" msgstr ""
#: inc/html.php:918 #: inc/html.php:920
msgid "threads" msgid "threads"
msgstr "" msgstr ""
#: inc/html.php:918 #: inc/html.php:920
msgid "ban" msgid "ban"
msgstr "" msgstr ""
#: inc/html.php:918 #: inc/html.php:920
msgid "bans" msgid "bans"
msgstr "" msgstr ""
#: inc/html.php:942 #: inc/html.php:944
msgid "Approve" msgid "Approve"
msgstr "" msgstr ""
#: inc/html.php:944 #: inc/html.php:946
msgid "More Info" msgid "More Info"
msgstr "" msgstr ""
#: inc/html.php:952 #: inc/html.php:954
msgid "Pending posts" msgid "Pending posts"
msgstr "" msgstr ""
#: inc/html.php:970 #: inc/html.php:972
msgid "Moderate" msgid "Moderate"
msgstr "" msgstr ""
#: inc/html.php:974 #: inc/html.php:976
msgid "Info" msgid "Info"
msgstr "" msgstr ""
#: inc/html.php:975 #: inc/html.php:977
msgid "Recent posts" msgid "Recent posts"
msgstr "" msgstr ""