Version Description
Download this release
Release Info
Developer | mitchoyoshitaka |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 3.0b2 |
Comparing to | |
See all releases |
Code changes from version 3.0b1 to 3.0b2
- install.txt +21 -0
- {templates → yarpp-templates}/template-example.php +0 -0
- {templates → yarpp-templates}/template-list.php +0 -0
- {templates → yarpp-templates}/template-photoblog.php +0 -0
- {templates → yarpp-templates}/template-random.php +0 -0
- {i → yet-another-related-posts-plugin/i}/close.gif +0 -0
- {i → yet-another-related-posts-plugin/i}/spin.gif +0 -0
- includes.php → yet-another-related-posts-plugin/includes.php +12 -8
- intl.php → yet-another-related-posts-plugin/intl.php +0 -0
- keywords.php → yet-another-related-posts-plugin/keywords.php +0 -0
- yet-another-related-posts-plugin/lang/words-de_DE.php +5 -0
- yet-another-related-posts-plugin/lang/words-en_US.php +5 -0
- yet-another-related-posts-plugin/lang/yarpp-de_DE.mo +0 -0
- yet-another-related-posts-plugin/lang/yarpp-de_DE.po +395 -0
- yet-another-related-posts-plugin/lang/yarpp-ja.mo +0 -0
- yet-another-related-posts-plugin/lang/yarpp-ja_JP.po +380 -0
- yet-another-related-posts-plugin/lang/yarpp-zh_CN.mo +0 -0
- yet-another-related-posts-plugin/lang/yarpp-zh_CN.po +380 -0
- magic.php → yet-another-related-posts-plugin/magic.php +9 -4
- options.css → yet-another-related-posts-plugin/options.css +0 -0
- options.php → yet-another-related-posts-plugin/options.php +43 -25
- related-functions.php → yet-another-related-posts-plugin/related-functions.php +0 -0
- services.php → yet-another-related-posts-plugin/services.php +1 -1
- template-builtin.php → yet-another-related-posts-plugin/template-builtin.php +0 -0
- template-functions.php → yet-another-related-posts-plugin/template-functions.php +0 -0
- template-metabox.php → yet-another-related-posts-plugin/template-metabox.php +0 -0
- yarpp.php → yet-another-related-posts-plugin/yarpp.php +1 -1
install.txt
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Yet Another Related Posts Plugin ===
|
2 |
+
by mitcho (Michael Yoshitaka Erlewine)
|
3 |
+
Twitter: http://twitter.com/yarpp/
|
4 |
+
|
5 |
+
== INSTALLATION ==
|
6 |
+
|
7 |
+
1. Copy the folders `yet-another-related-posts-plugin` and `yarpp-templates` into the directory `wp-content/plugins/`.
|
8 |
+
|
9 |
+
2. Activate the plugin.
|
10 |
+
|
11 |
+
3. Find the Related Posts (YARPP) settings page in your `wp-admin`. If you see a message telling you to build your cache, please build your cache. Otherwise, you will see no related posts anywhere.
|
12 |
+
|
13 |
+
4. (optional) If you run a relatively low-traffic site (=most blogs), it is recommended that you enable the "compute related posts on the fly" option at the bottom of the Related Posts (YARPP) settings page.
|
14 |
+
|
15 |
+
== SUPPORT ==
|
16 |
+
|
17 |
+
Read the FAQ:
|
18 |
+
http://mitcho.com/code/yarpp
|
19 |
+
|
20 |
+
If it's not in the FAQ, find it or ask it in the forum:
|
21 |
+
http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/
|
{templates → yarpp-templates}/template-example.php
RENAMED
File without changes
|
{templates → yarpp-templates}/template-list.php
RENAMED
File without changes
|
{templates → yarpp-templates}/template-photoblog.php
RENAMED
File without changes
|
{templates → yarpp-templates}/template-random.php
RENAMED
File without changes
|
{i → yet-another-related-posts-plugin/i}/close.gif
RENAMED
File without changes
|
{i → yet-another-related-posts-plugin/i}/spin.gif
RENAMED
File without changes
|
includes.php → yet-another-related-posts-plugin/includes.php
RENAMED
@@ -15,6 +15,8 @@ $yarpp_value_options = array('threshold' => 5,
|
|
15 |
'limit' => 5,
|
16 |
'template_file' => '', // new in 2.2
|
17 |
'excerpt_length' => 10,
|
|
|
|
|
18 |
'before_title' => '<li>',
|
19 |
'after_title' => '</li>',
|
20 |
'before_post' => ' <small>',
|
@@ -42,6 +44,7 @@ $yarpp_value_options = array('threshold' => 5,
|
|
42 |
'discats' => '');
|
43 |
$yarpp_binary_options = array('past_only' => true,
|
44 |
'show_excerpt' => false,
|
|
|
45 |
'use_template' => false, // new in 2.2
|
46 |
'rss_show_excerpt' => false,
|
47 |
'rss_use_template' => false, // new in 2.2
|
@@ -123,8 +126,8 @@ function yarpp_activate() {
|
|
123 |
return 0;
|
124 |
}
|
125 |
}
|
126 |
-
add_option('yarpp_version','3.
|
127 |
-
update_option('yarpp_version','3.
|
128 |
return 1;
|
129 |
}
|
130 |
|
@@ -158,7 +161,7 @@ function yarpp_upgrade_check($inuse = false) {
|
|
158 |
update_option('yarpp_version','1.5');
|
159 |
}
|
160 |
|
161 |
-
if (get_option('yarpp_version') < 2) {
|
162 |
foreach (array_keys($yarpp_value_options) as $option) {
|
163 |
if (!get_option("yarpp_$option"))
|
164 |
add_option("yarpp_$option",$yarpp_value_options[$option].' ');
|
@@ -168,17 +171,18 @@ function yarpp_upgrade_check($inuse = false) {
|
|
168 |
add_option("yarpp_$option",$yarpp_binary_options[$option]);
|
169 |
}
|
170 |
|
171 |
-
if (!$inuse)
|
172 |
-
echo '<div id="message" class="updated fade" style="background-color: rgb(207, 235, 247);">'.__('<h3>An important message from YARPP:</h3><p>Thank you for upgrading to YARPP 2. YARPP 2.0 adds the much requested ability to limit related entry results by certain tags or categories. 2.0 also brings more fine tuned control of the magic algorithm, letting you specify how the algorithm should consider or not consider entry content, titles, tags, and categories. Make sure to adjust the new settings to your liking and perhaps readjust your threshold.</p><p>For more information, check out the <a href="http://mitcho.com/code/yarpp/">YARPP documentation</a>. (This message will not be displayed again.)</p>','yarpp').'</div>';
|
173 |
}
|
174 |
|
175 |
-
if (get_option('yarpp_version') < 2.03) {
|
176 |
$wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_title` ( `post_title`)");
|
177 |
$wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_content` ( `post_content`)"); update_option('yarpp_version','2.03');
|
178 |
}
|
179 |
|
180 |
-
if (get_option('yarpp_version') < 3.0) {
|
181 |
-
update_option('yarpp_version','3.
|
|
|
|
|
|
|
182 |
}
|
183 |
|
184 |
// just in case, try to add the index one more time.
|
15 |
'limit' => 5,
|
16 |
'template_file' => '', // new in 2.2
|
17 |
'excerpt_length' => 10,
|
18 |
+
'recent_number' => 12,
|
19 |
+
'recent_units' => 'month',
|
20 |
'before_title' => '<li>',
|
21 |
'after_title' => '</li>',
|
22 |
'before_post' => ' <small>',
|
44 |
'discats' => '');
|
45 |
$yarpp_binary_options = array('past_only' => true,
|
46 |
'show_excerpt' => false,
|
47 |
+
'recent_only' => false, // new in 3.0
|
48 |
'use_template' => false, // new in 2.2
|
49 |
'rss_show_excerpt' => false,
|
50 |
'rss_use_template' => false, // new in 2.2
|
126 |
return 0;
|
127 |
}
|
128 |
}
|
129 |
+
add_option('yarpp_version','3.0b2');
|
130 |
+
update_option('yarpp_version','3.0b2');
|
131 |
return 1;
|
132 |
}
|
133 |
|
161 |
update_option('yarpp_version','1.5');
|
162 |
}
|
163 |
|
164 |
+
if (eregi_replace('[a-z].*$','',get_option('yarpp_version')) < 2) {
|
165 |
foreach (array_keys($yarpp_value_options) as $option) {
|
166 |
if (!get_option("yarpp_$option"))
|
167 |
add_option("yarpp_$option",$yarpp_value_options[$option].' ');
|
171 |
add_option("yarpp_$option",$yarpp_binary_options[$option]);
|
172 |
}
|
173 |
|
|
|
|
|
174 |
}
|
175 |
|
176 |
+
if (eregi_replace('[a-z].*$','',get_option('yarpp_version')) < 2.03) {
|
177 |
$wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_title` ( `post_title`)");
|
178 |
$wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_content` ( `post_content`)"); update_option('yarpp_version','2.03');
|
179 |
}
|
180 |
|
181 |
+
if (eregi_replace('[a-z].*$','',get_option('yarpp_version')) < 3.0 or get_option('yarpp_version') != '3.0b2') {
|
182 |
+
update_option('yarpp_version','3.0b2');
|
183 |
+
|
184 |
+
//if (!$inuse)
|
185 |
+
// echo '<div id="message" class="updated fade" style="background-color: rgb(207, 235, 247);">'.__('<h3>An important message from YARPP:</h3><p>Thank you for upgrading to YARPP 2. YARPP 2.0 adds the much requested ability to limit related entry results by certain tags or categories. 2.0 also brings more fine tuned control of the magic algorithm, letting you specify how the algorithm should consider or not consider entry content, titles, tags, and categories. Make sure to adjust the new settings to your liking and perhaps readjust your threshold.</p><p>For more information, check out the <a href="http://mitcho.com/code/yarpp/">YARPP documentation</a>. (This message will not be displayed again.)</p>','yarpp').'</div>';
|
186 |
}
|
187 |
|
188 |
// just in case, try to add the index one more time.
|
intl.php → yet-another-related-posts-plugin/intl.php
RENAMED
File without changes
|
keywords.php → yet-another-related-posts-plugin/keywords.php
RENAMED
File without changes
|
yet-another-related-posts-plugin/lang/words-de_DE.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$overusedwords = array('1','2','3','4','5','6','7','8','9','0', '10','der','die','und','in','den','von','zu','das','mit','sich','des','auf','f�r','ist','im','dem','nicht','ein','eine','als','auch','es','an','werden','aus','er','hat','da�','dass','sie','nach','wird','bei','einer','um','am','sind','noch','wie','einem','�ber','einen','so','zum','war','haben','nur','oder','aber','vor','zur','bis','mehr','durch','man','sein','wurde','sei','in','Prozent','hatte','kann','gegen','vom','k�nnen','schon','wenn','habe','seine','ihre','dann','unter','wir','soll','ich','eines','Jahr','zwei','Jahren','diese','dieser','wieder','keine','Uhr','seiner','worden','will','zwischen','immer','Millionen','was','sagte','gibt','alle','diesem','seit','mu�','muss','wurden','beim','doch','jetzt','waren','drei','Jahre','neue','neuen','damit','bereits','da','ihr','seinen','m�ssen','ab','ihrer','ohne','sondern','selbst','ersten','nun','etwa');
|
4 |
+
|
5 |
+
?>
|
yet-another-related-posts-plugin/lang/words-en_US.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$overusedwords = array( '', 'a', 'an', 'the', 'and', 'of', 'i', 'to', 'is', 'in', 'with', 'for', 'as', 'that', 'on', 'at', 'this', 'my', 'was', 'our', 'it', 'you', 'we', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '10', 'about', 'after', 'all', 'almost', 'along', 'also', 'amp', 'another', 'any', 'are', 'area', 'around', 'available', 'back', 'be', 'because', 'been', 'being', 'best', 'better', 'big', 'bit', 'both', 'but', 'by', 'c', 'came', 'can', 'capable', 'control', 'could', 'course', 'd', 'dan', 'day', 'decided', 'did', 'didn', 'different', 'div', 'do', 'doesn', 'don', 'down', 'drive', 'e', 'each', 'easily', 'easy', 'edition', 'end', 'enough', 'even', 'every', 'example', 'few', 'find', 'first', 'found', 'from', 'get', 'go', 'going', 'good', 'got', 'gt', 'had', 'hard', 'has', 'have', 'he', 'her', 'here', 'how', 'if', 'into', 'isn', 'just', 'know', 'last', 'left', 'li', 'like', 'little', 'll', 'long', 'look', 'lot', 'lt', 'm', 'made', 'make', 'many', 'mb', 'me', 'menu', 'might', 'mm', 'more', 'most', 'much', 'name', 'nbsp', 'need', 'new', 'no', 'not', 'now', 'number', 'off', 'old', 'one', 'only', 'or', 'original', 'other', 'out', 'over', 'part', 'place', 'point', 'pretty', 'probably', 'problem', 'put', 'quite', 'quot', 'r', 're', 'really', 'results', 'right', 's', 'same', 'saw', 'see', 'set', 'several', 'she', 'sherree', 'should', 'since', 'size', 'small', 'so', 'some', 'something', 'special', 'still', 'stuff', 'such', 'sure', 'system', 't', 'take', 'than', 'their', 'them', 'then', 'there', 'these', 'they', 'thing', 'things', 'think', 'those', 'though', 'through', 'time', 'today', 'together', 'too', 'took', 'two', 'up', 'us', 'use', 'used', 'using', 've', 'very', 'want', 'way', 'well', 'went', 'were', 'what', 'when', 'where', 'which', 'while', 'white', 'who', 'will', 'would', 'your');
|
4 |
+
|
5 |
+
?>
|
yet-another-related-posts-plugin/lang/yarpp-de_DE.mo
ADDED
Binary file
|
yet-another-related-posts-plugin/lang/yarpp-de_DE.po
ADDED
@@ -0,0 +1,395 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: YARPP_DE\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2008-11-17 14:23+0100\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Michael Kalina <m.kalina@3th.be>\n"
|
8 |
+
"Language-Team: Michael Kalina <m.kalina@3th.be>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-Language: German\n"
|
13 |
+
"X-Poedit-Country: GERMANY\n"
|
14 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
16 |
+
"X-Poedit-Basepath: .\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
": "
|
19 |
+
|
20 |
+
#: includes.php:74
|
21 |
+
msgid "MySQL error on adding yarpp_title"
|
22 |
+
msgstr "MySQL-Fehler beim Hinzufügen von \"yarpp_title\""
|
23 |
+
|
24 |
+
#: includes.php:79
|
25 |
+
msgid "MySQL error on adding yarpp_content"
|
26 |
+
msgstr "MySQL-Fehler beim Hinzufügen von \"yarpp_content\""
|
27 |
+
|
28 |
+
#: includes.php:133
|
29 |
+
msgid "<h3>An important message from YARPP:</h3><p>Thank you for upgrading to YARPP 2. YARPP 2.0 adds the much requested ability to limit related entry results by certain tags or categories. 2.0 also brings more fine tuned control of the magic algorithm, letting you specify how the algorithm should consider or not consider entry content, titles, tags, and categories. Make sure to adjust the new settings to your liking and perhaps readjust your threshold.</p><p>For more information, check out the <a href=\"http://mitcho.com/code/yarpp/\">YARPP documentation</a>. (This message will not be displayed again.)</p>"
|
30 |
+
msgstr "<h3>Nachricht von YARPP</h3><p>Danke fürs Upgrade auf YARPP 2. Diese Version bringt Verbesserungen im magischen Algorithmus, lässt Sie Einstellungen in der Gewichtung der verschiedenen Stichwörter oder Kategorien vornehmen, berücksichtigt Einstellungen zum Gebrauch bestimmter Ausschlussregeln und lässt Sie bestimmen, wie stark die Variablen \"Inhalt\", \"Überschrift\", \"Stichwörter\" und \"Kategorien\" berücksichtigt werden. Mehr Informationen gibt es in der <a href=\"http://mitcho.com/code/yarpp/\">YARPP Dokumentation</a>.</p><p>Diese Nachricht erscheint nie wieder!</p>"
|
31 |
+
|
32 |
+
#: includes.php:154
|
33 |
+
#: includes.php:154
|
34 |
+
msgid "Related Posts (YARPP)"
|
35 |
+
msgstr "Related Posts (YARPP)"
|
36 |
+
|
37 |
+
#: includes.php:173
|
38 |
+
msgid "Related Posts"
|
39 |
+
msgstr "Ähnliche Beiträge"
|
40 |
+
|
41 |
+
#: includes.php:178
|
42 |
+
msgid "YARPP"
|
43 |
+
msgstr "YARPP"
|
44 |
+
|
45 |
+
#: magic.php:210
|
46 |
+
#, php-format
|
47 |
+
msgid "%f is the YARPP match score between the current entry and this related entry. You are seeing this value because you are logged in to WordPress as an administrator. It is not shown to regular visitors."
|
48 |
+
msgstr "%f ist die von YARPP ermittelte Übereinstimmung zwischen diesem und dem ähnlichen Artikel (Relevanz-Wert). Sie sehen diesen Wert, weil Sie als WordPress-Administrator eingeloggt sind. Normale Besucher sehen ihn nicht."
|
49 |
+
|
50 |
+
#: options.php:307
|
51 |
+
#: options.php:349
|
52 |
+
#: options.php:368
|
53 |
+
#: options.php:412
|
54 |
+
#: magic.php:219
|
55 |
+
msgid "Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>."
|
56 |
+
msgstr "Ähnliche Artikel bereitgestellt von <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>."
|
57 |
+
|
58 |
+
#: options.php:8
|
59 |
+
msgid "The MyISAM check has been overridden. You may now use the \"consider titles\" and \"consider bodies\" relatedness criteria."
|
60 |
+
msgstr "Der MyISAM-Check wurde außer Kraft gesetzt. Sie können nun \"consider titles\" und \"consider bodies\" als Kriterium für die Relevanz verwenden."
|
61 |
+
|
62 |
+
#: options.php:17
|
63 |
+
#, php-format
|
64 |
+
msgid "YARPP's \"consider titles\" and \"consider bodies\" relatedness criteria require your <code>%s</code> table to use the <a href='http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html'>MyISAM storage engine</a>, but the table seems to be using the <code>%s</code> engine. These two options have been disabled."
|
65 |
+
msgstr "YARPPs \"consider titles\" und \"consider bodies\" Kriterien zur Relevanz verlangen, dass Ihre <code>%s</code> Tabelle die <a href='http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html'>MyISAM Storage Engine</a> verwendet, die Tabelle scheint aber die <code>%s</code>-Engine zu verwenden. Die zwei Einstellungen wurden deaktiviert."
|
66 |
+
|
67 |
+
#: options.php:19
|
68 |
+
#, php-format
|
69 |
+
msgid "To restore these features, please update your <code>%s</code> table by executing the following SQL directive: <code>ALTER TABLE `%s` ENGINE = MyISAM;</code> . No data will be erased by altering the table's engine, although there are performance implications."
|
70 |
+
msgstr "Um dieses Feature wiederherzustellen, führen Sie den Code <code>%s</code> mit dem SQL-Befehl aus: <code>ALTER TABLE `%s` ENGINE = MyISAM;</code>."
|
71 |
+
|
72 |
+
#: options.php:21
|
73 |
+
#, php-format
|
74 |
+
msgid "If, despite this check, you are sure that <code>%s</code> is using the MyISAM engine, press this magic button:"
|
75 |
+
msgstr "Wenn Sie, selbst nach diesem Check, sicher sind, dass <code>%s</code> die MyISAM-Engine benutzt, klicken Sie den magischen Button:"
|
76 |
+
|
77 |
+
#: options.php:24
|
78 |
+
msgid "Trust me. Let me use MyISAM features."
|
79 |
+
msgstr "Glauben Sie mir. Lassen Sie mich MyISAM-Features nutzen."
|
80 |
+
|
81 |
+
#: options.php:47
|
82 |
+
msgid "The YARPP database had an error but has been fixed."
|
83 |
+
msgstr "Die YARPP-Datenbank hatte einen Fehler, der allerdings behoben werden konnte."
|
84 |
+
|
85 |
+
#: options.php:49
|
86 |
+
msgid "The YARPP database has an error which could not be fixed."
|
87 |
+
msgstr "Die YARPP-Datenbank hat einen Fehler, der nicht behoben werden kann."
|
88 |
+
|
89 |
+
#: options.php:121
|
90 |
+
#: options.php:138
|
91 |
+
#: options.php:150
|
92 |
+
msgid "do not consider"
|
93 |
+
msgstr "nicht berücksichtigen"
|
94 |
+
|
95 |
+
#: options.php:122
|
96 |
+
#: options.php:139
|
97 |
+
#: options.php:152
|
98 |
+
msgid "consider"
|
99 |
+
msgstr "berücksichtigen"
|
100 |
+
|
101 |
+
#: options.php:140
|
102 |
+
msgid "consider with extra weight"
|
103 |
+
msgstr "besonders berücksichtigen"
|
104 |
+
|
105 |
+
#: options.php:168
|
106 |
+
msgid "Yet Another Related Posts Plugin version history (RSS 2.0)"
|
107 |
+
msgstr "YARPP-Versionsverlauf (RSS 2.0)"
|
108 |
+
|
109 |
+
#: options.php:183
|
110 |
+
#: options.php:183
|
111 |
+
msgid "Donate to mitcho (Michael Yoshitaka Erlewine) for this plugin via PayPal"
|
112 |
+
msgstr "An mitcho (Michael Yoshitaka Erlewine) für die Entwicklung des Plugins via PayPal spenden"
|
113 |
+
|
114 |
+
#: options.php:186
|
115 |
+
msgid "Yet Another Related Posts Plugin Options"
|
116 |
+
msgstr "YARPP Einstellungen"
|
117 |
+
|
118 |
+
#: options.php:202
|
119 |
+
#, php-format
|
120 |
+
msgid "by <a href=\"http://mitcho.com/code/\">mitcho (Michael 芳貴 Erlewine)</a> and based on the fabulous work of <a href=\"http://peter.mapledesign.co.uk/weblog/archives/wordpress-related-posts-plugin\">Peter Bower</a>, <a href=\"http://wasabi.pbwiki.com/Related%20Entries\">Alexander Malov & Mike Lu</a>."
|
121 |
+
msgstr "Das Team: <a href=\"http://mitcho.com/code/\">mitcho (Michael 芳貴 Erlewine)</a> (Programmierung), <a href=\"http://3th.be/\">Michael Kalina</a> (Deutsche Übersetzung)."
|
122 |
+
|
123 |
+
#: options.php:206
|
124 |
+
msgid "\"The Pool\""
|
125 |
+
msgstr "\"Pool\""
|
126 |
+
|
127 |
+
#: options.php:207
|
128 |
+
msgid "\"The Pool\" refers to the pool of posts and pages that are candidates for display as related to the current entry."
|
129 |
+
msgstr "Das Plugin berücksichtigt alle Artikel und Seiten, die in diesem \"Pool\" angeführt (oder nicht ausgeschlossen) sind."
|
130 |
+
|
131 |
+
#: options.php:212
|
132 |
+
msgid "Disallow by category:"
|
133 |
+
msgstr "Kategorien ausschließen:"
|
134 |
+
|
135 |
+
#: options.php:221
|
136 |
+
msgid "Disallow by tag:"
|
137 |
+
msgstr "Tags ausschließen:"
|
138 |
+
|
139 |
+
#: options.php:230
|
140 |
+
msgid "Show password protected posts?"
|
141 |
+
msgstr "Durch ein Passwort gesicherte Artikel anzeigen?"
|
142 |
+
|
143 |
+
#: options.php:231
|
144 |
+
msgid "Show only previous posts?"
|
145 |
+
msgstr "Nur in der Vergangenheit liegende Artikel berücksichtigen?"
|
146 |
+
|
147 |
+
#: options.php:236
|
148 |
+
msgid "\"Relatedness\" options"
|
149 |
+
msgstr "Ähnlichkeitseinstellungen"
|
150 |
+
|
151 |
+
#: options.php:237
|
152 |
+
#, php-format
|
153 |
+
msgid "YARPP is different than the <a href=\"http://wasabi.pbwiki.com/Related%20Entries\">previous plugins it is based on</a> as it limits the related posts list by (1) a maximum number and (2) a <em>match threshold</em>."
|
154 |
+
msgstr "YARPP funktioniert ein wenig anders als <a href=\"http://wasabi.pbwiki.com/Related%20Entries\">andere Plugins mit ähnlicher Funktionalität</a>: YARPP berücksichtigt nicht nur die von Ihnen angegebene maximale Anzahl von Beiträgen, sondern auch den Wert \"Relevanz\"."
|
155 |
+
|
156 |
+
#: options.php:237
|
157 |
+
#: options.php:251
|
158 |
+
#: options.php:309
|
159 |
+
#: options.php:348
|
160 |
+
#: options.php:371
|
161 |
+
#: options.php:411
|
162 |
+
msgid "more>"
|
163 |
+
msgstr "?"
|
164 |
+
|
165 |
+
|
166 |
+
#: options.php:242
|
167 |
+
msgid "Match threshold:"
|
168 |
+
msgstr "Relevanz:"
|
169 |
+
|
170 |
+
#: options.php:243
|
171 |
+
msgid "Titles: "
|
172 |
+
msgstr "Überschriften:"
|
173 |
+
|
174 |
+
#: options.php:245
|
175 |
+
msgid "Bodies: "
|
176 |
+
msgstr "Textkörper:"
|
177 |
+
|
178 |
+
#: options.php:247
|
179 |
+
msgid "Tags: "
|
180 |
+
msgstr "Tags:"
|
181 |
+
|
182 |
+
#: options.php:249
|
183 |
+
msgid "Categories: "
|
184 |
+
msgstr "Kategorien:"
|
185 |
+
|
186 |
+
#: options.php:251
|
187 |
+
msgid "Cross-relate posts and pages?"
|
188 |
+
msgstr "Artikel und Seiten gemeinsam ausgeben?"
|
189 |
+
|
190 |
+
#: options.php:251
|
191 |
+
msgid "When the \"Cross-relate posts and pages\" option is selected, the <code>related_posts()</code>, <code>related_pages()</code>, and <code>related_entries()</code> all will give the same output, returning both related pages and posts."
|
192 |
+
msgstr "Ist die Option \"Artikel und Seiten gemeinsam ausgeben\" aktiviert, geben die Funktionen <code>related_posts()</code>, <code>related_pages()</code>, und <code>related_entries()</code> daselbe aus: In den ähnlichen Beiträgen tauchen sowohl Artikel als auch Seiten auf!"
|
193 |
+
|
194 |
+
#: options.php:293
|
195 |
+
msgid "Display options <small>for your website</small>"
|
196 |
+
msgstr "Darstellung <small>(Website)</small>"
|
197 |
+
|
198 |
+
#: options.php:302
|
199 |
+
msgid "PERMALINK"
|
200 |
+
msgstr "PERMALINK"
|
201 |
+
|
202 |
+
#: options.php:302
|
203 |
+
#: options.php:363
|
204 |
+
#: options.php:363
|
205 |
+
msgid "RELATED TITLE"
|
206 |
+
msgstr "ÄHNLICHER TITEL"
|
207 |
+
|
208 |
+
#: options.php:309
|
209 |
+
msgid "Automatically display related posts?"
|
210 |
+
msgstr "Ähnliche Beiträge automatisch anzeigen?"
|
211 |
+
|
212 |
+
#: options.php:309
|
213 |
+
msgid "This option automatically displays related posts right after the content on single entry pages. If this option is off, you will need to manually insert <code>related_posts()</code> or variants (<code>related_pages()</code> and <code>related_entries()</code>) into your theme files."
|
214 |
+
msgstr "Wenn aktiviert, hängt YARPP die Ausgabe ähnlicher Beiträge einfach an den aktuellen Artikel an. Ist sie deaktiviert, müssen Sie sich um die Darstellung im Template mit den Funktionn <code>related_posts()</code> oder Varianten (<code>related_pages()</code> oder <code>related_entries()</code>) selbst kümmern."
|
215 |
+
|
216 |
+
#: options.php:310
|
217 |
+
msgid "Website display code example"
|
218 |
+
msgstr "Quellcode-Beispiel für die Website-Anzeige"
|
219 |
+
|
220 |
+
#: options.php:310
|
221 |
+
#: options.php:372
|
222 |
+
msgid "(Update options to reload.)"
|
223 |
+
msgstr "Um Ihre Einstellungen hier zu sehen, müssen Sie die Einstellungen vorher sichern!"
|
224 |
+
|
225 |
+
#: options.php:312
|
226 |
+
#: options.php:374
|
227 |
+
msgid "Maximum number of related posts:"
|
228 |
+
msgstr "Maximale Anzahl von Beiträgen:"
|
229 |
+
|
230 |
+
#: options.php:314
|
231 |
+
msgid "Before / after related entries:"
|
232 |
+
msgstr "Quellcode vor/nach den ähnlichen Beiträgen:"
|
233 |
+
|
234 |
+
#: options.php:315
|
235 |
+
#: options.php:320
|
236 |
+
#: options.php:329
|
237 |
+
#: options.php:378
|
238 |
+
#: options.php:383
|
239 |
+
#: options.php:392
|
240 |
+
msgid "For example:"
|
241 |
+
msgstr "Bsp.:"
|
242 |
+
|
243 |
+
#: options.php:319
|
244 |
+
#: options.php:382
|
245 |
+
msgid "Before / after each related entry:"
|
246 |
+
msgstr "Quellcode vor/nach den jeweiligen Beiträgen:"
|
247 |
+
|
248 |
+
#: options.php:323
|
249 |
+
#: options.php:386
|
250 |
+
msgid "Show excerpt?"
|
251 |
+
msgstr "Exzerpt anzeigen?"
|
252 |
+
|
253 |
+
#: options.php:324
|
254 |
+
#: options.php:387
|
255 |
+
msgid "Excerpt length (No. of words):"
|
256 |
+
msgstr "Länge des Exzerpts (Anzahl der Wörter):"
|
257 |
+
|
258 |
+
#: options.php:328
|
259 |
+
msgid "Before / after (Excerpt):"
|
260 |
+
msgstr "Quellcode vor/nach den jeweiligen Exzerpten:"
|
261 |
+
|
262 |
+
#: options.php:334
|
263 |
+
#: options.php:397
|
264 |
+
msgid "Order results:"
|
265 |
+
msgstr "Anzeigereihenfolge:"
|
266 |
+
|
267 |
+
#: options.php:336
|
268 |
+
#: options.php:399
|
269 |
+
msgid "score (high relevance to low)"
|
270 |
+
msgstr "Relevanz (höchste nach niedrigste)"
|
271 |
+
|
272 |
+
#: options.php:337
|
273 |
+
#: options.php:400
|
274 |
+
msgid "score (low relevance to high)"
|
275 |
+
msgstr "Relevanz (niedrigste nach höchste)"
|
276 |
+
|
277 |
+
#: options.php:338
|
278 |
+
#: options.php:401
|
279 |
+
msgid "date (new to old)"
|
280 |
+
msgstr "Zeitstempel (aktuell nach alt)"
|
281 |
+
|
282 |
+
#: options.php:339
|
283 |
+
#: options.php:402
|
284 |
+
msgid "date (old to new)"
|
285 |
+
msgstr "Zeitstempel (alt nach aktuell)"
|
286 |
+
|
287 |
+
#: options.php:340
|
288 |
+
#: options.php:403
|
289 |
+
msgid "title (alphabetical)"
|
290 |
+
msgstr "Überschrift (A-Z)"
|
291 |
+
|
292 |
+
#: options.php:341
|
293 |
+
#: options.php:404
|
294 |
+
msgid "title (reverse alphabetical)"
|
295 |
+
msgstr "Überschrift (Z-A)"
|
296 |
+
|
297 |
+
#: options.php:346
|
298 |
+
#: options.php:409
|
299 |
+
msgid "Default display if no results:"
|
300 |
+
msgstr "Quellcode bei 0 relevanten Artikeln:"
|
301 |
+
|
302 |
+
|
303 |
+
|
304 |
+
#: options.php:347
|
305 |
+
#: options.php:411
|
306 |
+
msgid "Help promote Yet Another Related Posts Plugin?"
|
307 |
+
msgstr "YARPP dezent bewerben?"
|
308 |
+
|
309 |
+
#: options.php:349
|
310 |
+
#: options.php:412
|
311 |
+
#, php-format
|
312 |
+
msgid "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated."
|
313 |
+
msgstr "Wenn aktiviert, steht eine kurzer Hinweis zu Autor und Plugin unter den Ergebnissen der ähnlichen Beiträge. Der Code %s wird hinzugefügt."
|
314 |
+
|
315 |
+
#: options.php:354
|
316 |
+
msgid "Display options <small>for RSS</small>"
|
317 |
+
msgstr "Darstellung <small>(RSS)</small>"
|
318 |
+
|
319 |
+
#: options.php:370
|
320 |
+
msgid "Display related posts in feeds?"
|
321 |
+
msgstr "Ähnliche Beiträge in Newsfeeds anzeigen?"
|
322 |
+
|
323 |
+
|
324 |
+
#: options.php:371
|
325 |
+
msgid "Display related posts in the descriptions?"
|
326 |
+
msgstr "Ähnliche Beiträge in Descriptions anzeigen?"
|
327 |
+
|
328 |
+
#: options.php:371
|
329 |
+
msgid "This option displays the related posts in the RSS description fields, not just the content. If your feeds are set up to only display excerpts, however, only the description field is used, so this option is required for any display at all."
|
330 |
+
msgstr "Zeigt die ähnlichen Beiträge auch in den RSS-Descriptions an, nicht nur im Content."
|
331 |
+
|
332 |
+
#: options.php:372
|
333 |
+
msgid "RSS display code example"
|
334 |
+
msgstr "RSS-Anzeigebeispiel"
|
335 |
+
|
336 |
+
#: options.php:377
|
337 |
+
msgid "Before / after related entries display:"
|
338 |
+
msgstr "Quellcode vor/nach den ähnlichen Beiträgen:"
|
339 |
+
|
340 |
+
#: options.php:391
|
341 |
+
msgid "Before / after (excerpt):"
|
342 |
+
msgstr "Quellcode vor/nach dem Exzerpt:"
|
343 |
+
|
344 |
+
#: options.php:115
|
345 |
+
msgid "word"
|
346 |
+
msgstr ""
|
347 |
+
|
348 |
+
#: options.php:116
|
349 |
+
msgid "tag"
|
350 |
+
msgstr ""
|
351 |
+
|
352 |
+
#: options.php:117
|
353 |
+
msgid "category"
|
354 |
+
msgstr ""
|
355 |
+
|
356 |
+
#: options.php:124
|
357 |
+
#: options.php:154
|
358 |
+
#, php-format
|
359 |
+
msgid "require at least one %s in common"
|
360 |
+
msgstr ""
|
361 |
+
|
362 |
+
#: options.php:126
|
363 |
+
#: options.php:156
|
364 |
+
#, php-format
|
365 |
+
msgid "require more than one %s in common"
|
366 |
+
msgstr ""
|
367 |
+
|
368 |
+
#: options.php:95
|
369 |
+
msgid "Options saved!"
|
370 |
+
msgstr ""
|
371 |
+
|
372 |
+
#: options.php:237
|
373 |
+
msgid "The higher the match threshold, the more restrictive, and you get less related posts overall. The default match threshold is 5. If you want to find an appropriate match threshhold, take a look at some post's related posts display and their scores. You can see what kinds of related posts are being picked up and with what kind of match scores, and determine an appropriate threshold for your site."
|
374 |
+
msgstr ""
|
375 |
+
|
376 |
+
#: options.php:419
|
377 |
+
msgid "Update options"
|
378 |
+
msgstr ""
|
379 |
+
|
380 |
+
#: options.php:420
|
381 |
+
msgid "Do you really want to reset your configuration?"
|
382 |
+
msgstr ""
|
383 |
+
|
384 |
+
#: options.php:420
|
385 |
+
msgid "Reset options"
|
386 |
+
msgstr ""
|
387 |
+
|
388 |
+
#~ msgid "The higher the match threshold, the more restrictive, and you get less related posts overall. The default match threshold is 5. If you want to find an appropriate match threshhold, I recommend you turn on the \"show admins the match scores\" setting below. That way, you can see what kinds of related posts are being picked up and with what kind of match scores, and determine an appropriate threshold for your site."
|
389 |
+
#~ msgstr "Je höher Sie den Wert \"Relevanz\" setzen, desto restriktiver arbeitet YARPP. Der Standardwert liegt bei 5. Wenn gar keine oder zuwenige Artikel angezeigt werden, setzen Sie ihn auf 3.5 oder gar 1 herunter. Für die Feinabstimmung aktivieren Sie die Option \"Administratoren den Wert der Relevanz anzeigen\" und stimmen den Wert auf Ihre Anforderungen ab."
|
390 |
+
#~ msgid "Show admins (user level > 8) the match scores?"
|
391 |
+
#~ msgstr "Administratoren (User Level > 8) den Wert der Relevanz anzeigen?"
|
392 |
+
#~ msgid "With this option on, each related entry's total 'match score' (all above the threshold, set above) are displayed after each entry title, <em>if you are an administrator and logged in.</em> Even if you see these values, your visitors will not."
|
393 |
+
#~ msgstr "Wenn aktiviert, sehen nur eingeloggte Administratoren (nicht die Besucher!) neben jeder Beitragsüberschrift den Übereinstimmungswert."
|
394 |
+
#~ msgid "This option displays related posts at the end of each item in your RSS and Atom feeds. No template changes are needed."
|
395 |
+
#~ msgstr "Zeigt ähnliche Beiträge in RSS- und Atom-Feeds an."
|
yet-another-related-posts-plugin/lang/yarpp-ja.mo
ADDED
Binary file
|
yet-another-related-posts-plugin/lang/yarpp-ja_JP.po
ADDED
@@ -0,0 +1,380 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Yet Another Related Posts Plugin v2.1.1\n"
|
4 |
+
"PO-Revision-Date: 2008-11-07 10:34-0500\n"
|
5 |
+
"Last-Translator: mitcho <mitcho@mitcho.com>\n"
|
6 |
+
"MIME-Version: 1.0\n"
|
7 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
+
"Content-Transfer-Encoding: 8bit\n"
|
9 |
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
10 |
+
"X-Poedit-Language: Japanese\n"
|
11 |
+
"X-Poedit-Country: JAPAN\n"
|
12 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
13 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;__ngettext_noop:1,2;_c\n"
|
14 |
+
"X-Poedit-Basepath: \n"
|
15 |
+
"X-Poedit-SearchPath-0: ."
|
16 |
+
|
17 |
+
#: includes.php:74
|
18 |
+
msgid "MySQL error on adding yarpp_title"
|
19 |
+
msgstr "yarpp_title インデックス作成時にエラー発生。"
|
20 |
+
|
21 |
+
#: includes.php:79
|
22 |
+
msgid "MySQL error on adding yarpp_content"
|
23 |
+
msgstr "yarpp_content インデックス作成時にエラー発生。"
|
24 |
+
|
25 |
+
#: includes.php:133
|
26 |
+
msgid "<h3>An important message from YARPP:</h3><p>Thank you for upgrading to YARPP 2. YARPP 2.0 adds the much requested ability to limit related entry results by certain tags or categories. 2.0 also brings more fine tuned control of the magic algorithm, letting you specify how the algorithm should consider or not consider entry content, titles, tags, and categories. Make sure to adjust the new settings to your liking and perhaps readjust your threshold.</p><p>For more information, check out the <a href=\"http://mitcho.com/code/yarpp/\">YARPP documentation</a>. (This message will not be displayed again.)</p>"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: includes.php:173
|
30 |
+
msgid "Related Posts"
|
31 |
+
msgstr "関連記事"
|
32 |
+
|
33 |
+
#: includes.php:178
|
34 |
+
msgid "YARPP"
|
35 |
+
msgstr ""
|
36 |
+
|
37 |
+
#: options.php:17
|
38 |
+
#, php-format
|
39 |
+
msgid "YARPP's \"consider titles\" and \"consider bodies\" relatedness criteria require your <code>%s</code> table to use the <a href='http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html'>MyISAM storage engine</a>, but the table seems to be using the <code>%s</code> engine. These two options have been disabled."
|
40 |
+
msgstr "YARPPの関連スコア計算の「タイトルを検討する」、「内容を検討する」オプションはデータベースの<code>%s</code>テーブルが <a href='http://dev.mysql.com/doc/refman/4.1/ja/myisam.html'>MyISAM</a> でなければ使用できません。 <code>%s</code>テーブルは現在<code>%s</code>ストーレージエンジンを使用しているので、このふたつのオプションは使えません。"
|
41 |
+
|
42 |
+
#: options.php:19
|
43 |
+
#, php-format
|
44 |
+
msgid "To restore these features, please update your <code>%s</code> table by executing the following SQL directive: <code>ALTER TABLE `%s` ENGINE = MyISAM;</code> . No data will be erased by altering the table's engine, although there are performance implications."
|
45 |
+
msgstr "このオプションを使用したければ、<code>%s</code>テーブルに対してこのようなクエリを実行してください:<code>ALTER TABLE `%s` ENGINE = MyISAM;</code>。このクエリはデータは一切消しません。"
|
46 |
+
|
47 |
+
#: options.php:21
|
48 |
+
#, php-format
|
49 |
+
msgid "If, despite this check, you are sure that <code>%s</code> is using the MyISAM engine, press this magic button:"
|
50 |
+
msgstr "<code>%s</code>テーブルが絶対MyISAMを使用していると思う方はこちらの魔法のボタンをどうぞ:"
|
51 |
+
|
52 |
+
#: options.php:24
|
53 |
+
msgid "Trust me. Let me use MyISAM features."
|
54 |
+
msgstr "MyISAM を使ってます。嘘じゃないから。"
|
55 |
+
|
56 |
+
#: options.php:47
|
57 |
+
msgid "The YARPP database had an error but has been fixed."
|
58 |
+
msgstr "YARPPのデータベースは修正されました。"
|
59 |
+
|
60 |
+
#: options.php:49
|
61 |
+
msgid "The YARPP database has an error which could not be fixed."
|
62 |
+
msgstr "YARPPのデータベースに修正できないエラーが発生しました。"
|
63 |
+
|
64 |
+
#: options.php:115
|
65 |
+
msgid "word"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: options.php:116
|
69 |
+
msgid "tag"
|
70 |
+
msgstr "タグ"
|
71 |
+
|
72 |
+
#: options.php:117
|
73 |
+
msgid "category"
|
74 |
+
msgstr "カテゴリー"
|
75 |
+
|
76 |
+
#: options.php:121
|
77 |
+
#: options.php:138
|
78 |
+
#: options.php:150
|
79 |
+
msgid "do not consider"
|
80 |
+
msgstr "検討しない"
|
81 |
+
|
82 |
+
#: options.php:122
|
83 |
+
#: options.php:139
|
84 |
+
#: options.php:152
|
85 |
+
msgid "consider"
|
86 |
+
msgstr "検討する"
|
87 |
+
|
88 |
+
#: options.php:124
|
89 |
+
#: options.php:154
|
90 |
+
#, php-format
|
91 |
+
msgid "require at least one %s in common"
|
92 |
+
msgstr "共有の%sをひとつ以上必要とする"
|
93 |
+
|
94 |
+
#: options.php:126
|
95 |
+
#: options.php:156
|
96 |
+
#, php-format
|
97 |
+
msgid "require more than one %s in common"
|
98 |
+
msgstr "共有の%sをふたつ以上必要とする"
|
99 |
+
|
100 |
+
#: options.php:140
|
101 |
+
msgid "consider with extra weight"
|
102 |
+
msgstr "検討する(重要視)"
|
103 |
+
|
104 |
+
#: options.php:168
|
105 |
+
msgid "Yet Another Related Posts Plugin version history (RSS 2.0)"
|
106 |
+
msgstr "関連記事プラグイン (YARPP) 更新履歴 (RSS 2.0)"
|
107 |
+
|
108 |
+
#: options.php:183
|
109 |
+
#: options.php:183
|
110 |
+
msgid "Donate to mitcho (Michael Yoshitaka Erlewine) for this plugin via PayPal"
|
111 |
+
msgstr "YARPPの作成者(ミッチョ)にPayPalで寄付をする"
|
112 |
+
|
113 |
+
#: options.php:186
|
114 |
+
msgid "Yet Another Related Posts Plugin Options"
|
115 |
+
msgstr "関連記事 (YARPP) 設定"
|
116 |
+
|
117 |
+
#: options.php:202
|
118 |
+
#, php-format
|
119 |
+
msgid "by <a href=\"http://mitcho.com/code/\">mitcho (Michael 芳貴 Erlewine)</a> and based on the fabulous work of <a href=\"http://peter.mapledesign.co.uk/weblog/archives/wordpress-related-posts-plugin\">Peter Bower</a>, <a href=\"http://wasabi.pbwiki.com/Related%20Entries\">Alexander Malov & Mike Lu</a>."
|
120 |
+
msgstr "作成者: <a href=\"http://mitcho.com/\">ミッチョ (アーリーワイン・マイケル芳貴)</a>"
|
121 |
+
|
122 |
+
#: options.php:206
|
123 |
+
msgid "\"The Pool\""
|
124 |
+
msgstr "フィルター設定"
|
125 |
+
|
126 |
+
#: options.php:207
|
127 |
+
msgid "\"The Pool\" refers to the pool of posts and pages that are candidates for display as related to the current entry."
|
128 |
+
msgstr "関連記事として表示したい記事を制限します。"
|
129 |
+
|
130 |
+
#: options.php:212
|
131 |
+
msgid "Disallow by category:"
|
132 |
+
msgstr "このカテゴリーの記事を表示しない"
|
133 |
+
|
134 |
+
#: options.php:221
|
135 |
+
msgid "Disallow by tag:"
|
136 |
+
msgstr "このタグの記事を表示しない"
|
137 |
+
|
138 |
+
#: options.php:230
|
139 |
+
msgid "Show password protected posts?"
|
140 |
+
msgstr "パスワードで保護されている記事も表示"
|
141 |
+
|
142 |
+
#: options.php:231
|
143 |
+
msgid "Show only previous posts?"
|
144 |
+
msgstr "過去の記事だけを表示"
|
145 |
+
|
146 |
+
#: options.php:236
|
147 |
+
msgid "\"Relatedness\" options"
|
148 |
+
msgstr "関連スコア設定"
|
149 |
+
|
150 |
+
#: options.php:237
|
151 |
+
#, php-format
|
152 |
+
msgid "YARPP is different than the <a href=\"http://wasabi.pbwiki.com/Related%20Entries\">previous plugins it is based on</a> as it limits the related posts list by (1) a maximum number and (2) a <em>match threshold</em>."
|
153 |
+
msgstr "この関連記事プラグイン(YARPP)は各対象記事の関連スコアを計算し、ある関連スコア以上の記事だけを表示します。"
|
154 |
+
|
155 |
+
#: options.php:242
|
156 |
+
msgid "Match threshold:"
|
157 |
+
msgstr "表示する最低関連スコア"
|
158 |
+
|
159 |
+
#: options.php:243
|
160 |
+
msgid "Titles: "
|
161 |
+
msgstr "タイトル:"
|
162 |
+
|
163 |
+
#: options.php:245
|
164 |
+
msgid "Bodies: "
|
165 |
+
msgstr "内容:"
|
166 |
+
|
167 |
+
#: options.php:247
|
168 |
+
msgid "Tags: "
|
169 |
+
msgstr "タグ:"
|
170 |
+
|
171 |
+
#: options.php:249
|
172 |
+
msgid "Categories: "
|
173 |
+
msgstr "カテゴリー:"
|
174 |
+
|
175 |
+
#: options.php:251
|
176 |
+
msgid "Cross-relate posts and pages?"
|
177 |
+
msgstr "記事とページを関連づける"
|
178 |
+
|
179 |
+
#: options.php:251
|
180 |
+
msgid "When the \"Cross-relate posts and pages\" option is selected, the <code>related_posts()</code>, <code>related_pages()</code>, and <code>related_entries()</code> all will give the same output, returning both related pages and posts."
|
181 |
+
msgstr "「記事とページを関連づける」が有効の場合は <code>related_posts()</code>、 <code>related_pages()</code> と <code>related_entries()</code> は全て記事とページを両方「関連記事/ページ」として表示します。"
|
182 |
+
|
183 |
+
#: options.php:293
|
184 |
+
msgid "Display options <small>for your website</small>"
|
185 |
+
msgstr "表示設定 <small>ウェブサイト用</small>"
|
186 |
+
|
187 |
+
#: options.php:302
|
188 |
+
#: options.php:363
|
189 |
+
#: options.php:363
|
190 |
+
msgid "RELATED TITLE"
|
191 |
+
msgstr "関連記事タイトル"
|
192 |
+
|
193 |
+
#: options.php:307
|
194 |
+
#: options.php:349
|
195 |
+
#: options.php:368
|
196 |
+
#: options.php:412
|
197 |
+
#: magic.php:219
|
198 |
+
msgid "Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>."
|
199 |
+
msgstr "関連記事は<a href='http://mitcho.com/code/yarpp/'>YARPP関連記事プラグイン</a>によって表示されています。"
|
200 |
+
|
201 |
+
#: options.php:309
|
202 |
+
msgid "Automatically display related posts?"
|
203 |
+
msgstr "自動的に関連記事を表示する"
|
204 |
+
|
205 |
+
#: options.php:309
|
206 |
+
msgid "This option automatically displays related posts right after the content on single entry pages. If this option is off, you will need to manually insert <code>related_posts()</code> or variants (<code>related_pages()</code> and <code>related_entries()</code>) into your theme files."
|
207 |
+
msgstr "単体記事表示時に自動的に関連記事を表示します。この自動表示を無効にすると、テーマファイルに<code>related_posts()</code>を入れる必要があります。"
|
208 |
+
|
209 |
+
#: options.php:310
|
210 |
+
msgid "Website display code example"
|
211 |
+
msgstr "ウェブサイト表示のソース例"
|
212 |
+
|
213 |
+
#: options.php:310
|
214 |
+
#: options.php:372
|
215 |
+
msgid "(Update options to reload.)"
|
216 |
+
msgstr "(設定保存時に更新されます)"
|
217 |
+
|
218 |
+
#: options.php:312
|
219 |
+
#: options.php:374
|
220 |
+
msgid "Maximum number of related posts:"
|
221 |
+
msgstr "一度に表示する関連記事数"
|
222 |
+
|
223 |
+
#: options.php:314
|
224 |
+
msgid "Before / after related entries:"
|
225 |
+
msgstr "関連記事表示を囲むタグ:"
|
226 |
+
|
227 |
+
#: options.php:315
|
228 |
+
#: options.php:320
|
229 |
+
#: options.php:329
|
230 |
+
#: options.php:378
|
231 |
+
#: options.php:383
|
232 |
+
#: options.php:392
|
233 |
+
msgid "For example:"
|
234 |
+
msgstr "例:"
|
235 |
+
|
236 |
+
#: options.php:319
|
237 |
+
#: options.php:382
|
238 |
+
msgid "Before / after each related entry:"
|
239 |
+
msgstr "各関連記事を囲むタグ:"
|
240 |
+
|
241 |
+
#: options.php:323
|
242 |
+
#: options.php:386
|
243 |
+
msgid "Show excerpt?"
|
244 |
+
msgstr "抜粋を表示?"
|
245 |
+
|
246 |
+
#: options.php:324
|
247 |
+
#: options.php:387
|
248 |
+
msgid "Excerpt length (No. of words):"
|
249 |
+
msgstr "抜粋の長さ(単語数):"
|
250 |
+
|
251 |
+
#: options.php:328
|
252 |
+
msgid "Before / after (Excerpt):"
|
253 |
+
msgstr "抜粋を囲むタグ:"
|
254 |
+
|
255 |
+
#: options.php:334
|
256 |
+
#: options.php:397
|
257 |
+
msgid "Order results:"
|
258 |
+
msgstr "表示順番:"
|
259 |
+
|
260 |
+
#: options.php:336
|
261 |
+
#: options.php:399
|
262 |
+
msgid "score (high relevance to low)"
|
263 |
+
msgstr "関連スコアの高い順"
|
264 |
+
|
265 |
+
#: options.php:337
|
266 |
+
#: options.php:400
|
267 |
+
msgid "score (low relevance to high)"
|
268 |
+
msgstr "関連スコアの低い順"
|
269 |
+
|
270 |
+
#: options.php:338
|
271 |
+
#: options.php:401
|
272 |
+
msgid "date (new to old)"
|
273 |
+
msgstr "新しい日付順(降順)"
|
274 |
+
|
275 |
+
#: options.php:339
|
276 |
+
#: options.php:402
|
277 |
+
msgid "date (old to new)"
|
278 |
+
msgstr "古い日付順(昇順)"
|
279 |
+
|
280 |
+
#: options.php:340
|
281 |
+
#: options.php:403
|
282 |
+
msgid "title (alphabetical)"
|
283 |
+
msgstr "タイトル順(昇順)"
|
284 |
+
|
285 |
+
#: options.php:341
|
286 |
+
#: options.php:404
|
287 |
+
msgid "title (reverse alphabetical)"
|
288 |
+
msgstr "タイトル順(降順)"
|
289 |
+
|
290 |
+
#: options.php:346
|
291 |
+
#: options.php:409
|
292 |
+
msgid "Default display if no results:"
|
293 |
+
msgstr "関連記事がない時のメッセージ"
|
294 |
+
|
295 |
+
#: options.php:347
|
296 |
+
#: options.php:411
|
297 |
+
msgid "Help promote Yet Another Related Posts Plugin?"
|
298 |
+
msgstr "この関連記事プラグイン(YARPP)を宣伝しますか?"
|
299 |
+
|
300 |
+
#: options.php:349
|
301 |
+
#: options.php:412
|
302 |
+
#, php-format
|
303 |
+
msgid "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated."
|
304 |
+
msgstr "関連記事表示の下に「%s」というコードを挿入します。"
|
305 |
+
|
306 |
+
#: options.php:354
|
307 |
+
msgid "Display options <small>for RSS</small>"
|
308 |
+
msgstr "表示設定 <small>RSS/Atom フィード用</small>"
|
309 |
+
|
310 |
+
#: options.php:370
|
311 |
+
msgid "Display related posts in feeds?"
|
312 |
+
msgstr "自動的にフィードで関連記事を表示する"
|
313 |
+
|
314 |
+
#: options.php:371
|
315 |
+
msgid "Display related posts in the descriptions?"
|
316 |
+
msgstr "フィード内の抜粋にも自動的に関連記事を表示する"
|
317 |
+
|
318 |
+
#: options.php:371
|
319 |
+
msgid "This option displays the related posts in the RSS description fields, not just the content. If your feeds are set up to only display excerpts, however, only the description field is used, so this option is required for any display at all."
|
320 |
+
msgstr "フィード内の全文表示に関連記事を表示するだけでなく、フィード内の抜粋でも関連記事が表示されます。WordPressの設定によりフィードに抜粋のみを表示している場合は、このオプションが無効の場合関連記事がフィード内で表示されません。"
|
321 |
+
|
322 |
+
#: options.php:372
|
323 |
+
msgid "RSS display code example"
|
324 |
+
msgstr "RSS表示のソース例"
|
325 |
+
|
326 |
+
#: options.php:377
|
327 |
+
msgid "Before / after related entries display:"
|
328 |
+
msgstr "関連記事表示を囲むタグ:"
|
329 |
+
|
330 |
+
#: options.php:391
|
331 |
+
msgid "Before / after (excerpt):"
|
332 |
+
msgstr "抜粋を囲むタグ:"
|
333 |
+
|
334 |
+
#: magic.php:210
|
335 |
+
#, php-format
|
336 |
+
msgid "%f is the YARPP match score between the current entry and this related entry. You are seeing this value because you are logged in to WordPress as an administrator. It is not shown to regular visitors."
|
337 |
+
msgstr "%fは現在表示の記事とこの関連記事の関連スコアです。この関連スコアはログイン済みのサイト管理者のみに表示されます。"
|
338 |
+
|
339 |
+
#: includes.php:154
|
340 |
+
#: includes.php:154
|
341 |
+
msgid "Related Posts (YARPP)"
|
342 |
+
msgstr "関連記事 (YARPP)"
|
343 |
+
|
344 |
+
#: options.php:8
|
345 |
+
msgid "The MyISAM check has been overridden. You may now use the \"consider titles\" and \"consider bodies\" relatedness criteria."
|
346 |
+
msgstr "MyISAM専用機能を強制的に有効にしました。「タイトルを検討」と「内容を検討」機能が使えるようになりました。"
|
347 |
+
|
348 |
+
#: options.php:302
|
349 |
+
msgid "PERMALINK"
|
350 |
+
msgstr "パーマリンク"
|
351 |
+
|
352 |
+
#: options.php:237
|
353 |
+
#: options.php:251
|
354 |
+
#: options.php:309
|
355 |
+
#: options.php:348
|
356 |
+
#: options.php:371
|
357 |
+
#: options.php:411
|
358 |
+
msgid "more>"
|
359 |
+
msgstr "(説明)"
|
360 |
+
|
361 |
+
#: options.php:95
|
362 |
+
msgid "Options saved!"
|
363 |
+
msgstr "設定の変更は保存されました。"
|
364 |
+
|
365 |
+
#: options.php:420
|
366 |
+
msgid "Do you really want to reset your configuration?"
|
367 |
+
msgstr "本当に初期設定に戻りますか?"
|
368 |
+
|
369 |
+
#: options.php:419
|
370 |
+
msgid "Update options"
|
371 |
+
msgstr "変更を保存"
|
372 |
+
|
373 |
+
#: options.php:237
|
374 |
+
msgid "The higher the match threshold, the more restrictive, and you get less related posts overall. The default match threshold is 5. If you want to find an appropriate match threshhold, take a look at some post's related posts display and their scores. You can see what kinds of related posts are being picked up and with what kind of match scores, and determine an appropriate threshold for your site."
|
375 |
+
msgstr "より関連性の高い記事だけを表示したい場合は、最低関連スコアを上げてください。初期設定は5です。"
|
376 |
+
|
377 |
+
#: options.php:420
|
378 |
+
msgid "Reset options"
|
379 |
+
msgstr "初期設定に戻る"
|
380 |
+
|
yet-another-related-posts-plugin/lang/yarpp-zh_CN.mo
ADDED
Binary file
|
yet-another-related-posts-plugin/lang/yarpp-zh_CN.po
ADDED
@@ -0,0 +1,380 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Yet Another Related Posts Plugin v2.1.3\n"
|
4 |
+
"PO-Revision-Date: 2008-11-10 08:40-0600\n"
|
5 |
+
"Last-Translator: Jor <mail@jorwang.com>\n"
|
6 |
+
"MIME-Version: 1.0\n"
|
7 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
+
"Content-Transfer-Encoding: 8bit\n"
|
9 |
+
"Plural-Forms: nplurals=2; plural=1;\n"
|
10 |
+
"X-Poedit-Language: Chinese\n"
|
11 |
+
"X-Poedit-Country: PEOPLE'S REPUBLIC OF CHINA\n"
|
12 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
13 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;__ngettext_noop:1,2;_c\n"
|
14 |
+
"X-Poedit-Basepath: \n"
|
15 |
+
"X-Poedit-SearchPath-0: ."
|
16 |
+
|
17 |
+
#: includes.php:74
|
18 |
+
msgid "MySQL error on adding yarpp_title"
|
19 |
+
msgstr "在添加 yarpp_title 时 MySQL 发生错误"
|
20 |
+
|
21 |
+
#: includes.php:79
|
22 |
+
msgid "MySQL error on adding yarpp_content"
|
23 |
+
msgstr "在添加 yarpp_content 时 MySQL 发生错误"
|
24 |
+
|
25 |
+
#: includes.php:133
|
26 |
+
msgid "<h3>An important message from YARPP:</h3><p>Thank you for upgrading to YARPP 2. YARPP 2.0 adds the much requested ability to limit related entry results by certain tags or categories. 2.0 also brings more fine tuned control of the magic algorithm, letting you specify how the algorithm should consider or not consider entry content, titles, tags, and categories. Make sure to adjust the new settings to your liking and perhaps readjust your threshold.</p><p>For more information, check out the <a href=\"http://mitcho.com/code/yarpp/\">YARPP documentation</a>. (This message will not be displayed again.)</p>"
|
27 |
+
msgstr "<h3>关于 YARPP 的重要信息:</h3><p>感谢您升级到 YARPP 2. YARPP 2.0 adds the much requested ability to limit related entry results by certain tags or categories. 2.0 also brings more fine tuned control of the magic algorithm, letting you specify how the algorithm should consider or not consider entry content, titles, tags, and categories. Make sure to adjust the new settings to your liking and perhaps readjust your threshold.</p><p>更多信息,请查阅 <a href=\"http://mitcho.com/code/yarpp/\">YARPP 官方手册</a>. (本条信息不会再次出现。)</p>"
|
28 |
+
|
29 |
+
#: includes.php:154
|
30 |
+
#: includes.php:154
|
31 |
+
msgid "Related Posts (YARPP)"
|
32 |
+
msgstr "关联文章 (YARPP)"
|
33 |
+
|
34 |
+
#: includes.php:173
|
35 |
+
msgid "Related Posts"
|
36 |
+
msgstr "Related Posts"
|
37 |
+
|
38 |
+
#: includes.php:178
|
39 |
+
msgid "YARPP"
|
40 |
+
msgstr "YARPP"
|
41 |
+
|
42 |
+
#: magic.php:210
|
43 |
+
#, php-format
|
44 |
+
msgid "%f is the YARPP match score between the current entry and this related entry. You are seeing this value because you are logged in to WordPress as an administrator. It is not shown to regular visitors."
|
45 |
+
msgstr "YARPP 中的 %f 是指当前文章和关联文章之间的匹配程度。当您以管理员的身份登录时才能查阅,游客等其他权限是不能查阅的。"
|
46 |
+
|
47 |
+
#: options.php:307
|
48 |
+
#: options.php:349
|
49 |
+
#: options.php:368
|
50 |
+
#: options.php:412
|
51 |
+
#: magic.php:219
|
52 |
+
msgid "Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>."
|
53 |
+
msgstr "Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>."
|
54 |
+
|
55 |
+
#: options.php:8
|
56 |
+
msgid "The MyISAM check has been overridden. You may now use the \"consider titles\" and \"consider bodies\" relatedness criteria."
|
57 |
+
msgstr "The MyISAM check has been overridden. You may now use the \"consider titles\" and \"consider bodies\" relatedness criteria."
|
58 |
+
|
59 |
+
#: options.php:17
|
60 |
+
#, php-format
|
61 |
+
msgid "YARPP's \"consider titles\" and \"consider bodies\" relatedness criteria require your <code>%s</code> table to use the <a href='http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html'>MyISAM storage engine</a>, but the table seems to be using the <code>%s</code> engine. These two options have been disabled."
|
62 |
+
msgstr "YARPP's \"consider titles\" and \"consider bodies\" relatedness criteria require your <code>%s</code> table to use the <a href='http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html'>MyISAM storage engine</a>, but the table seems to be using the <code>%s</code> engine. These two options have been disabled."
|
63 |
+
|
64 |
+
#: options.php:19
|
65 |
+
#, php-format
|
66 |
+
msgid "To restore these features, please update your <code>%s</code> table by executing the following SQL directive: <code>ALTER TABLE `%s` ENGINE = MyISAM;</code> . No data will be erased by altering the table's engine, although there are performance implications."
|
67 |
+
msgstr "如果要恢复这些功能,请在您的 <code>%s</code> 表执行下列SQL指令: <code>ALTER TABLE `%s` ENGINE = MyISAM;</code> 。该操作将修改数据库,但不会损坏您的其它设置。"
|
68 |
+
|
69 |
+
#: options.php:21
|
70 |
+
#, php-format
|
71 |
+
msgid "If, despite this check, you are sure that <code>%s</code> is using the MyISAM engine, press this magic button:"
|
72 |
+
msgstr "同意后 <code>%s</code> 将使用 MyISAM 引擎:"
|
73 |
+
|
74 |
+
#: options.php:24
|
75 |
+
msgid "Trust me. Let me use MyISAM features."
|
76 |
+
msgstr "Trust me. Let me use MyISAM features."
|
77 |
+
|
78 |
+
#: options.php:47
|
79 |
+
msgid "The YARPP database had an error but has been fixed."
|
80 |
+
msgstr "YARPP 数据库中的错误已被修复。"
|
81 |
+
|
82 |
+
#: options.php:49
|
83 |
+
msgid "The YARPP database has an error which could not be fixed."
|
84 |
+
msgstr "YARPP 数据库中出现一个错误,无法修复。"
|
85 |
+
|
86 |
+
#: options.php:121
|
87 |
+
#: options.php:138
|
88 |
+
#: options.php:150
|
89 |
+
msgid "do not consider"
|
90 |
+
msgstr "不参考"
|
91 |
+
|
92 |
+
#: options.php:122
|
93 |
+
#: options.php:139
|
94 |
+
#: options.php:152
|
95 |
+
msgid "consider"
|
96 |
+
msgstr "参考"
|
97 |
+
|
98 |
+
#: options.php:140
|
99 |
+
msgid "consider with extra weight"
|
100 |
+
msgstr "作为主要参考指标"
|
101 |
+
|
102 |
+
#: options.php:168
|
103 |
+
msgid "Yet Another Related Posts Plugin version history (RSS 2.0)"
|
104 |
+
msgstr "Yet Another Related Posts Plugin 版本历史 (RSS 2.0)"
|
105 |
+
|
106 |
+
#: options.php:183
|
107 |
+
#: options.php:183
|
108 |
+
msgid "Donate to mitcho (Michael Yoshitaka Erlewine) for this plugin via PayPal"
|
109 |
+
msgstr "通过 PayPal 给插件作者 mitcho (Michael Yoshitaka Erlewine) 捐赠"
|
110 |
+
|
111 |
+
#: options.php:186
|
112 |
+
msgid "Yet Another Related Posts Plugin Options"
|
113 |
+
msgstr "Yet Another Related Posts Plugin 设置"
|
114 |
+
|
115 |
+
#: options.php:202
|
116 |
+
#, php-format
|
117 |
+
msgid "by <a href=\"http://mitcho.com/code/\">mitcho (Michael 芳貴 Erlewine)</a> and based on the fabulous work of <a href=\"http://peter.mapledesign.co.uk/weblog/archives/wordpress-related-posts-plugin\">Peter Bower</a>, <a href=\"http://wasabi.pbwiki.com/Related%20Entries\">Alexander Malov & Mike Lu</a>."
|
118 |
+
msgstr "by <a href=\"http://mitcho.com/code/\">mitcho (Michael 芳貴 Erlewine)</a> and based on the fabulous work of <a href=\"http://peter.mapledesign.co.uk/weblog/archives/wordpress-related-posts-plugin\">Peter Bower</a>, <a href=\"http://wasabi.pbwiki.com/Related%20Entries\">Alexander Malov & Mike Lu</a>. 简体中文翻译:<a href=\"http://jorwang.com/\">Jor Wang</a>."
|
119 |
+
|
120 |
+
#: options.php:206
|
121 |
+
msgid "\"The Pool\""
|
122 |
+
msgstr "全局设置"
|
123 |
+
|
124 |
+
#: options.php:207
|
125 |
+
msgid "\"The Pool\" refers to the pool of posts and pages that are candidates for display as related to the current entry."
|
126 |
+
msgstr "您可以在“全局设置”里排除某特定分类或标签,今后 YARPP 在筛选关联文章时将不列出已排除项目中的文章。"
|
127 |
+
|
128 |
+
#: options.php:212
|
129 |
+
msgid "Disallow by category:"
|
130 |
+
msgstr "禁止关联以下分类:"
|
131 |
+
|
132 |
+
#: options.php:221
|
133 |
+
msgid "Disallow by tag:"
|
134 |
+
msgstr "禁止关联以下标签:"
|
135 |
+
|
136 |
+
#: options.php:230
|
137 |
+
msgid "Show password protected posts?"
|
138 |
+
msgstr "显示加密日志?"
|
139 |
+
|
140 |
+
#: options.php:231
|
141 |
+
msgid "Show only previous posts?"
|
142 |
+
msgstr "只显示以前的日志?"
|
143 |
+
|
144 |
+
#: options.php:236
|
145 |
+
msgid "\"Relatedness\" options"
|
146 |
+
msgstr "关联设置"
|
147 |
+
|
148 |
+
#: options.php:237
|
149 |
+
#, php-format
|
150 |
+
msgid "YARPP is different than the <a href=\"http://wasabi.pbwiki.com/Related%20Entries\">previous plugins it is based on</a> as it limits the related posts list by (1) a maximum number and (2) a <em>match threshold</em>."
|
151 |
+
msgstr "关联文章(YARPP)不同于<a href=\"http://wasabi.pbwiki.com/Related%20Entries\">以往的关联文章插件</a>,它有更先进的关联算法。您可以通过设置最大显示条目和匹配值使文章之间的匹配度更为精准。"
|
152 |
+
|
153 |
+
#: options.php:242
|
154 |
+
msgid "Match threshold:"
|
155 |
+
msgstr "匹配值:"
|
156 |
+
|
157 |
+
#: options.php:243
|
158 |
+
msgid "Titles: "
|
159 |
+
msgstr "标题:"
|
160 |
+
|
161 |
+
#: options.php:245
|
162 |
+
msgid "Bodies: "
|
163 |
+
msgstr "正文:"
|
164 |
+
|
165 |
+
#: options.php:247
|
166 |
+
msgid "Tags: "
|
167 |
+
msgstr "标签:"
|
168 |
+
|
169 |
+
#: options.php:249
|
170 |
+
msgid "Categories: "
|
171 |
+
msgstr "分类:"
|
172 |
+
|
173 |
+
#: options.php:251
|
174 |
+
msgid "Cross-relate posts and pages?"
|
175 |
+
msgstr "固定页面参与关联?"
|
176 |
+
|
177 |
+
#: options.php:251
|
178 |
+
msgid "When the \"Cross-relate posts and pages\" option is selected, the <code>related_posts()</code>, <code>related_pages()</code>, and <code>related_entries()</code> all will give the same output, returning both related pages and posts."
|
179 |
+
msgstr "选中该项后,<code>related_posts()</code>, <code>related_pages()</code>, 和 <code>related_entries()</code> 这些代码的输出结果相同。"
|
180 |
+
|
181 |
+
#: options.php:293
|
182 |
+
msgid "Display options <small>for your website</small>"
|
183 |
+
msgstr "显示设置"
|
184 |
+
|
185 |
+
#: options.php:302
|
186 |
+
msgid "PERMALINK"
|
187 |
+
msgstr "PERMALINK"
|
188 |
+
|
189 |
+
#: options.php:302
|
190 |
+
#: options.php:363
|
191 |
+
#: options.php:363
|
192 |
+
msgid "RELATED TITLE"
|
193 |
+
msgstr "RELATED TITLE"
|
194 |
+
|
195 |
+
#: options.php:309
|
196 |
+
msgid "Automatically display related posts?"
|
197 |
+
msgstr "自动插入关联文章?"
|
198 |
+
|
199 |
+
#: options.php:309
|
200 |
+
msgid "This option automatically displays related posts right after the content on single entry pages. If this option is off, you will need to manually insert <code>related_posts()</code> or variants (<code>related_pages()</code> and <code>related_entries()</code>) into your theme files."
|
201 |
+
msgstr "根据右侧的代码示例,自动插入关联文章到您的页面中,当您取消该选项时,需要通过手工加入代码 <code>related_posts()</code> 或者根据需求插入 (<code>related_pages()</code> and <code>related_entries()</code>) 到您的模板文件中。"
|
202 |
+
|
203 |
+
#: options.php:310
|
204 |
+
msgid "Website display code example"
|
205 |
+
msgstr "网站显示的代码示例"
|
206 |
+
|
207 |
+
#: options.php:310
|
208 |
+
#: options.php:372
|
209 |
+
msgid "(Update options to reload.)"
|
210 |
+
msgstr "(更新设置后生效。)"
|
211 |
+
|
212 |
+
#: options.php:312
|
213 |
+
#: options.php:374
|
214 |
+
msgid "Maximum number of related posts:"
|
215 |
+
msgstr "最多关联篇数"
|
216 |
+
|
217 |
+
#: options.php:314
|
218 |
+
msgid "Before / after related entries:"
|
219 |
+
msgstr "主体起止标签"
|
220 |
+
|
221 |
+
#: options.php:315
|
222 |
+
#: options.php:320
|
223 |
+
#: options.php:329
|
224 |
+
#: options.php:378
|
225 |
+
#: options.php:383
|
226 |
+
#: options.php:392
|
227 |
+
msgid "For example:"
|
228 |
+
msgstr "例如:"
|
229 |
+
|
230 |
+
#: options.php:319
|
231 |
+
#: options.php:382
|
232 |
+
msgid "Before / after each related entry:"
|
233 |
+
msgstr "条目起止标签"
|
234 |
+
|
235 |
+
#: options.php:323
|
236 |
+
#: options.php:386
|
237 |
+
msgid "Show excerpt?"
|
238 |
+
msgstr "显示摘要?"
|
239 |
+
|
240 |
+
#: options.php:324
|
241 |
+
#: options.php:387
|
242 |
+
msgid "Excerpt length (No. of words):"
|
243 |
+
msgstr "摘要字符数"
|
244 |
+
|
245 |
+
#: options.php:328
|
246 |
+
msgid "Before / after (Excerpt):"
|
247 |
+
msgstr "摘要起止标签:"
|
248 |
+
|
249 |
+
#: options.php:334
|
250 |
+
#: options.php:397
|
251 |
+
msgid "Order results:"
|
252 |
+
msgstr "排序方式:"
|
253 |
+
|
254 |
+
#: options.php:336
|
255 |
+
#: options.php:399
|
256 |
+
msgid "score (high relevance to low)"
|
257 |
+
msgstr "匹配值(有高到低)"
|
258 |
+
|
259 |
+
#: options.php:337
|
260 |
+
#: options.php:400
|
261 |
+
msgid "score (low relevance to high)"
|
262 |
+
msgstr "匹配值(由低到高)"
|
263 |
+
|
264 |
+
#: options.php:338
|
265 |
+
#: options.php:401
|
266 |
+
msgid "date (new to old)"
|
267 |
+
msgstr "日期(由新到旧)"
|
268 |
+
|
269 |
+
#: options.php:339
|
270 |
+
#: options.php:402
|
271 |
+
msgid "date (old to new)"
|
272 |
+
msgstr "日期(由旧到新)"
|
273 |
+
|
274 |
+
#: options.php:340
|
275 |
+
#: options.php:403
|
276 |
+
msgid "title (alphabetical)"
|
277 |
+
msgstr "标题(按字母顺序排列)"
|
278 |
+
|
279 |
+
#: options.php:341
|
280 |
+
#: options.php:404
|
281 |
+
msgid "title (reverse alphabetical)"
|
282 |
+
msgstr "标题(按逆向字母排列)"
|
283 |
+
|
284 |
+
#: options.php:346
|
285 |
+
#: options.php:409
|
286 |
+
msgid "Default display if no results:"
|
287 |
+
msgstr "无匹配时:"
|
288 |
+
|
289 |
+
#: options.php:347
|
290 |
+
#: options.php:411
|
291 |
+
msgid "Help promote Yet Another Related Posts Plugin?"
|
292 |
+
msgstr "帮助推广关联文章(YARPP)插件?"
|
293 |
+
|
294 |
+
#: options.php:349
|
295 |
+
#: options.php:412
|
296 |
+
#, php-format
|
297 |
+
msgid "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated."
|
298 |
+
msgstr "选中该项后会在模板中加入以下代码:%s. 设置更新后可以在右侧的代码示例看到。真诚地感谢您的推广或捐赠。"
|
299 |
+
|
300 |
+
#: options.php:354
|
301 |
+
msgid "Display options <small>for RSS</small>"
|
302 |
+
msgstr "RSS 相关设置"
|
303 |
+
|
304 |
+
#: options.php:370
|
305 |
+
msgid "Display related posts in feeds?"
|
306 |
+
msgstr "在文章底部显示?"
|
307 |
+
|
308 |
+
#: options.php:371
|
309 |
+
msgid "Display related posts in the descriptions?"
|
310 |
+
msgstr "在摘要中显示?(当RSS只输出摘要时)"
|
311 |
+
|
312 |
+
#: options.php:371
|
313 |
+
msgid "This option displays the related posts in the RSS description fields, not just the content. If your feeds are set up to only display excerpts, however, only the description field is used, so this option is required for any display at all."
|
314 |
+
msgstr "该选项将会在 RSS 的摘要区中插入关联文章,而不是在正文区中。如果您的 RSS 只输出摘要,请选择该项。"
|
315 |
+
|
316 |
+
#: options.php:372
|
317 |
+
msgid "RSS display code example"
|
318 |
+
msgstr "RSS 显示的代码示例"
|
319 |
+
|
320 |
+
#: options.php:377
|
321 |
+
msgid "Before / after related entries display:"
|
322 |
+
msgstr "主体起止标签:"
|
323 |
+
|
324 |
+
#: options.php:391
|
325 |
+
msgid "Before / after (excerpt):"
|
326 |
+
msgstr "摘要起止标签:"
|
327 |
+
|
328 |
+
#: options.php:237
|
329 |
+
#: options.php:251
|
330 |
+
#: options.php:309
|
331 |
+
#: options.php:348
|
332 |
+
#: options.php:371
|
333 |
+
#: options.php:411
|
334 |
+
msgid "more>"
|
335 |
+
msgstr "更多>"
|
336 |
+
|
337 |
+
#: options.php:115
|
338 |
+
msgid "word"
|
339 |
+
msgstr "字符"
|
340 |
+
|
341 |
+
#: options.php:116
|
342 |
+
msgid "tag"
|
343 |
+
msgstr "标签"
|
344 |
+
|
345 |
+
#: options.php:117
|
346 |
+
msgid "category"
|
347 |
+
msgstr "分类"
|
348 |
+
|
349 |
+
#: options.php:124
|
350 |
+
#: options.php:154
|
351 |
+
#, php-format
|
352 |
+
msgid "require at least one %s in common"
|
353 |
+
msgstr "至少从一个%s中考虑关联"
|
354 |
+
|
355 |
+
#: options.php:126
|
356 |
+
#: options.php:156
|
357 |
+
#, php-format
|
358 |
+
msgid "require more than one %s in common"
|
359 |
+
msgstr "至少从一个以上%s中考虑关联"
|
360 |
+
|
361 |
+
#: options.php:95
|
362 |
+
msgid "Options saved!"
|
363 |
+
msgstr "保存成功!"
|
364 |
+
|
365 |
+
#: options.php:237
|
366 |
+
msgid "The higher the match threshold, the more restrictive, and you get less related posts overall. The default match threshold is 5. If you want to find an appropriate match threshhold, take a look at some post's related posts display and their scores. You can see what kinds of related posts are being picked up and with what kind of match scores, and determine an appropriate threshold for your site."
|
367 |
+
msgstr "只简单的几步设置,就能精准得到您想要的关联文章。这里默认的匹配值为5 。如果你想找到合适您网站的的匹配值,我建议你打开 ”对管理员(权限>8的用户)显示匹配值” 这个设置,这样可以更容易找到适合您网站的匹配值。"
|
368 |
+
|
369 |
+
#: options.php:419
|
370 |
+
msgid "Update options"
|
371 |
+
msgstr "保存设置"
|
372 |
+
|
373 |
+
#: options.php:420
|
374 |
+
msgid "Do you really want to reset your configuration?"
|
375 |
+
msgstr "请注意!您确定重置所有的设置吗?"
|
376 |
+
|
377 |
+
#: options.php:420
|
378 |
+
msgid "Reset options"
|
379 |
+
msgstr "重置设置"
|
380 |
+
|
magic.php → yet-another-related-posts-plugin/magic.php
RENAMED
@@ -27,7 +27,10 @@ function yarpp_sql($type,$args,$giveresults = true,$reference_ID=false,$domain='
|
|
27 |
'tags'=>'tags',
|
28 |
'categories'=>'categories',
|
29 |
'distags'=>'distags',
|
30 |
-
'discats'=>'discats'
|
|
|
|
|
|
|
31 |
$optvals = array();
|
32 |
foreach (array_keys($options) as $option) {
|
33 |
if (isset($args[$option])) {
|
@@ -71,9 +74,9 @@ function yarpp_sql($type,$args,$giveresults = true,$reference_ID=false,$domain='
|
|
71 |
|
72 |
$criteria = array();
|
73 |
if ($bodyweight)
|
74 |
-
$criteria['body'] = "(MATCH (post_content) AGAINST ('$body_terms'))";
|
75 |
if ($titleweight)
|
76 |
-
$criteria['title'] = "(MATCH (post_title) AGAINST ('$title_terms'))";
|
77 |
if ($tagweight)
|
78 |
$criteria['tag'] = "COUNT( DISTINCT tagtax.term_taxonomy_id )";
|
79 |
if ($catweight)
|
@@ -120,6 +123,8 @@ function yarpp_sql($type,$args,$giveresults = true,$reference_ID=false,$domain='
|
|
120 |
$newsql .= " and post_date <= NOW() ";
|
121 |
if (!$show_pass_post)
|
122 |
$newsql .= " and post_password ='' ";
|
|
|
|
|
123 |
|
124 |
$newsql .= " and post_type IN ('".implode("', '",$type)."')";
|
125 |
|
@@ -202,7 +207,7 @@ function yarpp_related($type,$args,$echo = true,$reference_ID=false,$domain = 'w
|
|
202 |
include('template-metabox.php');
|
203 |
} elseif ($use_template) {
|
204 |
ob_start();
|
205 |
-
include('templates/'.$template_file);
|
206 |
$output = ob_get_contents();
|
207 |
ob_end_clean();
|
208 |
} else {
|
27 |
'tags'=>'tags',
|
28 |
'categories'=>'categories',
|
29 |
'distags'=>'distags',
|
30 |
+
'discats'=>'discats',
|
31 |
+
'recent_only'=>'recent_only',
|
32 |
+
'recent_number'=>'recent_number',
|
33 |
+
'recent_units'=>'recent_units');
|
34 |
$optvals = array();
|
35 |
foreach (array_keys($options) as $option) {
|
36 |
if (isset($args[$option])) {
|
74 |
|
75 |
$criteria = array();
|
76 |
if ($bodyweight)
|
77 |
+
$criteria['body'] = "(MATCH (post_content) AGAINST ('".$wpdb->escape($body_terms)."'))";
|
78 |
if ($titleweight)
|
79 |
+
$criteria['title'] = "(MATCH (post_title) AGAINST ('".$wpdb->escape($title_terms)."'))";
|
80 |
if ($tagweight)
|
81 |
$criteria['tag'] = "COUNT( DISTINCT tagtax.term_taxonomy_id )";
|
82 |
if ($catweight)
|
123 |
$newsql .= " and post_date <= NOW() ";
|
124 |
if (!$show_pass_post)
|
125 |
$newsql .= " and post_password ='' ";
|
126 |
+
if ($recent_only)
|
127 |
+
$newsql .= " and post_date > date_sub(now(), interval $recent_number $recent_units) ";
|
128 |
|
129 |
$newsql .= " and post_type IN ('".implode("', '",$type)."')";
|
130 |
|
207 |
include('template-metabox.php');
|
208 |
} elseif ($use_template) {
|
209 |
ob_start();
|
210 |
+
include('../yarpp-templates/'.$template_file);
|
211 |
$output = ob_get_contents();
|
212 |
ob_end_clean();
|
213 |
} else {
|
options.css → yet-another-related-posts-plugin/options.css
RENAMED
File without changes
|
options.php → yet-another-related-posts-plugin/options.php
RENAMED
@@ -202,7 +202,7 @@ document.getElementsByTagName("head")[0].appendChild(css);
|
|
202 |
|
203 |
function load_display_demo_web() {
|
204 |
jQuery.ajax({type:'POST',
|
205 |
-
url:'
|
206 |
data:'action=yarpp_display_demo_web',
|
207 |
beforeSend:function(){jQuery('#display_demo_web').eq(0).html('<img src="../wp-content/plugins/yet-another-related-posts-plugin/i/spin.gif" alt="loading..."/>')},
|
208 |
success:function(html){jQuery('#display_demo_web').eq(0).html('<pre>'+html+'</pre>')},
|
@@ -212,7 +212,7 @@ function load_display_demo_web() {
|
|
212 |
|
213 |
function load_display_demo_rss() {
|
214 |
jQuery.ajax({type:'POST',
|
215 |
-
url:'
|
216 |
data:'action=yarpp_display_demo_rss',
|
217 |
beforeSend:function(){jQuery('#display_demo_rss').eq(0).html('<img src="../wp-content/plugins/yet-another-related-posts-plugin/i/spin.gif" alt="loading..."/>')},
|
218 |
success:function(html){jQuery('#display_demo_rss').eq(0).html('<pre>'+html+'</pre>')},
|
@@ -222,7 +222,7 @@ function load_display_demo_rss() {
|
|
222 |
|
223 |
function load_display_distags() {
|
224 |
jQuery.ajax({type:'POST',
|
225 |
-
url:'
|
226 |
data:'action=yarpp_display_distags',
|
227 |
beforeSend:function(){jQuery('#display_distags').eq(0).html('<img src="../wp-content/plugins/yet-another-related-posts-plugin/i/spin.gif" alt="loading..."/>')},
|
228 |
success:function(html){jQuery('#display_distags').eq(0).html(html)},
|
@@ -232,7 +232,7 @@ function load_display_distags() {
|
|
232 |
|
233 |
function load_display_discats() {
|
234 |
jQuery.ajax({type:'POST',
|
235 |
-
url:'
|
236 |
data:'action=yarpp_display_discats',
|
237 |
beforeSend:function(){jQuery('#display_discats').eq(0).html('<img src="../wp-content/plugins/yet-another-related-posts-plugin/i/spin.gif" alt="loading..."/>')},
|
238 |
success:function(html){jQuery('#display_discats').eq(0).html(html)},
|
@@ -243,9 +243,8 @@ function load_display_discats() {
|
|
243 |
</script>
|
244 |
|
245 |
<div class="wrap">
|
246 |
-
<h2>
|
247 |
<a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=1&no_note=1&tax=0¤cy_code=USD&lc=US&charset=UTF%2d8' target='_new'><img src="https://www.paypal.com/<?php echo paypal_directory(); ?>i/btn/btn_donate_SM.gif" name="submit" alt="<?php _e('Donate to mitcho (Michael Yoshitaka Erlewine) for this plugin via PayPal');?>" title="<?php _e('Donate to mitcho (Michael Yoshitaka Erlewine) for this plugin via PayPal','yarpp');?>" style="float:right" /></a>
|
248 |
-
|
249 |
<?php _e('Yet Another Related Posts Plugin Options','yarpp');?> <small><?php
|
250 |
|
251 |
$display_version = yarpp_get_option('version');
|
@@ -268,6 +267,7 @@ function load_display_discats() {
|
|
268 |
|
269 |
|
270 |
<!--The Pool-->
|
|
|
271 |
<h3><?php _e('"The Pool"','yarpp');?></h3>
|
272 |
<p><?php _e('"The Pool" refers to the pool of posts and pages that are candidates for display as related to the current entry.','yarpp');?></p>
|
273 |
|
@@ -278,12 +278,24 @@ function load_display_discats() {
|
|
278 |
<tr valign='top'>
|
279 |
<th scope='row'><?php _e('Disallow by tag:','yarpp');?></th>
|
280 |
<td><div id='display_distags' style="overflow:auto;max-height:100px;"></div></td></tr>
|
281 |
-
<?php checkbox('
|
282 |
-
<?php checkbox('past_only',__("Show only previous posts?",'yarpp')); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
</tbody>
|
284 |
</table>
|
|
|
285 |
|
286 |
<!-- Relatedness -->
|
|
|
287 |
<h3><?php _e('"Relatedness" options','yarpp');?></h3>
|
288 |
|
289 |
<p><?php _e('YARPP is different than the <a href="http://wasabi.pbwiki.com/Related%20Entries">previous plugins it is based on</a> as it limits the related posts list by (1) a maximum number and (2) a <em>match threshold</em>.','yarpp');?> <a href="#" class='info'><?php _e('more>','yarpp');?><span><?php _e('The higher the match threshold, the more restrictive, and you get less related posts overall. The default match threshold is 5. If you want to find an appropriate match threshhold, take a look at some post\'s related posts display and their scores. You can see what kinds of related posts are being picked up and with what kind of match scores, and determine an appropriate threshold for your site.','yarpp');?></span></a></p>
|
@@ -303,6 +315,7 @@ function load_display_discats() {
|
|
303 |
<?php checkbox('cross_relate',__("Cross-relate posts and pages?",'yarpp')." <a href='#' class='info'>".__('more>','yarpp')."<span>".__("When the \"Cross-relate posts and pages\" option is selected, the <code>related_posts()</code>, <code>related_pages()</code>, and <code>related_entries()</code> all will give the same output, returning both related pages and posts.",'yarpp')."</span></a>"); ?>
|
304 |
</tbody>
|
305 |
</table>
|
|
|
306 |
|
307 |
<script language="javascript">
|
308 |
//<!--
|
@@ -377,22 +390,23 @@ function load_display_discats() {
|
|
377 |
|
378 |
|
379 |
<!-- Display options -->
|
|
|
380 |
<h3><?php _e("Display options <small>for your website</small>",'yarpp');?></h3>
|
381 |
|
382 |
-
<table class="form-table" style="margin-top: 0">
|
383 |
<?php
|
384 |
checkbox('auto_display',__("Automatically display related posts?",'yarpp')." <a href='#' class='info'>".__('more>','yarpp')."<span>".__("This option automatically displays related posts right after the content on single entry pages. If this option is off, you will need to manually insert <code>related_posts()</code> or variants (<code>related_pages()</code> and <code>related_entries()</code>) into your theme files.",'yarpp')."</span></a>","<tr valign='top'>
|
385 |
-
<th class='th-full' colspan='2' scope='row'>",'','<td rowspan="11" style="border-left:8px
|
386 |
-
."<div id='display_demo_web' style='overflow:auto;width:350px;'></div></td>");?>
|
387 |
|
388 |
<?php textbox('limit',__('Maximum number of related posts:','yarpp'))?>
|
389 |
-
<?php checkbox('use_template',__("Display using a custom template file",'yarpp')." <span style='color:red;'>NEW!</span> <a href='#' class='info'>".__('more>','yarpp')."<span>".__("This advanced option gives you full power to customize how your related posts are displayed. Templates (in the <code>
|
390 |
<tr valign='top' class='templated'>
|
391 |
<th><?php _e("Template file:",'yarpp');?></th>
|
392 |
<td>
|
393 |
<select name="template_file" id="template_file">
|
394 |
-
<?php foreach (glob(WP_CONTENT_DIR.'/plugins/
|
395 |
-
<option value='<?php echo htmlspecialchars(basename($template))?>'
|
396 |
<?php endforeach; ?>
|
397 |
</select>
|
398 |
</td>
|
@@ -437,30 +451,31 @@ checkbox('auto_display',__("Automatically display related posts?",'yarpp')." <a
|
|
437 |
.sprintf(__("This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated."),"<code>".htmlspecialchars(__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.",'yarpp'))."</code>")
|
438 |
."</span></a>"); ?>
|
439 |
</table>
|
|
|
440 |
|
441 |
<!-- Display options for RSS -->
|
|
|
442 |
<h3><?php _e("Display options <small>for RSS</small>",'yarpp');?></h3>
|
443 |
|
444 |
-
<table class="form-table" style="margin-top: 0">
|
445 |
<?php
|
446 |
|
447 |
checkbox('rss_display',__("Display related posts in feeds?",'yarpp')." <a href='#' class='info'>".__('more>','yarpp')."<span>".__("This option displays related posts at the end of each item in your RSS and Atom feeds. No template changes are needed.",'yarpp')."</span></a>","<tr valign='top'><th colspan='3'>",' class="rss_display" onclick="javascript:rss_display();"');
|
448 |
checkbox('rss_excerpt_display',__("Display related posts in the descriptions?",'yarpp')." <a href='#' class='info'>".__('more>','yarpp')."<span>".__("This option displays the related posts in the RSS description fields, not just the content. If your feeds are set up to only display excerpts, however, only the description field is used, so this option is required for any display at all.",'yarpp')."</span></a>","<tr class='rss_displayed' valign='top'>
|
449 |
-
<th class='th-full' colspan='2' scope='row'>",'','<td rowspan="9" style="border-left:8px
|
450 |
-
."<div id='display_demo_rss' style='overflow:auto;width:350px;'></div></td>"); ?>
|
451 |
-
<?php
|
|
|
452 |
<tr valign='top' class='rss_templated'>
|
453 |
<th><?php _e("Template file:",'yarpp');?></th>
|
454 |
<td>
|
455 |
-
<select name="rss_template_file" id="
|
456 |
-
<?php foreach (glob(WP_CONTENT_DIR.'/plugins/
|
457 |
-
<option value='<?php echo htmlspecialchars(basename($template))?>'
|
458 |
<?php endforeach; ?>
|
459 |
</select>
|
460 |
</td>
|
461 |
</tr>
|
462 |
-
<?php textbox('rss_limit',__('Maximum number of related posts:','yarpp'),2,"<tr valign='top' class='rss_not_templated'>
|
463 |
-
<th scope='row'>")?>
|
464 |
<tr class='rss_not_templated' valign='top'>
|
465 |
<th><?php _e("Before / after related entries display:",'yarpp');?></th>
|
466 |
<td><input name="rss_before_related" type="text" id="rss_before_related" value="<?php echo stripslashes(yarpp_get_option('rss_before_related',true)); ?>" size="10" /> / <input name="rss_after_related" type="text" id="rss_after_related" value="<?php echo stripslashes(yarpp_get_option('rss_after_related',true)); ?>" size="10" /><em><small> <?php _e("For example:",'yarpp');?> <ol></ol> or <div></div></small></em>
|
@@ -501,22 +516,25 @@ checkbox('rss_excerpt_display',__("Display related posts in the descriptions?",'
|
|
501 |
."</span></a>","<tr valign='top' class='rss_displayed'>
|
502 |
<th class='th-full' colspan='2' scope='row'>"); ?>
|
503 |
</table>
|
|
|
504 |
|
|
|
505 |
<h3><?php _e('Advanced','yarpp');?> <span style='color:red;'>NEW!</span></h3>
|
506 |
|
507 |
<table class="form-table" style="margin-top: 0">
|
508 |
<tr valign='top' colspan='2'><td><input class="thickbox button" type="button" value="<?php _e("Show cache status",'yarpp');?>" title="<?php _e('Related posts cache status','yarpp');?>" alt="#TB_inline?height=100&width=300&inlineId=yarpp-cache-status"/>
|
509 |
<?php checkbox('ad_hoc_caching',__("When the cache is incomplete, compute related posts on the fly?",'yarpp')." <a href='#' class='info'>".__('more>','yarpp')."<span>"
|
510 |
-
.__("If a displayed post's related posts
|
511 |
."</span></a>"); ?>
|
512 |
</table>
|
|
|
513 |
|
514 |
<script type='text/javascript'>
|
515 |
//<!--
|
516 |
time=0;i=0;m=0;id=0;
|
517 |
function yarppBuildRequest() {
|
518 |
jQuery.ajax({
|
519 |
-
url:'
|
520 |
type: 'post',
|
521 |
data: {action:'yarpp_build_cache_action',i:i,m:m,id:id},
|
522 |
dataType: 'json',
|
202 |
|
203 |
function load_display_demo_web() {
|
204 |
jQuery.ajax({type:'POST',
|
205 |
+
url:'admin-ajax.php',
|
206 |
data:'action=yarpp_display_demo_web',
|
207 |
beforeSend:function(){jQuery('#display_demo_web').eq(0).html('<img src="../wp-content/plugins/yet-another-related-posts-plugin/i/spin.gif" alt="loading..."/>')},
|
208 |
success:function(html){jQuery('#display_demo_web').eq(0).html('<pre>'+html+'</pre>')},
|
212 |
|
213 |
function load_display_demo_rss() {
|
214 |
jQuery.ajax({type:'POST',
|
215 |
+
url:'admin-ajax.php',
|
216 |
data:'action=yarpp_display_demo_rss',
|
217 |
beforeSend:function(){jQuery('#display_demo_rss').eq(0).html('<img src="../wp-content/plugins/yet-another-related-posts-plugin/i/spin.gif" alt="loading..."/>')},
|
218 |
success:function(html){jQuery('#display_demo_rss').eq(0).html('<pre>'+html+'</pre>')},
|
222 |
|
223 |
function load_display_distags() {
|
224 |
jQuery.ajax({type:'POST',
|
225 |
+
url:'admin-ajax.php',
|
226 |
data:'action=yarpp_display_distags',
|
227 |
beforeSend:function(){jQuery('#display_distags').eq(0).html('<img src="../wp-content/plugins/yet-another-related-posts-plugin/i/spin.gif" alt="loading..."/>')},
|
228 |
success:function(html){jQuery('#display_distags').eq(0).html(html)},
|
232 |
|
233 |
function load_display_discats() {
|
234 |
jQuery.ajax({type:'POST',
|
235 |
+
url:'admin-ajax.php',
|
236 |
data:'action=yarpp_display_discats',
|
237 |
beforeSend:function(){jQuery('#display_discats').eq(0).html('<img src="../wp-content/plugins/yet-another-related-posts-plugin/i/spin.gif" alt="loading..."/>')},
|
238 |
success:function(html){jQuery('#display_discats').eq(0).html(html)},
|
243 |
</script>
|
244 |
|
245 |
<div class="wrap">
|
|
|
246 |
<a href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=1&no_note=1&tax=0¤cy_code=USD&lc=US&charset=UTF%2d8' target='_new'><img src="https://www.paypal.com/<?php echo paypal_directory(); ?>i/btn/btn_donate_SM.gif" name="submit" alt="<?php _e('Donate to mitcho (Michael Yoshitaka Erlewine) for this plugin via PayPal');?>" title="<?php _e('Donate to mitcho (Michael Yoshitaka Erlewine) for this plugin via PayPal','yarpp');?>" style="float:right" /></a>
|
247 |
+
<h2>
|
248 |
<?php _e('Yet Another Related Posts Plugin Options','yarpp');?> <small><?php
|
249 |
|
250 |
$display_version = yarpp_get_option('version');
|
267 |
|
268 |
|
269 |
<!--The Pool-->
|
270 |
+
<div style='border:1px solid #ddd;padding:8px;'>
|
271 |
<h3><?php _e('"The Pool"','yarpp');?></h3>
|
272 |
<p><?php _e('"The Pool" refers to the pool of posts and pages that are candidates for display as related to the current entry.','yarpp');?></p>
|
273 |
|
278 |
<tr valign='top'>
|
279 |
<th scope='row'><?php _e('Disallow by tag:','yarpp');?></th>
|
280 |
<td><div id='display_distags' style="overflow:auto;max-height:100px;"></div></td></tr>
|
281 |
+
<?php checkbox('show_pass_post',__("Show password protected posts?",'yarpp')); ?>
|
282 |
+
<?php /*checkbox('past_only',__("Show only previous posts?",'yarpp')); */ ?>
|
283 |
+
<?php
|
284 |
+
|
285 |
+
$recent_number = "<input name=\"recent_number\" type=\"text\" id=\"recent_number\" value=\"".stripslashes(yarpp_get_option('recent_number',true))."\" size=\"2\" />";
|
286 |
+
$recent_units = "<select name=\"recent_units\" id=\"recent_units\">
|
287 |
+
<option value='day'". (('day'==yarpp_get_option('recent_units'))?" selected='selected'":'').">".__('day(s)','yarpp')."</option>
|
288 |
+
<option value='week'". (('week'==yarpp_get_option('recent_units'))?" selected='selected'":'').">".__('week(s)','yarpp')."</option>
|
289 |
+
<option value='month'". (('month'==yarpp_get_option('recent_units'))?" selected='selected'":'').">".__('month(s)','yarpp')."</option>
|
290 |
+
</select>";
|
291 |
+
checkbox('recent_only',str_replace('NUMBER',$recent_number,str_replace('UNITS',$recent_units,__("Show only posts from the past NUMBER UNITS",'yarpp')))); ?>
|
292 |
+
|
293 |
</tbody>
|
294 |
</table>
|
295 |
+
</div>
|
296 |
|
297 |
<!-- Relatedness -->
|
298 |
+
<div style='border:1px solid #ddd;padding:8px;'>
|
299 |
<h3><?php _e('"Relatedness" options','yarpp');?></h3>
|
300 |
|
301 |
<p><?php _e('YARPP is different than the <a href="http://wasabi.pbwiki.com/Related%20Entries">previous plugins it is based on</a> as it limits the related posts list by (1) a maximum number and (2) a <em>match threshold</em>.','yarpp');?> <a href="#" class='info'><?php _e('more>','yarpp');?><span><?php _e('The higher the match threshold, the more restrictive, and you get less related posts overall. The default match threshold is 5. If you want to find an appropriate match threshhold, take a look at some post\'s related posts display and their scores. You can see what kinds of related posts are being picked up and with what kind of match scores, and determine an appropriate threshold for your site.','yarpp');?></span></a></p>
|
315 |
<?php checkbox('cross_relate',__("Cross-relate posts and pages?",'yarpp')." <a href='#' class='info'>".__('more>','yarpp')."<span>".__("When the \"Cross-relate posts and pages\" option is selected, the <code>related_posts()</code>, <code>related_pages()</code>, and <code>related_entries()</code> all will give the same output, returning both related pages and posts.",'yarpp')."</span></a>"); ?>
|
316 |
</tbody>
|
317 |
</table>
|
318 |
+
</div>
|
319 |
|
320 |
<script language="javascript">
|
321 |
//<!--
|
390 |
|
391 |
|
392 |
<!-- Display options -->
|
393 |
+
<div style='border:1px solid #ddd;padding:8px;'>
|
394 |
<h3><?php _e("Display options <small>for your website</small>",'yarpp');?></h3>
|
395 |
|
396 |
+
<table class="form-table" style="margin-top: 0;width:100%">
|
397 |
<?php
|
398 |
checkbox('auto_display',__("Automatically display related posts?",'yarpp')." <a href='#' class='info'>".__('more>','yarpp')."<span>".__("This option automatically displays related posts right after the content on single entry pages. If this option is off, you will need to manually insert <code>related_posts()</code> or variants (<code>related_pages()</code> and <code>related_entries()</code>) into your theme files.",'yarpp')."</span></a>","<tr valign='top'>
|
399 |
+
<th class='th-full' colspan='2' scope='row'>",'','<td rowspan="11" style="border-left:8px transparent solid;"><b>'.__("Website display code example",'yarpp').'</b><br /><small>'.__("(Update options to reload.)",'yarpp').'</small><br/>'
|
400 |
+
."<div id='display_demo_web' style='overflow:auto;width:350px;max-height:500px;'></div></td>");?>
|
401 |
|
402 |
<?php textbox('limit',__('Maximum number of related posts:','yarpp'))?>
|
403 |
+
<?php checkbox('use_template',__("Display using a custom template file",'yarpp')." <span style='color:red;'>NEW!</span> <a href='#' class='info'>".__('more>','yarpp')."<span>".__("This advanced option gives you full power to customize how your related posts are displayed. Templates (in the <code>wp-content/plugins/yarpp-templates</code> directory) are written in PHP.",'yarpp')."</span></a>","<tr valign='top'><th colspan='2'>",' class="template" onclick="javascript:template()"'); ?>
|
404 |
<tr valign='top' class='templated'>
|
405 |
<th><?php _e("Template file:",'yarpp');?></th>
|
406 |
<td>
|
407 |
<select name="template_file" id="template_file">
|
408 |
+
<?php foreach (glob(WP_CONTENT_DIR.'/plugins/yarpp-templates/*.php') as $template): ?>
|
409 |
+
<option value='<?php echo htmlspecialchars(basename($template))?>'<?php echo (basename($template)==yarpp_get_option('template_file'))?" selected='selected'":'';?>><?php echo htmlspecialchars(basename($template))?></option>
|
410 |
<?php endforeach; ?>
|
411 |
</select>
|
412 |
</td>
|
451 |
.sprintf(__("This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated."),"<code>".htmlspecialchars(__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.",'yarpp'))."</code>")
|
452 |
."</span></a>"); ?>
|
453 |
</table>
|
454 |
+
</div>
|
455 |
|
456 |
<!-- Display options for RSS -->
|
457 |
+
<div style='border:1px solid #ddd;padding:8px;'>
|
458 |
<h3><?php _e("Display options <small>for RSS</small>",'yarpp');?></h3>
|
459 |
|
460 |
+
<table class="form-table" style="margin-top: 0;width:100%">
|
461 |
<?php
|
462 |
|
463 |
checkbox('rss_display',__("Display related posts in feeds?",'yarpp')." <a href='#' class='info'>".__('more>','yarpp')."<span>".__("This option displays related posts at the end of each item in your RSS and Atom feeds. No template changes are needed.",'yarpp')."</span></a>","<tr valign='top'><th colspan='3'>",' class="rss_display" onclick="javascript:rss_display();"');
|
464 |
checkbox('rss_excerpt_display',__("Display related posts in the descriptions?",'yarpp')." <a href='#' class='info'>".__('more>','yarpp')."<span>".__("This option displays the related posts in the RSS description fields, not just the content. If your feeds are set up to only display excerpts, however, only the description field is used, so this option is required for any display at all.",'yarpp')."</span></a>","<tr class='rss_displayed' valign='top'>
|
465 |
+
<th class='th-full' colspan='2' scope='row'>",'','<td rowspan="9" style="border-left:8px transparent solid;"><b>'.__("RSS display code example",'yarpp').'</b><br /><small>'.__("(Update options to reload.)",'yarpp').'</small><br/>'
|
466 |
+
."<div id='display_demo_rss' style='overflow:auto;width:350px;max-height:500px;'></div></td>"); ?>
|
467 |
+
<?php textbox('rss_limit',__('Maximum number of related posts:','yarpp'),2)?>
|
468 |
+
<?php checkbox('rss_use_template',__("Display using a custom template file",'yarpp')." <span style='color:red;'>NEW!</span> <a href='#' class='info'>".__('more>','yarpp')."<span>".__("This advanced option gives you full power to customize how your related posts are displayed. Templates (in the <code>wp-content/plugins/yarpp-templates</code> directory) are written in PHP.",'yarpp')."</span></a>","<tr valign='top'><th colspan='2'>",' class="rss_template" onclick="javascript:rss_template()"'); ?>
|
469 |
<tr valign='top' class='rss_templated'>
|
470 |
<th><?php _e("Template file:",'yarpp');?></th>
|
471 |
<td>
|
472 |
+
<select name="rss_template_file" id="rss_template_file">
|
473 |
+
<?php foreach (glob(WP_CONTENT_DIR.'/plugins/yarpp-templates/*.php') as $template): ?>
|
474 |
+
<option value='<?php echo htmlspecialchars(basename($template))?>'<?php echo (basename($template)==yarpp_get_option('rss_template_file'))?" selected='selected'":'';?>><?php echo htmlspecialchars(basename($template))?></option>
|
475 |
<?php endforeach; ?>
|
476 |
</select>
|
477 |
</td>
|
478 |
</tr>
|
|
|
|
|
479 |
<tr class='rss_not_templated' valign='top'>
|
480 |
<th><?php _e("Before / after related entries display:",'yarpp');?></th>
|
481 |
<td><input name="rss_before_related" type="text" id="rss_before_related" value="<?php echo stripslashes(yarpp_get_option('rss_before_related',true)); ?>" size="10" /> / <input name="rss_after_related" type="text" id="rss_after_related" value="<?php echo stripslashes(yarpp_get_option('rss_after_related',true)); ?>" size="10" /><em><small> <?php _e("For example:",'yarpp');?> <ol></ol> or <div></div></small></em>
|
516 |
."</span></a>","<tr valign='top' class='rss_displayed'>
|
517 |
<th class='th-full' colspan='2' scope='row'>"); ?>
|
518 |
</table>
|
519 |
+
</div>
|
520 |
|
521 |
+
<div style='border:1px solid #ddd;padding:8px;'>
|
522 |
<h3><?php _e('Advanced','yarpp');?> <span style='color:red;'>NEW!</span></h3>
|
523 |
|
524 |
<table class="form-table" style="margin-top: 0">
|
525 |
<tr valign='top' colspan='2'><td><input class="thickbox button" type="button" value="<?php _e("Show cache status",'yarpp');?>" title="<?php _e('Related posts cache status','yarpp');?>" alt="#TB_inline?height=100&width=300&inlineId=yarpp-cache-status"/>
|
526 |
<?php checkbox('ad_hoc_caching',__("When the cache is incomplete, compute related posts on the fly?",'yarpp')." <a href='#' class='info'>".__('more>','yarpp')."<span>"
|
527 |
+
.__("If a displayed post's related posts are not cached and this option is on, YARPP will compute them on the fly. Do not turn this option on if you have a high-traffic site.<br />If this option is off and a post's related posts have not been cached, it will display as if it has no related posts.",'yarpp')
|
528 |
."</span></a>"); ?>
|
529 |
</table>
|
530 |
+
</div>
|
531 |
|
532 |
<script type='text/javascript'>
|
533 |
//<!--
|
534 |
time=0;i=0;m=0;id=0;
|
535 |
function yarppBuildRequest() {
|
536 |
jQuery.ajax({
|
537 |
+
url:'admin-ajax.php',
|
538 |
type: 'post',
|
539 |
data: {action:'yarpp_build_cache_action',i:i,m:m,id:id},
|
540 |
dataType: 'json',
|
related-functions.php → yet-another-related-posts-plugin/related-functions.php
RENAMED
File without changes
|
services.php → yet-another-related-posts-plugin/services.php
RENAMED
@@ -69,7 +69,7 @@ function yarpp_build_cache() {
|
|
69 |
$m = $_POST['m'];
|
70 |
}
|
71 |
|
72 |
-
$timeout =
|
73 |
$start = yarpp_microtime_float();
|
74 |
while ((yarpp_microtime_float() - $start) < $timeout and $i <= $m) {
|
75 |
$result = yarpp_cache_enforce(array('post'),$id,true);
|
69 |
$m = $_POST['m'];
|
70 |
}
|
71 |
|
72 |
+
$timeout = 2; // seconds
|
73 |
$start = yarpp_microtime_float();
|
74 |
while ((yarpp_microtime_float() - $start) < $timeout and $i <= $m) {
|
75 |
$result = yarpp_cache_enforce(array('post'),$id,true);
|
template-builtin.php → yet-another-related-posts-plugin/template-builtin.php
RENAMED
File without changes
|
template-functions.php → yet-another-related-posts-plugin/template-functions.php
RENAMED
File without changes
|
template-metabox.php → yet-another-related-posts-plugin/template-metabox.php
RENAMED
File without changes
|
yarpp.php → yet-another-related-posts-plugin/yarpp.php
RENAMED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://mitcho.com/code/yarpp/
|
5 |
Description: Returns a list of the related entries based on a unique algorithm using titles, post bodies, tags, and categories. Now with RSS feed support!
|
6 |
-
Version: 3.
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
Author URI: http://mitcho.com/
|
9 |
*/
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Plugin URI: http://mitcho.com/code/yarpp/
|
5 |
Description: Returns a list of the related entries based on a unique algorithm using titles, post bodies, tags, and categories. Now with RSS feed support!
|
6 |
+
Version: 3.0b2
|
7 |
Author: mitcho (Michael Yoshitaka Erlewine)
|
8 |
Author URI: http://mitcho.com/
|
9 |
*/
|