Yasr – Yet Another Stars Rating - Version 0.5.4

Version Description

  • New feature: you can used numbers instead stars to insert the "overall rating" value. Just go in the setting and choose what you want to use
  • Fixed a division by 0 warning while using [yasr_most_or_highest_rated_posts] : this happened when there wan't enought data to shows
  • Many bux fix in [yasr_visitor_rating] : further this now it is faster
Download this release

Release Info

Developer Dudo
Plugin Icon 128x128 Yasr – Yet Another Stars Rating
Version 0.5.4
Comparing to
See all releases

Code changes from version 0.5.3 to 0.5.4

css/yasr-admin.css CHANGED
@@ -166,6 +166,39 @@ div.bigstars .rateit-selected
166
 
167
  /********** ADMIN RULES **********/
168
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  #multi_rating_table
170
  {
171
  vertical-align: text-top;
166
 
167
  /********** ADMIN RULES **********/
168
 
169
+ /*** MEtabox overall rating ***/
170
+
171
+ .yasr-switch-overall-rating-method {
172
+ font-size: x-small;
173
+ text-align: right;
174
+ display: block;
175
+ padding-bottom: 10px;
176
+ }
177
+
178
+ #yasr-rateit-vote-overall-text {
179
+ display: block;
180
+ }
181
+
182
+ #yasr-vote-with-numbers-select-container {
183
+ display: block;
184
+ }
185
+
186
+ #yasr-vote-with-numbers {
187
+ text-align: center;
188
+ }
189
+
190
+ #yasr-vote-overall-stars {
191
+ text-align: center;
192
+ }
193
+
194
+ #yasr-comma-between-select {
195
+ vertical-align: text-bottom;
196
+ line-height: 0.5em;
197
+ }
198
+
199
+ /*** End metabox overall rating ***/
200
+
201
+
202
  #multi_rating_table
