Yet Another Related Posts Plugin (YARPP) - Version 2.1.5

Version Description

Download this release

Release Info

Developer mitchoyoshitaka
Plugin Icon 128x128 Yet Another Related Posts Plugin (YARPP)
Version 2.1.5
Comparing to
See all releases

Code changes from version 2.1.4 to 2.1.5

includes.php CHANGED
@@ -33,7 +33,6 @@ $yarpp_value_options = array('threshold' => 5,
33
'distags' => '',
34
'discats' => '');
35
$yarpp_binary_options = array('past_only' => true,
36
- 'show_score' => true,
37
'show_excerpt' => false,
38
'rss_show_excerpt' => false,
39
'show_pass_post' => false,
@@ -85,8 +84,8 @@ function yarpp_activate() {
85
return 0;
86
}
87
}
88
- add_option('yarpp_version','2.14');
89
- update_option('yarpp_version','2.14');
90
return 1;
91
}
92
@@ -139,8 +138,8 @@ function yarpp_upgrade_check($inuse = false) {
139
$wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_content` ( `post_content`)"); update_option('yarpp_version','2.03');
140
}
141
142
- if (get_option('yarpp_version') < 2.14) {
143
- update_option('yarpp_version','2.14');
144
}
145
146
// just in case, try to add the index one more time.
@@ -199,7 +198,7 @@ function yarpp_rss($content) {
199
200
function yarpp_rss_excerpt($content) {
201
global $wpdb, $post;
202
- if (yarpp_get_option('rss_excerpt_display'))
203
return $content.clean_pre(yarpp_related(array('post'),array(),false,'rss'));
204
else
205
return $content;
33
'distags' => '',
34
'discats' => '');
35
$yarpp_binary_options = array('past_only' => true,
36
'show_excerpt' => false,
37
'rss_show_excerpt' => false,
38
'show_pass_post' => false,
84
return 0;
85
}
86
}
87
+ add_option('yarpp_version','2.15');
88
+ update_option('yarpp_version','2.15');
89
return 1;
90
}
91
138
$wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_content` ( `post_content`)"); update_option('yarpp_version','2.03');
139
}
140
141
+ if (get_option('yarpp_version') < 2.15) {
142
+ update_option('yarpp_version','2.15');
143
}
144
145
// just in case, try to add the index one more time.
198
199
function yarpp_rss_excerpt($content) {
200
global $wpdb, $post;
201
+ if (yarpp_get_option('rss_excerpt_display') and yarpp_get_option('rss_display'))
202
return $content.clean_pre(yarpp_related(array('post'),array(),false,'rss'));
203
else
204
return $content;
lang/yarpp-de_DE.mo CHANGED
Binary file
lang/yarpp-de_DE.po CHANGED
@@ -17,43 +17,41 @@ msgstr ""
17
"X-Poedit-SearchPath-0: .\n"
18
": "
19
20
- #: includes.php:75
21
msgid "MySQL error on adding yarpp_title"
22
msgstr "MySQL-Fehler beim Hinzufügen von \"yarpp_title\""
23
24
- #: includes.php:80
25
msgid "MySQL error on adding yarpp_content"
26
msgstr "MySQL-Fehler beim Hinzufügen von \"yarpp_content\""
27
28
- #: includes.php:134
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:155
33
- #: includes.php:155
34
msgid "Related Posts (YARPP)"
35
msgstr "Related Posts (YARPP)"
36
37
- #: includes.php:174
38
msgid "Related Posts"
39
msgstr "Ähnliche Beiträge"
40
41
- #: includes.php:179
42
msgid "YARPP"
43
msgstr "YARPP"
44
45
- #: magic.php:211
46
- #: magic-beta.php:220
47
#, php-format
48
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."
49
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."
50
51
#: options.php:307
52
- #: options.php:350
53
- #: options.php:369
54
- #: options.php:413
55
- #: magic.php:220
56
- #: magic-beta.php:229
57
msgid "Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>."
58
msgstr "Ähnliche Artikel bereitgestellt von <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>."
59
@@ -88,13 +86,6 @@ msgstr "Die YARPP-Datenbank hatte einen Fehler, der allerdings behoben werden ko
88
msgid "The YARPP database has an error which could not be fixed."
89
msgstr "Die YARPP-Datenbank hat einen Fehler, der nicht behoben werden kann."
90
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
#: options.php:121
99
#: options.php:138
100
#: options.php:150
@@ -165,17 +156,12 @@ msgstr "YARPP funktioniert ein wenig anders als <a href=\"http://wasabi.pbwiki.c
165
#: options.php:237
166
#: options.php:251
167
#: options.php:309
168
- #: options.php:347
169
- #: options.php:349
170
#: options.php:371
171
- #: options.php:372
172
- #: options.php:412
173
msgid "more&gt;"
174
msgstr "?"
175
176
- #: options.php:237
177
- 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."
178
- 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."
179
180
#: options.php:242
181
msgid "Match threshold:"
@@ -214,8 +200,8 @@ msgid "PERMALINK"
214
msgstr "PERMALINK"
215
216
#: options.php:302
217
- #: options.php:364
218
- #: options.php:364
219
msgid "RELATED TITLE"
220
msgstr "ÄHNLICHER TITEL"
221
@@ -232,12 +218,12 @@ msgid "Website display code example"
232
msgstr "Quellcode-Beispiel für die Website-Anzeige"
233
234
#: options.php:310
235
- #: options.php:373
236
msgid "(Update options to reload.)"
237
msgstr "Um Ihre Einstellungen hier zu sehen, müssen Sie die Einstellungen vorher sichern!"
238
239
#: options.php:312
240
- #: options.php:375
241
msgid "Maximum number of related posts:"
242
msgstr "Maximale Anzahl von Beiträgen:"
243
@@ -248,24 +234,24 @@ msgstr "Quellcode vor/nach den ähnlichen Beiträgen:"
248
#: options.php:315
249
#: options.php:320
250
#: options.php:329
251
- #: options.php:379
252
- #: options.php:384
253
- #: options.php:393
254
msgid "For example:"
255
msgstr "Bsp.:"
256
257
#: options.php:319
258
- #: options.php:383
259
msgid "Before / after each related entry:"
260
msgstr "Quellcode vor/nach den jeweiligen Beiträgen:"
261
262
#: options.php:323
263
- #: options.php:387
264
msgid "Show excerpt?"
265
msgstr "Exzerpt anzeigen?"
266
267
#: options.php:324
268
- #: options.php:388
269
msgid "Excerpt length (No. of words):"
270
msgstr "Länge des Exzerpts (Anzahl der Wörter):"
271
@@ -274,93 +260,84 @@ msgid "Before / after (Excerpt):"
274
msgstr "Quellcode vor/nach den jeweiligen Exzerpten:"
275
276
#: options.php:334
277
- #: options.php:398
278
msgid "Order results:"
279
msgstr "Anzeigereihenfolge:"
280
281
#: options.php:336
282
- #: options.php:400
283
msgid "score (high relevance to low)"
284
msgstr "Relevanz (höchste nach niedrigste)"
285
286
#: options.php:337
287
- #: options.php:401
288
msgid "score (low relevance to high)"
289
msgstr "Relevanz (niedrigste nach höchste)"
290
291
#: options.php:338
292
- #: options.php:402
293
msgid "date (new to old)"
294
msgstr "Zeitstempel (aktuell nach alt)"
295
296
#: options.php:339
297
- #: options.php:403
298
msgid "date (old to new)"
299
msgstr "Zeitstempel (alt nach aktuell)"
300
301
#: options.php:340
302
- #: options.php:404
303
msgid "title (alphabetical)"
304
msgstr "Überschrift (A-Z)"
305
306
#: options.php:341
307
- #: options.php:405
308
msgid "title (reverse alphabetical)"
309
msgstr "Überschrift (Z-A)"
310
311
#: options.php:346
312
- #: options.php:410
313
msgid "Default display if no results:"
314
msgstr "Quellcode bei 0 relevanten Artikeln:"
315
316
- #: options.php:347
317
- msgid "Show admins (user level > 8) the match scores?"
318
- msgstr "Administratoren (User Level > 8) den Wert der Relevanz anzeigen?"
319
320
- #: options.php:347
321
- 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."
322
- msgstr "Wenn aktiviert, sehen nur eingeloggte Administratoren (nicht die Besucher!) neben jeder Beitragsüberschrift den Übereinstimmungswert."
323
324
- #: options.php:348
325
- #: options.php:412
326
msgid "Help promote Yet Another Related Posts Plugin?"
327
msgstr "YARPP dezent bewerben?"
328
329
- #: options.php:350
330
- #: options.php:413
331
#, php-format
332
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."
333
msgstr "Wenn aktiviert, steht eine kurzer Hinweis zu Autor und Plugin unter den Ergebnissen der ähnlichen Beiträge. Der Code %s wird hinzugefügt."
334
335
- #: options.php:355
336
msgid "Display options <small>for RSS</small>"
337
msgstr "Darstellung <small>(RSS)</small>"
338
339
- #: options.php:371
340
msgid "Display related posts in feeds?"
341
msgstr "Ähnliche Beiträge in Newsfeeds anzeigen?"
342
343
- #: options.php:371
344
- msgid "This option displays related posts at the end of each item in your RSS and Atom feeds. No template changes are needed."
345
- msgstr "Zeigt ähnliche Beiträge in RSS- und Atom-Feeds an."
346
347
- #: options.php:372
348
msgid "Display related posts in the descriptions?"
349
msgstr "Ähnliche Beiträge in Descriptions anzeigen?"
350
351
- #: options.php:372
352
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."
353
msgstr "Zeigt die ähnlichen Beiträge auch in den RSS-Descriptions an, nicht nur im Content."
354
355
- #: options.php:373
356
msgid "RSS display code example"
357
msgstr "RSS-Anzeigebeispiel"
358
359
- #: options.php:378
360
msgid "Before / after related entries display:"
361
msgstr "Quellcode vor/nach den ähnlichen Beiträgen:"
362
363
- #: options.php:392
364
msgid "Before / after (excerpt):"
365
msgstr "Quellcode vor/nach dem Exzerpt:"
366
@@ -388,17 +365,31 @@ msgstr ""
388
msgid "require more than one %s in common"
389
msgstr ""
390
391
- #~ msgid "Options saved!"
392
- #~ msgstr "Einstellungen gespeichert!"
393
- #~ msgid "require at least one word in common"
394
- #~ msgstr "mindestens ein Wort gleich"
395
- #~ msgid "require at least one tag in common"
396
- #~ msgstr "mindestens ein Tag gleich"
397
- #~ msgid "require at least one category in common"
398
- #~ msgstr "mindestens eine Kategorie gleich"
399
- #~ msgid "require more than one word in common"
400
- #~ msgstr "mehrere Wörter gleich"
401
- #~ msgid "require more than one tag in common"
402
- #~ msgstr "mehrere Tags gleich"
403
- #~ msgid "require more than one category in common"
404
- #~ msgstr "mehrere Kategorien gleich"
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
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
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&gt;"
163
msgstr "?"
164
165
166
#: options.php:242
167
msgid "Match threshold:"
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
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
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
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
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."
lang/yarpp-ja.mo ADDED
Binary file
lang/yarpp-ja.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 &amp; 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&gt;"
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
+
lang/yarpp-zh_CN.mo CHANGED
Binary file
lang/yarpp-zh_CN.po CHANGED
@@ -14,43 +14,41 @@ msgstr ""
14
"X-Poedit-Basepath: \n"
15
"X-Poedit-SearchPath-0: ."
16
17
- #: includes.php:75
18
msgid "MySQL error on adding yarpp_title"
19
msgstr "在添加 yarpp_title 时 MySQL 发生错误"
20
21
- #: includes.php:80
22
msgid "MySQL error on adding yarpp_content"
23
msgstr "在添加 yarpp_content 时 MySQL 发生错误"
24
25
- #: includes.php:134
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:155
30
- #: includes.php:155
31
msgid "Related Posts (YARPP)"
32
msgstr "关联文章 (YARPP)"
33
34
- #: includes.php:174
35
msgid "Related Posts"
36
msgstr "Related Posts"
37
38
- #: includes.php:179
39
msgid "YARPP"
40
msgstr "YARPP"
41
42
- #: magic.php:211
43
- #: magic-beta.php:220
44
#, php-format
45
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."
46
msgstr "YARPP 中的 %f 是指当前文章和关联文章之间的匹配程度。当您以管理员的身份登录时才能查阅,游客等其他权限是不能查阅的。"
47
48
#: options.php:307
49
- #: options.php:350
50
- #: options.php:369
51
- #: options.php:413
52
- #: magic.php:220
53
- #: magic-beta.php:229
54
msgid "Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>."
55
msgstr "Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>."
56
@@ -117,7 +115,7 @@ msgstr "Yet Another Related Posts Plugin 设置"
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 &amp; Mike Lu</a>."
120
- 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 &amp; Mike Lu</a>. Simplified Chinese translated by <a href=\"http://jorwang.com/\">Jor Wang</a>."
121
122
#: options.php:206
123
msgid "\"The Pool\""
@@ -152,10 +150,6 @@ msgstr "关联设置"
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)不同于<a href=\"http://wasabi.pbwiki.com/Related%20Entries\">以往的关联文章插件</a>,它有更先进的关联算法。您可以通过设置最大显示条目和匹配值使文章之间的匹配度更为精准。"
154
155
- #: options.php:237
156
- 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."
157
- msgstr "只简单的几步设置,就能精准得到您想要的关联文章。这里默认的匹配值为5 。如果你想找到合适您网站的的匹配值,我建议你打开 ”对管理员(权限>8的用户)显示匹配值” 这个设置,这样可以更容易找到适合您网站的匹配值。"
158
-
159
#: options.php:242
160
msgid "Match threshold:"
161
msgstr "匹配值:"
@@ -193,8 +187,8 @@ msgid "PERMALINK"
193
msgstr "PERMALINK"
194
195
#: options.php:302
196
- #: options.php:364
197
- #: options.php:364
198
msgid "RELATED TITLE"
199
msgstr "RELATED TITLE"
200
@@ -211,12 +205,12 @@ msgid "Website display code example"
211
msgstr "网站显示的代码示例"
212
213
#: options.php:310
214
- #: options.php:373
215
msgid "(Update options to reload.)"
216
msgstr "(更新设置后生效。)"
217
218
#: options.php:312
219
- #: options.php:375
220
msgid "Maximum number of related posts:"
221
msgstr "最多关联篇数"
222
@@ -227,24 +221,24 @@ msgstr "主体起止标签"
227
#: options.php:315
228
#: options.php:320
229
#: options.php:329
230
- #: options.php:379
231
- #: options.php:384
232
- #: options.php:393
233
msgid "For example:"
234
msgstr "例如:"
235
236
#: options.php:319
237
- #: options.php:383
238
msgid "Before / after each related entry:"
239
msgstr "条目起止标签"
240
241
#: options.php:323
242
- #: options.php:387
243
msgid "Show excerpt?"
244
msgstr "显示摘要?"
245
246
#: options.php:324
247
- #: options.php:388
248
msgid "Excerpt length (No. of words):"
249
msgstr "摘要字符数"
250
@@ -253,128 +247,134 @@ msgid "Before / after (Excerpt):"
253
msgstr "摘要起止标签:"
254
255
#: options.php:334
256
- #: options.php:398
257
msgid "Order results:"
258
msgstr "排序方式:"
259
260
#: options.php:336
261
- #: options.php:400
262
msgid "score (high relevance to low)"
263
msgstr "匹配值(有高到低)"
264
265
#: options.php:337
266
- #: options.php:401
267
msgid "score (low relevance to high)"
268
msgstr "匹配值(由低到高)"
269
270
#: options.php:338
271
- #: options.php:402
272
msgid "date (new to old)"
273
msgstr "日期(由新到旧)"
274
275
#: options.php:339
276
- #: options.php:403
277
msgid "date (old to new)"
278
msgstr "日期(由旧到新)"
279
280
#: options.php:340
281
- #: options.php:404
282
msgid "title (alphabetical)"
283
msgstr "标题(按字母顺序排列)"
284
285
#: options.php:341
286
- #: options.php:405
287
msgid "title (reverse alphabetical)"
288
msgstr "标题(按逆向字母排列)"
289
290
#: options.php:346
291
- #: options.php:410
292
msgid "Default display if no results:"
293
msgstr "无匹配时:"
294
295
#: options.php:347
296
- msgid "Show admins (user level > 8) the match scores?"
297
- msgstr "对管理员(权限>8的用户)显示匹配值?"
298
-
299
- #: options.php:347
300
- 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."
301
- msgstr "选中这个后,当你以管理员身份登录时,每篇关联文章后面会显示对应的“匹配度”。游客是看不到它的。"
302
-
303
- #: options.php:348
304
- #: options.php:412
305
msgid "Help promote Yet Another Related Posts Plugin?"
306
msgstr "帮助推广关联文章(YARPP)插件?"
307
308
- #: options.php:350
309
- #: options.php:413
310
#, php-format
311
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."
312
msgstr "选中该项后会在模板中加入以下代码:%s. 设置更新后可以在右侧的代码示例看到。真诚地感谢您的推广或捐赠。"
313
314
- #: options.php:355
315
msgid "Display options <small>for RSS</small>"
316
msgstr "RSS 相关设置"
317
318
- #: options.php:371
319
msgid "Display related posts in feeds?"
320
msgstr "在文章底部显示?"
321
322
#: options.php:371
323
- msgid "This option displays related posts at the end of each item in your RSS and Atom feeds. No template changes are needed."
324
- msgstr "该设置可以在不修改模板的情况下,将关联文章插入到您 RSS 和 Atom 的结尾。"
325
-
326
- #: options.php:372
327
msgid "Display related posts in the descriptions?"
328
msgstr "在摘要中显示?(当RSS只输出摘要时)"
329
330
- #: options.php:372
331
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."
332
msgstr "该选项将会在 RSS 的摘要区中插入关联文章,而不是在正文区中。如果您的 RSS 只输出摘要,请选择该项。"
333
334
- #: options.php:373
335
msgid "RSS display code example"
336
msgstr "RSS 显示的代码示例"
337
338
- #: options.php:378
339
msgid "Before / after related entries display:"
340
msgstr "主体起止标签:"
341
342
- #: options.php:392
343
msgid "Before / after (excerpt):"
344
msgstr "摘要起止标签:"
345
346
#: options.php:237
347
#: options.php:251
348
#: options.php:309
349
- #: options.php:347
350
- #: options.php:349
351
#: options.php:371
352
- #: options.php:372
353
- #: options.php:412
354
msgid "more&gt;"
355
msgstr "更多&gt;"
356
357
#: options.php:115
358
msgid "word"
359
- msgstr ""
360
361
#: options.php:116
362
msgid "tag"
363
- msgstr ""
364
365
#: options.php:117
366
msgid "category"
367
- msgstr ""
368
369
#: options.php:124
370
#: options.php:154
371
#, php-format
372
msgid "require at least one %s in common"
373
- msgstr ""
374
375
#: options.php:126
376
#: options.php:156
377
#, php-format
378
msgid "require more than one %s in common"
379
- msgstr ""
380
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
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 &amp; 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 &amp; Mike Lu</a>. 简体中文翻译:<a href=\"http://jorwang.com/\">Jor Wang</a>."
119
120
#: options.php:206
121
msgid "\"The Pool\""
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 "匹配值:"
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
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
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
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&gt;"
335
msgstr "更多&gt;"
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 CHANGED
@@ -178,8 +178,7 @@ function yarpp_related($type,$args,$echo = true,$domain = 'website') {
178
'before_post'=>"${domainprefix}before_post",
179
'after_post'=>"${domainprefix}after_post",
180
'no_results'=>"${domainprefix}no_results",
181
- 'promote_yarpp'=>"${domainprefix}promote_yarpp",
182
- 'show_score'=>'show_score');
183
$optvals = array();
184
foreach (array_keys($options) as $option) {
185
if (isset($args[$option])) {
@@ -207,7 +206,7 @@ function yarpp_related($type,$args,$echo = true,$domain = 'website') {
207
$post_excerpt = $post_content; //this is okay because it will be clipped later anyway.
208
209
$output .= "$before_title<a href='$permalink' rel='bookmark' title='Permanent Link: $title'>$title";
210
- if ($show_score and $userdata->user_level >= 8 and $domain != 'rss')
211
$output .= ' <abbr title="'.sprintf(__('%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.','yarpp'),round($result->score,3)).'">('.round($result->score,3).')</abbr>';
212
$output .= '</a>';
213
if ($show_excerpt) {
178
'before_post'=>"${domainprefix}before_post",
179
'after_post'=>"${domainprefix}after_post",
180
'no_results'=>"${domainprefix}no_results",
181
+ 'promote_yarpp'=>"${domainprefix}promote_yarpp");
182
$optvals = array();
183
foreach (array_keys($options) as $option) {
184
if (isset($args[$option])) {
206
$post_excerpt = $post_content; //this is okay because it will be clipped later anyway.
207
208
$output .= "$before_title<a href='$permalink' rel='bookmark' title='Permanent Link: $title'>$title";
209
+ if ($userdata->user_level >= 8 and $domain != 'rss')
210
$output .= ' <abbr title="'.sprintf(__('%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.','yarpp'),round($result->score,3)).'">('.round($result->score,3).')</abbr>';
211
$output .= '</a>';
212
if ($show_excerpt) {
options.php CHANGED
@@ -92,7 +92,7 @@ if (isset($_POST['update_yarpp'])) {
92
foreach (array_keys($yarpp_binary_options) as $option) {
93
(isset($_POST[$option])) ? yarpp_set_option($option,true) : yarpp_set_option($option,false);
94
}
95
- echo '<div id="message" class="updated fade" style="background-color: rgb(207, 235, 247);"><p>Options saved!</p></div>';
96
}
97
98
function checkbox($option,$desc,$tr="<tr valign='top'>
@@ -180,7 +180,7 @@ document.getElementsByTagName("body")[0].setAttribute('onload',"excerpt();rss_ex
180
181
<div class="wrap">
182
<h2>
183
- <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&currency_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');?>" style="float:right" /></a>
184
185
186
<?php _e('Yet Another Related Posts Plugin Options','yarpp');?> <small><?php
@@ -234,7 +234,7 @@ document.getElementsByTagName("body")[0].setAttribute('onload',"excerpt();rss_ex
234
235
<!-- Relatedness -->
236
<h3><?php _e('"Relatedness" options','yarpp');?></h3>
237
- <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&gt;','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, 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.','yarpp');?></span></a></p>
238
239
<table class="form-table" style="margin-top: 0">
240
<tbody>
@@ -307,7 +307,7 @@ if (yarpp_get_option('promote_yarpp'))
307
$democode .= htmlspecialchars("\n<p>".__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.",'yarpp')."</p>");
308
309
checkbox('auto_display',__("Automatically display related posts?",'yarpp')." <a href='#' class='info'>".__('more&gt;','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'>
310
- <th class='th-full' colspan='2' scope='row'>",'','<td rowspan="11" style="border-left:8px white solid;"><b>'.__("Website display code example",'yarpp').'</b><br /><small>'.__("(Update options to reload.)",'yarpp').'</small><br/>'
311
."<code><pre style='overflow:auto;width:350px;'>".($democode)."</pre></code></td>"); ?>
312
<?php textbox('limit',__('Maximum number of related posts:','yarpp'))?>
313
<tr valign='top'>
@@ -344,10 +344,9 @@ checkbox('auto_display',__("Automatically display related posts?",'yarpp')." <a
344
</tr>
345
346
<?php textbox('no_results',__('Default display if no results:','yarpp'),'40')?>
347
- <?php checkbox('show_score',__("Show admins (user level > 8) the match scores?",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("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.",'yarpp')."</span></a>"); ?>
348
<?php checkbox('promote_yarpp',__("Help promote Yet Another Related Posts Plugin?",'yarpp')
349
." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>"
350
- .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>")
351
."</span></a>"); ?>
352
</table>
353
@@ -368,7 +367,7 @@ $democode .= stripslashes(yarpp_get_option('rss_after_related',true));
368
if (yarpp_get_option('rss_promote_yarpp'))
369
$democode .= htmlspecialchars("\n<p>".__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.",'yarpp')."</p>");
370
371
- checkbox('rss_display',__("Display related posts in feeds?",'yarpp')." <a href='#' class='info'>".__('more&gt;','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'>",' onclick="javascript:do_rss_display();"');
372
checkbox('rss_excerpt_display',__("Display related posts in the descriptions?",'yarpp')." <a href='#' class='info'>".__('more&gt;','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 name='rss_displayed' valign='top'>
373
<th class='th-full' colspan='2' scope='row'>",'','<td rowspan="10" style="border-left:8px white solid;"><b>'.__("RSS display code example",'yarpp').'</b><br /><small>'.__("(Update options to reload.)",'yarpp').'</small><br/>'
374
."<code><pre style='overflow:auto;width:350px;'>".($democode)."</pre></code></td>"); ?>
@@ -417,8 +416,8 @@ checkbox('rss_excerpt_display',__("Display related posts in the descriptions?",'
417
418
<div>
419
<p class="submit">
420
- <input type="submit" name="update_yarpp" value="Update options" />
421
- <input type="submit" onclick='return confirm("Do you really want to reset your configuration?");' class="yarpp_warning" name="reset_yarpp" value="Reset options" />
422
</p>
423
</div>
424
</form>
92
foreach (array_keys($yarpp_binary_options) as $option) {
93
(isset($_POST[$option])) ? yarpp_set_option($option,true) : yarpp_set_option($option,false);
94
}
95
+ echo '<div id="message" class="updated fade" style="background-color: rgb(207, 235, 247);"><p>'.__('Options saved!','yarpp').'</p></div>';
96
}
97
98
function checkbox($option,$desc,$tr="<tr valign='top'>
180
181
<div class="wrap">
182
<h2>
183
+ <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&currency_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>
184
185
186
<?php _e('Yet Another Related Posts Plugin Options','yarpp');?> <small><?php
234
235
<!-- Relatedness -->
236
<h3><?php _e('"Relatedness" options','yarpp');?></h3>
237
+ <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&gt;','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>
238
239
<table class="form-table" style="margin-top: 0">
240
<tbody>
307
$democode .= htmlspecialchars("\n<p>".__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.",'yarpp')."</p>");
308
309
checkbox('auto_display',__("Automatically display related posts?",'yarpp')." <a href='#' class='info'>".__('more&gt;','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'>
310
+ <th class='th-full' colspan='2' scope='row'>",'','<td rowspan="10" style="border-left:8px white solid;"><b>'.__("Website display code example",'yarpp').'</b><br /><small>'.__("(Update options to reload.)",'yarpp').'</small><br/>'
311
."<code><pre style='overflow:auto;width:350px;'>".($democode)."</pre></code></td>"); ?>
312
<?php textbox('limit',__('Maximum number of related posts:','yarpp'))?>
313
<tr valign='top'>
344
</tr>
345
346
<?php textbox('no_results',__('Default display if no results:','yarpp'),'40')?>
347
<?php checkbox('promote_yarpp',__("Help promote Yet Another Related Posts Plugin?",'yarpp')
348
." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>"
349
+ .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.",'yarpp'),"<code>".htmlspecialchars(__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.",'yarpp'))."</code>")
350
."</span></a>"); ?>
351
</table>
352
367
if (yarpp_get_option('rss_promote_yarpp'))
368
$democode .= htmlspecialchars("\n<p>".__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.",'yarpp')."</p>");
369
370
+ checkbox('rss_display',__("Display related posts in feeds?",'yarpp'),"<tr valign='top'><th colspan='3'>",' onclick="javascript:do_rss_display();"');
371
checkbox('rss_excerpt_display',__("Display related posts in the descriptions?",'yarpp')." <a href='#' class='info'>".__('more&gt;','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 name='rss_displayed' valign='top'>
372
<th class='th-full' colspan='2' scope='row'>",'','<td rowspan="10" style="border-left:8px white solid;"><b>'.__("RSS display code example",'yarpp').'</b><br /><small>'.__("(Update options to reload.)",'yarpp').'</small><br/>'
373
."<code><pre style='overflow:auto;width:350px;'>".($democode)."</pre></code></td>"); ?>
416
417
<div>
418
<p class="submit">
419
+ <input type="submit" name="update_yarpp" value="<?php _e("Update options",'yarpp')?>" />
420
+ <input type="submit" onclick='return confirm("<?php _e("Do you really want to reset your configuration?",'yarpp');?>");' class="yarpp_warning" name="reset_yarpp" value="<?php _e('Reset options','yarpp')?>" />
421
</p>
422
</div>
423
</form>
readme.txt CHANGED
@@ -7,7 +7,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4D
7
Tags: related, posts, post, pages, page, RSS, feed, feeds
8
Requires at least: 2.3
9
Tested up to: 2.7
10
- Stable tag: 2.1.4
11
12
Returns a list of the related entries based on a unique algorithm using titles, post bodies, tags, and categories. Now with RSS feed support!
13
@@ -75,18 +75,8 @@ The available keys in version 2.1 are (roughly in the same order as in the optio
75
* `cross_relate` => (`bool`) cross-relate posts and pages
76
* Display options:
77
* `limit` => (`int`) maximum number of results
78
- * `before_related` => before related entries text
79
- * `after_related` => after related entries text
80
- * `before_title` => before related entry title text
81
- * `after_title` => after related entry title text
82
- * `show_excerpt` => (`bool`) show excerpt
83
- * `excerpt_length` => (`int`) the excerpt length
84
- * `before_post` => before each related entry text
85
- * `after_post` => after each related entry text
86
* `order` => MySQL `ORDER BY ` field and direction
87
- * `no_results` => "no results" text
88
* `promote_yarpp` => (`bool`) promote YARPP?
89
- * `show_score` => (`bool`) show the match score to admins
90
91
**Examples**
92
@@ -145,8 +135,8 @@ I highly recommend you disactivate YARPP, replace it with the new one, and then
145
== Localizations ==
146
147
YARPP is currently localized in the following languages:
148
- * Simplified Chinese (`zh_CN`) by [Jor Wang](mailto:mail@jorwang.com) of [jorwang.com](http://jorwang.com)
149
- * German (`de_DE`) by [Michael K.](mailto:yarpp-de@mitcho.com) of [3th.be](http://3th.be)
150
151
If you are a bilingual speaker of English and another language and an avid user of YARPP, I would love to talk to you about localizing YARPP! Localizing YARPP can be pretty easy using [the Codestyling Localization plugin](http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en). Please [contact me](mailto:yarpp@mitcho.com) *first* before translating to make sure noone else is working on your language. Thanks!
152
@@ -222,15 +212,21 @@ If you are a bilingual speaker of English and another language and an avid user
222
* Bugfix: `title` attributes were not properly escaped
223
* Bugfix: [keywords did not filter tags](http://wordpress.org/support/topic/218211). (This bugfix may vastly improve "relatedness" on some blogs.)
224
* Localizations:
225
- * Simplified Chinese (`zh_CN`) by [Jor Wang](mailto:mail@jorwang.com) of [jorwang.com](http://jorwang.com)
226
- * German (`de_DE`) by [Michael K.](mailto:yarpp-de@mitcho.com) of [3th.be](http://3th.be)
227
* The "show excerpt" option now shows the first `n` words of the excerpt, rather than the content ([by request](http://wordpress.org/support/topic/212577))
228
* Added an `echo` parameter to the `related_*()` functions, with default value of `true`. If `false`, the function will simply return the output.
229
* Added support for the [AllWebMenus Pro](http://wordpress.org/extend/plugins/allwebmenus-wordpress-menu-plugin/) plugin
230
* Further internationalization:
231
* the donate button! ^^
232
* overused words lists ([by request](http://wordpress.org/support/topic/159359))), with a German word list.
233
-
234
== Future versions ==
235
236
The following feature requests have been made and may be incorporated into a future release. If you have a bug fix, please start a new thread on [the Wordpress.org forums](http://wordpress.org/tags/yet-another-related-posts-plugin).
7
Tags: related, posts, post, pages, page, RSS, feed, feeds
8
Requires at least: 2.3
9
Tested up to: 2.7
10
+ Stable tag: 2.1.5
11
12
Returns a list of the related entries based on a unique algorithm using titles, post bodies, tags, and categories. Now with RSS feed support!
13
75
* `cross_relate` => (`bool`) cross-relate posts and pages
76
* Display options:
77
* `limit` => (`int`) maximum number of results
78
* `order` => MySQL `ORDER BY ` field and direction
79
* `promote_yarpp` => (`bool`) promote YARPP?
80
81
**Examples**
82
135
== Localizations ==
136
137
YARPP is currently localized in the following languages:
138
+ * Simplified Chinese (`zh_CN`) by Jor Wang (mail at jorwang dot com) of [jorwang.com](http://jorwang.com)
139
+ * German (`de_DE`) by Michael Kalina (yarpp-de at mitcho dot com) of [3th.be](http://3th.be)
140
141
If you are a bilingual speaker of English and another language and an avid user of YARPP, I would love to talk to you about localizing YARPP! Localizing YARPP can be pretty easy using [the Codestyling Localization plugin](http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en). Please [contact me](mailto:yarpp@mitcho.com) *first* before translating to make sure noone else is working on your language. Thanks!
142
212
* Bugfix: `title` attributes were not properly escaped
213
* Bugfix: [keywords did not filter tags](http://wordpress.org/support/topic/218211). (This bugfix may vastly improve "relatedness" on some blogs.)
214
* Localizations:
215
+ * Simplified Chinese (`zh_CN`) by Jor Wang (mail at jorwang dot com) of [jorwang.com](http://jorwang.com)
216
+ * German (`de_DE`) by Michael Kalina (yarpp-de at mitcho dot com) of [3th.be](http://3th.be)
217
* The "show excerpt" option now shows the first `n` words of the excerpt, rather than the content ([by request](http://wordpress.org/support/topic/212577))
218
* Added an `echo` parameter to the `related_*()` functions, with default value of `true`. If `false`, the function will simply return the output.
219
* Added support for the [AllWebMenus Pro](http://wordpress.org/extend/plugins/allwebmenus-wordpress-menu-plugin/) plugin
220
* Further internationalization:
221
* the donate button! ^^
222
* overused words lists ([by request](http://wordpress.org/support/topic/159359))), with a German word list.
223
+ * 2.1.5
224
+ * Bugfix: In certain scenarios, [related posts would be displayed in RSS feeds even when that option was off](http://wordpress.org/support/topic/216145)
225
+ * Bugfix: The `related_*()` functions were missing the `echo` parameter
226
+ * Some localization bugfixes
227
+ * Localizations:
228
+ * Japanese (`ja`) by myself ([mitcho (Michael Yoshitaka Erlewine)](http://mitcho.com))
229
+
230
== Future versions ==
231
232
The following feature requests have been made and may be incorporated into a future release. If you have a bug fix, please start a new thread on [the Wordpress.org forums](http://wordpress.org/tags/yet-another-related-posts-plugin).
related-functions.php CHANGED
@@ -4,16 +4,16 @@
4
5
// Since YARPP 2.1, these functions receive (optionally) one array argument. See the documentation for instructions on how to customize their output.
6
7
- function related_posts($a = array()) {
8
- return yarpp_related(array('post'),$a);
9
}
10
11
- function related_pages($a = array()) {
12
- return yarpp_related(array('page'),$a);
13
}
14
15
- function related_entries($a = array()) {
16
- return yarpp_related(array('page','post'),$a);
17
}
18
19
function related_posts_exist($a = array()) {
4
5
// Since YARPP 2.1, these functions receive (optionally) one array argument. See the documentation for instructions on how to customize their output.
6
7
+ function related_posts($a = array(),$echo=true) {
8
+ return yarpp_related(array('post'),$a,$echo);
9
}
10
11
+ function related_pages($a = array(),$echo=true) {
12
+ return yarpp_related(array('page'),$a,$echo);
13
}
14
15
+ function related_entries($a = array(),$echo=true) {
16
+ return yarpp_related(array('page','post'),$a,$echo);
17
}
18
19
function related_posts_exist($a = array()) {
yarpp.php CHANGED
@@ -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: 2.1.4
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: 2.1.5
7
Author: mitcho (Michael Yoshitaka Erlewine)
8
Author URI: http://mitcho.com/
9
*/