be more careful with comic posts

This commit is contained in:
John Bintz 2009-10-12 19:39:17 -04:00
parent 5eccf0eec2
commit 02600786c9
2 changed files with 121 additions and 109 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: comicpress-manager 1.4.8\n" "Project-Id-Version: comicpress-manager 1.4.8\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-10-07 08:27-0400\n" "POT-Creation-Date: 2009-10-07 09:30-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -629,7 +629,7 @@ msgstr ""
msgid "You'll be generating: %s." msgid "You'll be generating: %s."
msgstr "" msgstr ""
#: pages/write_comic_post.php:68 comicpress_manager_admin.php:1835 #: pages/write_comic_post.php:68 comicpress_manager_admin.php:1833
msgid "File:" msgid "File:"
msgstr "" msgstr ""
@ -1149,15 +1149,15 @@ msgstr ""
msgid "Managing ComicPress" msgid "Managing ComicPress"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1029 #: comicpress_manager_admin.php:1027
msgid "View post" msgid "View post"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1030 #: comicpress_manager_admin.php:1028
msgid "Edit post" msgid "Edit post"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1163 #: comicpress_manager_admin.php:1161
#, php-format #, php-format
msgid "" msgid ""
"<strong>You don't have enough memory available to PHP and GD to process this " "<strong>You don't have enough memory available to PHP and GD to process this "
@ -1166,14 +1166,14 @@ msgid ""
"information, read the ComicPress Manager FAQ." "information, read the ComicPress Manager FAQ."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1408 #: comicpress_manager_admin.php:1406
#, php-format #, php-format
msgid "" msgid ""
"<strong>The file you uploaded was too large.</strong> The max allowed " "<strong>The file you uploaded was too large.</strong> The max allowed "
"filesize for uploads to your server is %s." "filesize for uploads to your server is %s."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1413 #: comicpress_manager_admin.php:1411
#, php-format #, php-format
msgid "" msgid ""
"<strong>There was an error in uploading.</strong> The <a href='http://php." "<strong>There was an error in uploading.</strong> The <a href='http://php."
@ -1181,171 +1181,171 @@ msgid ""
"%s." "%s."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1443 comicpress_manager_admin.php:1543 #: comicpress_manager_admin.php:1441 comicpress_manager_admin.php:1541
#: comicpress_manager_admin.php:1574 #: comicpress_manager_admin.php:1572
#, php-format #, php-format
msgid "Uploaded file %1$s renamed to %2$s." msgid "Uploaded file %1$s renamed to %2$s."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1492 #: comicpress_manager_admin.php:1490
#, php-format #, php-format
msgid "The Zip extension is not installed. %s was not processed." msgid "The Zip extension is not installed. %s was not processed."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1527 #: comicpress_manager_admin.php:1525
#, php-format #, php-format
msgid "Uploaded file <strong>%1$s</strong> renamed to <strong>%2$s</strong>." msgid "Uploaded file <strong>%1$s</strong> renamed to <strong>%2$s</strong>."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1549 #: comicpress_manager_admin.php:1547
#, php-format #, php-format
msgid "Provided override date %s is not parseable by strtotime()." msgid "Provided override date %s is not parseable by strtotime()."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1707 #: comicpress_manager_admin.php:1705
msgid "<strong>The following filenames were invalid:</strong> " msgid "<strong>The following filenames were invalid:</strong> "
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1711 #: comicpress_manager_admin.php:1709
msgid "" msgid ""
"<strong>According to GD, the following files were invalid image files:</" "<strong>According to GD, the following files were invalid image files:</"
"strong> " "strong> "
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1715 #: comicpress_manager_admin.php:1713
msgid "<strong>The following files were uploaded:</strong> " msgid "<strong>The following files were uploaded:</strong> "
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1719 #: comicpress_manager_admin.php:1717
msgid "" msgid ""
"<strong>The following files were not uploaded, or the permissions on the " "<strong>The following files were not uploaded, or the permissions on the "
"uploaded file do not allow reading the file.</strong> Check the permissions " "uploaded file do not allow reading the file.</strong> Check the permissions "
"of both the target directory and the upload directory and try again: " "of both the target directory and the upload directory and try again: "
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1723 #: comicpress_manager_admin.php:1721
msgid "<strong>Thumbnails were written for the following files:</strong> " msgid "<strong>Thumbnails were written for the following files:</strong> "
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1727 #: comicpress_manager_admin.php:1725
msgid "" msgid ""
"<strong>Thumbnails were not written for the following files.</strong> Check " "<strong>Thumbnails were not written for the following files.</strong> Check "
"the permissions on the rss &amp; archive folders, and make sure the files " "the permissions on the rss &amp; archive folders, and make sure the files "
"you're processing are valid image files: " "you're processing are valid image files: "
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1731 #: comicpress_manager_admin.php:1729
msgid "" msgid ""
"<strong>New thumbnails were not needed for the following files:</strong> " "<strong>New thumbnails were not needed for the following files:</strong> "
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1735 #: comicpress_manager_admin.php:1733
msgid "" msgid ""
"<strong>GD was able to recognize the filetypes of these files and change " "<strong>GD was able to recognize the filetypes of these files and change "
"their extensions to match:</strong> " "their extensions to match:</strong> "
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1739 #: comicpress_manager_admin.php:1737
msgid "" msgid ""
"<strong>The following JPEG files have been converted from CMYK to RGB:</" "<strong>The following JPEG files have been converted from CMYK to RGB:</"
"strong> " "strong> "
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1748 #: comicpress_manager_admin.php:1746
msgid "<strong>New posts created.</strong> View them from the links below:" msgid "<strong>New posts created.</strong> View them from the links below:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1752 #: comicpress_manager_admin.php:1750
msgid "<strong>No new posts created.</strong>" msgid "<strong>No new posts created.</strong>"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1764 #: comicpress_manager_admin.php:1762
msgid "" msgid ""
"<strong>The following files would have created duplicate posts.</strong> " "<strong>The following files would have created duplicate posts.</strong> "
"View them from the links below: " "View them from the links below: "
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1787 #: comicpress_manager_admin.php:1785
msgid "Available wildcards:" msgid "Available wildcards:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1789 #: comicpress_manager_admin.php:1787
msgid "The name of the category" msgid "The name of the category"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1790 #: comicpress_manager_admin.php:1788
#, php-format #, php-format
msgid "The date of the comic (ex: <em>%s</em>)" msgid "The date of the comic (ex: <em>%s</em>)"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1791 #: comicpress_manager_admin.php:1789
msgid "The title of the comic" msgid "The title of the comic"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1836 #: comicpress_manager_admin.php:1834
msgid "remove" msgid "remove"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1837 #: comicpress_manager_admin.php:1835
msgid "You're not missing any posts!" msgid "You're not missing any posts!"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1838 #: comicpress_manager_admin.php:1836
msgid "" msgid ""
"There was a failure in counting. You may have too many comics/posts to " "There was a failure in counting. You may have too many comics/posts to "
"analyze before your server times out." "analyze before your server times out."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1839 #: comicpress_manager_admin.php:1837
msgid "counting" msgid "counting"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1872 #: comicpress_manager_admin.php:1870
msgid "The operation you just performed returned the following:" msgid "The operation you just performed returned the following:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1876 #: comicpress_manager_admin.php:1874
msgid "The following warnings were generated:" msgid "The following warnings were generated:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1880 #: comicpress_manager_admin.php:1878
msgid "The following problems were found in your configuration:" msgid "The following problems were found in your configuration:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1900 #: comicpress_manager_admin.php:1898
msgid "" msgid ""
"<p><strong>If your error is permissions-related, you may have to set some " "<p><strong>If your error is permissions-related, you may have to set some "
"Windows-specific permissions on your filesystem.</strong> Consult your " "Windows-specific permissions on your filesystem.</strong> Consult your "
"Webhost for more information.</p>" "Webhost for more information.</p>"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1912 #: comicpress_manager_admin.php:1910
msgid "" msgid ""
"You must fix the problems above before you can proceed with managing your " "You must fix the problems above before you can proceed with managing your "
"ComicPress installation." "ComicPress installation."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1915 #: comicpress_manager_admin.php:1913
msgid "Details:" msgid "Details:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1917 #: comicpress_manager_admin.php:1915
msgid "Current ComicPress theme folder:" msgid "Current ComicPress theme folder:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1918 #: comicpress_manager_admin.php:1916
msgid "Available categories:" msgid "Available categories:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1921 #: comicpress_manager_admin.php:1919
msgid "Category Name" msgid "Category Name"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1922 #: comicpress_manager_admin.php:1920
msgid "ID #" msgid "ID #"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1970 #: comicpress_manager_admin.php:1968
#, php-format #, php-format
msgid "" msgid ""
"<strong>You won't be able to update your comicpress-config.php or functions." "<strong>You won't be able to update your comicpress-config.php or functions."
@ -1355,178 +1355,178 @@ msgid ""
"of code to paste into the comicpress-config.php file." "of code to paste into the comicpress-config.php file."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1975 #: comicpress_manager_admin.php:1973
msgid "" msgid ""
"<strong>Some backup comicpress-config.php files were found in your theme " "<strong>Some backup comicpress-config.php files were found in your theme "
"directory.</strong> You can choose to restore one of these backup files, or " "directory.</strong> You can choose to restore one of these backup files, or "
"you can go ahead and create a new configuration below." "you can go ahead and create a new configuration below."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1980 #: comicpress_manager_admin.php:1978
msgid "Restore from backup dated:" msgid "Restore from backup dated:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:1988 #: comicpress_manager_admin.php:1986
msgid "Restore" msgid "Restore"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2002 #: comicpress_manager_admin.php:2000
msgid "Debug info" msgid "Debug info"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2002 comicpress_manager_admin.php:2177 #: comicpress_manager_admin.php:2000 comicpress_manager_admin.php:2175
msgid "this data is sanitized to protect your server's configuration" msgid "this data is sanitized to protect your server's configuration"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2065 #: comicpress_manager_admin.php:2063
msgid "ComicPress Details" msgid "ComicPress Details"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2067 #: comicpress_manager_admin.php:2065
msgid "Configuration method:" msgid "Configuration method:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2071 #: comicpress_manager_admin.php:2069
msgid "(click to edit)" msgid "(click to edit)"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2073 #: comicpress_manager_admin.php:2071
msgid "(click to edit, cannot update automatically)" msgid "(click to edit, cannot update automatically)"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2079 #: comicpress_manager_admin.php:2077
msgid "Comics folder:" msgid "Comics folder:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2087 #: comicpress_manager_admin.php:2085
msgid "multiple files on the same date!" msgid "multiple files on the same date!"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2091 #: comicpress_manager_admin.php:2089
#, php-format #, php-format
msgid "(%d comic in folder%s)" msgid "(%d comic in folder%s)"
msgid_plural "(%d comics in folder%s)" msgid_plural "(%d comics in folder%s)"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: comicpress_manager_admin.php:2094 #: comicpress_manager_admin.php:2092
msgid "Archive folder:" msgid "Archive folder:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2095 #: comicpress_manager_admin.php:2093
msgid "RSS feed folder:" msgid "RSS feed folder:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2096 #: comicpress_manager_admin.php:2094
msgid "Minithumb folder:" msgid "Minithumb folder:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2107 #: comicpress_manager_admin.php:2105
msgid "generating" msgid "generating"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2111 #: comicpress_manager_admin.php:2109
msgid "No scaling software" msgid "No scaling software"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2112 #: comicpress_manager_admin.php:2110
msgid "Generation disabled" msgid "Generation disabled"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2113 #: comicpress_manager_admin.php:2111
msgid "Same as comics folder" msgid "Same as comics folder"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2114 #: comicpress_manager_admin.php:2112
msgid "Not writable" msgid "Not writable"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2120 #: comicpress_manager_admin.php:2118
#, php-format #, php-format
msgid "(<em>%d files in folder</em>)" msgid "(<em>%d files in folder</em>)"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2122 #: comicpress_manager_admin.php:2120
msgid "(<em>folder not found</em>)" msgid "(<em>folder not found</em>)"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2131 #: comicpress_manager_admin.php:2129
msgid "Comic categories:" msgid "Comic categories:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2133 #: comicpress_manager_admin.php:2131
msgid "Comic category:" msgid "Comic category:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2140 comicpress_manager_admin.php:2145 #: comicpress_manager_admin.php:2138 comicpress_manager_admin.php:2143
#: comicpress_manager_admin.php:2149 #: comicpress_manager_admin.php:2147
#, php-format #, php-format
msgid "(ID %s)" msgid "(ID %s)"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2148 #: comicpress_manager_admin.php:2146
msgid "Blog category:" msgid "Blog category:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2152 #: comicpress_manager_admin.php:2150
msgid "PHP Version:" msgid "PHP Version:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2154 #: comicpress_manager_admin.php:2152
msgid "upgrade strongly recommended" msgid "upgrade strongly recommended"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2158 #: comicpress_manager_admin.php:2156
msgid "Theme folder:" msgid "Theme folder:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2163 #: comicpress_manager_admin.php:2161
msgid "<em>Something's misconfigured with your theme...</em>" msgid "<em>Something's misconfigured with your theme...</em>"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2168 #: comicpress_manager_admin.php:2166
msgid "Additional, non-fatal warnings:" msgid "Additional, non-fatal warnings:"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2177 #: comicpress_manager_admin.php:2175
msgid "Show debug info" msgid "Show debug info"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2215 #: comicpress_manager_admin.php:2213
msgid "Last Post" msgid "Last Post"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2216 #: comicpress_manager_admin.php:2214
msgid "Current Post" msgid "Current Post"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2217 #: comicpress_manager_admin.php:2215
msgid "Upcoming Post" msgid "Upcoming Post"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2341 #: comicpress_manager_admin.php:2339
#, php-format #, php-format
msgid "" msgid ""
"I went %s levels deep in my search for comic directories. Are you sure you " "I went %s levels deep in my search for comic directories. Are you sure you "
"have your site set up correctly?" "have your site set up correctly?"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2348 #: comicpress_manager_admin.php:2346
#, php-format #, php-format
msgid "" msgid ""
"I found over %s directories from your site root. Are you sure you have your " "I found over %s directories from your site root. Are you sure you have your "
"site set up correctly?" "site set up correctly?"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2376 #: comicpress_manager_admin.php:2374
msgid "All possible WordPress categories" msgid "All possible WordPress categories"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2393 #: comicpress_manager_admin.php:2391
msgid "List of possible folders at the root of your site" msgid "List of possible folders at the root of your site"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2444 #: comicpress_manager_admin.php:2442
msgid "" msgid ""
"<strong>Create your comics, archive, or RSS folders first</strong>, then " "<strong>Create your comics, archive, or RSS folders first</strong>, then "
"reload this page and use the dropdowns to select the target folder. If " "reload this page and use the dropdowns to select the target folder. If "
@ -1534,42 +1534,42 @@ msgid ""
"folder names into the dropdowns." "folder names into the dropdowns."
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2451 #: comicpress_manager_admin.php:2449
msgid "Don't try to write my config out; just display it" msgid "Don't try to write my config out; just display it"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2461 #: comicpress_manager_admin.php:2459
msgid "Update Config" msgid "Update Config"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2479 #: comicpress_manager_admin.php:2477
#, php-format #, php-format
msgid "Version %s |" msgid "Version %s |"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2497 #: comicpress_manager_admin.php:2495
msgid "" msgid ""
"<a href=\"http://wordpress.org/extend/plugins/comicpress-manager/\" target=" "<a href=\"http://wordpress.org/extend/plugins/comicpress-manager/\" target="
"\"_new\">ComicPress Manager</a> is built for the <a href=\"http://www." "\"_new\">ComicPress Manager</a> is built for the <a href=\"http://www."
"mindfaucet.com/comicpress/\" target=\"_new\">ComicPress</a> theme" "mindfaucet.com/comicpress/\" target=\"_new\">ComicPress</a> theme"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2498 #: comicpress_manager_admin.php:2496
msgid "" msgid ""
"Copyright 2008-2009 <a href=\"mailto:john@coswellproductions.com?" "Copyright 2008-2009 <a href=\"mailto:john@coswellproductions.com?"
"Subject=ComicPress Manager Comments\">John Bintz</a>" "Subject=ComicPress Manager Comments\">John Bintz</a>"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2499 #: comicpress_manager_admin.php:2497
msgid "Released under the GNU GPL" msgid "Released under the GNU GPL"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2501 #: comicpress_manager_admin.php:2499
msgid "" msgid ""
"<a href=\"http://bugs.comicpress.org/index.php?project=2\">Report a Bug</a>" "<a href=\"http://bugs.comicpress.org/index.php?project=2\">Report a Bug</a>"
msgstr "" msgstr ""
#: comicpress_manager_admin.php:2502 #: comicpress_manager_admin.php:2500
msgid "" msgid ""
"Uses the <a target=\"_new\" href=\"http://www.dynarch.com/projects/calendar/" "Uses the <a target=\"_new\" href=\"http://www.dynarch.com/projects/calendar/"
"\">Dynarch DHTML Calendar Widget</a>" "\">Dynarch DHTML Calendar Widget</a>"

View File

@ -177,6 +177,17 @@ function cpm_handle_pre_post_update($post_id) {
$new_timestamp = strtotime(implode("-", array($_POST['aa'], $_POST['mm'], $_POST['jj']))); $new_timestamp = strtotime(implode("-", array($_POST['aa'], $_POST['mm'], $_POST['jj'])));
$todays_date = date("Y-m-d", $original_timestamp);
$any_posts_today = false;
foreach (cpm_query_posts() as $comic_post) {
if ($comic_post->ID != $post_id) {
if (strpos($comic_post->post_date, $todays_date) === 0) {
$any_posts_today = true; break;
}
}
}
if (!$any_posts_today) {
if (!empty($original_timestamp) && !empty($new_timestamp)) { if (!empty($original_timestamp) && !empty($new_timestamp)) {
$original_date = date(CPM_DATE_FORMAT, $original_timestamp); $original_date = date(CPM_DATE_FORMAT, $original_timestamp);
$new_date = date(CPM_DATE_FORMAT, $new_timestamp); $new_date = date(CPM_DATE_FORMAT, $new_timestamp);
@ -207,6 +218,7 @@ function cpm_handle_pre_post_update($post_id) {
} }
} }
} }
}
} }
/** /**