203
  {
204
  vertical-align: text-top;
img/stars24.png CHANGED
Binary file
img/yasr_review.png CHANGED
Binary file
languages/yasr-de_DE.mo CHANGED
Binary file
languages/yasr-de_DE.po CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: YASR lenguages\n"
4
- "POT-Creation-Date: 2014-08-28 12:01+0100\n"
5
- "PO-Revision-Date: 2014-08-28 12:01+0100\n"
6
- "Last-Translator: Dario <thedudoworld@gmail.com>\n"
7
  "Language-Team: \n"
8
  "Language: de_DE\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.4\n"
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -25,9 +25,8 @@ msgstr ""
25
  "zuzugreifen."
26
 
27
  #: ../yasr-settings-page.php:15
28
- #, fuzzy
29
  msgid "Settings"
30
- msgstr "Einstellungen gespeichert"
31
 
32
  #: ../yasr-settings-page.php:58
33
  msgid "General Settings"
@@ -164,20 +163,21 @@ msgid "Choose wich set you want to use"
164
  msgstr "Wähle ein Multi-Set aus"
165
 
166
  #: ../yasr-metabox-multiple-rating.php:26
167
- #: ../lib/yasr-settings-functions.php:399
168
  msgid "Select"
169
  msgstr "Auswählen"
170
 
171
- #: ../yasr-metabox-overall-rating.php:14
172
  msgid "Rate this article / item"
173
  msgstr "Bewerte diesen Artikel / Gegenstand"
174
 
175
- #: ../yasr-metabox-overall-rating.php:22
176
- #: ../lib/yasr-shortcode-functions.php:147
177
  msgid "Loading, please wait"
178
  msgstr "Wird geladen, bitte warten"
179
 
180
- #: ../yasr-metabox-overall-rating.php:37
 
181
  msgid ""
182
  "Remember to insert this shortcode <strong>[yasr_overall_rating]</strong> "
183
  "where you want to display this rating"
@@ -185,110 +185,65 @@ msgstr ""
185
  "Füge den Shortcode <strong>[yasr_overall_rating]</strong> an der Position "
186
  "ein, wo die Bewertung angezeigt werden soll."
187
 
188
- #: ../lib/yasr-shortcode-functions.php:178
 
 
 
189
  #: ../lib/yasr-shortcode-functions.php:190
190
- #: ../lib/yasr-shortcode-functions.php:195
191
- #: ../lib/yasr-shortcode-functions.php:208
192
- #: ../lib/yasr-shortcode-functions.php:213
193
- #: ../lib/yasr-shortcode-functions.php:233
194
- #: ../lib/yasr-shortcode-functions.php:242
195
- #: ../lib/yasr-shortcode-functions.php:248
196
- #: ../lib/yasr-shortcode-functions.php:262
197
- #: ../lib/yasr-shortcode-functions.php:268
198
- #: ../lib/yasr-shortcode-functions.php:293
199
- #: ../lib/yasr-shortcode-functions.php:305
200
- #: ../lib/yasr-shortcode-functions.php:310
201
- #: ../lib/yasr-shortcode-functions.php:323
202
- #: ../lib/yasr-shortcode-functions.php:328
203
- #: ../lib/yasr-shortcode-functions.php:349
204
- #: ../lib/yasr-shortcode-functions.php:358
205
- #: ../lib/yasr-shortcode-functions.php:364
206
- #: ../lib/yasr-shortcode-functions.php:378
207
- #: ../lib/yasr-shortcode-functions.php:384
208
- #: ../lib/yasr-shortcode-functions.php:409
209
- #: ../lib/yasr-shortcode-functions.php:421
210
- #: ../lib/yasr-shortcode-functions.php:426
211
- #: ../lib/yasr-shortcode-functions.php:439
212
- #: ../lib/yasr-shortcode-functions.php:444
213
- #: ../lib/yasr-shortcode-functions.php:465
214
- #: ../lib/yasr-shortcode-functions.php:474
215
- #: ../lib/yasr-shortcode-functions.php:480
216
- #: ../lib/yasr-shortcode-functions.php:494
217
- #: ../lib/yasr-shortcode-functions.php:500 ../lib/yasr-ajax-functions.php:1001
218
  #: ../lib/yasr-ajax-functions.php:1009 ../lib/yasr-ajax-functions.php:1017
219
  #: ../lib/yasr-ajax-functions.php:1029 ../lib/yasr-ajax-functions.php:1037
220
- #: ../lib/yasr-ajax-functions.php:1044 ../lib/yasr-ajax-functions.php:1134
221
- #: ../lib/yasr-ajax-functions.php:1142 ../lib/yasr-ajax-functions.php:1150
222
- #: ../lib/yasr-ajax-functions.php:1186 ../lib/yasr-ajax-functions.php:1192
223
- #: ../lib/yasr-ajax-functions.php:1198 ../lib/yasr-ajax-functions.php:1207
224
  msgid "Total: "
225
  msgstr "Gesamt:"
226
 
227
- #: ../lib/yasr-shortcode-functions.php:178
228
  #: ../lib/yasr-shortcode-functions.php:190
229
- #: ../lib/yasr-shortcode-functions.php:195
230
- #: ../lib/yasr-shortcode-functions.php:208
231
- #: ../lib/yasr-shortcode-functions.php:213
232
- #: ../lib/yasr-shortcode-functions.php:233
233
- #: ../lib/yasr-shortcode-functions.php:242
234
- #: ../lib/yasr-shortcode-functions.php:248
235
- #: ../lib/yasr-shortcode-functions.php:262
236
- #: ../lib/yasr-shortcode-functions.php:268
237
- #: ../lib/yasr-shortcode-functions.php:293
238
- #: ../lib/yasr-shortcode-functions.php:305
239
- #: ../lib/yasr-shortcode-functions.php:310
240
- #: ../lib/yasr-shortcode-functions.php:323
241
- #: ../lib/yasr-shortcode-functions.php:328
242
- #: ../lib/yasr-shortcode-functions.php:349
243
- #: ../lib/yasr-shortcode-functions.php:358
244
- #: ../lib/yasr-shortcode-functions.php:364
245
- #: ../lib/yasr-shortcode-functions.php:378
246
- #: ../lib/yasr-shortcode-functions.php:384
247
- #: ../lib/yasr-shortcode-functions.php:409
248
- #: ../lib/yasr-shortcode-functions.php:421
249
- #: ../lib/yasr-shortcode-functions.php:426
250
- #: ../lib/yasr-shortcode-functions.php:439
251
- #: ../lib/yasr-shortcode-functions.php:444
252
- #: ../lib/yasr-shortcode-functions.php:465
253
- #: ../lib/yasr-shortcode-functions.php:474
254
- #: ../lib/yasr-shortcode-functions.php:480
255
- #: ../lib/yasr-shortcode-functions.php:494
256
- #: ../lib/yasr-shortcode-functions.php:500
257
- #, fuzzy
258
  msgid "Average: "
259
- msgstr "Durchschnitt"
260
 
261
- #: ../lib/yasr-shortcode-functions.php:179
262
- #: ../lib/yasr-shortcode-functions.php:234
263
- #: ../lib/yasr-shortcode-functions.php:294
264
- #: ../lib/yasr-shortcode-functions.php:350
265
- #: ../lib/yasr-shortcode-functions.php:410
266
- #: ../lib/yasr-shortcode-functions.php:466
267
  msgid "You've already voted this article with"
268
  msgstr "Du hast für diesen Artikel folgende Bewertung abgegeben: "
269
 
270
- #: ../lib/yasr-shortcode-functions.php:263
271
- #: ../lib/yasr-shortcode-functions.php:269
272
- #: ../lib/yasr-shortcode-functions.php:379
273
- #: ../lib/yasr-shortcode-functions.php:385
274
- #: ../lib/yasr-shortcode-functions.php:495
275
- #: ../lib/yasr-shortcode-functions.php:501
276
  msgid "You must sign to vote"
277
  msgstr "Um eine Bewertung abzugeben musst du angemeldet sein"
278
 
279
- #: ../lib/yasr-shortcode-functions.php:719
280
  msgid "Rating"
281
  msgstr "Bewertung"
282
 
283
- #: ../lib/yasr-shortcode-functions.php:733
284
  msgid "You don't have any votes stored"
285
  msgstr "Es sind keine Autoren-Bewertungen gespeichert"
286
 
287
- #: ../lib/yasr-shortcode-functions.php:747
288
  msgid "Chart is loading, please wait"
289
  msgstr "Wird geladen, bitte warten"
290
 
291
- #: ../lib/yasr-shortcode-functions.php:876
292
  msgid ""
293
  "Problem while retriving the top 5 most active reviewers. Did you published "
294
  "any review?"
@@ -296,7 +251,7 @@ msgstr ""
296
  "Es ist ein Problem beim Laden der 5 aktivsten Review-Autoren aufgetreten. "
297
  "Hast du bereits ein Review veröffentlicht?"
298
 
299
- #: ../lib/yasr-shortcode-functions.php:944
300
  msgid ""
301
  "Problem while retriving the top 10 active users chart. Are you sure you have "
302
  "votes to show?"
@@ -333,90 +288,96 @@ msgstr "Nur angemeldete Besucher dürfen abstimmen?"
333
  msgid "Which rich snippets do you want to use?"
334
  msgstr "Welches Rich Snippet willst du nutzen?"
335
 
336
- #: ../lib/yasr-settings-functions.php:52
 
 
 
 
337
  msgid "Use Auto Insert?"
338
  msgstr "Bewertung automatisch einfügen?"
339
 
340
- #: ../lib/yasr-settings-functions.php:55
341
- #: ../lib/yasr-settings-functions.php:124
342
- #: ../lib/yasr-settings-functions.php:143
343
- #: ../lib/yasr-settings-functions.php:176
344
- #: ../lib/yasr-settings-functions.php:201
345
  msgid "Yes"
346
  msgstr "Ja"
347
 
348
- #: ../lib/yasr-settings-functions.php:69
349
- #: ../lib/yasr-settings-functions.php:129
350
- #: ../lib/yasr-settings-functions.php:148
351
- #: ../lib/yasr-settings-functions.php:181
352
- #: ../lib/yasr-settings-functions.php:218
353
  msgid "No"
354
  msgstr "Nein"
355
 
356
- #: ../lib/yasr-settings-functions.php:75
357
  msgid "What?"
358
  msgstr "Was soll eingefügt werden?"
359
 
360
- #: ../lib/yasr-settings-functions.php:78
361
  msgid "Overall Rating / Author Rating"
362
  msgstr "Gesamtbewertung (Autorenbewertung)"
363
 
364
- #: ../lib/yasr-settings-functions.php:82 ../lib/yasr-ajax-functions.php:363
365
  msgid "Visitor Votes"
366
  msgstr "Besucherbewertung"
367
 
368
- #: ../lib/yasr-settings-functions.php:86
369
  msgid "Both"
370
  msgstr "Beides"
371
 
372
- #: ../lib/yasr-settings-functions.php:90
373
  msgid "Where?"
374
  msgstr "Wo soll es eingefügt werden?"
375
 
376
- #: ../lib/yasr-settings-functions.php:93
377
  msgid "Before the post"
378
  msgstr "Vor dem Artikel"
379
 
380
- #: ../lib/yasr-settings-functions.php:97
381
  msgid "After the post"
382
  msgstr "Nach dem Artikel"
383
 
384
- #: ../lib/yasr-settings-functions.php:102
385
  msgid "Size"
386
  msgstr "Größe"
387
 
388
- #: ../lib/yasr-settings-functions.php:106 ../lib/yasr-ajax-functions.php:353
389
  #: ../lib/yasr-ajax-functions.php:371
390
  msgid "Small"
391
  msgstr "Klein"
392
 
393
- #: ../lib/yasr-settings-functions.php:111 ../lib/yasr-ajax-functions.php:354
394
  #: ../lib/yasr-ajax-functions.php:372
395
  msgid "Medium"
396
  msgstr "Mittel"
397
 
398
- #: ../lib/yasr-settings-functions.php:116 ../lib/yasr-ajax-functions.php:355
399
  #: ../lib/yasr-ajax-functions.php:373
400
  msgid "Large"
401
  msgstr "Groß"
402
 
403
- #: ../lib/yasr-settings-functions.php:121
404
  msgid "Exclude Pages?"
405
  msgstr "Seiten ausschließen?"
406
 
407
- #: ../lib/yasr-settings-functions.php:140
408
  msgid "Use only in custom post types?"
409
- msgstr ""
410
 
411
- #: ../lib/yasr-settings-functions.php:152
412
  msgid "You see this because you use custom post types."
413
- msgstr ""
414
 
415
- #: ../lib/yasr-settings-functions.php:154
416
  msgid "If you want to use auto insert only in custom post types, choose Yes"
417
  msgstr ""
 
 
418
 
419
- #: ../lib/yasr-settings-functions.php:185
420
  msgid ""
421
  "If you enable this, \"Overall Rating\" will be showed not only in the single "
422
  "article or page, but also in pages like Home Page, category pages or "
@@ -426,61 +387,61 @@ msgstr ""
426
  "Beiträgen oder Seiten angezeigt, sondern auch auf der Startseite, in den "
427
  "Kategorien und im Archiv."
428
 
429
- #: ../lib/yasr-settings-functions.php:225
430
  msgid "Custom text to display before Overall Rating"
431
  msgstr "Benutzerdefinierter Text vor der Gesamtbewertung (Autorenbewertung)"
432
 
433
- #: ../lib/yasr-settings-functions.php:230
434
  msgid "Custom text to display before Visitor Rating"
435
  msgstr "Benutzerdefinierter Text vor der Besucherbewertung"
436
 
437
- #: ../lib/yasr-settings-functions.php:235
438
  msgid "Custom text to display when a non logged user has already rated"
439
  msgstr ""
440
  "Benutzerdefinierter Text der angezeigt wird, wenn ein nicht angemeldeter "
441
  "Besucher bereits eine Bewertung abgegeben hat"
442
 
443
- #: ../lib/yasr-settings-functions.php:251
444
  msgid "Light"
445
  msgstr "Hell"
446
 
447
- #: ../lib/yasr-settings-functions.php:256
448
  msgid "Dark"
449
  msgstr "Dunkel"
450
 
451
- #: ../lib/yasr-settings-functions.php:261
452
  msgid "Preview"
453
  msgstr "Vorschau"
454
 
455
- #: ../lib/yasr-settings-functions.php:266
456
  msgid "Light theme"
457
  msgstr "Helles Theme"
458
 
459
- #: ../lib/yasr-settings-functions.php:271
460
  msgid "Dark Theme"
461
  msgstr "Dunkles Theme"
462
 
463
- #: ../lib/yasr-settings-functions.php:289
464
  msgid "Allow only logged-in users"
465
  msgstr "Nur angemeldete Besucher erlauben"
466
 
467
- #: ../lib/yasr-settings-functions.php:293
468
  msgid "Allow everybody (logged in and anonymous)"
469
  msgstr "Jedem erlauben (angemeldete und anonyme Besucher)"
470
 
471
- #: ../lib/yasr-settings-functions.php:310
472
  msgid "Review Rating"
473
  msgstr "Review Rating (Autorenbewertung)"
474
 
475
- #: ../lib/yasr-settings-functions.php:314
476
  msgid "Aggregate Rating"
477
  msgstr "Aggregate Rating (Besucherbewertung)"
478
 
479
- #: ../lib/yasr-settings-functions.php:319
480
  msgid "What is this?"
481
  msgstr "Was ist das?"
482
 
483
- #: ../lib/yasr-settings-functions.php:324
484
  msgid ""
485
  "If you select \"Review Rating\", your site will be indexed from search "
486
  "engines like this: "
@@ -488,7 +449,7 @@ msgstr ""
488
  "Wenn du \"Review Rating\" wählst, dann wird dein Beitrag/Seite bei Google so "
489
  "aussehen:"
490
 
491
- #: ../lib/yasr-settings-functions.php:329
492
  msgid ""
493
  "If, instead, you choose \"Aggregate Rating\", your site will be indexed like "
494
  "this"
@@ -496,11 +457,19 @@ msgstr ""
496
  "Wenn du im Vergleich \"Aggregate Rating\" wählst, dann sieht das Ergebnis "
497
  "wie folgt aus:"
498
 
499
- #: ../lib/yasr-settings-functions.php:344
 
 
 
 
 
 
 
 
500
  msgid "Add New Multiple Set"
501
  msgstr "Neues Multi-Set hinzufügen"
502
 
503
- #: ../lib/yasr-settings-functions.php:345
504
  msgid ""
505
  "Name, Element#1 and Element#2 MUST be filled and must be long at least 3 "
506
  "characters"
@@ -508,48 +477,48 @@ msgstr ""
508
  "Feldname, Element #1 und Element #2 MÜSSEN ausgefüllt und mindestens 3 "
509
  "Zeichen lang sein"
510
 
511
- #: ../lib/yasr-settings-functions.php:348
512
  msgid "Name"
513
  msgstr "Name"
514
 
515
- #: ../lib/yasr-settings-functions.php:353
516
  msgid "You can insert up to nine element"
517
  msgstr "Du kannst bis zu 9 Elemente einfügen"
518
 
519
- #: ../lib/yasr-settings-functions.php:358
520
  msgid "Element "
521
  msgstr "Element"
522
 
523
- #: ../lib/yasr-settings-functions.php:368
524
  msgid "Create New Set"
525
  msgstr "Neues Multi-Set anlegen"
526
 
527
- #: ../lib/yasr-settings-functions.php:389
528
- #: ../lib/yasr-settings-functions.php:421
529
  msgid "Manage Multiple Set"
530
  msgstr "Verschiedene Multi-Sets verwalten"
531
 
532
- #: ../lib/yasr-settings-functions.php:391
533
  msgid "Wich set do you want to edit or remove?"
534
  msgstr "Welches Multi-Set möchtest du bearbeiten oder löschen?"
535
 
536
- #: ../lib/yasr-settings-functions.php:431
537
- #: ../lib/yasr-settings-functions.php:549
538
  msgid "Field name"
539
  msgstr "Feldname"
540
 
541
- #: ../lib/yasr-settings-functions.php:435
542
- #: ../lib/yasr-settings-functions.php:553
543
  msgid "Remove"
544
  msgstr "Entfernen"
545
 
546
- #: ../lib/yasr-settings-functions.php:477
547
- #: ../lib/yasr-settings-functions.php:595
548
  msgid "Remove whole set?"
549
  msgstr "Komplettes Multi-Set entfernen?"
550
 
551
- #: ../lib/yasr-settings-functions.php:490
552
- #: ../lib/yasr-settings-functions.php:608
553
  msgid ""
554
  "If you remove something you will remove all the votes for that set or field. "
555
  "This operation CAN'T BE undone."
@@ -557,63 +526,63 @@ msgstr ""
557
  "Wenn du etwas löscht, dann werden alle Bewertungen für dieses Multi-Set oder "
558
  "Element gelöscht. Dies kann nicht rückgängig gemacht werden."
559
 
560
- #: ../lib/yasr-settings-functions.php:497
561
- #: ../lib/yasr-settings-functions.php:615
562
  msgid "You can use up to 9 elements"
563
  msgstr "Du kannst bist zu 9 Elementen nutzen"
564
 
565
- #: ../lib/yasr-settings-functions.php:499
566
- #: ../lib/yasr-settings-functions.php:617
567
  msgid "Add element"
568
  msgstr "Element hinzufügen"
569
 
570
- #: ../lib/yasr-settings-functions.php:501
571
- #: ../lib/yasr-settings-functions.php:619
572
  msgid "Save changes"
573
  msgstr "Änderungen speichern"
574
 
575
- #: ../lib/yasr-settings-functions.php:511
576
  msgid "No Multiple Set were found"
577
  msgstr "Keine Multi-Sets gefunden"
578
 
579
- #: ../lib/yasr-settings-functions.php:761
580
- #: ../lib/yasr-settings-functions.php:1029
581
  msgid "Settings Saved"
582
  msgstr "Einstellungen gespeichert"
583
 
584
- #: ../lib/yasr-settings-functions.php:766
585
  msgid "Something goes wrong trying insert set field name. Please report it"
586
  msgstr ""
587
  "Beim einfügen des Multi-Set Feldnamens ist etwas schief gelaufen. Bitte "
588
  "melde das Problem"
589
 
590
- #: ../lib/yasr-settings-functions.php:772
591
  msgid "Something goes wrong trying insert Multi Set name. Please report it"
592
  msgstr ""
593
  "Beim Einfügen des Multi-Sets ist etwas schief gelaufen. Bitte melde das "
594
  "Problem"
595
 
596
- #: ../lib/yasr-settings-functions.php:847
597
  msgid "Something goes wrong trying to delete a Multi Set . Please report it"
598
  msgstr ""
599
  "Beim Löschen des Multi-Sets ist etwas schief gelaufen. Bitte melde das "
600
  "Problem"
601
 
602
- #: ../lib/yasr-settings-functions.php:893
603
  msgid ""
604
  "Something goes wrong trying to delete a Multi Set's element. Please report it"
605
  msgstr ""
606
  "Beim Löschen des Multi-Set Elements ist etwas schief gelaufen. Bitte melde "
607
  "das Problem"
608
 
609
- #: ../lib/yasr-settings-functions.php:957
610
  msgid ""
611
  "Something goes wrong trying to update a Multi Set's element. Please report it"
612
  msgstr ""
613
  "Bei der Aktualisierung des Multi-Set Elements ist etwas schief gelaufen. "
614
  "Bitte melde das Problem"
615
 
616
- #: ../lib/yasr-settings-functions.php:1014
617
  msgid ""
618
  "Something goes wrong trying to insert set field name in edit form. Please "
619
  "report it"
@@ -621,15 +590,15 @@ msgstr ""
621
  "Beim Einfügen des Multi-Set Feldnamens ist etwas schief gelaufen. Bitte "
622
  "melde das Problem"
623
 
624
- #: ../lib/yasr-settings-functions.php:1057
625
  msgid "Style Options"
626
  msgstr "Style Optionen"
627
 
628
- #: ../lib/yasr-settings-functions.php:1058
629
  msgid "Custom CSS Styles"
630
  msgstr "Benutzerdefiniertes CSS"
631
 
632
- #: ../lib/yasr-settings-functions.php:1063
633
  msgid ""
634
  "Please use text area below to write your own CSS styles to override the "
635
  "default ones."
@@ -637,27 +606,27 @@ msgstr ""
637
  "Bitte nutze diesen Textbereich um die Standard CSS Styles mit deinem eigenen "
638
  "CSS-Code zu überschreiben."
639
 
640
- #: ../lib/yasr-settings-functions.php:1065
641
  msgid "Leave it blank if you don't know what you're doing"
642
  msgstr " Lasse diesen Bereich leer, wenn du nicht weißt was du tust."
643
 
644
- #: ../lib/yasr-settings-functions.php:1098
645
  msgid "No previous Gd Star Rating installation was found"
646
  msgstr "Es wurde keine Gd Star Ratings Installation gefunden"
647
 
648
- #: ../lib/yasr-db-functions.php:191 ../lib/yasr-ajax-functions.php:772
649
  msgid "No Recenet votes yet"
650
  msgstr "Keine kürzlichen Bewertungen"
651
 
652
- #: ../lib/yasr-db-functions.php:206 ../lib/yasr-ajax-functions.php:785
653
  msgid "anonymous"
654
  msgstr "Anonym"
655
 
656
- #: ../lib/yasr-db-functions.php:229 ../lib/yasr-ajax-functions.php:808
657
  msgid "Ip address"
658
  msgstr "IP-Adresse"
659
 
660
- #: ../lib/yasr-db-functions.php:270 ../lib/yasr-ajax-functions.php:849
661
  msgid "Pages"
662
  msgstr "Seiten"
663
 
@@ -701,23 +670,20 @@ msgid " on 5.0"
701
  msgstr " mit 5"
702
 
703
  #: ../lib/yasr-functions.php:302
704
- #, fuzzy
705
  msgid " average rating "
706
- msgstr "Durchschnittsbewertung"
707
 
708
  #: ../lib/yasr-functions.php:303
709
  msgid " user ratings"
710
  msgstr " Besucherbewertungen"
711
 
712
  #: ../lib/yasr-ajax-functions.php:67
713
- #, fuzzy
714
  msgid "You've rated it "
715
- msgstr " ist bewertet mit "
716
 
717
  #: ../lib/yasr-ajax-functions.php:71
718
- #, fuzzy
719
  msgid "You've reset the vote"
720
- msgstr "Um eine Bewertung abzugeben musst du angemeldet sein"
721
 
722
  #: ../lib/yasr-ajax-functions.php:108
723
  msgid "Choose a vote for each element"
@@ -913,24 +879,28 @@ msgstr "Durchschnittsbewertung"
913
  msgid "Vote Saved"
914
  msgstr "Bewertung gespeichert"
915
 
916
- #: ../lib/yasr-ajax-functions.php:1135 ../lib/yasr-ajax-functions.php:1143
917
- #: ../lib/yasr-ajax-functions.php:1151
918
  msgid "Vote Updated"
919
  msgstr "Bewertung aktualisiert"
920
 
921
- #: ../lib/yasr-ajax-functions.php:1186 ../lib/yasr-ajax-functions.php:1192
922
- #: ../lib/yasr-ajax-functions.php:1198 ../lib/yasr-ajax-functions.php:1207
923
  msgid "Average "
924
  msgstr "Durchschnitt"
925
 
926
- #: ../lib/yasr-ajax-functions.php:1265 ../lib/yasr-ajax-functions.php:1300
927
  msgid "Total:"
928
  msgstr "Gesamt:"
929
 
930
- #: ../lib/yasr-ajax-functions.php:1265 ../lib/yasr-ajax-functions.php:1300
931
  msgid "Average"
932
  msgstr "Durchschnitt"
933
 
 
 
 
 
934
  #~ msgid " rating "
935
  #~ msgstr " Bewertung"
936
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: YASR lenguages\n"
4
+ "POT-Creation-Date: 2014-09-09 11:36+0100\n"
5
+ "PO-Revision-Date: 2014-09-13 12:09+0100\n"
6
+ "Last-Translator: Josef Seidl <info@blog-it-solutions.de>\n"
7
  "Language-Team: \n"
8
  "Language: de_DE\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.9\n"
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
25
  "zuzugreifen."
26
 
27
  #: ../yasr-settings-page.php:15
 
28
  msgid "Settings"
29
+ msgstr "Einstellungen"
30
 
31
  #: ../yasr-settings-page.php:58
32
  msgid "General Settings"
163
  msgstr "Wähle ein Multi-Set aus"
164
 
165
  #: ../yasr-metabox-multiple-rating.php:26
166
+ #: ../lib/yasr-settings-functions.php:402
167
  msgid "Select"
168
  msgstr "Auswählen"
169
 
170
+ #: ../yasr-metabox-overall-rating.php:47 ../yasr-metabox-overall-rating.php:94
171
  msgid "Rate this article / item"
172
  msgstr "Bewerte diesen Artikel / Gegenstand"
173
 
174
+ #: ../yasr-metabox-overall-rating.php:53
175
+ #: ../lib/yasr-shortcode-functions.php:144
176
  msgid "Loading, please wait"
177
  msgstr "Wird geladen, bitte warten"
178
 
179
+ #: ../yasr-metabox-overall-rating.php:68
180
+ #: ../yasr-metabox-overall-rating.php:147
181
  msgid ""
182
  "Remember to insert this shortcode <strong>[yasr_overall_rating]</strong> "
183
  "where you want to display this rating"
185
  "Füge den Shortcode <strong>[yasr_overall_rating]</strong> an der Position "
186
  "ein, wo die Bewertung angezeigt werden soll."
187
 
188
+ #: ../yasr-metabox-overall-rating.php:156
189
+ msgid "Save Vote"
190
+ msgstr "Bewertung speichern"
191
+
192
  #: ../lib/yasr-shortcode-functions.php:190
193
+ #: ../lib/yasr-shortcode-functions.php:202
194
+ #: ../lib/yasr-shortcode-functions.php:207
195
+ #: ../lib/yasr-shortcode-functions.php:222
196
+ #: ../lib/yasr-shortcode-functions.php:227
197
+ #: ../lib/yasr-shortcode-functions.php:247
198
+ #: ../lib/yasr-shortcode-functions.php:258
199
+ #: ../lib/yasr-shortcode-functions.php:264
200
+ #: ../lib/yasr-shortcode-functions.php:279
201
+ #: ../lib/yasr-shortcode-functions.php:285 ../lib/yasr-ajax-functions.php:1001
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  #: ../lib/yasr-ajax-functions.php:1009 ../lib/yasr-ajax-functions.php:1017
203
  #: ../lib/yasr-ajax-functions.php:1029 ../lib/yasr-ajax-functions.php:1037
204
+ #: ../lib/yasr-ajax-functions.php:1044 ../lib/yasr-ajax-functions.php:1139
205
+ #: ../lib/yasr-ajax-functions.php:1147 ../lib/yasr-ajax-functions.php:1155
206
+ #: ../lib/yasr-ajax-functions.php:1203 ../lib/yasr-ajax-functions.php:1209
207
+ #: ../lib/yasr-ajax-functions.php:1215 ../lib/yasr-ajax-functions.php:1224
208
  msgid "Total: "
209
  msgstr "Gesamt:"
210
 
 
211
  #: ../lib/yasr-shortcode-functions.php:190
212
+ #: ../lib/yasr-shortcode-functions.php:202
213
+ #: ../lib/yasr-shortcode-functions.php:207
214
+ #: ../lib/yasr-shortcode-functions.php:222
215
+ #: ../lib/yasr-shortcode-functions.php:227
216
+ #: ../lib/yasr-shortcode-functions.php:247
217
+ #: ../lib/yasr-shortcode-functions.php:258
218
+ #: ../lib/yasr-shortcode-functions.php:264
219
+ #: ../lib/yasr-shortcode-functions.php:279
220
+ #: ../lib/yasr-shortcode-functions.php:285
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  msgid "Average: "
222
+ msgstr "Durchschnitt:"
223
 
224
+ #: ../lib/yasr-shortcode-functions.php:191
225
+ #: ../lib/yasr-shortcode-functions.php:248
 
 
 
 
226
  msgid "You've already voted this article with"
227
  msgstr "Du hast für diesen Artikel folgende Bewertung abgegeben: "
228
 
229
+ #: ../lib/yasr-shortcode-functions.php:280
230
+ #: ../lib/yasr-shortcode-functions.php:286
 
 
 
 
231
  msgid "You must sign to vote"
232
  msgstr "Um eine Bewertung abzugeben musst du angemeldet sein"
233
 
234
+ #: ../lib/yasr-shortcode-functions.php:524
235
  msgid "Rating"
236
  msgstr "Bewertung"
237
 
238
+ #: ../lib/yasr-shortcode-functions.php:538
239
  msgid "You don't have any votes stored"
240
  msgstr "Es sind keine Autoren-Bewertungen gespeichert"
241
 
242
+ #: ../lib/yasr-shortcode-functions.php:552
243
  msgid "Chart is loading, please wait"
244
  msgstr "Wird geladen, bitte warten"
245
 
246
+ #: ../lib/yasr-shortcode-functions.php:681
247
  msgid ""
248
  "Problem while retriving the top 5 most active reviewers. Did you published "
249
  "any review?"
251
  "Es ist ein Problem beim Laden der 5 aktivsten Review-Autoren aufgetreten. "
252
  "Hast du bereits ein Review veröffentlicht?"
253
 
254
+ #: ../lib/yasr-shortcode-functions.php:749
255
  msgid ""
256
  "Problem while retriving the top 10 active users chart. Are you sure you have "
257
  "votes to show?"
288
  msgid "Which rich snippets do you want to use?"
289
  msgstr "Welches Rich Snippet willst du nutzen?"
290
 
291
+ #: ../lib/yasr-settings-functions.php:39
292
+ msgid "How do you want ro rate \"Overall Rating\"?"
293
+ msgstr "Wie soll die Gesamtbewertung angezeigt werden?"
294
+
295
+ #: ../lib/yasr-settings-functions.php:53
296
  msgid "Use Auto Insert?"
297
  msgstr "Bewertung automatisch einfügen?"
298
 
299
+ #: ../lib/yasr-settings-functions.php:56
300
+ #: ../lib/yasr-settings-functions.php:125
301
+ #: ../lib/yasr-settings-functions.php:144
302
+ #: ../lib/yasr-settings-functions.php:177
303
+ #: ../lib/yasr-settings-functions.php:202
304
  msgid "Yes"
305
  msgstr "Ja"
306
 
307
+ #: ../lib/yasr-settings-functions.php:70
308
+ #: ../lib/yasr-settings-functions.php:130
309
+ #: ../lib/yasr-settings-functions.php:149
310
+ #: ../lib/yasr-settings-functions.php:182
311
+ #: ../lib/yasr-settings-functions.php:207
312
  msgid "No"
313
  msgstr "Nein"
314
 
315
+ #: ../lib/yasr-settings-functions.php:76
316
  msgid "What?"
317
  msgstr "Was soll eingefügt werden?"
318
 
319
+ #: ../lib/yasr-settings-functions.php:79
320
  msgid "Overall Rating / Author Rating"
321
  msgstr "Gesamtbewertung (Autorenbewertung)"
322
 
323
+ #: ../lib/yasr-settings-functions.php:83 ../lib/yasr-ajax-functions.php:363
324
  msgid "Visitor Votes"
325
  msgstr "Besucherbewertung"
326
 
327
+ #: ../lib/yasr-settings-functions.php:87
328
  msgid "Both"
329
  msgstr "Beides"
330
 
331
+ #: ../lib/yasr-settings-functions.php:91
332
  msgid "Where?"
333
  msgstr "Wo soll es eingefügt werden?"
334
 
335
+ #: ../lib/yasr-settings-functions.php:94
336
  msgid "Before the post"
337
  msgstr "Vor dem Artikel"
338
 
339
+ #: ../lib/yasr-settings-functions.php:98
340
  msgid "After the post"
341
  msgstr "Nach dem Artikel"
342
 
343
+ #: ../lib/yasr-settings-functions.php:103
344
  msgid "Size"
345
  msgstr "Größe"
346
 
347
+ #: ../lib/yasr-settings-functions.php:107 ../lib/yasr-ajax-functions.php:353
348
  #: ../lib/yasr-ajax-functions.php:371
349
  msgid "Small"
350
  msgstr "Klein"
351
 
352
+ #: ../lib/yasr-settings-functions.php:112 ../lib/yasr-ajax-functions.php:354
353
  #: ../lib/yasr-ajax-functions.php:372
354
  msgid "Medium"
355
  msgstr "Mittel"
356
 
357
+ #: ../lib/yasr-settings-functions.php:117 ../lib/yasr-ajax-functions.php:355
358
  #: ../lib/yasr-ajax-functions.php:373
359
  msgid "Large"
360
  msgstr "Groß"
361
 
362
+ #: ../lib/yasr-settings-functions.php:122
363
  msgid "Exclude Pages?"
364
  msgstr "Seiten ausschließen?"
365
 
366
+ #: ../lib/yasr-settings-functions.php:141
367
  msgid "Use only in custom post types?"
368
+ msgstr "Nur in benutzerdefinierten Post-Typen nutzen?"
369
 
370
+ #: ../lib/yasr-settings-functions.php:153
371
  msgid "You see this because you use custom post types."
372
+ msgstr "Das hier wird angezeigt, weil du benutzerdefinierte Post-Typen nutzt."
373
 
374
+ #: ../lib/yasr-settings-functions.php:155
375
  msgid "If you want to use auto insert only in custom post types, choose Yes"
376
  msgstr ""
377
+ "Wenn du das automatische Einfügen der Bewertungen nur in benutzerdefinierten "
378
+ "Post-Typen benutzen möchtest, wähle Ja."
379
 
380
+ #: ../lib/yasr-settings-functions.php:186
381
  msgid ""
382
  "If you enable this, \"Overall Rating\" will be showed not only in the single "
383
  "article or page, but also in pages like Home Page, category pages or "
387
  "Beiträgen oder Seiten angezeigt, sondern auch auf der Startseite, in den "
388
  "Kategorien und im Archiv."
389
 
390
+ #: ../lib/yasr-settings-functions.php:212
391
  msgid "Custom text to display before Overall Rating"
392
  msgstr "Benutzerdefinierter Text vor der Gesamtbewertung (Autorenbewertung)"
393
 
394
+ #: ../lib/yasr-settings-functions.php:217
395
  msgid "Custom text to display before Visitor Rating"
396
  msgstr "Benutzerdefinierter Text vor der Besucherbewertung"
397
 
398
+ #: ../lib/yasr-settings-functions.php:222
399
  msgid "Custom text to display when a non logged user has already rated"
400
  msgstr ""
401
  "Benutzerdefinierter Text der angezeigt wird, wenn ein nicht angemeldeter "
402
  "Besucher bereits eine Bewertung abgegeben hat"
403
 
404
+ #: ../lib/yasr-settings-functions.php:238
405
  msgid "Light"
406
  msgstr "Hell"
407
 
408
+ #: ../lib/yasr-settings-functions.php:243
409
  msgid "Dark"
410
  msgstr "Dunkel"
411
 
412
+ #: ../lib/yasr-settings-functions.php:248
413
  msgid "Preview"
414
  msgstr "Vorschau"
415
 
416
+ #: ../lib/yasr-settings-functions.php:253
417
  msgid "Light theme"
418
  msgstr "Helles Theme"
419
 
420
+ #: ../lib/yasr-settings-functions.php:258
421
  msgid "Dark Theme"
422
  msgstr "Dunkles Theme"
423
 
424
+ #: ../lib/yasr-settings-functions.php:276
425
  msgid "Allow only logged-in users"
426
  msgstr "Nur angemeldete Besucher erlauben"
427
 
428
+ #: ../lib/yasr-settings-functions.php:280
429
  msgid "Allow everybody (logged in and anonymous)"
430
  msgstr "Jedem erlauben (angemeldete und anonyme Besucher)"
431
 
432
+ #: ../lib/yasr-settings-functions.php:297
433
  msgid "Review Rating"
434
  msgstr "Review Rating (Autorenbewertung)"
435
 
436
+ #: ../lib/yasr-settings-functions.php:301
437
  msgid "Aggregate Rating"
438
  msgstr "Aggregate Rating (Besucherbewertung)"
439
 
440
+ #: ../lib/yasr-settings-functions.php:306
441
  msgid "What is this?"
442
  msgstr "Was ist das?"
443
 
444
+ #: ../lib/yasr-settings-functions.php:311
445
  msgid ""
446
  "If you select \"Review Rating\", your site will be indexed from search "
447
  "engines like this: "
449
  "Wenn du \"Review Rating\" wählst, dann wird dein Beitrag/Seite bei Google so "
450
  "aussehen:"
451
 
452
+ #: ../lib/yasr-settings-functions.php:316
453
  msgid ""
454
  "If, instead, you choose \"Aggregate Rating\", your site will be indexed like "
455
  "this"
457
  "Wenn du im Vergleich \"Aggregate Rating\" wählst, dann sieht das Ergebnis "
458
  "wie folgt aus:"
459
 
460
+ #: ../lib/yasr-settings-functions.php:330
461
+ msgid "Stars"
462
+ msgstr "Sterne"
463
+
464
+ #: ../lib/yasr-settings-functions.php:334
465
+ msgid "Numbers"
466
+ msgstr "Zahlen"
467
+
468
+ #: ../lib/yasr-settings-functions.php:347
469
  msgid "Add New Multiple Set"
470
  msgstr "Neues Multi-Set hinzufügen"
471
 
472
+ #: ../lib/yasr-settings-functions.php:348
473
  msgid ""
474
  "Name, Element#1 and Element#2 MUST be filled and must be long at least 3 "
475
  "characters"
477
  "Feldname, Element #1 und Element #2 MÜSSEN ausgefüllt und mindestens 3 "
478
  "Zeichen lang sein"
479
 
480
+ #: ../lib/yasr-settings-functions.php:351
481
  msgid "Name"
482
  msgstr "Name"
483
 
484
+ #: ../lib/yasr-settings-functions.php:356
485
  msgid "You can insert up to nine element"
486
  msgstr "Du kannst bis zu 9 Elemente einfügen"
487
 
488
+ #: ../lib/yasr-settings-functions.php:361
489
  msgid "Element "
490
  msgstr "Element"
491
 
492
+ #: ../lib/yasr-settings-functions.php:371
493
  msgid "Create New Set"
494
  msgstr "Neues Multi-Set anlegen"
495
 
496
+ #: ../lib/yasr-settings-functions.php:392
497
+ #: ../lib/yasr-settings-functions.php:424
498
  msgid "Manage Multiple Set"
499
  msgstr "Verschiedene Multi-Sets verwalten"
500
 
501
+ #: ../lib/yasr-settings-functions.php:394
502
  msgid "Wich set do you want to edit or remove?"
503
  msgstr "Welches Multi-Set möchtest du bearbeiten oder löschen?"
504
 
505
+ #: ../lib/yasr-settings-functions.php:434
506
+ #: ../lib/yasr-settings-functions.php:552
507
  msgid "Field name"
508
  msgstr "Feldname"
509
 
510
+ #: ../lib/yasr-settings-functions.php:438
511
+ #: ../lib/yasr-settings-functions.php:556
512
  msgid "Remove"
513
  msgstr "Entfernen"
514
 
515
+ #: ../lib/yasr-settings-functions.php:480
516
+ #: ../lib/yasr-settings-functions.php:598
517
  msgid "Remove whole set?"
518
  msgstr "Komplettes Multi-Set entfernen?"
519
 
520
+ #: ../lib/yasr-settings-functions.php:493
521
+ #: ../lib/yasr-settings-functions.php:611
522
  msgid ""
523
  "If you remove something you will remove all the votes for that set or field. "
524
  "This operation CAN'T BE undone."
526
  "Wenn du etwas löscht, dann werden alle Bewertungen für dieses Multi-Set oder "
527
  "Element gelöscht. Dies kann nicht rückgängig gemacht werden."
528
 
529
+ #: ../lib/yasr-settings-functions.php:500
530
+ #: ../lib/yasr-settings-functions.php:618
531
  msgid "You can use up to 9 elements"
532
  msgstr "Du kannst bist zu 9 Elementen nutzen"
533
 
534
+ #: ../lib/yasr-settings-functions.php:502
535
+ #: ../lib/yasr-settings-functions.php:620
536
  msgid "Add element"
537
  msgstr "Element hinzufügen"
538
 
539
+ #: ../lib/yasr-settings-functions.php:504
540
+ #: ../lib/yasr-settings-functions.php:622
541
  msgid "Save changes"
542
  msgstr "Änderungen speichern"
543
 
544
+ #: ../lib/yasr-settings-functions.php:514
545
  msgid "No Multiple Set were found"
546
  msgstr "Keine Multi-Sets gefunden"
547
 
548
+ #: ../lib/yasr-settings-functions.php:764
549
+ #: ../lib/yasr-settings-functions.php:1032
550
  msgid "Settings Saved"
551
  msgstr "Einstellungen gespeichert"
552
 
553
+ #: ../lib/yasr-settings-functions.php:769
554
  msgid "Something goes wrong trying insert set field name. Please report it"
555
  msgstr ""
556
  "Beim einfügen des Multi-Set Feldnamens ist etwas schief gelaufen. Bitte "
557
  "melde das Problem"
558
 
559
+ #: ../lib/yasr-settings-functions.php:775
560
  msgid "Something goes wrong trying insert Multi Set name. Please report it"
561
  msgstr ""
562
  "Beim Einfügen des Multi-Sets ist etwas schief gelaufen. Bitte melde das "
563
  "Problem"
564
 
565
+ #: ../lib/yasr-settings-functions.php:850
566
  msgid "Something goes wrong trying to delete a Multi Set . Please report it"
567
  msgstr ""
568
  "Beim Löschen des Multi-Sets ist etwas schief gelaufen. Bitte melde das "
569
  "Problem"
570
 
571
+ #: ../lib/yasr-settings-functions.php:896
572
  msgid ""
573
  "Something goes wrong trying to delete a Multi Set's element. Please report it"
574
  msgstr ""
575
  "Beim Löschen des Multi-Set Elements ist etwas schief gelaufen. Bitte melde "
576
  "das Problem"
577
 
578
+ #: ../lib/yasr-settings-functions.php:960
579
  msgid ""
580
  "Something goes wrong trying to update a Multi Set's element. Please report it"
581
  msgstr ""
582
  "Bei der Aktualisierung des Multi-Set Elements ist etwas schief gelaufen. "
583
  "Bitte melde das Problem"
584
 
585
+ #: ../lib/yasr-settings-functions.php:1017
586
  msgid ""
587
  "Something goes wrong trying to insert set field name in edit form. Please "
588
  "report it"
590
  "Beim Einfügen des Multi-Set Feldnamens ist etwas schief gelaufen. Bitte "
591
  "melde das Problem"
592
 
593
+ #: ../lib/yasr-settings-functions.php:1060
594
  msgid "Style Options"
595
  msgstr "Style Optionen"
596
 
597
+ #: ../lib/yasr-settings-functions.php:1061
598
  msgid "Custom CSS Styles"
599
  msgstr "Benutzerdefiniertes CSS"
600
 
601
+ #: ../lib/yasr-settings-functions.php:1066
602
  msgid ""
603
  "Please use text area below to write your own CSS styles to override the "
604
  "default ones."
606
  "Bitte nutze diesen Textbereich um die Standard CSS Styles mit deinem eigenen "
607
  "CSS-Code zu überschreiben."
608
 
609
+ #: ../lib/yasr-settings-functions.php:1068
610
  msgid "Leave it blank if you don't know what you're doing"
611
  msgstr " Lasse diesen Bereich leer, wenn du nicht weißt was du tust."
612
 
613
+ #: ../lib/yasr-settings-functions.php:1101
614
  msgid "No previous Gd Star Rating installation was found"
615
  msgstr "Es wurde keine Gd Star Ratings Installation gefunden"
616
 
617
+ #: ../lib/yasr-db-functions.php:204 ../lib/yasr-ajax-functions.php:772
618
  msgid "No Recenet votes yet"
619
  msgstr "Keine kürzlichen Bewertungen"
620
 
621
+ #: ../lib/yasr-db-functions.php:219 ../lib/yasr-ajax-functions.php:785
622
  msgid "anonymous"
623
  msgstr "Anonym"
624
 
625
+ #: ../lib/yasr-db-functions.php:242 ../lib/yasr-ajax-functions.php:808
626
  msgid "Ip address"
627
  msgstr "IP-Adresse"
628
 
629
+ #: ../lib/yasr-db-functions.php:283 ../lib/yasr-ajax-functions.php:849
630
  msgid "Pages"
631
  msgstr "Seiten"
632
 
670
  msgstr " mit 5"
671
 
672
  #: ../lib/yasr-functions.php:302
 
673
  msgid " average rating "
674
+ msgstr " Durchschnittsbewertung"
675
 
676
  #: ../lib/yasr-functions.php:303
677
  msgid " user ratings"
678
  msgstr " Besucherbewertungen"
679
 
680
  #: ../lib/yasr-ajax-functions.php:67
 
681
  msgid "You've rated it "
682
+ msgstr "Bewertung abgegeben"
683
 
684
  #: ../lib/yasr-ajax-functions.php:71
 
685
  msgid "You've reset the vote"
686
+ msgstr "Die Bewertung wurde zurückgesetzt"
687
 
688
  #: ../lib/yasr-ajax-functions.php:108
689
  msgid "Choose a vote for each element"
879
  msgid "Vote Saved"
880
  msgstr "Bewertung gespeichert"
881
 
882
+ #: ../lib/yasr-ajax-functions.php:1140 ../lib/yasr-ajax-functions.php:1148
883
+ #: ../lib/yasr-ajax-functions.php:1156
884
  msgid "Vote Updated"
885
  msgstr "Bewertung aktualisiert"
886
 
887
+ #: ../lib/yasr-ajax-functions.php:1203 ../lib/yasr-ajax-functions.php:1209
888
+ #: ../lib/yasr-ajax-functions.php:1215 ../lib/yasr-ajax-functions.php:1224
889
  msgid "Average "
890
  msgstr "Durchschnitt"
891
 
892
+ #: ../lib/yasr-ajax-functions.php:1283 ../lib/yasr-ajax-functions.php:1323
893
  msgid "Total:"
894
  msgstr "Gesamt:"
895
 
896
+ #: ../lib/yasr-ajax-functions.php:1283 ../lib/yasr-ajax-functions.php:1323
897
  msgid "Average"
898
  msgstr "Durchschnitt"
899
 
900
+ #: ../lib/yasr-ajax-functions.php:1297 ../lib/yasr-ajax-functions.php:1335
901
+ msgid "You've not enought data"
902
+ msgstr "Es sind nicht genug Daten vorhanden"
903
+
904
  #~ msgid " rating "
905
  #~ msgstr " Bewertung"
906
 
languages/yasr-it_IT.mo CHANGED
Binary file
languages/yasr-it_IT.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Yasr Translation\n"
4
- "POT-Creation-Date: 2014-08-28 12:00+0100\n"
5
- "PO-Revision-Date: 2014-08-28 12:01+0100\n"
6
  "Last-Translator: Dario <thedudoworld@gmail.com>\n"
7
  "Language-Team: \n"
8
  "Language: it\n"
@@ -161,20 +161,21 @@ msgid "Choose wich set you want to use"
161
  msgstr "Scegli che set vuoi usare"
162
 
163
  #: ../yasr-metabox-multiple-rating.php:26
164
- #: ../lib/yasr-settings-functions.php:399
165
  msgid "Select"
166
  msgstr "Seleziona"
167
 
168
- #: ../yasr-metabox-overall-rating.php:14
169
  msgid "Rate this article / item"
170
  msgstr "Vota questo articolo / oggetto"
171
 
172
- #: ../yasr-metabox-overall-rating.php:22
173
- #: ../lib/yasr-shortcode-functions.php:147
174
  msgid "Loading, please wait"
175
  msgstr "Caricamento, attendere prego"
176
 
177
- #: ../yasr-metabox-overall-rating.php:37
 
178
  msgid ""
179
  "Remember to insert this shortcode <strong>[yasr_overall_rating]</strong> "
180
  "where you want to display this rating"
@@ -182,109 +183,66 @@ msgstr ""
182
  "Ricorda di inserire questo shortcode <strong>[yasr_overall_rating]</strong> "
183
  "dove vuoi far apparire questo voto"
184
 
185
- #: ../lib/yasr-shortcode-functions.php:178
 
 
 
 
186
  #: ../lib/yasr-shortcode-functions.php:190
187
- #: ../lib/yasr-shortcode-functions.php:195
188
- #: ../lib/yasr-shortcode-functions.php:208
189
- #: ../lib/yasr-shortcode-functions.php:213
190
- #: ../lib/yasr-shortcode-functions.php:233
191
- #: ../lib/yasr-shortcode-functions.php:242
192
- #: ../lib/yasr-shortcode-functions.php:248
193
- #: ../lib/yasr-shortcode-functions.php:262
194
- #: ../lib/yasr-shortcode-functions.php:268
195
- #: ../lib/yasr-shortcode-functions.php:293
196
- #: ../lib/yasr-shortcode-functions.php:305
197
- #: ../lib/yasr-shortcode-functions.php:310
198
- #: ../lib/yasr-shortcode-functions.php:323
199
- #: ../lib/yasr-shortcode-functions.php:328
200
- #: ../lib/yasr-shortcode-functions.php:349
201
- #: ../lib/yasr-shortcode-functions.php:358
202
- #: ../lib/yasr-shortcode-functions.php:364
203
- #: ../lib/yasr-shortcode-functions.php:378
204
- #: ../lib/yasr-shortcode-functions.php:384
205
- #: ../lib/yasr-shortcode-functions.php:409
206
- #: ../lib/yasr-shortcode-functions.php:421
207
- #: ../lib/yasr-shortcode-functions.php:426
208
- #: ../lib/yasr-shortcode-functions.php:439
209
- #: ../lib/yasr-shortcode-functions.php:444
210
- #: ../lib/yasr-shortcode-functions.php:465
211
- #: ../lib/yasr-shortcode-functions.php:474
212
- #: ../lib/yasr-shortcode-functions.php:480
213
- #: ../lib/yasr-shortcode-functions.php:494
214
- #: ../lib/yasr-shortcode-functions.php:500 ../lib/yasr-ajax-functions.php:1001
215
  #: ../lib/yasr-ajax-functions.php:1009 ../lib/yasr-ajax-functions.php:1017
216
  #: ../lib/yasr-ajax-functions.php:1029 ../lib/yasr-ajax-functions.php:1037
217
- #: ../lib/yasr-ajax-functions.php:1044 ../lib/yasr-ajax-functions.php:1134
218
- #: ../lib/yasr-ajax-functions.php:1142 ../lib/yasr-ajax-functions.php:1150
219
- #: ../lib/yasr-ajax-functions.php:1186 ../lib/yasr-ajax-functions.php:1192
220
- #: ../lib/yasr-ajax-functions.php:1198 ../lib/yasr-ajax-functions.php:1207
221
  msgid "Total: "
222
  msgstr "Voti: "
223
 
224
- #: ../lib/yasr-shortcode-functions.php:178
225
  #: ../lib/yasr-shortcode-functions.php:190
226
- #: ../lib/yasr-shortcode-functions.php:195
227
- #: ../lib/yasr-shortcode-functions.php:208
228
- #: ../lib/yasr-shortcode-functions.php:213
229
- #: ../lib/yasr-shortcode-functions.php:233
230
- #: ../lib/yasr-shortcode-functions.php:242
231
- #: ../lib/yasr-shortcode-functions.php:248
232
- #: ../lib/yasr-shortcode-functions.php:262
233
- #: ../lib/yasr-shortcode-functions.php:268
234
- #: ../lib/yasr-shortcode-functions.php:293
235
- #: ../lib/yasr-shortcode-functions.php:305
236
- #: ../lib/yasr-shortcode-functions.php:310
237
- #: ../lib/yasr-shortcode-functions.php:323
238
- #: ../lib/yasr-shortcode-functions.php:328
239
- #: ../lib/yasr-shortcode-functions.php:349
240
- #: ../lib/yasr-shortcode-functions.php:358
241
- #: ../lib/yasr-shortcode-functions.php:364
242
- #: ../lib/yasr-shortcode-functions.php:378
243
- #: ../lib/yasr-shortcode-functions.php:384
244
- #: ../lib/yasr-shortcode-functions.php:409
245
- #: ../lib/yasr-shortcode-functions.php:421
246
- #: ../lib/yasr-shortcode-functions.php:426
247
- #: ../lib/yasr-shortcode-functions.php:439
248
- #: ../lib/yasr-shortcode-functions.php:444
249
- #: ../lib/yasr-shortcode-functions.php:465
250
- #: ../lib/yasr-shortcode-functions.php:474
251
- #: ../lib/yasr-shortcode-functions.php:480
252
- #: ../lib/yasr-shortcode-functions.php:494
253
- #: ../lib/yasr-shortcode-functions.php:500
254
  msgid "Average: "
255
  msgstr "Media Voto: "
256
 
257
- #: ../lib/yasr-shortcode-functions.php:179
258
- #: ../lib/yasr-shortcode-functions.php:234
259
- #: ../lib/yasr-shortcode-functions.php:294
260
- #: ../lib/yasr-shortcode-functions.php:350
261
- #: ../lib/yasr-shortcode-functions.php:410
262
- #: ../lib/yasr-shortcode-functions.php:466
263
  msgid "You've already voted this article with"
264
  msgstr "Hai già votato questo articolo con "
265
 
266
- #: ../lib/yasr-shortcode-functions.php:263
267
- #: ../lib/yasr-shortcode-functions.php:269
268
- #: ../lib/yasr-shortcode-functions.php:379
269
- #: ../lib/yasr-shortcode-functions.php:385
270
- #: ../lib/yasr-shortcode-functions.php:495
271
- #: ../lib/yasr-shortcode-functions.php:501
272
  msgid "You must sign to vote"
273
  msgstr "Devi fare il login per votare"
274
 
275
- #: ../lib/yasr-shortcode-functions.php:719
276
  msgid "Rating"
277
  msgstr "Voto"
278
 
279
- #: ../lib/yasr-shortcode-functions.php:733
280
  msgid "You don't have any votes stored"
281
  msgstr "Non hai alcun voto salvato"
282
 
283
- #: ../lib/yasr-shortcode-functions.php:747
284
  msgid "Chart is loading, please wait"
285
  msgstr "Caricamento classifica, attendere prego"
286
 
287
- #: ../lib/yasr-shortcode-functions.php:876
288
  msgid ""
289
  "Problem while retriving the top 5 most active reviewers. Did you published "
290
  "any review?"
@@ -292,7 +250,7 @@ msgstr ""
292
  "C'è stato un problema nell'ottenere la classifica dei 5 recensori più "
293
  "attivi. Hai pubblicato qualche recensione?"
294
 
295
- #: ../lib/yasr-shortcode-functions.php:944
296
  msgid ""
297
  "Problem while retriving the top 10 active users chart. Are you sure you have "
298
  "votes to show?"
@@ -328,91 +286,95 @@ msgstr "Permettere la votazione ai soli utenti loggati?"
328
  msgid "Which rich snippets do you want to use?"
329
  msgstr "Quale rich snippets vuoi usare?"
330
 
331
- #: ../lib/yasr-settings-functions.php:52
 
 
 
 
332
  msgid "Use Auto Insert?"
333
  msgstr "Usare l'inserimento automatico?"
334
 
335
- #: ../lib/yasr-settings-functions.php:55
336
- #: ../lib/yasr-settings-functions.php:124
337
- #: ../lib/yasr-settings-functions.php:143
338
- #: ../lib/yasr-settings-functions.php:176
339
- #: ../lib/yasr-settings-functions.php:201
340
  msgid "Yes"
341
  msgstr "Si"
342
 
343
- #: ../lib/yasr-settings-functions.php:69
344
- #: ../lib/yasr-settings-functions.php:129
345
- #: ../lib/yasr-settings-functions.php:148
346
- #: ../lib/yasr-settings-functions.php:181
347
- #: ../lib/yasr-settings-functions.php:218
348
  msgid "No"
349
  msgstr "No"
350
 
351
- #: ../lib/yasr-settings-functions.php:75
352
  msgid "What?"
353
  msgstr "Cosa?"
354
 
355
- #: ../lib/yasr-settings-functions.php:78
356
  msgid "Overall Rating / Author Rating"
357
  msgstr "Voto Complessivo / Voto Autore"
358
 
359
- #: ../lib/yasr-settings-functions.php:82 ../lib/yasr-ajax-functions.php:363
360
  msgid "Visitor Votes"
361
  msgstr "Voto Utenti"
362
 
363
- #: ../lib/yasr-settings-functions.php:86
364
  msgid "Both"
365
  msgstr "Entrambi"
366
 
367
- #: ../lib/yasr-settings-functions.php:90
368
  msgid "Where?"
369
  msgstr "Dove?"
370
 
371
- #: ../lib/yasr-settings-functions.php:93
372
  msgid "Before the post"
373
  msgstr "Prima del contenuto"
374
 
375
- #: ../lib/yasr-settings-functions.php:97
376
  msgid "After the post"
377
  msgstr "Dopo il contenuto"
378
 
379
- #: ../lib/yasr-settings-functions.php:102
380
  msgid "Size"
381
  msgstr "Grandezza"
382
 
383
- #: ../lib/yasr-settings-functions.php:106 ../lib/yasr-ajax-functions.php:353
384
  #: ../lib/yasr-ajax-functions.php:371
385
  msgid "Small"
386
  msgstr "Piccolo"
387
 
388
- #: ../lib/yasr-settings-functions.php:111 ../lib/yasr-ajax-functions.php:354
389
  #: ../lib/yasr-ajax-functions.php:372
390
  msgid "Medium"
391
  msgstr "Medio"
392
 
393
- #: ../lib/yasr-settings-functions.php:116 ../lib/yasr-ajax-functions.php:355
394
  #: ../lib/yasr-ajax-functions.php:373
395
  msgid "Large"
396
  msgstr "Grande"
397
 
398
- #: ../lib/yasr-settings-functions.php:121
399
  msgid "Exclude Pages?"
400
  msgstr "Escludere pagine?"
401
 
402
- #: ../lib/yasr-settings-functions.php:140
403
  msgid "Use only in custom post types?"
404
  msgstr "Usare solo nei custom post type?"
405
 
406
- #: ../lib/yasr-settings-functions.php:152
407
  msgid "You see this because you use custom post types."
408
  msgstr "Vedi questo perché usi i custom post type."
409
 
410
- #: ../lib/yasr-settings-functions.php:154
411
  msgid "If you want to use auto insert only in custom post types, choose Yes"
412
  msgstr ""
413
  "Se vuoi usare l'inserimento automatico solo nei custom post type, spunta Si"
414
 
415
- #: ../lib/yasr-settings-functions.php:185
416
  msgid ""
417
  "If you enable this, \"Overall Rating\" will be showed not only in the single "
418
  "article or page, but also in pages like Home Page, category pages or "
@@ -422,60 +384,60 @@ msgstr ""
422
  "articolo o nella singola pagina, ma anche in pagine come l' Home Page, "
423
  "categorie o archivi"
424
 
425
- #: ../lib/yasr-settings-functions.php:225
426
  msgid "Custom text to display before Overall Rating"
427
  msgstr "Testo personalizzato da visualizzare prima del Voto Complessivo"
428
 
429
- #: ../lib/yasr-settings-functions.php:230
430
  msgid "Custom text to display before Visitor Rating"
431
- msgstr "Testo personalizzato da visualizzare prima del Voto Complessivo"
432
 
433
- #: ../lib/yasr-settings-functions.php:235
434
  msgid "Custom text to display when a non logged user has already rated"
435
  msgstr ""
436
  "Testo personalizzato da mostrare quanto un utente non loggato ha già votato"
437
 
438
- #: ../lib/yasr-settings-functions.php:251
439
  msgid "Light"
440
  msgstr "Chiaro"
441
 
442
- #: ../lib/yasr-settings-functions.php:256
443
  msgid "Dark"
444
  msgstr "Scuro"
445
 
446
- #: ../lib/yasr-settings-functions.php:261
447
  msgid "Preview"
448
  msgstr "Anteprima"
449
 
450
- #: ../lib/yasr-settings-functions.php:266
451
  msgid "Light theme"
452
  msgstr "Tema chiaro"
453
 
454
- #: ../lib/yasr-settings-functions.php:271
455
  msgid "Dark Theme"
456
  msgstr "Tema scuro"
457
 
458
- #: ../lib/yasr-settings-functions.php:289
459
  msgid "Allow only logged-in users"
460
  msgstr "Permetti solo agli utenti loggati"
461
 
462
- #: ../lib/yasr-settings-functions.php:293
463
  msgid "Allow everybody (logged in and anonymous)"
464
  msgstr "Permetti a tutti (loggati ed anonimi)"
465
 
466
- #: ../lib/yasr-settings-functions.php:310
467
  msgid "Review Rating"
468
  msgstr "Voto Recensione"
469
 
470
- #: ../lib/yasr-settings-functions.php:314
471
  msgid "Aggregate Rating"
472
  msgstr "Media Voto Utenti"
473
 
474
- #: ../lib/yasr-settings-functions.php:319
475
  msgid "What is this?"
476
  msgstr "Cos'è questo?"
477
 
478
- #: ../lib/yasr-settings-functions.php:324
479
  msgid ""
480
  "If you select \"Review Rating\", your site will be indexed from search "
481
  "engines like this: "
@@ -483,18 +445,26 @@ msgstr ""
483
  "Se hai scelto \"Voto Recensione\", il sito verrà indicizzato dai motori di "
484
  "ricerca così:"
485
 
486
- #: ../lib/yasr-settings-functions.php:329
487
  msgid ""
488
  "If, instead, you choose \"Aggregate Rating\", your site will be indexed like "
489
  "this"
490
  msgstr ""
491
  "Se, invece, hai scelto \"Media Voto Utenti\", il sito verrà indicizzato così"
492
 
493
- #: ../lib/yasr-settings-functions.php:344
 
 
 
 
 
 
 
 
494
  msgid "Add New Multiple Set"
495
  msgstr "Set Multipli"
496
 
497
- #: ../lib/yasr-settings-functions.php:345
498
  msgid ""
499
  "Name, Element#1 and Element#2 MUST be filled and must be long at least 3 "
500
  "characters"
@@ -502,48 +472,48 @@ msgstr ""
502
  "Nome, Elemento#1 e Elemento#2 DEVONO essere riempiti e devono essere lunghi "
503
  "almeno 3 caratteri"
504
 
505
- #: ../lib/yasr-settings-functions.php:348
506
  msgid "Name"
507
  msgstr "Nome"
508
 
509
- #: ../lib/yasr-settings-functions.php:353
510
  msgid "You can insert up to nine element"
511
  msgstr "Puoi inserire fino a nove elementi"
512
 
513
- #: ../lib/yasr-settings-functions.php:358
514
  msgid "Element "
515
  msgstr "Elemento"
516
 
517
- #: ../lib/yasr-settings-functions.php:368
518
  msgid "Create New Set"
519
  msgstr "Crea Nuovo Set"
520
 
521
- #: ../lib/yasr-settings-functions.php:389
522
- #: ../lib/yasr-settings-functions.php:421
523
  msgid "Manage Multiple Set"
524
  msgstr "Gestisci Set Multiplo"
525
 
526
- #: ../lib/yasr-settings-functions.php:391
527
  msgid "Wich set do you want to edit or remove?"
528
  msgstr "Quale set vuoi modificare o rimuovere"
529
 
530
- #: ../lib/yasr-settings-functions.php:431
531
- #: ../lib/yasr-settings-functions.php:549
532
  msgid "Field name"
533
  msgstr "Nome campo"
534
 
535
- #: ../lib/yasr-settings-functions.php:435
536
- #: ../lib/yasr-settings-functions.php:553
537
  msgid "Remove"
538
  msgstr "Rimuovi"
539
 
540
- #: ../lib/yasr-settings-functions.php:477
541
- #: ../lib/yasr-settings-functions.php:595
542
  msgid "Remove whole set?"
543
  msgstr "Rimuovere l'intero set?"
544
 
545
- #: ../lib/yasr-settings-functions.php:490
546
- #: ../lib/yasr-settings-functions.php:608
547
  msgid ""
548
  "If you remove something you will remove all the votes for that set or field. "
549
  "This operation CAN'T BE undone."
@@ -551,63 +521,63 @@ msgstr ""
551
  "Se rimuovi qualcosa rimuoverai anche i voti per quel set o campo. Questa "
552
  "operazione NON PUÒ ESSERE ANNULLATA"
553
 
554
- #: ../lib/yasr-settings-functions.php:497
555
- #: ../lib/yasr-settings-functions.php:615
556
  msgid "You can use up to 9 elements"
557
  msgstr "Puoi usare fino a 9 elementi"
558
 
559
- #: ../lib/yasr-settings-functions.php:499
560
- #: ../lib/yasr-settings-functions.php:617
561
  msgid "Add element"
562
  msgstr "Aggiungi elemento"
563
 
564
- #: ../lib/yasr-settings-functions.php:501
565
- #: ../lib/yasr-settings-functions.php:619
566
  msgid "Save changes"
567
  msgstr "Salva modifiche"
568
 
569
- #: ../lib/yasr-settings-functions.php:511
570
  msgid "No Multiple Set were found"
571
  msgstr "Nessun Set Multiplo trovato"
572
 
573
- #: ../lib/yasr-settings-functions.php:761
574
- #: ../lib/yasr-settings-functions.php:1029
575
  msgid "Settings Saved"
576
  msgstr "Impostazioni Salvate"
577
 
578
- #: ../lib/yasr-settings-functions.php:766
579
  msgid "Something goes wrong trying insert set field name. Please report it"
580
  msgstr ""
581
  "Qualcosa è andato storto cercando di inserire un elemento. Per favore "
582
  "segnalalo"
583
 
584
- #: ../lib/yasr-settings-functions.php:772
585
  msgid "Something goes wrong trying insert Multi Set name. Please report it"
586
  msgstr ""
587
  "Qualcosa è andato storto cercando di inserire il nome del Set Multiplo. Per "
588
  "favore segnalalo"
589
 
590
- #: ../lib/yasr-settings-functions.php:847
591
  msgid "Something goes wrong trying to delete a Multi Set . Please report it"
592
  msgstr ""
593
  "Qualcosa è andato storto cercando di inserire il nome del Set Multiplo. Per "
594
  "favore segnalalo"
595
 
596
- #: ../lib/yasr-settings-functions.php:893
597
  msgid ""
598
  "Something goes wrong trying to delete a Multi Set's element. Please report it"
599
  msgstr ""
600
  "Qualcosa è andato storto cercando di inserire il nome del Set Multiplo. Per "
601
  "favore segnalalo"
602
 
603
- #: ../lib/yasr-settings-functions.php:957
604
  msgid ""
605
  "Something goes wrong trying to update a Multi Set's element. Please report it"
606
  msgstr ""
607
  "Qualcosa è andato storto cercando di inserire il nome del Set Multiplo. Per "
608
  "favore segnalalo"
609
 
610
- #: ../lib/yasr-settings-functions.php:1014
611
  msgid ""
612
  "Something goes wrong trying to insert set field name in edit form. Please "
613
  "report it"
@@ -615,15 +585,15 @@ msgstr ""
615
  "Qualcosa è andato storto cercando di inserire il campo nel form di modifica. "
616
  "Per favore segnalalo"
617
 
618
- #: ../lib/yasr-settings-functions.php:1057
619
  msgid "Style Options"
620
  msgstr "Opzioni Stili"
621
 
622
- #: ../lib/yasr-settings-functions.php:1058
623
  msgid "Custom CSS Styles"
624
  msgstr "Stili CSS Personalizzati"
625
 
626
- #: ../lib/yasr-settings-functions.php:1063
627
  msgid ""
628
  "Please use text area below to write your own CSS styles to override the "
629
  "default ones."
@@ -631,27 +601,27 @@ msgstr ""
631
  "Usa l'area di testo sottostante per scrivere le tue regole CSS che "
632
  "sovrascriveranno quelle di default"
633
 
634
- #: ../lib/yasr-settings-functions.php:1065
635
  msgid "Leave it blank if you don't know what you're doing"
636
  msgstr "Lascialo vuoto se non stai cosa stai facendo"
637
 
638
- #: ../lib/yasr-settings-functions.php:1098
639
  msgid "No previous Gd Star Rating installation was found"
640
  msgstr "Installazione precedente di Gd Star Rating non stata trovata"
641
 
642
- #: ../lib/yasr-db-functions.php:191 ../lib/yasr-ajax-functions.php:772
643
  msgid "No Recenet votes yet"
644
  msgstr "Ancora nessun voto recente"
645
 
646
- #: ../lib/yasr-db-functions.php:206 ../lib/yasr-ajax-functions.php:785
647
  msgid "anonymous"
648
  msgstr "anonimo"
649
 
650
- #: ../lib/yasr-db-functions.php:229 ../lib/yasr-ajax-functions.php:808
651
  msgid "Ip address"
652
  msgstr "Indirizzo Ip"
653
 
654
- #: ../lib/yasr-db-functions.php:270 ../lib/yasr-ajax-functions.php:849
655
  msgid "Pages"
656
  msgstr "Pagine"
657
 
@@ -897,24 +867,28 @@ msgstr "Media Voto "
897
  msgid "Vote Saved"
898
  msgstr "Voto Salvato"
899
 
900
- #: ../lib/yasr-ajax-functions.php:1135 ../lib/yasr-ajax-functions.php:1143
901
- #: ../lib/yasr-ajax-functions.php:1151
902
  msgid "Vote Updated"
903
  msgstr "Voto Aggiornato"
904
 
905
- #: ../lib/yasr-ajax-functions.php:1186 ../lib/yasr-ajax-functions.php:1192
906
- #: ../lib/yasr-ajax-functions.php:1198 ../lib/yasr-ajax-functions.php:1207
907
  msgid "Average "
908
  msgstr "Voto Complessivo"
909
 
910
- #: ../lib/yasr-ajax-functions.php:1265 ../lib/yasr-ajax-functions.php:1300
911
  msgid "Total:"
912
  msgstr "Voti:"
913
 
914
- #: ../lib/yasr-ajax-functions.php:1265 ../lib/yasr-ajax-functions.php:1300
915
  msgid "Average"
916
  msgstr "Media"
917
 
 
 
 
 
918
  #~ msgid "'bad', 'poor', 'ok', 'good', 'super'"
919
  #~ msgstr "'pessimo', 'scarso', 'ok', 'buono', 'super'"
920
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Yasr Translation\n"
4
+ "POT-Creation-Date: 2014-09-09 11:37+0100\n"
5
+ "PO-Revision-Date: 2014-09-09 11:38+0100\n"
6
  "Last-Translator: Dario <thedudoworld@gmail.com>\n"
7
  "Language-Team: \n"
8
  "Language: it\n"
161
  msgstr "Scegli che set vuoi usare"
162
 
163
  #: ../yasr-metabox-multiple-rating.php:26
164
+ #: ../lib/yasr-settings-functions.php:402
165
  msgid "Select"
166
  msgstr "Seleziona"
167
 
168
+ #: ../yasr-metabox-overall-rating.php:47 ../yasr-metabox-overall-rating.php:94
169
  msgid "Rate this article / item"
170
  msgstr "Vota questo articolo / oggetto"
171
 
172
+ #: ../yasr-metabox-overall-rating.php:53
173
+ #: ../lib/yasr-shortcode-functions.php:144
174
  msgid "Loading, please wait"
175
  msgstr "Caricamento, attendere prego"
176
 
177
+ #: ../yasr-metabox-overall-rating.php:68
178
+ #: ../yasr-metabox-overall-rating.php:147
179
  msgid ""
180
  "Remember to insert this shortcode <strong>[yasr_overall_rating]</strong> "
181
  "where you want to display this rating"
183
  "Ricorda di inserire questo shortcode <strong>[yasr_overall_rating]</strong> "
184
  "dove vuoi far apparire questo voto"
185
 
186
+ #: ../yasr-metabox-overall-rating.php:156
187
+ #, fuzzy
188
+ msgid "Save Vote"
189
+ msgstr "Salva"
190
+
191
  #: ../lib/yasr-shortcode-functions.php:190
192
+ #: ../lib/yasr-shortcode-functions.php:202
193
+ #: ../lib/yasr-shortcode-functions.php:207
194
+ #: ../lib/yasr-shortcode-functions.php:222
195
+ #: ../lib/yasr-shortcode-functions.php:227
196
+ #: ../lib/yasr-shortcode-functions.php:247
197
+ #: ../lib/yasr-shortcode-functions.php:258
198
+ #: ../lib/yasr-shortcode-functions.php:264
199
+ #: ../lib/yasr-shortcode-functions.php:279
200
+ #: ../lib/yasr-shortcode-functions.php:285 ../lib/yasr-ajax-functions.php:1001
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
201
  #: ../lib/yasr-ajax-functions.php:1009 ../lib/yasr-ajax-functions.php:1017
202
  #: ../lib/yasr-ajax-functions.php:1029 ../lib/yasr-ajax-functions.php:1037
203
+ #: ../lib/yasr-ajax-functions.php:1044 ../lib/yasr-ajax-functions.php:1139
204
+ #: ../lib/yasr-ajax-functions.php:1147 ../lib/yasr-ajax-functions.php:1155
205
+ #: ../lib/yasr-ajax-functions.php:1203 ../lib/yasr-ajax-functions.php:1209
206
+ #: ../lib/yasr-ajax-functions.php:1215 ../lib/yasr-ajax-functions.php:1224
207
  msgid "Total: "
208
  msgstr "Voti: "
209
 
 
210
  #: ../lib/yasr-shortcode-functions.php:190
211
+ #: ../lib/yasr-shortcode-functions.php:202
212
+ #: ../lib/yasr-shortcode-functions.php:207
213
+ #: ../lib/yasr-shortcode-functions.php:222
214
+ #: ../lib/yasr-shortcode-functions.php:227
215
+ #: ../lib/yasr-shortcode-functions.php:247
216
+ #: ../lib/yasr-shortcode-functions.php:258
217
+ #: ../lib/yasr-shortcode-functions.php:264
218
+ #: ../lib/yasr-shortcode-functions.php:279
219
+ #: ../lib/yasr-shortcode-functions.php:285
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  msgid "Average: "
221
  msgstr "Media Voto: "
222
 
223
+ #: ../lib/yasr-shortcode-functions.php:191
224
+ #: ../lib/yasr-shortcode-functions.php:248
 
 
 
 
225
  msgid "You've already voted this article with"
226
  msgstr "Hai già votato questo articolo con "
227
 
228
+ #: ../lib/yasr-shortcode-functions.php:280
229
+ #: ../lib/yasr-shortcode-functions.php:286
 
 
 
 
230
  msgid "You must sign to vote"
231
  msgstr "Devi fare il login per votare"
232
 
233
+ #: ../lib/yasr-shortcode-functions.php:524
234
  msgid "Rating"
235
  msgstr "Voto"
236
 
237
+ #: ../lib/yasr-shortcode-functions.php:538
238
  msgid "You don't have any votes stored"
239
  msgstr "Non hai alcun voto salvato"
240
 
241
+ #: ../lib/yasr-shortcode-functions.php:552
242
  msgid "Chart is loading, please wait"
243
  msgstr "Caricamento classifica, attendere prego"
244
 
245
+ #: ../lib/yasr-shortcode-functions.php:681
246
  msgid ""
247
  "Problem while retriving the top 5 most active reviewers. Did you published "
248
  "any review?"
250
  "C'è stato un problema nell'ottenere la classifica dei 5 recensori più "
251
  "attivi. Hai pubblicato qualche recensione?"
252
 
253
+ #: ../lib/yasr-shortcode-functions.php:749
254
  msgid ""
255
  "Problem while retriving the top 10 active users chart. Are you sure you have "
256
  "votes to show?"
286
  msgid "Which rich snippets do you want to use?"
287
  msgstr "Quale rich snippets vuoi usare?"
288
 
289
+ #: ../lib/yasr-settings-functions.php:39
290
+ msgid "How do you want ro rate \"Overall Rating\"?"
291
+ msgstr "Cosa vuoi usare per inserire il \"Voto Complessivo\"?"
292
+
293
+ #: ../lib/yasr-settings-functions.php:53
294
  msgid "Use Auto Insert?"
295
  msgstr "Usare l'inserimento automatico?"
296
 
297
+ #: ../lib/yasr-settings-functions.php:56
298
+ #: ../lib/yasr-settings-functions.php:125
299
+ #: ../lib/yasr-settings-functions.php:144
300
+ #: ../lib/yasr-settings-functions.php:177
301
+ #: ../lib/yasr-settings-functions.php:202
302
  msgid "Yes"
303
  msgstr "Si"
304
 
305
+ #: ../lib/yasr-settings-functions.php:70
306
+ #: ../lib/yasr-settings-functions.php:130
307
+ #: ../lib/yasr-settings-functions.php:149
308
+ #: ../lib/yasr-settings-functions.php:182
309
+ #: ../lib/yasr-settings-functions.php:207
310
  msgid "No"
311
  msgstr "No"
312
 
313
+ #: ../lib/yasr-settings-functions.php:76
314
  msgid "What?"
315
  msgstr "Cosa?"
316
 
317
+ #: ../lib/yasr-settings-functions.php:79
318
  msgid "Overall Rating / Author Rating"
319
  msgstr "Voto Complessivo / Voto Autore"
320
 
321
+ #: ../lib/yasr-settings-functions.php:83 ../lib/yasr-ajax-functions.php:363
322
  msgid "Visitor Votes"
323
  msgstr "Voto Utenti"
324
 
325
+ #: ../lib/yasr-settings-functions.php:87
326
  msgid "Both"
327
  msgstr "Entrambi"
328
 
329
+ #: ../lib/yasr-settings-functions.php:91
330
  msgid "Where?"
331
  msgstr "Dove?"
332
 
333
+ #: ../lib/yasr-settings-functions.php:94
334
  msgid "Before the post"
335
  msgstr "Prima del contenuto"
336
 
337
+ #: ../lib/yasr-settings-functions.php:98
338
  msgid "After the post"
339
  msgstr "Dopo il contenuto"
340
 
341
+ #: ../lib/yasr-settings-functions.php:103
342
  msgid "Size"
343
  msgstr "Grandezza"
344
 
345
+ #: ../lib/yasr-settings-functions.php:107 ../lib/yasr-ajax-functions.php:353
346
  #: ../lib/yasr-ajax-functions.php:371
347
  msgid "Small"
348
  msgstr "Piccolo"
349
 
350
+ #: ../lib/yasr-settings-functions.php:112 ../lib/yasr-ajax-functions.php:354
351
  #: ../lib/yasr-ajax-functions.php:372
352
  msgid "Medium"
353
  msgstr "Medio"
354
 
355
+ #: ../lib/yasr-settings-functions.php:117 ../lib/yasr-ajax-functions.php:355
356
  #: ../lib/yasr-ajax-functions.php:373
357
  msgid "Large"
358
  msgstr "Grande"
359
 
360
+ #: ../lib/yasr-settings-functions.php:122
361
  msgid "Exclude Pages?"
362
  msgstr "Escludere pagine?"
363
 
364
+ #: ../lib/yasr-settings-functions.php:141
365
  msgid "Use only in custom post types?"
366
  msgstr "Usare solo nei custom post type?"
367
 
368
+ #: ../lib/yasr-settings-functions.php:153
369
  msgid "You see this because you use custom post types."
370
  msgstr "Vedi questo perché usi i custom post type."
371
 
372
+ #: ../lib/yasr-settings-functions.php:155
373
  msgid "If you want to use auto insert only in custom post types, choose Yes"
374
  msgstr ""
375
  "Se vuoi usare l'inserimento automatico solo nei custom post type, spunta Si"
376
 
377
+ #: ../lib/yasr-settings-functions.php:186
378
  msgid ""
379
  "If you enable this, \"Overall Rating\" will be showed not only in the single "
380
  "article or page, but also in pages like Home Page, category pages or "
384
  "articolo o nella singola pagina, ma anche in pagine come l' Home Page, "
385
  "categorie o archivi"
386
 
387
+ #: ../lib/yasr-settings-functions.php:212
388
  msgid "Custom text to display before Overall Rating"
389
  msgstr "Testo personalizzato da visualizzare prima del Voto Complessivo"
390
 
391
+ #: ../lib/yasr-settings-functions.php:217
392
  msgid "Custom text to display before Visitor Rating"
393
+ msgstr "Testo personalizzato da visualizzare prima del Voto Utenti"
394
 
395
+ #: ../lib/yasr-settings-functions.php:222
396
  msgid "Custom text to display when a non logged user has already rated"
397
  msgstr ""
398
  "Testo personalizzato da mostrare quanto un utente non loggato ha già votato"
399
 
400
+ #: ../lib/yasr-settings-functions.php:238
401
  msgid "Light"
402
  msgstr "Chiaro"
403
 
404
+ #: ../lib/yasr-settings-functions.php:243
405
  msgid "Dark"
406
  msgstr "Scuro"
407
 
408
+ #: ../lib/yasr-settings-functions.php:248
409
  msgid "Preview"
410
  msgstr "Anteprima"
411
 
412
+ #: ../lib/yasr-settings-functions.php:253
413
  msgid "Light theme"
414
  msgstr "Tema chiaro"
415
 
416
+ #: ../lib/yasr-settings-functions.php:258
417
  msgid "Dark Theme"
418
  msgstr "Tema scuro"
419
 
420
+ #: ../lib/yasr-settings-functions.php:276
421
  msgid "Allow only logged-in users"
422
  msgstr "Permetti solo agli utenti loggati"
423
 
424
+ #: ../lib/yasr-settings-functions.php:280
425
  msgid "Allow everybody (logged in and anonymous)"
426
  msgstr "Permetti a tutti (loggati ed anonimi)"
427
 
428
+ #: ../lib/yasr-settings-functions.php:297
429
  msgid "Review Rating"
430
  msgstr "Voto Recensione"
431
 
432
+ #: ../lib/yasr-settings-functions.php:301
433
  msgid "Aggregate Rating"
434
  msgstr "Media Voto Utenti"
435
 
436
+ #: ../lib/yasr-settings-functions.php:306
437
  msgid "What is this?"
438
  msgstr "Cos'è questo?"
439
 
440
+ #: ../lib/yasr-settings-functions.php:311
441
  msgid ""
442
  "If you select \"Review Rating\", your site will be indexed from search "
443
  "engines like this: "
445
  "Se hai scelto \"Voto Recensione\", il sito verrà indicizzato dai motori di "
446
  "ricerca così:"
447
 
448
+ #: ../lib/yasr-settings-functions.php:316
449
  msgid ""
450
  "If, instead, you choose \"Aggregate Rating\", your site will be indexed like "
451
  "this"
452
  msgstr ""
453
  "Se, invece, hai scelto \"Media Voto Utenti\", il sito verrà indicizzato così"
454
 
455
+ #: ../lib/yasr-settings-functions.php:330
456
+ msgid "Stars"
457
+ msgstr "Stelle"
458
+
459
+ #: ../lib/yasr-settings-functions.php:334
460
+ msgid "Numbers"
461
+ msgstr "Numeri"
462
+
463
+ #: ../lib/yasr-settings-functions.php:347
464
  msgid "Add New Multiple Set"
465
  msgstr "Set Multipli"
466
 
467
+ #: ../lib/yasr-settings-functions.php:348
468
  msgid ""
469
  "Name, Element#1 and Element#2 MUST be filled and must be long at least 3 "
470
  "characters"
472
  "Nome, Elemento#1 e Elemento#2 DEVONO essere riempiti e devono essere lunghi "
473
  "almeno 3 caratteri"
474
 
475
+ #: ../lib/yasr-settings-functions.php:351
476
  msgid "Name"
477
  msgstr "Nome"
478
 
479
+ #: ../lib/yasr-settings-functions.php:356
480
  msgid "You can insert up to nine element"
481
  msgstr "Puoi inserire fino a nove elementi"
482
 
483
+ #: ../lib/yasr-settings-functions.php:361
484
  msgid "Element "
485
  msgstr "Elemento"
486
 
487
+ #: ../lib/yasr-settings-functions.php:371
488
  msgid "Create New Set"
489
  msgstr "Crea Nuovo Set"
490
 
491
+ #: ../lib/yasr-settings-functions.php:392
492
+ #: ../lib/yasr-settings-functions.php:424
493
  msgid "Manage Multiple Set"
494
  msgstr "Gestisci Set Multiplo"
495
 
496
+ #: ../lib/yasr-settings-functions.php:394
497
  msgid "Wich set do you want to edit or remove?"
498
  msgstr "Quale set vuoi modificare o rimuovere"
499
 
500
+ #: ../lib/yasr-settings-functions.php:434
501
+ #: ../lib/yasr-settings-functions.php:552
502
  msgid "Field name"
503
  msgstr "Nome campo"
504
 
505
+ #: ../lib/yasr-settings-functions.php:438
506
+ #: ../lib/yasr-settings-functions.php:556
507
  msgid "Remove"
508
  msgstr "Rimuovi"
509
 
510
+ #: ../lib/yasr-settings-functions.php:480
511
+ #: ../lib/yasr-settings-functions.php:598
512
  msgid "Remove whole set?"
513
  msgstr "Rimuovere l'intero set?"
514
 
515
+ #: ../lib/yasr-settings-functions.php:493
516
+ #: ../lib/yasr-settings-functions.php:611
517
  msgid ""
518
  "If you remove something you will remove all the votes for that set or field. "
519
  "This operation CAN'T BE undone."
521
  "Se rimuovi qualcosa rimuoverai anche i voti per quel set o campo. Questa "
522
  "operazione NON PUÒ ESSERE ANNULLATA"
523
 
524
+ #: ../lib/yasr-settings-functions.php:500
525
+ #: ../lib/yasr-settings-functions.php:618
526
  msgid "You can use up to 9 elements"
527
  msgstr "Puoi usare fino a 9 elementi"
528
 
529
+ #: ../lib/yasr-settings-functions.php:502
530
+ #: ../lib/yasr-settings-functions.php:620
531
  msgid "Add element"
532
  msgstr "Aggiungi elemento"
533
 
534
+ #: ../lib/yasr-settings-functions.php:504
535
+ #: ../lib/yasr-settings-functions.php:622
536
  msgid "Save changes"
537
  msgstr "Salva modifiche"
538
 
539
+ #: ../lib/yasr-settings-functions.php:514
540
  msgid "No Multiple Set were found"
541
  msgstr "Nessun Set Multiplo trovato"
542
 
543
+ #: ../lib/yasr-settings-functions.php:764
544
+ #: ../lib/yasr-settings-functions.php:1032
545
  msgid "Settings Saved"
546
  msgstr "Impostazioni Salvate"
547
 
548
+ #: ../lib/yasr-settings-functions.php:769
549
  msgid "Something goes wrong trying insert set field name. Please report it"
550
  msgstr ""
551
  "Qualcosa è andato storto cercando di inserire un elemento. Per favore "
552
  "segnalalo"
553
 
554
+ #: ../lib/yasr-settings-functions.php:775
555
  msgid "Something goes wrong trying insert Multi Set name. Please report it"
556
  msgstr ""
557
  "Qualcosa è andato storto cercando di inserire il nome del Set Multiplo. Per "
558
  "favore segnalalo"
559
 
560
+ #: ../lib/yasr-settings-functions.php:850
561
  msgid "Something goes wrong trying to delete a Multi Set . Please report it"
562
  msgstr ""
563
  "Qualcosa è andato storto cercando di inserire il nome del Set Multiplo. Per "
564
  "favore segnalalo"
565
 
566
+ #: ../lib/yasr-settings-functions.php:896
567
  msgid ""
568
  "Something goes wrong trying to delete a Multi Set's element. Please report it"
569
  msgstr ""
570
  "Qualcosa è andato storto cercando di inserire il nome del Set Multiplo. Per "
571
  "favore segnalalo"
572
 
573
+ #: ../lib/yasr-settings-functions.php:960
574
  msgid ""
575
  "Something goes wrong trying to update a Multi Set's element. Please report it"
576
  msgstr ""
577
  "Qualcosa è andato storto cercando di inserire il nome del Set Multiplo. Per "
578
  "favore segnalalo"
579
 
580
+ #: ../lib/yasr-settings-functions.php:1017
581
  msgid ""
582
  "Something goes wrong trying to insert set field name in edit form. Please "
583
  "report it"
585
  "Qualcosa è andato storto cercando di inserire il campo nel form di modifica. "
586
  "Per favore segnalalo"
587
 
588
+ #: ../lib/yasr-settings-functions.php:1060
589
  msgid "Style Options"
590
  msgstr "Opzioni Stili"
591
 
592
+ #: ../lib/yasr-settings-functions.php:1061
593
  msgid "Custom CSS Styles"
594
  msgstr "Stili CSS Personalizzati"
595
 
596
+ #: ../lib/yasr-settings-functions.php:1066
597
  msgid ""
598
  "Please use text area below to write your own CSS styles to override the "
599
  "default ones."
601
  "Usa l'area di testo sottostante per scrivere le tue regole CSS che "
602
  "sovrascriveranno quelle di default"
603
 
604
+ #: ../lib/yasr-settings-functions.php:1068
605
  msgid "Leave it blank if you don't know what you're doing"
606
  msgstr "Lascialo vuoto se non stai cosa stai facendo"
607
 
608
+ #: ../lib/yasr-settings-functions.php:1101
609
  msgid "No previous Gd Star Rating installation was found"
610
  msgstr "Installazione precedente di Gd Star Rating non stata trovata"
611
 
612
+ #: ../lib/yasr-db-functions.php:204 ../lib/yasr-ajax-functions.php:772
613
  msgid "No Recenet votes yet"
614
  msgstr "Ancora nessun voto recente"
615
 
616
+ #: ../lib/yasr-db-functions.php:219 ../lib/yasr-ajax-functions.php:785
617
  msgid "anonymous"
618
  msgstr "anonimo"
619
 
620
+ #: ../lib/yasr-db-functions.php:242 ../lib/yasr-ajax-functions.php:808
621
  msgid "Ip address"
622
  msgstr "Indirizzo Ip"
623
 
624
+ #: ../lib/yasr-db-functions.php:283 ../lib/yasr-ajax-functions.php:849
625
  msgid "Pages"
626
  msgstr "Pagine"
627
 
867
  msgid "Vote Saved"
868
  msgstr "Voto Salvato"
869
 
870
+ #: ../lib/yasr-ajax-functions.php:1140 ../lib/yasr-ajax-functions.php:1148
871
+ #: ../lib/yasr-ajax-functions.php:1156
872
  msgid "Vote Updated"
873
  msgstr "Voto Aggiornato"
874
 
875
+ #: ../lib/yasr-ajax-functions.php:1203 ../lib/yasr-ajax-functions.php:1209
876
+ #: ../lib/yasr-ajax-functions.php:1215 ../lib/yasr-ajax-functions.php:1224
877
  msgid "Average "
878
  msgstr "Voto Complessivo"
879
 
880
+ #: ../lib/yasr-ajax-functions.php:1283 ../lib/yasr-ajax-functions.php:1323
881
  msgid "Total:"
882
  msgstr "Voti:"
883
 
884
+ #: ../lib/yasr-ajax-functions.php:1283 ../lib/yasr-ajax-functions.php:1323
885
  msgid "Average"
886
  msgstr "Media"
887
 
888
+ #: ../lib/yasr-ajax-functions.php:1297 ../lib/yasr-ajax-functions.php:1335
889
+ msgid "You've not enought data"
890
+ msgstr "Non hai abbastanza dati"
891
+
892
  #~ msgid "'bad', 'poor', 'ok', 'good', 'super'"
893
  #~ msgstr "'pessimo', 'scarso', 'ok', 'buono', 'super'"
894
 
lib/yasr-ajax-functions.php CHANGED
@@ -1174,15 +1174,27 @@ add_action( 'wp_ajax_yasr_change_log_page', 'yasr_change_log_page_callback' );
1174
  $rating = $_POST['rating'];
1175
  $post_id = $_POST['post_id'];
1176
  $size = $_POST['size'];
1177
- $average_rating= $_POST['votes'];
1178
- $number_of_votes = $_POST['votes_number'];
1179
  }
