Yet Another Related Posts Plugin (YARPP) - Version 4.0.4b4

Version Description

Download this release

Release Info

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

Code changes from version 4.0.4b3 to 4.0.4b4

Files changed (6) hide show
  1. class-core.php +18 -0
  2. class-widget.php +27 -8
  3. lang/yarpp-sl_SI.mo +0 -0
  4. lang/yarpp-sl_SI.po +663 -0
  5. readme.txt +8 -2
  6. yarpp.php +2 -2
class-core.php CHANGED
@@ -891,6 +891,12 @@ class YARPP {
891
));
892
}
893
$this->prep_query( $this->current_query->is_feed );
894
$related_query = $wp_query; // backwards compatibility
895
$related_count = $related_query->post_count;
896
@@ -983,6 +989,12 @@ class YARPP {
983
'showposts' => $limit,
984
'post_type' => ( isset($args['post_type']) ? $args['post_type'] : $this->get_post_types() )
985
));
986
$this->active_cache->end_yarpp_time(); // YARPP time is over... :(
987
988
return $related_query->posts;
@@ -1022,6 +1034,12 @@ class YARPP {
1022
'showposts' => 1,
1023
'post_type' => ( isset($args['post_type']) ? $args['post_type'] : $this->get_post_types() )
1024
));
1025
$return = $related_query->have_posts();
1026
unset($related_query);
1027
$this->active_cache->end_yarpp_time(); // YARPP time is over. :(
891
));
892
}
893
$this->prep_query( $this->current_query->is_feed );
894
+
895
+ $wp_query->posts = apply_filters('yarpp_results', $wp_query->posts, array(
896
+ 'function' => 'display_related',
897
+ 'args' => $args,
898
+ 'related_ID' => $reference_ID));
899
+
900
$related_query = $wp_query; // backwards compatibility
901
$related_count = $related_query->post_count;
902
989
'showposts' => $limit,
990
'post_type' => ( isset($args['post_type']) ? $args['post_type'] : $this->get_post_types() )
991
));
992
+
993
+ $related_query->posts = apply_filters('yarpp_results', $related_query->posts, array(
994
+ 'function' => 'get_related',
995
+ 'args' => $args,
996
+ 'related_ID' => $reference_ID));
997
+
998
$this->active_cache->end_yarpp_time(); // YARPP time is over... :(
999
1000
return $related_query->posts;
1034
'showposts' => 1,
1035
'post_type' => ( isset($args['post_type']) ? $args['post_type'] : $this->get_post_types() )
1036
));
1037
+
1038
+ $related_query->posts = apply_filters('yarpp_results', $related_query->posts, array(
1039
+ 'function' => 'related_exist',
1040
+ 'args' => $args,
1041
+ 'related_ID' => $reference_ID));
1042
+
1043
$return = $related_query->have_posts();
1044
unset($related_query);
1045
$this->active_cache->end_yarpp_time(); // YARPP time is over. :(
class-widget.php CHANGED
@@ -58,6 +58,11 @@ class YARPP_Widget extends WP_Widget {
58
$instance['title'] = $old_instance['title'];
59
else // save the title change:
60
$instance['title'] = $new_instance['title'];
61
62
return $instance;
63
}
@@ -67,6 +72,7 @@ class YARPP_Widget extends WP_Widget {
67
68
$instance = wp_parse_args( $instance, array(
69
'title' => __('Related Posts (YARPP)','yarpp'),
70
'template' => false,
71
'promote_yarpp' => false
72
) );
@@ -85,7 +91,7 @@ class YARPP_Widget extends WP_Widget {
85
86
?>
87
88
- <p>
89
<label style="padding-right: 10px; display: inline-block;" for="<?php echo $this->get_field_id('use_template_builtin'); ?>"><input id="<?php echo $this->get_field_id('use_template_builtin'); ?>" name="<?php echo $this->get_field_name('use_template'); ?>" type="radio" value="builtin" <?php checked( $choice == 'builtin' ) ?> /> <?php _e( "List", 'yarpp' ); ?></label>
90
91
<label style="padding-right: 10px; display: inline-block;" for="<?php echo $this->get_field_id('use_template_thumbnails'); ?>"><input id="<?php echo $this->get_field_id('use_template_thumbnails'); ?>" name="<?php echo $this->get_field_name('use_template'); ?>" type="radio" value="thumbnails" <?php checked( $choice == 'thumbnails' ) ?> /> <?php _e( "Thumbnails", 'yarpp' ); ?></label>
@@ -95,6 +101,8 @@ class YARPP_Widget extends WP_Widget {
95
96
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" /></label></p>
97
98
<p><label for="<?php echo $this->get_field_id('template_file'); ?>"><?php _e("Template file:",'yarpp');?></label> <select name="<?php echo $this->get_field_name('template_file'); ?>" id="<?php echo $this->get_field_id('template_file'); ?>">
99
<?php foreach ($templates as $template): ?>
100
<option value='<?php echo esc_attr($template['basename']); ?>'<?php selected($template['basename'], $instance['template']);?>><?php echo esc_html($template['name']); ?></option>
@@ -102,14 +110,25 @@ class YARPP_Widget extends WP_Widget {
102
</select><p>
103
<script type="text/javascript">
104
jQuery(function($) {
105
- function ensureTemplateChoice() {
106
- var custom = $('#<?php echo $this->get_field_id('use_template_custom'); ?>').prop('checked');
107
- var builtin = $('#<?php echo $this->get_field_id('use_template_builtin'); ?>').prop('checked');
108
- $('#<?php echo $this->get_field_id('title'); ?>').closest('p').toggle(!!builtin);
109
- $('#<?php echo $this->get_field_id('template_file'); ?>').closest('p').toggle(!!custom);
110
}
111
- $('input[name="<?php echo $this->get_field_name('use_template'); ?>"]').change(ensureTemplateChoice);
112
- ensureTemplateChoice();
113
});
114
</script>
115
58
$instance['title'] = $old_instance['title'];
59
else // save the title change:
60
$instance['title'] = $new_instance['title'];
61
+
62
+ if ( !!$instance['thumbnails_heading'] ) // don't save the title change.
63
+ $instance['thumbnails_heading'] = $old_instance['thumbnails_heading'];
64
+ else // save the title change:
65
+ $instance['thumbnails_heading'] = $new_instance['thumbnails_heading'];
66
67
return $instance;
68
}
72
73
$instance = wp_parse_args( $instance, array(
74
'title' => __('Related Posts (YARPP)','yarpp'),
75
+ 'thumbnails_heading' => $yarpp->get_option('thumbnails_heading'),
76
'template' => false,
77
'promote_yarpp' => false
78
) );
91
92
?>
93
94
+ <p class='yarpp-widget-type-control'>
95
<label style="padding-right: 10px; display: inline-block;" for="<?php echo $this->get_field_id('use_template_builtin'); ?>"><input id="<?php echo $this->get_field_id('use_template_builtin'); ?>" name="<?php echo $this->get_field_name('use_template'); ?>" type="radio" value="builtin" <?php checked( $choice == 'builtin' ) ?> /> <?php _e( "List", 'yarpp' ); ?></label>
96
97
<label style="padding-right: 10px; display: inline-block;" for="<?php echo $this->get_field_id('use_template_thumbnails'); ?>"><input id="<?php echo $this->get_field_id('use_template_thumbnails'); ?>" name="<?php echo $this->get_field_name('use_template'); ?>" type="radio" value="thumbnails" <?php checked( $choice == 'thumbnails' ) ?> /> <?php _e( "Thumbnails", 'yarpp' ); ?></label>
101
102
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" /></label></p>
103
104
+ <p><label for="<?php echo $this->get_field_id('thumbnails_heading'); ?>"><?php _e( 'Heading:', 'yarpp' ); ?> <input class="widefat" id="<?php echo $this->get_field_id('thumbnails_heading'); ?>" name="<?php echo $this->get_field_name('thumbnails_heading'); ?>" type="text" value="<?php echo esc_attr($instance['thumbnails_heading']); ?>" /></label></p>
105
+
106
<p><label for="<?php echo $this->get_field_id('template_file'); ?>"><?php _e("Template file:",'yarpp');?></label> <select name="<?php echo $this->get_field_name('template_file'); ?>" id="<?php echo $this->get_field_id('template_file'); ?>">
107
<?php foreach ($templates as $template): ?>
108
<option value='<?php echo esc_attr($template['basename']); ?>'<?php selected($template['basename'], $instance['template']);?>><?php echo esc_html($template['name']); ?></option>
110
</select><p>
111
<script type="text/javascript">
112
jQuery(function($) {
113
+ function ensureTemplateChoice(e) {
114
+ if (typeof e == 'object' && 'type' in e)
115
+ e.stopImmediatePropagation();
116
+ var this_form = $(this).closest('form');
117
+ var widget_id = this_form.find('.widget-id').val();
118
+ // if this widget is just in staging:
119
+ if ( /__i__#x2F;.test(widget_id) )
120
+ return;
121
+
122
+ var builtin = !!$('#widget-' + widget_id + '-use_template_builtin').prop('checked');
123
+ var thumbnails = !!$('#widget-' + widget_id + '-use_template_thumbnails').prop('checked');
124
+ var custom = !!$('#widget-' + widget_id + '-use_template_custom').prop('checked');
125
+ $('#widget-' + widget_id + '-title').closest('p').toggle(builtin);
126
+ $('#widget-' + widget_id + '-thumbnails_heading').closest('p').toggle(thumbnails);
127
+ $('#widget-' + widget_id + '-template_file').closest('p').toggle(custom);
128
+ console.log(widget_id, custom, builtin);
129
}
130
+ $('#wpbody').on('change', '.yarpp-widget-type-control input', ensureTemplateChoice);
131
+ $('.yarpp-widget-type-control').each(ensureTemplateChoice);
132
});
133
</script>
134
lang/yarpp-sl_SI.mo ADDED
Binary file
lang/yarpp-sl_SI.po ADDED
@@ -0,0 +1,663 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Yet Another Related Posts Plugin v4.0.3\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2013-02-04 15:57:33+0000\n"
7
+ "Last-Translator: silvoslaf <support@zemanta.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3;\n"
13
+ "X-Poedit-Language: Slovenian\n"
14
+ "X-Poedit-Country: SLOVENIA\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: ../\n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: class-admin.php:67
23
+ #: class-widget.php:7
24
+ #: class-widget.php:72
25
+ #@ yarpp
26
+ msgid "Related Posts (YARPP)"
27
+ msgstr "Sorodni članki"
28
+
29
+ #: class-admin.php:78
30
+ #@ yarpp
31
+ msgid "Related Posts"
32
+ msgstr "Sorodni članki"
33
+
34
+ #: class-admin.php:78
35
+ #@ default
36
+ msgid "Configure"
37
+ msgstr ""
38
+
39
+ #: class-admin.php:97
40
+ #: class-admin.php:126
41
+ #@ yarpp
42
+ msgid "Frequently Asked Questions"
43
+ msgstr "Nedavno postavljena vprašanja"
44
+
45
+ #: class-admin.php:102
46
+ #: class-admin.php:138
47
+ #@ yarpp
48
+ msgid "Developing with YARPP"
49
+ msgstr "V razvoju z YARPP-om"
50
+
51
+ #: class-admin.php:107
52
+ #@ yarpp
53
+ msgid "Optional Data Collection"
54
+ msgstr "Dovoli zbiranje podatkov"
55
+
56
+ #: class-admin.php:143
57
+ #, php-format
58
+ #@ yarpp
59
+ msgid "With your permission, YARPP will send information about YARPP's settings, usage, and environment back to a central server at %s."
60
+ msgstr "Z vašim dovoljenjem bo YARPP pošiljal YARPP-ove podatke o nastavitvah, okolju in porabi nazaj k centralnemu serverju na %s."
61
+
62
+ #: class-admin.php:144
63
+ #@ yarpp
64
+ msgid "This information will be used to improve YARPP in the future and help decide future development decisions for YARPP."
65
+ msgstr "Te informacije bomo uporabili za izboljšanje YARPP-a v prihodnje in nam bo v pomoč pri odločitvah v nadaljnem razvoju."
66
+
67
+ #: class-admin.php:145
68
+ #@ yarpp
69
+ msgid "Contributing this data will help make YARPP better for you and for other YARPP users."
70
+ msgstr "S prispevkom vaših podatkov boste pomagali izboljšati YARPP kakor za vas, kakor tudi za ostale uporabnike."
71
+
72
+ #: class-admin.php:153
73
+ #@ yarpp
74
+ msgid "If you opt-in, the following information is sent back to YARPP:"
75
+ msgstr "Če pristanete, bodo sledeči podatki poslani nazaj YARPP-u."
76
+
77
+ #: class-admin.php:155
78
+ #@ yarpp
79
+ msgid "In addition, YARPP also loads an invisible pixel image with your YARPP results to know how often YARPP is being used."
80
+ msgstr "Omenimo še to, da bo YARPP skupaj z vašimi rezultati naložil še neviden pixel, kateri nam pomaga analizirati uporabo YARPP-a."
81
+
82
+ #: class-admin.php:159
83
+ #: options-meta-boxes.php:424
84
+ #@ yarpp
85
+ msgid "Send settings and usage data back to YARPP"
86
+ msgstr "Pošlji podatke o nastavitvah in uporabi nazaj YARPP-u."
87
+
88
+ #: class-admin.php:159
89
+ #@ yarpp
90
+ msgid "Thank you!"
91
+ msgstr "Hvala!"
92
+
93
+ #: class-admin.php:188
94
+ #@ yarpp
95
+ msgid "<strong>Help make YARPP better</strong> by sending information about YARPP's settings and usage statistics."
96
+ msgstr "<strong>Pomagajte izboljšati YARPP</strong> tako, da nam pošiljate informacije o YARPP-ovih nastavitvah in statistiko o uporabi."
97
+
98
+ #: class-admin.php:192
99
+ #: options-meta-boxes.php:428
100
+ #@ yarpp
101
+ msgid "Learn More"
102
+ msgstr "Poizvedi več"
103
+
104
+ #: class-admin.php:235
105
+ #@ yarpp
106
+ msgid "Show example code output"
107
+ msgstr "Pokaži primer code output"
108
+
109
+ #: class-admin.php:264
110
+ #@ yarpp
111
+ msgid "Thank you for installing <span>Yet Another Related Posts Plugin</span>!"
112
+ msgstr "Hvala da ste si namestili <span>Yet Another Related Posts Plugin</span>!"
113
+
114
+ #: class-admin.php:265
115
+ #@ yarpp
116
+ msgid "Make sure to visit the <a>Related Posts settings page</a> to customize YARPP."
117
+ msgstr "Ne pozabite obiskati <a>nastavitveno stran sorodnih člankov,</a> da si namestite YARPP po vaši meri."
118
+
119
+ #: class-admin.php:311
120
+ #@ default
121
+ msgid "Settings"
122
+ msgstr ""
123
+
124
+ #: class-admin.php:337
125
+ #@ yarpp
126
+ msgid "Related entries may be displayed once you save your entry"
127
+ msgstr "Sorodni vnosi se lahko prikažejo šele ko shranite svoje vnose."
128
+
129
+ #: class-cache.php:530
130
+ #@ yarpp
131
+ msgid "Example post "
132
+ msgstr "Primer objave"
133
+
134
+ #: class-core.php:81
135
+ #: class-core.php:91
136
+ #: class-core.php:118
137
+ #: class-core.php:120
138
+ #: class-core.php:452
139
+ #: class-core.php:463
140
+ #: class-core.php:785
141
+ #@ yarpp
142
+ msgid "Related posts:"
143
+ msgstr "Sorodni članki: "
144
+
145
+ #: class-core.php:83
146
+ #: class-core.php:93
147
+ #: class-core.php:454
148
+ #: class-core.php:465
149
+ #: template-metabox.php:30
150
+ #: template-widget.php:13
151
+ #@ yarpp
152
+ msgid "No related posts."
153
+ msgstr "Ni sorodnih člankov."
154
+
155
+ #: class-core.php:933
156
+ #: class-core.php:1075
157
+ #: options-meta-boxes.php:295
158
+ #: options-meta-boxes.php:356
159
+ #, php-format
160
+ #@ yarpp
161
+ msgid "Related posts brought to you by <a href='%s'>Yet Another Related Posts Plugin</a>."
162
+ msgstr "Sorodne članke vam je omogočil <a href='%s'>Yet Another Related Posts Plugin</a>."
163
+
164
+ #: class-widget.php:92
165
+ #: options-meta-boxes.php:35
166
+ #@ yarpp
167
+ msgid "List"
168
+ msgstr "Seznam"
169
+
170
+ #: class-widget.php:94
171
+ #: options-meta-boxes.php:45
172
+ #@ yarpp
173
+ msgid "Thumbnails"
174
+ msgstr "Sličice"
175
+
176
+ #: class-widget.php:96
177
+ #: options-meta-boxes.php:59
178
+ #@ yarpp
179
+ msgid "Custom"
180
+ msgstr "Po meri"
181
+
182
+ #: class-widget.php:99
183
+ #@ default
184
+ msgid "Title:"
185
+ msgstr ""
186
+
187
+ #: class-widget.php:101
188
+ #: options-meta-boxes.php:70
189
+ #@ yarpp
190
+ msgid "Template file:"
191
+ msgstr "Predloga datoteke:"
192
+
193
+ #: class-widget.php:119
194
+ #: options-meta-boxes.php:294
195
+ #: options-meta-boxes.php:356
196
+ #@ yarpp
197
+ msgid "Help promote Yet Another Related Posts Plugin?"
198
+ msgstr "Želite pomagati promovirati Yet Another Related Posts Plugin?"
199
+
200
+ #: options-meta-boxes.php:7
201
+ #@ yarpp
202
+ msgid "This advanced option gives you full power to customize how your related posts are displayed. Templates (stored in your theme folder) are written in PHP."
203
+ msgstr "Ta napredna možnost vam omogoči popolno kontrolo nad tem kako se vam bodo prikazali sorodni članki. Predloge (shranjene v vaši datoteki tem) so napisane v PHP-ju. "
204
+
205
+ #: options-meta-boxes.php:44
206
+ #@ yarpp
207
+ msgid "This option is disabled because your theme does not support post thumbnails."
208
+ msgstr "Ta opcija je začasno izključena, ker vaša trenutna tema ne podpira sličic."
209
+
210
+ #: options-meta-boxes.php:54
211
+ #@ yarpp
212
+ msgid "This option is disabled because no YARPP templates were found in your theme."
213
+ msgstr "Ta opcija je začasno izključena, ker v vaši trenutni temi nismo našli YARPP-ovih predlogov."
214
+
215
+ #: options-meta-boxes.php:56
216
+ #@ yarpp
217
+ msgid "Would you like to copy some sample templates bundled with YARPP into your theme?"
218
+ msgstr "Bi želeli kopirati nekaj YARPP-ovih skupinskih vzorčnih predlogov v vašo temo?"
219
+
220
+ #: options-meta-boxes.php:56
221
+ #@ yarpp
222
+ msgid "Copy Templates"
223
+ msgstr "Kopiraj predloge"
224
+
225
+ #: options-meta-boxes.php:79
226
+ #@ default
227
+ msgid "Author:"
228
+ msgstr ""
229
+
230
+ #: options-meta-boxes.php:105
231
+ #: options-meta-boxes.php:123
232
+ #@ yarpp
233
+ msgid "do not consider"
234
+ msgstr "ne vključi"
235
+
236
+ #: options-meta-boxes.php:106
237
+ #: options-meta-boxes.php:124
238
+ #@ yarpp
239
+ msgid "consider"
240
+ msgstr "vključi"
241
+
242
+ #: options-meta-boxes.php:107
243
+ #: options-meta-boxes.php:125
244
+ #@ yarpp
245
+ msgid "consider with extra weight"
246
+ msgstr "upoštevaj z dodano višino"
247
+
248
+ #: options-meta-boxes.php:108
249
+ #, php-format
250
+ #@ yarpp
251
+ msgid "require at least one %s in common"
252
+ msgstr "zahteva vsaj eno %s skupnih"
253
+
254
+ #: options-meta-boxes.php:109
255
+ #, php-format
256
+ #@ yarpp
257
+ msgid "require more than one %s in common"
258
+ msgstr "zahteva več kot eno %s skupnih"
259
+
260
+ #: options-meta-boxes.php:131
261
+ #@ yarpp
262
+ msgid "Order results:"
263
+ msgstr "Prikaži rezultate po:"
264
+
265
+ #: options-meta-boxes.php:135
266
+ #@ yarpp
267
+ msgid "score (high relevance to low)"
268
+ msgstr "sorodnosti (od višje relevantnosti do nižje)"
269
+
270
+ #: options-meta-boxes.php:136
271
+ #@ yarpp
272
+ msgid "score (low relevance to high)"
273
+ msgstr "sorodnosti (od nižje relevantnosti do višje)"
274
+
275
+ #: options-meta-boxes.php:137
276
+ #@ yarpp
277
+ msgid "date (new to old)"
278
+ msgstr "datumu (od novejših do starejših)"
279
+
280
+ #: options-meta-boxes.php:138
281
+ #@ yarpp
282
+ msgid "date (old to new)"
283
+ msgstr "datumu (od starejših do novejših)"
284
+
285
+ #: options-meta-boxes.php:139
286
+ #@ yarpp
287
+ msgid "title (alphabetical)"
288
+ msgstr "naslov (po abecednem redu)"
289
+
290
+ #: options-meta-boxes.php:140
291
+ #@ yarpp
292
+ msgid "title (reverse alphabetical)"
293
+ msgstr "naslov (po obratnem abecednem redu)"
294
+
295
+ #: options-meta-boxes.php:170
296
+ #@ yarpp
297
+ msgid "\"The Pool\" refers to the pool of posts and pages that are candidates for display as related to the current entry."
298
+ msgstr "\"The Pool\" se nanaša na zbirko objav in strani, ki so kandidati za objavo kot sorodni v trenutnem vnosu."
299
+
300
+ #: options-meta-boxes.php:173
301
+ #@ yarpp
302
+ msgid "Post types considered:"
303
+ msgstr "Tipi objav, ki so vključeni:"
304
+
305
+ #: options-meta-boxes.php:177
306
+ #, php-format
307
+ #@ yarpp
308
+ msgid "Disallow by %s:"
309
+ msgstr "Ni dovoljeno z %s:"
310
+
311
+ #: options-meta-boxes.php:179
312
+ #@ yarpp
313
+ msgid "Show password protected posts?"
314
+ msgstr "Prikaži z geslom zaščitene objave?"
315
+
316
+ #: options-meta-boxes.php:190
317
+ #@ yarpp
318
+ msgid "day(s)"
319
+ msgstr "Dan (dnevi)"
320
+
321
+ #: options-meta-boxes.php:191
322
+ #@ yarpp
323
+ msgid "week(s)"
324
+ msgstr "Teden (tedni)"
325
+
326
+ #: options-meta-boxes.php:192
327
+ #@ yarpp
328
+ msgid "month(s)"
329
+ msgstr "mesec (meseci)"
330
+
331
+ #: options-meta-boxes.php:198
332
+ #@ yarpp
333
+ msgid "Show only posts from the past NUMBER UNITS"
334
+ msgstr "Prikaži samo objave od zadnjih NUMBER UNITS"
335
+
336
+ #: options-meta-boxes.php:204
337
+ #@ yarpp
338
+ msgid "\"The Pool\""
339
+ msgstr "\"The Pool\""
340
+
341
+ #: options-meta-boxes.php:210
342
+ #@ yarpp
343
+ msgid "YARPP limits the related posts list by (1) a maximum number and (2) a <em>match threshold</em>."
344
+ msgstr "YARPP je omejil sorodne članke na (1) maksimalno število in (2) a <em>match threshold</em>."
345
+
346
+ #: options-meta-boxes.php:210
347
+ #@ yarpp
348
+ 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."
349
+ msgstr "Višji kot je ujemalni prag, je hkrati tudi bolj omejevalni in dobite manj sorodnih člankov. Privzeti ujemalni prag je 5 člankov. Če želite poiskati svoj primeren ujemalni prag, preverite sorodne članke v vaših že objavljenih objavah in njihovih rezultatih. Tam lahko vidite kateri sorodni članki so bili izbrani, s katerimi ujemalnimi rezultati in lahko določite če je to ta ujemalni prag, ki ga želite za vaš blog."
350
+
351
+ #: options-meta-boxes.php:213
352
+ #@ yarpp
353
+ msgid "Match threshold:"
354
+ msgstr "Ujemalni prag:"
355
+
356
+ #: options-meta-boxes.php:214
357
+ #@ yarpp
358
+ msgid "Titles: "
359
+ msgstr "Naslovi:"
360
+
361
+ #: options-meta-boxes.php:215
362
+ #@ yarpp
363
+ msgid "Bodies: "
364
+ msgstr "Telesa:"
365
+
366
+ #: options-meta-boxes.php:221
367
+ #@ yarpp
368
+ msgid "Display results from all post types"
369
+ msgstr "Pokaži rezultate od vseh tipov objav"
370
+
371
+ #: options-meta-boxes.php:221
372
+ #@ yarpp
373
+ msgid "When \"display results from all post types\" is off, only posts will be displayed as related to a post, only pages will be displayed as related to a page, etc."
374
+ msgstr "Ko je \"prikaži rezultate od vseh tipov objav\" opcija izključena, bodo objave prikazane samo kot sorodni članki, strani bodo prikazane samo kot sorodne strani, itd."
375
+
376
+ #: options-meta-boxes.php:222
377
+ #@ yarpp
378
+ msgid "Show only previous posts?"
379
+ msgstr "Prikaži samo pretekle objave?"
380
+
381
+ #: options-meta-boxes.php:226
382
+ #@ yarpp
383
+ msgid "\"Relatedness\" options"
384
+ msgstr "\"Sorodnost\" opcija"
385
+
386
+ #: options-meta-boxes.php:236
387
+ #@ yarpp
388
+ msgid "Website display code example"
389
+ msgstr "Spletni prikaz primera kode"
390
+
391
+ #: options-meta-boxes.php:236
392
+ #: options-meta-boxes.php:309
393
+ #@ yarpp
394
+ msgid "(Update options to reload.)"
395
+ msgstr "(Posodobi opcije ponovnega nalaganja.)"
396
+
397
+ #: options-meta-boxes.php:239
398
+ #@ yarpp
399
+ msgid "Automatically display:"
400
+ msgstr "Avtomatsko prikaži:"
401
+
402
+ #: options-meta-boxes.php:240
403
+ #@ yarpp
404
+ 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."
405
+ msgstr "Ta opcija avtomatično prikaže sorodne članke takoj za samo vsebino samostojnega vnosa na strani. Če je ta opcija izključena boste morali sami vnesti <code>related_posts()</code> ali variante (<code>related_pages()</code> in <code>related_entries()</code>) v vašo mapo tem."
406
+
407
+ #: options-meta-boxes.php:250
408
+ #@ yarpp
409
+ msgid "Also display in archives"
410
+ msgstr "Prav tako prikaži v arhivih"
411
+
412
+ #: options-meta-boxes.php:252
413
+ #: options-meta-boxes.php:314
414
+ #@ yarpp
415
+ msgid "Maximum number of related posts:"
416
+ msgstr "Maksimalno število sorodnih člankov:"
417
+
418
+ #: options-meta-boxes.php:272
419
+ #: options-meta-boxes.php:334
420
+ #@ yarpp
421
+ msgid "Heading:"
422
+ msgstr "Postavka:"
423
+
424
+ #: options-meta-boxes.php:273
425
+ #: options-meta-boxes.php:335
426
+ #@ yarpp
427
+ msgid "Default image (URL):"
428
+ msgstr "Privzeta sličica (URL):"
429
+
430
+ #: options-meta-boxes.php:274
431
+ #: options-meta-boxes.php:289
432
+ #: options-meta-boxes.php:336
433
+ #: options-meta-boxes.php:351
434
+ #@ yarpp
435
+ msgid "Default display if no results:"
436
+ msgstr "Privzet prikaz, če ni rezultatov:"
437
+
438
+ #: options-meta-boxes.php:281
439
+ #: options-meta-boxes.php:343
440
+ #@ yarpp
441
+ msgid "Before / after related entries:"
442
+ msgstr "Pred / po sorodnih vnosih: "
443
+
444
+ #: options-meta-boxes.php:281
445
+ #: options-meta-boxes.php:282
446
+ #: options-meta-boxes.php:287
447
+ #: options-meta-boxes.php:343
448
+ #: options-meta-boxes.php:344
449
+ #: options-meta-boxes.php:349
450
+ #@ yarpp
451
+ msgid "For example:"
452
+ msgstr "Na primer: "
453
+
454
+ #: options-meta-boxes.php:281
455
+ #: options-meta-boxes.php:282
456
+ #: options-meta-boxes.php:287
457
+ #: options-meta-boxes.php:343
458
+ #: options-meta-boxes.php:344
459
+ #: options-meta-boxes.php:349
460
+ #@ yarpp
461
+ msgid " or "
462
+ msgstr "ali"
463
+
464
+ #: options-meta-boxes.php:282
465
+ #: options-meta-boxes.php:344
466
+ #@ yarpp
467
+ msgid "Before / after each related entry:"
468
+ msgstr "Pred / po vsakem sorodnem vnosu:"
469
+
470
+ #: options-meta-boxes.php:284
471
+ #: options-meta-boxes.php:346
472
+ #@ yarpp
473
+ msgid "Show excerpt?"
474
+ msgstr "Pokaži izvleček?"
475
+
476
+ #: options-meta-boxes.php:285
477
+ #: options-meta-boxes.php:347
478
+ #@ yarpp
479
+ msgid "Excerpt length (No. of words):"
480
+ msgstr "Dolžina izvlečka (št. besed):"
481
+
482
+ #: options-meta-boxes.php:287
483
+ #: options-meta-boxes.php:349
484
+ #@ yarpp
485
+ msgid "Before / after (excerpt):"
486
+ msgstr "Pred / po (izvlečku):"
487
+
488
+ #: options-meta-boxes.php:295
489
+ #: options-meta-boxes.php:356
490
+ #, php-format
491
+ #@ yarpp
492
+ 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."
493
+ msgstr "Ta opcija bo dodala kodo %s. Poskusite jo omogočiti, posodobite vaše nastavitve in potem pojdite pogledati kodo v primer kode na vaši desni. Te povezave in donacije so zelo dobrodošle in cenjene."
494
+
495
+ #: options-meta-boxes.php:299
496
+ #@ yarpp
497
+ msgid "Display options <small>for your website</small>"
498
+ msgstr "Prikaži možnosti <small>za vašo spletno stran</small>"
499
+
500
+ #: options-meta-boxes.php:309
501
+ #@ yarpp
502
+ msgid "RSS display code example"
503
+ msgstr "RSS prikaz kodnega primera"
504
+
505
+ #: options-meta-boxes.php:311
506
+ #@ yarpp
507
+ msgid "Display related posts in feeds?"
508
+ msgstr "Prikaži sorodne članke v RSS viru?"
509
+
510
+ #: options-meta-boxes.php:311
511
+ #@ yarpp
512
+ msgid "This option displays related posts at the end of each item in your RSS and Atom feeds. No template changes are needed."
513
+ msgstr "Ta opcija prikaže sorodne članke na koncu vsake enote v vašem RSS ali Atom viru. Nobene spremembe predolg niso potrebne."
514
+
515
+ #: options-meta-boxes.php:312
516
+ #@ yarpp
517
+ msgid "Display related posts in the descriptions?"
518
+ msgstr "Prikaži sorodne članke v opisu?"
519
+
520
+ #: options-meta-boxes.php:312
521
+ #@ yarpp
522
+ 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."
523
+ msgstr "Ta opcija prikaže sorodne članke v RSS opisnem polju, ne samo v vsebini. Če so vaši viri nastavljeni, da prikažejo samo izvlečke, bo uporabljeno samo opisno polje, tako da je ta opcija potrebna za kakršenkoli prikaz."
524
+
525
+ #: options-meta-boxes.php:360
526
+ #@ yarpp
527
+ msgid "Display options <small>for RSS</small>"
528
+ msgstr "Prikaži možnosti <small>za RSS vir</small>"
529
+
530
+ #: options-meta-boxes.php:368
531
+ #@ yarpp
532
+ msgid "YARPP Forum"
533
+ msgstr "YARPP forum"
534
+
535
+ #: options-meta-boxes.php:369
536
+ #@ yarpp
537
+ msgid "YARPP on Twitter"
538
+ msgstr "YARPP na Twitterju"
539
+
540
+ #: options-meta-boxes.php:370
541
+ #@ yarpp
542
+ msgid "YARPP on the Web"
543
+ msgstr "YARPP na spletu"
544
+
545
+ #: options-meta-boxes.php:371
546
+ #@ yarpp
547
+ msgid "Review YARPP on WordPress.org"
548
+ msgstr "Oceni YARPP na WordPress.org"
549
+
550
+ #: options-meta-boxes.php:372
551
+ #@ default
552
+ #@ yarpp
553
+ msgid "Donate to mitcho (Michael Yoshitaka Erlewine) for this plugin via PayPal"
554
+ msgstr "Doniraj mitcho-tu (Michael Yoshitaka Erlewine) za ta plugin preko PayPal-a"
555
+
556
+ #: options-meta-boxes.php:405
557
+ #@ yarpp
558
+ msgid "Help Improve YARPP"
559
+ msgstr "Pomagaj izboljšati YARPP"
560
+
561
+ #: options-meta-boxes.php:427
562
+ #@ yarpp
563
+ msgid "This is entirely optional, but will help improve future versions of YARPP."
564
+ msgstr "To je povsem opcijsko, vendar boste s tem pomagali izboljšati prihodnje verzije YARPP-a."
565
+
566
+ #: options-meta-boxes.php:432
567
+ #@ yarpp
568
+ msgid "Contact YARPP"
569
+ msgstr "Kontaktiraj YARPP"
570
+
571
+ #: options.php:36
572
+ #, php-format
573
+ #@ yarpp
574
+ msgid "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox\" title=\"%3$s\">View version %4$s details</a> or <a href=\"%5$s\">update automatically</a>."
575
+ msgstr "Na voljo je nova %1$s različica. <a href=\"%2$s\" class=\"thickbox\" title=\"%3$s\">Poglej različico %4$s details</a> ali <a href=\"%5$s\">posodobi avtomatsko</a>."
576
+
577
+ #: options.php:40
578
+ #, php-format
579
+ #@ yarpp
580
+ msgid "There is a new beta (%s) of Yet Another Related Posts Plugin. You can <a href=\"%s\">download it here</a> at your own risk."
581
+ msgstr "Na voljo je nova beta (%s) različica Yet Another Related Posts Plugin-a. Lahko si jo <a href=\"%s\">naložite tukaj</a>, a na lastno odgovornost."
582
+
583
+ #: options.php:48
584
+ #@ yarpp
585
+ msgid "The MyISAM check has been overridden. You may now use the \"consider titles\" and \"consider bodies\" relatedness criteria."
586
+ msgstr "MyISAM check je bil prenastavljen. Sedaj lahko uporabite \"upoštevaj naslove\" ali \"upoštevaj vsebino\" merila sorodnosti."
587
+
588
+ #: options.php:56
589
+ #, php-format
590
+ #@ yarpp
591
+ 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."
592
+ msgstr "YARPP-ova \"upoštevaj naslove\" ali \"upoštevaj vsebino\" merila sorodnosti zahtevajo vašo <code>%s</code> tabelo za uporabo <a href='http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html'>MyISAM storage engine</a>, ampak tabele izgledajo da uporabljajo <code>%s</code> engine. Ti dve opciji sta bili onemogočeni."
593
+
594
+ #: options.php:58
595
+ #, php-format
596
+ #@ yarpp
597
+ 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."
598
+ msgstr "Za obnovitev teh funkcij si prosim posodobite vašo <code>%s</code> tabelo tako da izvršite sledeč ukaz: <code>ALTER TABLE `%s` ENGINE = MyISAM;</code> . Nobeni podatki ne bodo izbrisani s spremembo tabeličnega engine-a, čeprav obstajajo možnosti posledice zmogljivosti."
599
+
600
+ #: options.php:60
601
+ #, php-format
602
+ #@ yarpp
603
+ msgid "If, despite this check, you are sure that <code>%s</code> is using the MyISAM engine, press this magic button:"
604
+ msgstr "Če ste tudi po ponovni preverbi sigurni, da <code>%s</code> uporablja MyISAM engine, pritisnite na sledeči magični gumb:"
605
+
606
+ #: options.php:63
607
+ #@ yarpp
608
+ msgid "Trust me. Let me use MyISAM features."
609
+ msgstr "Zaupajte mi. Dovolite mi uporabiti MyISAM funkcije."
610
+
611
+ #: options.php:78
612
+ #@ yarpp
613
+ msgid "The YARPP database had an error but has been fixed."
614
+ msgstr "YARPP-ova podatkovna baza je imela napako, ki pa je zdaj popravljena."
615
+
616
+ #: options.php:80
617
+ #@ yarpp
618
+ msgid "The YARPP database has an error which could not be fixed."
619
+ msgstr "YARPP-ova podatkovna baza je imela nako, katero nismo zmogli popraviti."
620
+
621
+ #: options.php:81
622
+ #, php-format
623
+ #@ yarpp
624
+ msgid "Please try <a href=\"%s\" target=\"_blank\">manual SQL setup</a>."
625
+ msgstr "Prosim poskusite <a href=\"%s\" target=\"_blank\">ročno SQL nastavitev</a>."
626
+
627
+ #: options.php:144
628
+ #@ yarpp
629
+ msgid "Options saved!"
630
+ msgstr "Nastavitve shranjene!"
631
+
632
+ #: options.php:150
633
+ #@ yarpp
634
+ msgid "Yet Another Related Posts Plugin Options"
635
+ msgstr "Nastavitve Yet Another Related Posts Plugin-a"
636
+
637
+ #: options.php:158
638
+ #, php-format
639
+ #@ yarpp
640
+ msgid "by <a href=\"%s\" target=\"_blank\">mitcho (Michael 芳貴 Erlewine)</a>"
641
+ msgstr "Od <a href=\"%s\" target=\"_blank\">mitcho (Michael 芳貴 Erlewine)</a>"
642
+
643
+ #: options.php:199
644
+ #@ default
645
+ msgid "Save Changes"
646
+ msgstr ""
647
+
648
+ #: template-builtin.php:22
649
+ #, php-format
650
+ #@ yarpp
651
+ 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."
652
+ msgstr "%f je YARPP-ova ujemalna ocena med trenutnim vnosom in tem sorodnim vnosom. To vrednost vidite zato, ker ste v WordPress prijavljeni kot administrator. To ni prikazano rednim obiskovalcem."
653
+
654
+ #: template-metabox.php:12
655
+ #@ yarpp
656
+ msgid "These are the related entries for this entry. Updating this post may change these related posts."
657
+ msgstr "To so sorodni vnosi za ta vpis. Posodobitev te objave lahko spremenijo te soronde članke."
658
+
659
+ #: template-metabox.php:28
660
+ #@ yarpp
661
+ msgid "Whether all of these related entries are actually displayed and how they are displayed depends on your YARPP display options."
662
+ msgstr "Če so ti sorodni vnosi dejansko prikazani in kako bodo prikazani, je odvisno od vaših YARPP nastavitev."
663
+
readme.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://yarpp.org/
6
Donate link: http://tinyurl.com/donatetomitcho
7
Tags: related, posts, post, pages, page, RSS, feed, feeds
8
Requires at least: 3.3
9
- Tested up to: 3.5
10
Stable tag: 4.0.3
11
License: GPLv2 or later
12
@@ -239,6 +239,7 @@ YARPP is currently localized in the following languages:
239
* Russian (`ru_RU`) by Marat Latypov of [blogocms.ru](http://blogocms.ru)
240
* Serbian (`sr_RS`) by [Zarko Zivkovic](http://www.zarkozivkovic.com/)
241
* Slovak (`sk_SK`) by [Forex](http://www.eforex.sk/)
242
* Spanish (`es_ES`) by Rene of [WordPress Webshop](http://wpwebshop.com)
243
* Swedish (`sv_SE`) by Max Elander
244
* Turkish (`tr_TR`) by [Nurullah](http://www.ndemir.com) and [Barış Ünver](http://beyn.org/)
@@ -260,7 +261,12 @@ If you are a bilingual speaker of English and another language and an avid user
260
= 4.0.4 =
261
* [Bugfix](https://wordpress.org/support/topic/yarp-403-breaks-paginated-posts): 4.0.3 broke some paginated post displays
262
* [Bugfix](https://wordpress.org/support/topic/custom-post-type-support-on-widget): custom post type support was not working properly in widget displays
263
- * Updated French localization and stopword list
264
* Bugfix: forces the DB Cache Reloaded (Fix) plugins to flush when necessary
265
266
= 4.0.3 =
6
Donate link: http://tinyurl.com/donatetomitcho
7
Tags: related, posts, post, pages, page, RSS, feed, feeds
8
Requires at least: 3.3
9
+ Tested up to: 3.6
10
Stable tag: 4.0.3
11
License: GPLv2 or later
12
239
* Russian (`ru_RU`) by Marat Latypov of [blogocms.ru](http://blogocms.ru)
240
* Serbian (`sr_RS`) by [Zarko Zivkovic](http://www.zarkozivkovic.com/)
241
* Slovak (`sk_SK`) by [Forex](http://www.eforex.sk/)
242
+ * Slovenian (`sl_SI`) by [Silvo Katalenić](http://www.twitter.com/silvoslaf)
243
* Spanish (`es_ES`) by Rene of [WordPress Webshop](http://wpwebshop.com)
244
* Swedish (`sv_SE`) by Max Elander
245
* Turkish (`tr_TR`) by [Nurullah](http://www.ndemir.com) and [Barış Ünver](http://beyn.org/)
261
= 4.0.4 =
262
* [Bugfix](https://wordpress.org/support/topic/yarp-403-breaks-paginated-posts): 4.0.3 broke some paginated post displays
263
* [Bugfix](https://wordpress.org/support/topic/custom-post-type-support-on-widget): custom post type support was not working properly in widget displays
264
+ * Bugfix: widget control JS was not working right when first adding a widget
265
+ * Added ability to set widget-specific heading for the thumbnails view, [by request](https://wordpress.org/support/topic/yarpp-on-pages-in-sidebar-even-when-turned-off-in-settings)
266
+ * Added the filter `yarpp_results`
267
+ * Localizations:
268
+ * Updated French localization and stopword list
269
+ * Added Slovenian (`sl_SI`) localization by [Silvo Katalenić](http://www.twitter.com/silvoslaf)
270
* Bugfix: forces the DB Cache Reloaded (Fix) plugins to flush when necessary
271
272
= 4.0.3 =
yarpp.php CHANGED
@@ -3,13 +3,13 @@
3
Plugin Name: Yet Another Related Posts Plugin
4
Plugin URI: http://yarpp.org/
5
Description: Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. Now with Now with thumbnail support built-in!
6
- Version: 4.0.4b3
7
Author: mitcho (Michael Yoshitaka Erlewine)
8
Author URI: http://mitcho.com/
9
Donate link: http://tinyurl.com/donatetomitcho
10
*/
11
12
- define('YARPP_VERSION', '4.0.4b3');
13
define('YARPP_DIR', dirname(__FILE__));
14
define('YARPP_NO_RELATED', ':(');
15
define('YARPP_RELATED', ':)');
3
Plugin Name: Yet Another Related Posts Plugin
4
Plugin URI: http://yarpp.org/
5
Description: Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. Now with Now with thumbnail support built-in!
6
+ Version: 4.0.4b4
7
Author: mitcho (Michael Yoshitaka Erlewine)
8
Author URI: http://mitcho.com/
9
Donate link: http://tinyurl.com/donatetomitcho
10
*/
11
12
+ define('YARPP_VERSION', '4.0.4b4');
13
define('YARPP_DIR', dirname(__FILE__));
14
define('YARPP_NO_RELATED', ':(');
15
define('YARPP_RELATED', ':)');