1180
  else {
1181
  exit();
1182
  }
1183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1184
 
1185
- //Check if user specifyed a custom text to display when a vistor har rated
1186
 
1187
  if( YASR_TEXT_BEFORE_STARS == 1 && YASR_CUSTOM_TEXT_USER_VOTED != '' ) {
1188
 
@@ -1234,6 +1246,7 @@ add_action( 'wp_ajax_yasr_change_log_page', 'yasr_change_log_page_callback' );
1234
  $query_result_most_rated = $wpdb->get_results("SELECT post_id, number_of_votes, sum_votes
1235
  FROM " . YASR_VOTES_TABLE . ", $wpdb->posts AS p
1236
  WHERE post_id = p.ID
 
1237
  AND p.post_status = 'publish'
1238
  ORDER BY number_of_votes DESC, sum_votes DESC LIMIT 10");
1239
 
@@ -1280,6 +1293,11 @@ add_action( 'wp_ajax_yasr_change_log_page', 'yasr_change_log_page_callback' );
1280
 
1281
  } //End if $query_result_most_rated)
1282
 
 
 
 
 
 
1283
 
1284
  if ($query_result_highest) {
1285
 
@@ -1312,6 +1330,11 @@ add_action( 'wp_ajax_yasr_change_log_page', 'yasr_change_log_page_callback' );
1312
  echo "</table>";
1313
 
1314
  } //end if $query_result
 
 
 
 
 
1315
 
1316
  die();
1317
 
1174
  $rating = $_POST['rating'];
1175
  $post_id = $_POST['post_id'];
1176
  $size = $_POST['size'];
 
 
1177
  }
1178
  else {
1179
  exit();
1180
  }
1181
 
1182
+ global $wpdb;
1183
+
1184
+ //I don't use yasr_get_visitor_votes here because the get_the_id function doesn't work in ajax
1185
+ $array_votes=$wpdb->get_results("SELECT number_of_votes, sum_votes FROM " . YASR_VOTES_TABLE . " WHERE post_id=$post_id");
1186
+
1187
+ foreach ($array_votes as $vote) {
1188
+ $number_of_votes = $vote->number_of_votes;
1189
+ $sum_votes = $vote->sum_votes;
1190
+ }
1191
+
1192
+ $average_rating = $sum_votes/$number_of_votes;
1193
+
1194
+ $average_rating = round ($average_rating, 1);
1195
+
1196
 
1197
+ //Check if user specifyed a custom text to display when a vistor has rated
1198
 
1199
  if( YASR_TEXT_BEFORE_STARS == 1 && YASR_CUSTOM_TEXT_USER_VOTED != '' ) {
1200
 
1246
  $query_result_most_rated = $wpdb->get_results("SELECT post_id, number_of_votes, sum_votes
1247
  FROM " . YASR_VOTES_TABLE . ", $wpdb->posts AS p
1248
  WHERE post_id = p.ID
1249
+ AND number_of_votes >= 1
1250
  AND p.post_status = 'publish'
1251
  ORDER BY number_of_votes DESC, sum_votes DESC LIMIT 10");
1252
 
1293
 
1294
  } //End if $query_result_most_rated)
1295
 
1296
+ else {
1297
+ _e("You've not enought data","yasr");
1298
+ echo "<br />";
1299
+ }
1300
+
1301
 
1302
  if ($query_result_highest) {
1303
 
1330
  echo "</table>";
1331
 
1332
  } //end if $query_result
1333
+
1334
+ else {
1335
+ _e("You've not enought data","yasr");
1336
+ echo "<br />";
1337
+ }
1338
 
1339
  die();
1340
 
lib/yasr-db-functions.php CHANGED
@@ -89,6 +89,7 @@ function yasr_install() {
89
  $option['snippet'] = 'overall_rating';
90
  $option['allowed_user'] = 'allow_anonymous';
91
  $option['scheme_color'] = 'light';
 
92
 
93
  add_option("yasr_general_options", $option); //Write here the default value if there is not option
94
 
@@ -99,10 +100,22 @@ function yasr_install() {
99
 
100
  /****** Get overall rating from yasr_votes table
101
  used in yasr_add_filter_for_schema() and yasr_get_id_value_callback() ******/
102
- function yasr_get_overall_rating() {
103
  global $wpdb;
104
 
105
- $post_id=get_the_ID();
 
 
 
 
 
 
 
 
 
 
 
 
106
 
107
  $result=$wpdb->get_results("SELECT overall_rating FROM " . YASR_VOTES_TABLE . " WHERE post_id=$post_id");
108
 
@@ -299,37 +312,41 @@ add_action( 'plugins_loaded', 'add_action_dashboard_widget_log' );
299
 
300
  <script type="text/javascript">
301
 
302
- //Log
303
- jQuery('.yasr-log-pagenum').on('click', function() {
 
 
304
 
305
- jQuery('#yasr-loader-log-metabox').show();
 
 
 
 
306
 
307
- var data = {
308
- action : 'yasr_change_log_page',
309
- pagenum: jQuery(this).val(),
310
 
311
- };
 
 
 
312
 
313
- jQuery.post(ajaxurl, data, function(response) {
314
- jQuery('#yasr-loader-log-metabox').hide();
315
- jQuery('#yasr-log-container').html(response);
316
  });
317
 
318
- });
319
 
320
- jQuery(document).ajaxComplete(function() {
321
 
322
- jQuery('.yasr-log-page-num').on('click', function() {
323
 
324
- jQuery('#yasr-loader-log-metabox').show();
 
 
 
325
 
326
- var data = {
327
- action : 'yasr_change_log_page',
328
- pagenum: jQuery(this).val(),
329
- };
330
 
331
- jQuery.post(ajaxurl, data, function(response) {
332
- jQuery('#yasr-log-container').html(response); //This will hide the loader gif too
333
  });
334
 
335
  });
89
  $option['snippet'] = 'overall_rating';
90
  $option['allowed_user'] = 'allow_anonymous';
91
  $option['scheme_color'] = 'light';
92
+ $option['metabox_overall_rating'] = 'stars'; //This is not in settings page but in overall rating metabox
93
 
94
  add_option("yasr_general_options", $option); //Write here the default value if there is not option
95
 
100
 
101
  /****** Get overall rating from yasr_votes table
102
  used in yasr_add_filter_for_schema() and yasr_get_id_value_callback() ******/
103
+ function yasr_get_overall_rating($post_id_referenced=FALSE) {
104
  global $wpdb;
105
 
106
+ //if values it's not passed get the post id, most of cases and default one
107
+ if(!$post_id_referenced) {
108
+
109
+ $post_id=get_the_ID();
110
+
111
+ }
112
+
113
+ //referenced is necessary for ajax calls
114
+ else {
115
+
116
+ $post_id = $post_id_referenced;
117
+
118
+ }
119
 
120
  $result=$wpdb->get_results("SELECT overall_rating FROM " . YASR_VOTES_TABLE . " WHERE post_id=$post_id");
121
 
312
 
313
  <script type="text/javascript">
314
 
315
+ jQuery(document).ready(function() {
316
+
317
+ //Log
318
+ jQuery('.yasr-log-pagenum').on('click', function() {
319
 
320
+ jQuery('#yasr-loader-log-metabox').show();
321
+
322
+ var data = {
323
+ action : 'yasr_change_log_page',
324
+ pagenum: jQuery(this).val(),
325
 
326
+ };
 
 
327
 
328
+ jQuery.post(ajaxurl, data, function(response) {
329
+ jQuery('#yasr-loader-log-metabox').hide();
330
+ jQuery('#yasr-log-container').html(response);
331
+ });
332
 
 
 
 
333
  });
334
 
335
+ jQuery(document).ajaxComplete(function() {
336
 
337
+ jQuery('.yasr-log-page-num').on('click', function() {
338
 
339
+ jQuery('#yasr-loader-log-metabox').show();
340
 
341
+ var data = {
342
+ action : 'yasr_change_log_page',
343
+ pagenum: jQuery(this).val(),
344
+ };
345
 
346
+ jQuery.post(ajaxurl, data, function(response) {
347
+ jQuery('#yasr-log-container').html(response); //This will hide the loader gif too
348
+ });
 
349
 
 
 
350
  });
351
 
352
  });
lib/yasr-settings-functions.php CHANGED
@@ -36,6 +36,7 @@
36
  add_settings_field( 'yasr_color_scheme', __('Which color scheme do you want to use?', 'yasr') , 'yasr_color_scheme_callback', 'yasr_general_settings_tab', 'yasr_general_options_section_id', $option);
37
  add_settings_field( 'yasr_allow_only_logged_in_id', __('Allow only logged in user to vote?', 'yasr'), 'yasr_allow_only_logged_in_callback', 'yasr_general_settings_tab', 'yasr_general_options_section_id', $option );
38
  add_settings_field( 'yasr_choose_snippet_id', __('Which rich snippets do you want to use?', 'yasr'), 'yasr_choose_snippet_callback', 'yasr_general_settings_tab', 'yasr_general_options_section_id', $option );
 
39
 
40
  }
41
 
@@ -164,7 +165,7 @@
164
  <hr />
165
 
166
 
167
- <?php
168
  } //End yasr_auto_insert_callback
169
 
170
 
@@ -207,17 +208,17 @@
207
 
208
  <br /> <br />
209
 
210
- <input type='text' name='yasr_general_options[text_before_overall]' class='yasr-general-options-text-before' value='<?php echo ("$option[text_before_overall]"); ?>' maxlength="40"/>
211
  <?php _e('Custom text to display before Overall Rating', 'yasr')?>
212
 
213
  <br /> <br />
214
 
215
- <input type='text' name='yasr_general_options[text_before_visitor_rating]' class='yasr-general-options-text-before' value='<?php echo ("$option[text_before_visitor_rating]"); ?>' maxlength="40"/>
216
  <?php _e('Custom text to display before Visitor Rating', 'yasr')?>
217
 
218
  <br /> <br />
219
 
220
- <input type='text' name='yasr_general_options[custom_text_user_voted]' class='yasr-general-options-text-before' value='<?php echo ("$option[custom_text_user_voted]"); ?>' maxlength="60"/>
221
  <?php _e('Custom text to display when a non logged user has already rated', 'yasr')?>
222
 
223
 
@@ -283,7 +284,7 @@
283
 
284
  <hr>
285
 
286
- <?php
287
 
288
  } //End function
289
 
@@ -317,10 +318,26 @@
317
  ?>
318
  </div>
319
 
320
- <?php
321
 
322
  } //End function yasr_choose_snippet_callback
323
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
324
 
325
 
326
  /****** Create a form for settings page to create new multi set ******/
36
  add_settings_field( 'yasr_color_scheme', __('Which color scheme do you want to use?', 'yasr') , 'yasr_color_scheme_callback', 'yasr_general_settings_tab', 'yasr_general_options_section_id', $option);
37
  add_settings_field( 'yasr_allow_only_logged_in_id', __('Allow only logged in user to vote?', 'yasr'), 'yasr_allow_only_logged_in_callback', 'yasr_general_settings_tab', 'yasr_general_options_section_id', $option );
38
  add_settings_field( 'yasr_choose_snippet_id', __('Which rich snippets do you want to use?', 'yasr'), 'yasr_choose_snippet_callback', 'yasr_general_settings_tab', 'yasr_general_options_section_id', $option );
39
+ add_settings_field( 'yasr_choose_overall_rating_method', __('How do you want ro rate "Overall Rating"?', 'yasr'), 'yasr_choose_overall_rating_method_callback', 'yasr_general_settings_tab', 'yasr_general_options_section_id', $option );
40
 
41
  }
42
 
165
  <hr />
166
 
167
 
168
+ <?php
169
  } //End yasr_auto_insert_callback
170
 
171
 
208
 
209
  <br /> <br />
210
 
211
+ <input type='text' name='yasr_general_options[text_before_overall]' id="yasr-general-options-custom-text-before-overall" class='yasr-general-options-text-before' value='<?php echo ("$option[text_before_overall]"); ?>' maxlength="40"/>
212
  <?php _e('Custom text to display before Overall Rating', 'yasr')?>
213
 
214
  <br /> <br />
215
 
216
+ <input type='text' name='yasr_general_options[text_before_visitor_rating]' id="yasr-general-options-custom-text-before-visitor" class='yasr-general-options-text-before' value='<?php echo ("$option[text_before_visitor_rating]"); ?>' maxlength="40"/>
217
  <?php _e('Custom text to display before Visitor Rating', 'yasr')?>
218
 
219
  <br /> <br />
220
 
221
+ <input type='text' name='yasr_general_options[custom_text_user_voted]' id="yasr-general-options-custom-text-already-rated" class='yasr-general-options-text-before' value='<?php echo "$option[custom_text_user_voted]"; ?>' maxlength="60"/>
222
  <?php _e('Custom text to display when a non logged user has already rated', 'yasr')?>
223
 
224
 
284
 
285
  <hr>
286
 
287
+ <?php
288
 
289
  } //End function
290
 
318
  ?>
319
  </div>
320
 
321
+ <?php
322
 
323
  } //End function yasr_choose_snippet_callback
324
 
325
+ function yasr_choose_overall_rating_method_callback($option) {
326
+
327
+ ?>
328
+
329
+ <input type="radio" name="yasr_general_options[metabox_overall_rating]" value="stars" class="yasr_choose_overall_rating_method" <?php if ($option['metabox_overall_rating']==='stars') echo " checked=\"checked\" "; ?> >
330
+ <?php _e('Stars', 'yasr') ?>
331
+ <br />
332
+
333
+ <input type="radio" name="yasr_general_options[metabox_overall_rating]" value="numbers" class="yasr_choose_overall_rating_method" <?php if ($option['metabox_overall_rating']==='numbers') echo " checked=\"checked\" "; ?> >
334
+ <?php _e('Numbers', 'yasr')?>
335
+ <br />
336
+
337
+ <?php
338
+
339
+ }
340
+
341
 
342
 
343
  /****** Create a form for settings page to create new multi set ******/
lib/yasr-shortcode-functions.php CHANGED
@@ -215,6 +215,8 @@ function shortcode_visitor_votes_callback ($atts) {
215
  //else if is not logged can vote
216
  else {
217
 
 
 
218
  if ($votes_number>0) {
219
  $shortcode_html="<div id=\"yasr_visitor_votes\"><div class=\"$rateit_class\" id=\"yasr_rateit_visitor_votes\" data-rateit-starwidth=\"$px_size\" data-rateit-starheight=\"$px_size\" data-rateit-value=\"$medium_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"false\"></div>
220
  <span class=\"yasr-total-average-text-small\"> [" . __("Total: ", "yasr") . "$votes_number &nbsp; &nbsp;" . __("Average: ","yasr") . "$medium_rating/5]</span></div>";
@@ -249,6 +251,8 @@ function shortcode_visitor_votes_callback ($atts) {
249
 
250
  else {
251
 
 
 
252
  if ($votes_number>0) {
253
  $shortcode_html="<div id=\"yasr_visitor_votes\"><div class=\"$rateit_class\" id=\"yasr_rateit_visitor_votes\" data-rateit-starwidth=\"$px_size\" data-rateit-starheight=\"$px_size\" data-rateit-value=\"$medium_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"false\"></div>
254
  <span class=\"yasr-total-average-text-small\"> [" . __("Total: ", "yasr") . "$votes_number &nbsp; &nbsp;" . __("Average: ","yasr") . "$medium_rating/5]</span>
@@ -268,6 +272,7 @@ function shortcode_visitor_votes_callback ($atts) {
268
  //Else mean user is not logged in
269
  else {
270
 
 
271
 
272
  if ($votes_number>0) {
273
  $shortcode_html="<div id=\"yasr_visitor_votes\"><div class=\"$rateit_class\" id=\"yasr_rateit_visitor_votes\" data-rateit-starwidth=\"$px_size\" data-rateit-starheight=\"$px_size\" data-rateit-value=\"$medium_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>
@@ -297,7 +302,7 @@ function shortcode_visitor_votes_callback ($atts) {
297
 
298
  ?>
299
 
300
- <script>
301
  jQuery(document).ready(function() {
302
 
303
  var tooltipvalues = ['bad', 'poor', 'ok', 'good', 'super'];
@@ -312,32 +317,11 @@ function shortcode_visitor_votes_callback ($atts) {
312
  //json encode convert php type to javascript type
313
  var logged_user = <?php echo json_encode(is_user_logged_in()); ?>
314
 
315
- //On click Insert visitor votes
316
- jQuery('#yasr_rateit_visitor_votes').on('rated', function() {
317
- var el = jQuery(this);
318
- var value = el.rateit('value');
319
- var value = value.toFixed(1); //
320
-
321
- jQuery('#yasr_visitor_votes').html( ' <?php echo "$loader_html" ?> ');
322
-
323
- var data = {
324
- action: 'yasr_send_visitor_rating',
325
- rating: value,
326
- post_id: postid,
327
- size: size,
328
- nonce_visitor: "<?php echo "$ajax_nonce_visitor"; ?>"
329
- };
330
-
331
- //Send value to the Server
332
- jQuery.post(ajaxurl, data, function(response) {
333
- //response
334
- jQuery('#yasr_visitor_votes').html(response);
335
- jQuery('.rateit').rateit();
336
- //Create a cookie to disable double vote
337
- jQuery.cookie(cookiename, value, { expires : 360 });
338
- }) ;
339
- });
340
 
 
 
 
341
 
342
  //If user is not logged in
343
  if (! logged_user) {
@@ -364,13 +348,60 @@ function shortcode_visitor_votes_callback ($atts) {
364
 
365
  } //End if jquery cookie
366
 
367
- }
 
 
368
 
369
- //If a logged in user has already voted, he/she can update the vote
370
 
 
371
  else {
372
 
373
- jQuery('#yasr-rateit-visitor-votes-logged-rated').on('rated', function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
 
375
  var el = jQuery(this);
376
  var value = el.rateit('value');
@@ -379,12 +410,12 @@ function shortcode_visitor_votes_callback ($atts) {
379
  jQuery('#yasr_visitor_votes').html( ' <?php echo "$loader_html" ?> ');
380
 
381
  var data = {
382
- action: 'yasr_update_visitor_rating',
383
- rating: value,
384
- post_id: postid,
385
- size: size,
386
- nonce_visitor: "<?php echo "$ajax_nonce_visitor"; ?>"
387
- };
388
 
389
  //Send value to the Server
390
  jQuery.post(ajaxurl, data, function(response) {
@@ -393,11 +424,9 @@ function shortcode_visitor_votes_callback ($atts) {
393
  jQuery('.rateit').rateit();
394
  //Create a cookie to disable double vote
395
  jQuery.cookie(cookiename, value, { expires : 360 });
396
- }) ;
397
-
398
- });//End function update vote
399
-
400
- }
401
 
402
  });
403
 
215
  //else if is not logged can vote
216
  else {
217
 
218
+ $vote_if_user_already_rated = 0;
219
+
220
  if ($votes_number>0) {
221
  $shortcode_html="<div id=\"yasr_visitor_votes\"><div class=\"$rateit_class\" id=\"yasr_rateit_visitor_votes\" data-rateit-starwidth=\"$px_size\" data-rateit-starheight=\"$px_size\" data-rateit-value=\"$medium_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"false\"></div>
222
  <span class=\"yasr-total-average-text-small\"> [" . __("Total: ", "yasr") . "$votes_number &nbsp; &nbsp;" . __("Average: ","yasr") . "$medium_rating/5]</span></div>";
251
 
252
  else {
253
 
254
+ $vote_if_user_already_rated = 0;
255
+
256
  if ($votes_number>0) {
257
  $shortcode_html="<div id=\"yasr_visitor_votes\"><div class=\"$rateit_class\" id=\"yasr_rateit_visitor_votes\" data-rateit-starwidth=\"$px_size\" data-rateit-starheight=\"$px_size\" data-rateit-value=\"$medium_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"false\"></div>
258
  <span class=\"yasr-total-average-text-small\"> [" . __("Total: ", "yasr") . "$votes_number &nbsp; &nbsp;" . __("Average: ","yasr") . "$medium_rating/5]</span>
272
  //Else mean user is not logged in
273
  else {
274
 
275
+ $vote_if_user_already_rated = 0;
276
 
277
  if ($votes_number>0) {
278
  $shortcode_html="<div id=\"yasr_visitor_votes\"><div class=\"$rateit_class\" id=\"yasr_rateit_visitor_votes\" data-rateit-starwidth=\"$px_size\" data-rateit-starheight=\"$px_size\" data-rateit-value=\"$medium_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>
302
 
303
  ?>
304
 
305
+ <script type="text/javascript">
306
  jQuery(document).ready(function() {
307
 
308
  var tooltipvalues = ['bad', 'poor', 'ok', 'good', 'super'];
317
  //json encode convert php type to javascript type
318
  var logged_user = <?php echo json_encode(is_user_logged_in()); ?>
319
 
320
+ var vote_if_user_already_rated = "<?php echo $vote_if_user_already_rated ?>";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
 
322
+ if (vote_if_user_already_rated == "0" ) {
323
+ vote_if_user_already_rated = false;
324
+ }
325
 
326
  //If user is not logged in
327
  if (! logged_user) {
348
 
349
  } //End if jquery cookie
350
 
351
+ else {
352
+ yasr_default_rating_shortcode ();
353
+ }
354
 
355
+ } //End if (!loggeduser)
356
 
357
+ //else, if is a logged in user
358
  else {
359
 
360
+ //Do this code only if he has rated yet
361
+ //Check if has cookie or vote in db
362
+ if (jQuery.cookie(cookiename) || vote_if_user_already_rated != '') {
363
+
364
+ jQuery('#yasr-rateit-visitor-votes-logged-rated').on('rated', function() {
365
+
366
+ var el = jQuery(this);
367
+ var value = el.rateit('value');
368
+ var value = value.toFixed(1); //
369
+
370
+ jQuery('#yasr_visitor_votes').html( ' <?php echo "$loader_html" ?> ');
371
+
372
+ var data = {
373
+ action: 'yasr_update_visitor_rating',
374
+ rating: value,
375
+ post_id: postid,
376
+ size: size,
377
+ nonce_visitor: "<?php echo "$ajax_nonce_visitor"; ?>"
378
+ };
379
+
380
+ //Send value to the Server
381
+ jQuery.post(ajaxurl, data, function(response) {
382
+ //response
383
+ jQuery('#yasr_visitor_votes').html(response);
384
+ jQuery('.rateit').rateit();
385
+ //Create a cookie to disable double vote
386
+ jQuery.cookie(cookiename, value, { expires : 360 });
387
+ }) ;
388
+
389
+ });//End function update vote
390
+
391
+ } //End if jquery cookie
392
+
393
+ else if (!jQuery.cookie(cookiename) && vote_if_user_already_rated == '') {
394
+
395
+ yasr_default_rating_shortcode ();
396
+
397
+ }
398
+
399
+ } //End else logged
400
+
401
+ function yasr_default_rating_shortcode () {
402
+
403
+ //On click Insert visitor votes
404
+ jQuery('#yasr_rateit_visitor_votes').on('rated', function() {
405
 
406
  var el = jQuery(this);
407
  var value = el.rateit('value');
410
  jQuery('#yasr_visitor_votes').html( ' <?php echo "$loader_html" ?> ');
411
 
412
  var data = {
413
+ action: 'yasr_send_visitor_rating',
414
+ rating: value,
415
+ post_id: postid,
416
+ size: size,
417
+ nonce_visitor: "<?php echo "$ajax_nonce_visitor"; ?>"
418
+ };
419
 
420
  //Send value to the Server
421
  jQuery.post(ajaxurl, data, function(response) {
424
  jQuery('.rateit').rateit();
425
  //Create a cookie to disable double vote
426
  jQuery.cookie(cookiename, value, { expires : 360 });
427
+ }) ;
428
+ });
429
+ } //End function default_rating_shortcode
 
 
430
 
431
  });
432
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
3
  Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post rating, posts, rate, rating, rating platform, rating system, ratings, review, reviews, rich snippets, seo, star, star rating, stars, vote, Votes, voting, voting contest, schema, serp
4
  Requires at least: 3.5
5
  Tested up to: 4.0
6
- Stable tag: 0.5.3
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -83,6 +83,11 @@ Of course not: you can easily add it on the visual editor just by clicking on th
83
 
84
  == Changelog ==
85
 
 
 
 
 
 
86
  = 0.5.3 =
87
  * Fixed a non closing div. This can cause problem when used in old template
88
 
3
  Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post rating, posts, rate, rating, rating platform, rating system, ratings, review, reviews, rich snippets, seo, star, star rating, stars, vote, Votes, voting, voting contest, schema, serp
4
  Requires at least: 3.5
5
  Tested up to: 4.0
6
+ Stable tag: 0.5.4
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
83
 
84
  == Changelog ==
85
 
86
+ = 0.5.4 =
87
+ * New feature: you can used numbers instead stars to insert the "overall rating" value. Just go in the setting and choose what you want to use
88
+ * Fixed a division by 0 warning while using [yasr_most_or_highest_rated_posts] : this happened when there wan't enought data to shows
89
+ * Many bux fix in [yasr_visitor_rating] : further this now it is faster
90
+
91
  = 0.5.3 =
92
  * Fixed a non closing div. This can cause problem when used in old template
93
 
yasr-metabox-overall-rating.php CHANGED
@@ -2,96 +2,282 @@
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
4
 
5
- $overall_rating=yasr_get_overall_rating();
 
 
6
 
7
  if (!$overall_rating) {
8
  $overall_rating = "-1";
9
  }
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ?>
12
 
13
- <span id="yasr_rateit_actual_overall_rating">
14
- <?php _e("Rate this article / item", "yasr"); ?>
15
- </span>
16
 
17
- <p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
- <div class="rateit bigstars" id="yasr_rateit_overall" data-rateit-starwidth="32" data-rateit-starheight="32" data-rateit-value="<?php echo $overall_rating ?>" data-rateit-step="0.1" data-rateit-resetable="true" data-rateit-readonly="false">
20
- </div>
 
 
21
 
22
- <div id="loader-overall-rating" style="display:none;" >&nbsp;<?php _e("Loading, please wait","yasr"); ?><img src="<?php echo YASR_IMG_DIR . "/loader.gif" ?>">
23
- </div>
24
 
25
- </p>
26
 
27
- <div>
28
 
29
- <span id="yasr_rateit_overall_value"></span>
30
-
31
- <?php
32
 
33
- //Show this message if auto insert is off or if auto insert is not set to show overall rating (so if it is set to visitor rating)
34
- if( YASR_AUTO_INSERT_ENABLED == 0 || (YASR_AUTO_INSERT_ENABLED == 1 && YASR_AUTO_INSERT_WHAT === 'visitor_rating') ) {
 
35
 
36
- echo "<div>";
37
- _e ("Remember to insert this shortcode <strong>[yasr_overall_rating]</strong> where you want to display this rating", "yasr");
38
- echo "</div>";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  }
41
 
42
- ?>
43
 
44
- </div>
45
 
46
- <?php
 
47
 
48
- $ajax_nonce_overall = wp_create_nonce( "yasr_nonce_insert_overall_rating" );
49
 
50
- ?>
51
- <script>
52
- jQuery(document).ready(function() {
53
-
54
- jQuery('#yasr_rateit_overall').on('rated', function() {
55
- jQuery('#loader-overall-rating').show();
56
- var el = jQuery(this);
57
- var postid = <?php the_ID(); ?>;
58
- var value = el.rateit('value');
59
- var value = value.toFixed(1); //
60
-
61
- var data = {
62
- action: 'yasr_send_overall_rating',
63
- nonce: "<?php echo "$ajax_nonce_overall"; ?>",
64
- rating: value,
65
- post_id: postid
66
- };
67
-
68
- //Send value to the Server
69
- jQuery.post(ajaxurl, data, function(response) {
70
- jQuery('#loader-overall-rating').hide();
71
- jQuery('#yasr_rateit_overall_value').text(response);
72
- }) ;
73
-
74
- });
75
-
76
- jQuery('#yasr_rateit_overall').on('reset', function() {
77
- jQuery('#loader-overall-rating').show();
78
- var el = jQuery(this);
79
- var postid = <?php the_ID(); ?>;
80
- var value = '-1';
81
-
82
- var data = {
83
- action: 'yasr_send_overall_rating',
84
- nonce: "<?php echo "$ajax_nonce_overall"; ?>",
85
- rating: value,
86
- post_id: postid
87
- };
88
-
89
- //Send value to the Server
90
- jQuery.post(ajaxurl, data, function(response) {
91
- jQuery('#loader-overall-rating').hide();
92
- jQuery('#yasr_rateit_overall_value').text(response);
93
- }) ;
94
- });
95
-
96
- });
97
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
4
 
5
+ $post_id=get_the_ID();
6
+
7
+ $overall_rating=yasr_get_overall_rating($post_id);
8
 
9
  if (!$overall_rating) {
10
  $overall_rating = "-1";
11
  }
12
 
13
+
14
+ //This is for the select
15
+ if($overall_rating != '-1') {
16
+ $overall_rating_array = explode(".", $overall_rating);
17
+ $int = $overall_rating_array[0];
18
+ $dec = $overall_rating_array[1];
19
+ }
20
+
21
+ else {
22
+ $int = 0;
23
+ $dec = 0;
24
+ }
25
+
26
+ $ajax_nonce_overall = wp_create_nonce( "yasr_nonce_insert_overall_rating" );
27
+
28
+ $ajax_nonce_switch = wp_create_nonce( "yasr_nonce_switch_overall_rating" );
29
+
30
  ?>
31
 
 
 
 
32
 
33
+ <div id="yasr-overall-container">
34
+
35
+
36
+ <?php
37
+
38
+ if (YASR_METABOX_OVERALL_RATING == 'stars') {
39
+
40
+ ?>
41
+
42
+ <div id="yasr-vote-overall-stars-container">
43
+
44
+ <div id="yasr-vote-overall-stars">
45
+
46
+ <span id="yasr-rateit-vote-overall-text">
47
+ <?php _e("Rate this article / item", "yasr"); ?>
48
+ </span>
49
+
50
+ <div class="rateit bigstars" id="yasr_rateit_overall" data-rateit-starwidth="32" data-rateit-starheight="32" data-rateit-value="<?php echo $overall_rating ?>" data-rateit-step="0.1" data-rateit-resetable="true" data-rateit-readonly="false">
51
+ </div>
52
+
53
+ <div id="loader-overall-rating" style="display:none;" >&nbsp;<?php _e("Loading, please wait","yasr"); ?><img src="<?php echo YASR_IMG_DIR . "/loader.gif" ?>">
54
+ </div>
55
+
56
+ </p>
57
+
58
+ <div>
59
+
60
+ <span id="yasr_rateit_overall_value"></span>
61
+
62
+ <?php
63
+
64
+ //Show this message if auto insert is off or if auto insert is not set to show overall rating (so if it is set to visitor rating)
65
+ if( YASR_AUTO_INSERT_ENABLED == 0 || (YASR_AUTO_INSERT_ENABLED == 1 && YASR_AUTO_INSERT_WHAT === 'visitor_rating') ) {
66
+
67
+ echo "<div>";
68
+ _e ("Remember to insert this shortcode <strong>[yasr_overall_rating]</strong> where you want to display this rating", "yasr");
69
+ echo "</div>";
70
+
71
+ }
72
+
73
+ ?>
74
+
75
+ </div>
76
+
77
+ </div>
78
+
79
+ </div> <!--End stars container-->
80
+
81
+ <?php
82
+
83
+ } //End if (YASR_METABOX_OVERALL_RATING == 'stars') {
84
+
85
+ if (YASR_METABOX_OVERALL_RATING == 'numbers') {
86
+
87
+ ?>
88
+
89
+ <div id="yasr-vote-with-numbers-container">
90
+
91
+ <div id="yasr-vote-with-numbers" >
92
+
93
+ <span id="yasr-rateit-vote-overall-text">
94
+ <?php _e("Rate this article / item", "yasr"); ?>
95
+ </span>
96
+
97
+ <div id="yasr-vote-with-numbers-select-container">
98
+
99
+ <select name="yasr-vote-overall-numbers-int" id="yasr-vote-overall-numbers-int" class="yasr-vote-overall-numbers">
100
+
101
+ <?php
102
+
103
+ for ($i=0; $i<=5; $i++) {
104
+
105
+ if ($i == $int) {
106
+ echo "<option value=\"$i\" selected=\"selected\">$i</option>\n";
107
+ }
108
+
109
+ else {
110
+ echo "<option value=\"$i\">$i</option>\n";
111
+ }
112
+ }
113
+
114
+ ?>
115
+
116
+ </select>
117
+
118
+ <span id="yasr-comma-between-select">,</span>
119
+
120
+ <select name="yasr-vote-overall-numbers-dec" id="yasr-vote-overall-numbers-dec" class="yasr-vote-overall-numbers">
121
+
122
+ <?php
123
+
124
+ for ($i=0; $i<=9; $i++) {
125
+ if ($i == $dec) {
126
+ echo "<option value=\"$i\" selected=\"selected\">$i</option>\n";
127
+ }
128
 
129
+ else {
130
+ echo "<option value=\"$i\">$i</option>\n";
131
+ }
132
+ }
133
 
134
+ ?>
 
135
 
136
+ </select>
137
 
138
+ </div>
139
 
140
+ <p>
 
 
141
 
142
+ <div>
143
+
144
+ <?php
145
 
146
+ //Show this message if auto insert is off or if auto insert is not set to show overall rating (so if it is set to visitor rating)
147
+ if( YASR_AUTO_INSERT_ENABLED == 0 || (YASR_AUTO_INSERT_ENABLED == 1 && YASR_AUTO_INSERT_WHAT === 'visitor_rating') ) {
148
+
149
+ echo "<div>";
150
+ _e ("Remember to insert this shortcode <strong>[yasr_overall_rating]</strong> where you want to display this rating", "yasr");
151
+ echo "</div>";
152
+
153
+ }
154
+
155
+ ?>
156
+
157
+ </div>
158
+
159
+ <button href="#" class="button-delete" id="yasr-send-overall-numbers"><?php _e('Save Vote', 'yasr'); ?></button>
160
+
161
+ <p>
162
+
163
+ <span id="yasr-overall-numbers-saved-confirm"></span>
164
+
165
+ </div>
166
+
167
+ </div> <!--End numbers container-->
168
+
169
+ <?php
170
 
171
  }
172
 
173
+ ?>
174
 
175
+ </div>
176
 
177
+ <!--Switcher-->
178
+ <script type="text/javascript">
179
 
180
+ jQuery(document).ready(function() {
181
 
182
+ var defaultbox = "<?php echo YASR_METABOX_OVERALL_RATING ?>";
183
+
184
+ yasr_display_metabox(defaultbox);
185
+
186
+ function yasr_display_metabox(defaultbox) {
187
+
188
+ if (defaultbox == 'stars' ) {
189
+
190
+ yasr_print_event_send_overall_with_stars();
191
+
192
+ } //end if if (defaultbox == 'stars' )
193
+
194
+ else if (defaultbox == 'numbers') {
195
+
196
+ yasr_print_event_send_overall_with_numbers();
197
+
198
+ } //End else if (defaultbox == 'numbers')
199
+
200
+ } //End function yasr_display_metabox*/
201
+
202
+
203
+ //This is for the stars
204
+ function yasr_print_event_send_overall_with_stars() {
205
+
206
+ jQuery('#yasr_rateit_overall').on('rated', function() {
207
+ jQuery('#loader-overall-rating').show();
208
+ var el = jQuery(this);
209
+ var postid = <?php the_ID(); ?>;
210
+ var value = el.rateit('value');
211
+ var value = value.toFixed(1); //
212
+
213
+ var data = {
214
+ action: 'yasr_send_overall_rating',
215
+ nonce: "<?php echo "$ajax_nonce_overall"; ?>",
216
+ rating: value,
217
+ post_id: postid
218
+ };
219
+
220
+ //Send value to the Server
221
+ jQuery.post(ajaxurl, data, function(response) {
222
+ jQuery('#loader-overall-rating').hide();
223
+ jQuery('#yasr_rateit_overall_value').text(response);
224
+ }) ;
225
+
226
+ });
227
+
228
+ jQuery('#yasr_rateit_overall').on('reset', function() {
229
+ jQuery('#loader-overall-rating').show();
230
+ var el = jQuery(this);
231
+ var postid = <?php the_ID(); ?>;
232
+ var value = '-1';
233
+
234
+ var data = {
235
+ action: 'yasr_send_overall_rating',
236
+ nonce: "<?php echo "$ajax_nonce_overall"; ?>",
237
+ rating: value,
238
+ post_id: postid
239
+ };
240
+
241
+ //Send value to the Server
242
+ jQuery.post(ajaxurl, data, function(response) {
243
+ jQuery('#loader-overall-rating').hide();
244
+ jQuery('#yasr_rateit_overall_value').text(response);
245
+ }) ;
246
+
247
+ });
248
+
249
+ }
250
+
251
+ //This is for the numbers
252
+ function yasr_print_event_send_overall_with_numbers() {
253
+
254
+ jQuery('#yasr-send-overall-numbers').on('click', function() {
255
+
256
+ var integer = jQuery('#yasr-vote-overall-numbers-int').val();
257
+
258
+ var decimal = jQuery('#yasr-vote-overall-numbers-dec').val();
259
+
260
+ var value = integer + "." + decimal;
261
+
262
+ var data = {
263
+ action: 'yasr_send_overall_rating',
264
+ nonce: "<?php echo "$ajax_nonce_overall"; ?>",
265
+ rating: value,
266
+ post_id: <?php the_ID(); ?>
267
+ };
268
+
269
+ //Send value to the Server
270
+ jQuery.post(ajaxurl, data, function(response) {
271
+ jQuery('#yasr-overall-numbers-saved-confirm').text(response);
272
+ }) ;
273
+
274
+ return false;
275
+ preventDefault(); // same thing as above
276
+
277
+ });
278
+
279
+ }
280
+
281
+ }); //End document ready
282
+
283
+ </script>
yasr-settings-page.php CHANGED
@@ -344,6 +344,9 @@ $n_multi_set = NULL;
344
 
345
  jQuery('#yasr_text_before_star_on').on('click', function(){
346
  jQuery('.yasr-general-options-text-before').prop('disabled', false);
 
 
 
347
  });
348
 
349
  jQuery('#yasr_text_before_star_off').on('click', function(){
344
 
345
  jQuery('#yasr_text_before_star_on').on('click', function(){
346
  jQuery('.yasr-general-options-text-before').prop('disabled', false);
347
+ jQuery('#yasr-general-options-custom-text-before-overall').val('Our Score');
348
+ jQuery('#yasr-general-options-custom-text-before-visitor').val('Our Reader Score');
349
+ jQuery('#yasr-general-options-custom-text-already-rated').val('You cannot vote again');
350
  });
351
 
352
  jQuery('#yasr_text_before_star_off').on('click', function(){
yet-another-stars-rating.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Yet Another Stars Rating
4
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
5
  * Description: Rating system with rich snippets
6
- * Version: 0.5.3
7
  * Author: Dario Curvino
8
  * Author URI: http://profiles.wordpress.org/dudo/
9
  * License: GPL2
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
28
  */
29
 
30
 
31
- define('YASR_VERSION_NUM', '0.5.3');
32
 
33
  //Plugin absolute path
34
  define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
@@ -85,6 +85,7 @@ define ("YASR_LOG_TABLE", $wpdb->prefix . 'yasr_log');
85
 
86
  define ("YASR_LOADER_IMAGE", YASR_IMG_DIR . "/loader.gif");
87
 
 
88
  if ($version_installed && $version_installed < '0.4.1') {
89
 
90
  $option = get_option( 'yasr_general_options' );
@@ -95,6 +96,7 @@ if ($version_installed && $version_installed < '0.4.1') {
95
 
96
  }
97
 
 
98
  if ($version_installed && $version_installed < '0.5.0') {
99
 
100
  $option = get_option( 'yasr_general_options' );
@@ -105,6 +107,17 @@ if ($version_installed && $version_installed < '0.5.0') {
105
 
106
  }
107
 
 
 
 
 
 
 
 
 
 
 
 
108
  if ($version_installed != YASR_VERSION_NUM) {
109
 
110
  update_option('yasr-version', YASR_VERSION_NUM);
@@ -164,4 +177,7 @@ else {
164
 
165
  }
166
 
 
 
 
167
  ?>
3
  * Plugin Name: Yet Another Stars Rating
4
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
5
  * Description: Rating system with rich snippets
6
+ * Version: 0.5.4
7
  * Author: Dario Curvino
8
  * Author URI: http://profiles.wordpress.org/dudo/
9
  * License: GPL2
28
  */
29
 
30
 
31
+ define('YASR_VERSION_NUM', '0.5.4');
32
 
33
  //Plugin absolute path
34
  define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
85
 
86
  define ("YASR_LOADER_IMAGE", YASR_IMG_DIR . "/loader.gif");
87
 
88
+ //remove end of september
89
  if ($version_installed && $version_installed < '0.4.1') {
90
 
91
  $option = get_option( 'yasr_general_options' );
96
 
97
  }
98
 
99
+ //remove mid november
100
  if ($version_installed && $version_installed < '0.5.0') {
101
 
102
  $option = get_option( 'yasr_general_options' );
107
 
108
  }
109
 
110
+ //remove end november
111
+ if ($version_installed && $version_installed < '0.5.4') {
112
+
113
+ $option = get_option( 'yasr_general_options' );
114
+
115
+ $option['metabox_overall_rating'] = 'stars';
116
+
117
+ update_option("yasr_general_options", $option);
118
+
119
+ }
120
+
121
  if ($version_installed != YASR_VERSION_NUM) {
122
 
123
  update_option('yasr-version', YASR_VERSION_NUM);
177
 
178
  }
179
 
180
+ define ("YASR_METABOX_OVERALL_RATING", $stored_options['metabox_overall_rating']);
181
+
182
+
183
  ?>