Wp-Pro-Quiz - Version 0.15

Version Description

  • Typo corrected
  • Adjustment of admin template
  • Internal changes
  • Capability added
  • Support for BuddyPress achievements added
  • Support for "User Role Editor" etc. added
  • Statistic function expanded
  • Points now can be entered per correct answer instead of correct question
  • Translation for Russian have been added (Thanks Sergei B.)
  • Translation for Swedish have been added (Thanks Martin J.)
Download this release

Release Info

Developer xeno010
Plugin Icon 128x128 Wp-Pro-Quiz
Version 0.15
Comparing to
See all releases

Code changes from version 0.14 to 0.15

Files changed (44) hide show
  1. css/wpProQuiz_front.css +1 -0
  2. css/wpProQuiz_front.min.css +1 -1
  3. js/wpProQuiz_admin.js +150 -9
  4. js/wpProQuiz_admin.min.js +32 -26
  5. js/wpProQuiz_front.js +51 -8
  6. js/wpProQuiz_front.min.js +23 -22
  7. languages/wp-pro-quiz-ar.mo +0 -0
  8. languages/wp-pro-quiz-ar.po +257 -170
  9. languages/wp-pro-quiz-de_DE.mo +0 -0
  10. languages/wp-pro-quiz-de_DE.po +261 -170
  11. languages/wp-pro-quiz-ru_RU.mo +0 -0
  12. languages/wp-pro-quiz-ru_RU.po +1172 -0
  13. languages/wp-pro-quiz-sv_SE.mo +0 -0
  14. languages/wp-pro-quiz-sv_SE.po +1171 -0
  15. lib/controller/WpProQuiz_Controller_Admin.php +4 -77
  16. lib/controller/WpProQuiz_Controller_Front.php +6 -38
  17. lib/controller/WpProQuiz_Controller_GlobalSettings.php +5 -0
  18. lib/controller/WpProQuiz_Controller_ImportExport.php +9 -0
  19. lib/controller/WpProQuiz_Controller_Preview.php +2 -11
  20. lib/controller/WpProQuiz_Controller_Question.php +77 -2
  21. lib/controller/WpProQuiz_Controller_Quiz.php +29 -0
  22. lib/controller/WpProQuiz_Controller_Statistics.php +80 -11
  23. lib/controller/WpProQuiz_Controller_StyleManager.php +1 -3
  24. lib/helper/WpProQuiz_Helper_DbUpgrade.php +26 -1
  25. lib/helper/WpProQuiz_Helper_Export.php +1 -2
  26. lib/helper/WpProQuiz_Helper_Import.php +7 -2
  27. lib/helper/WpProQuiz_Helper_Upgrade.php +54 -0
  28. lib/model/WpProQuiz_Model_GlobalSettings.php +10 -0
  29. lib/model/WpProQuiz_Model_GlobalSettingsMapper.php +7 -1
  30. lib/model/WpProQuiz_Model_Question.php +46 -32
  31. lib/model/WpProQuiz_Model_QuestionMapper.php +11 -4
  32. lib/model/WpProQuiz_Model_Statistic.php +50 -10
  33. lib/model/WpProQuiz_Model_StatisticMapper.php +61 -4
  34. lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php +58 -0
  35. lib/view/WpProQuiz_View_FrontQuiz.php +29 -2
  36. lib/view/WpProQuiz_View_GobalSettings.php +25 -0
  37. lib/view/WpProQuiz_View_QuestionEdit.php +36 -16
  38. lib/view/WpProQuiz_View_QuestionOverall.php +27 -4
  39. lib/view/WpProQuiz_View_QuizEdit.php +4 -4
  40. lib/view/WpProQuiz_View_QuizOverall.php +12 -0
  41. lib/view/WpProQuiz_View_Statistics.php +84 -7
  42. readme.txt +20 -14
  43. uninstall.php +2 -1
  44. wp-pro-quiz.php +71 -11
css/wpProQuiz_front.css CHANGED
@@ -29,6 +29,7 @@
29
  border: 1px solid #13455B !important;
30
  box-shadow: 1px 1px 1px #333 !important;
31
  text-shadow: none !important;
 
32
  }
33
 
34
  .wpProQuiz_question_page {
29
  border: 1px solid #13455B !important;
30
  box-shadow: 1px 1px 1px #333 !important;
31
  text-shadow: none !important;
32
+ filter: none !important;
33
  }
34
 
35
  .wpProQuiz_question_page {
css/wpProQuiz_front.min.css CHANGED
@@ -1 +1 @@
1
- .wpProQuiz_answerCorrect{background:#6DB46D!important;font-weight:700!important;}.wpProQuiz_answerCorrect label{font-weight:700!important;}.wpProQuiz_answerIncorrect{background:#FF9191!important;font-weight:700!important;}.wpProQuiz_content{margin-top:10px!important;margin-bottom:10px!important;}.wpProQuiz_content h2{margin-bottom:10px!important;}.wpProQuiz_content input[type=button],.wpProQuiz_content input[type=button]:hover{margin:0!important;padding:5px 10px!important;background:#13455B!important;border-radius:11px!important;color:#FFF!important;font-weight:700!important;border:1px solid #13455B!important;box-shadow:1px 1px 1px #333!important;text-shadow:none!important;}.wpProQuiz_question_page{margin-bottom:10px!important;}.wpProQuiz_question_page span{font-weight:700!important;}.wpProQuiz_questionListItem{padding:3px!important;margin-bottom:5px!important;background-image:none!important;margin-left:0!important;list-style:none!important;}.wpProQuiz_questionListItem > table{border-collapse:collapse!important;margin:0!important;padding:0!important;width:100%;}.wpProQuiz_questionListItem:last-child{padding:3px!important;margin-bottom:0!important;}.wpProQuiz_list,.wpProQuiz_listItem,.wpProQuiz_questionList,.wpProQuiz_sortStringList,.wpProQuiz_sortStringList,.wpProQuiz_maxtrixSortCriterion,.wpProQuiz_resultsList{list-style:none!important;padding:0!important;margin:0!important;}.wpProQuiz_questionList{margin-bottom:10px!important;background:#F8FAF5!important;border:1px solid #C3D1A3!important;padding:5px!important;list-style:none!important;}.wpProQuiz_listItem{position:relative!important;}.wpProQuiz_response{background:#F8FAF5!important;border:1px solid #C4C4C4!important;padding:5px!important;margin-bottom:15px!important;box-shadow:1px 1px 2px #AAA!important;}.wpProQuiz_response span{font-weight:700!important;}.wpProQuiz_sort{width:25px!important;}.wpProQuiz_results h3{margin-bottom:10px!important;}.wpProQuiz_sort_correct_answer{font-weight:700!important;margin-right:5px!important;display:none!important;}.wpProQuiz_sortable,.wpProQuiz_sortStringItem{padding:5px!important;border:1px solid #D3D3D3!important;box-shadow:2px 2px 1px #EEE;background-color:#F8FAF5!important;cursor:move;}.wpProQuiz_time_limit .time{font-weight:700!important;margin-top:5px!important;margin-bottom:5px!important;}.wpProQuiz_time_limit .progress{height:10px!important;background-color:blue!important;margin-bottom:5px!important;}.wpProQuiz_time_limit_expired{font-weight:700!important;font-size:15px!important;text-align:center!important;}.wpProQuiz_question_text{margin-bottom:10px!important;}.wpProQuiz_tipp{padding:10px!important;background-color:#DDECFF!important;border:1px dotted #363636!important;border-radius:10px!important;position:absolute!important;bottom:35px!important;left:5px!important;right:5px!important;box-shadow:2px 2px 5px 0 #313131!important;z-index:99999!important;}.wpProQuiz_matrixSortString,.wpProQuiz_matrixSortString > h3{margin-bottom:10px!important;margin-top:0!important;}.wpProQuiz_matrixSortString{background:#F8FAF5!important;border:1px solid #C3D1A3!important;padding:5px!important;}.wpProQuiz_sortStringList{padding:10px!important;}.wpProQuiz_sortStringList > li{float:left!important;margin-left:5px!important;margin-right:5px!important;margin-bottom:5px!important;}.wpProQuiz_sortStringItem{margin:0!important;background-image:none!important;list-style:none!important;}.wpProQuiz_maxtrixSortCriterion{padding:5px!important;}.wpProQuiz_placehold{background-color:#FFFFC2!important;list-style:none!important;background-image:none!important;padding:5px!important;height:30px!important;min-width:50px!important;margin:0!important;}.wpProQuiz_maxtrixSortText{padding:5px!important;}.wpProQuiz_mextrixTr > td{border:1px solid #D1D1D1!important;padding:5px!important;vertical-align:middle!important;}.wpProQuiz_points{font-weight:700!important;text-align:center!important;margin-bottom:20px!important;}.wpProQuiz_cloze input{background:transparent;border:0!important;border-bottom:1px solid!important;height:18px!important;margin:0!important;padding:0 4px!important;color:#000!important;border-radius:0!important;box-shadow:0 0!important;}.wpProQuiz_cloze input:focus{outline:none!important;}.wpProQuiz_questionListItem input,.wpProQuiz_questionListItem label{margin:0!important;font-weight:400;}.wpProQuiz_resultsList > li{background-image:none!important;padding:0!important;margin:0!important;}.wpProQuiz_lock{border:1px dotted #FFC3C3!important;background-color:#FFF7F7!important;}.wpProQuiz_lock p{margin:20px!important;}
1
+ .wpProQuiz_answerCorrect{background:#6DB46D!important;font-weight:700!important;}.wpProQuiz_answerCorrect label{font-weight:700!important;}.wpProQuiz_answerIncorrect{background:#FF9191!important;font-weight:700!important;}.wpProQuiz_content{margin-top:10px!important;margin-bottom:10px!important;}.wpProQuiz_content h2{margin-bottom:10px!important;}.wpProQuiz_content input[type=button],.wpProQuiz_content input[type=button]:hover{margin:0!important;padding:5px 10px!important;background:#13455B!important;border-radius:11px!important;color:#FFF!important;font-weight:700!important;border:1px solid #13455B!important;box-shadow:1px 1px 1px #333!important;text-shadow:none!important;filter:none!important;}.wpProQuiz_question_page{margin-bottom:10px!important;}.wpProQuiz_question_page span{font-weight:700!important;}.wpProQuiz_questionListItem{padding:3px!important;margin-bottom:5px!important;background-image:none!important;margin-left:0!important;list-style:none!important;}.wpProQuiz_questionListItem > table{border-collapse:collapse!important;margin:0!important;padding:0!important;width:100%;}.wpProQuiz_questionListItem:last-child{padding:3px!important;margin-bottom:0!important;}.wpProQuiz_list,.wpProQuiz_listItem,.wpProQuiz_questionList,.wpProQuiz_sortStringList,.wpProQuiz_sortStringList,.wpProQuiz_maxtrixSortCriterion,.wpProQuiz_resultsList{list-style:none!important;padding:0!important;margin:0!important;}.wpProQuiz_questionList{margin-bottom:10px!important;background:#F8FAF5!important;border:1px solid #C3D1A3!important;padding:5px!important;list-style:none!important;}.wpProQuiz_listItem{position:relative!important;}.wpProQuiz_response{background:#F8FAF5!important;border:1px solid #C4C4C4!important;padding:5px!important;margin-bottom:15px!important;box-shadow:1px 1px 2px #AAA!important;}.wpProQuiz_response span{font-weight:700!important;}.wpProQuiz_sort{width:25px!important;}.wpProQuiz_results h3{margin-bottom:10px!important;}.wpProQuiz_sort_correct_answer{font-weight:700!important;margin-right:5px!important;display:none!important;}.wpProQuiz_sortable,.wpProQuiz_sortStringItem{padding:5px!important;border:1px solid #D3D3D3!important;box-shadow:2px 2px 1px #EEE;background-color:#F8FAF5!important;cursor:move;}.wpProQuiz_time_limit .time{font-weight:700!important;margin-top:5px!important;margin-bottom:5px!important;}.wpProQuiz_time_limit .progress{height:10px!important;background-color:blue!important;margin-bottom:5px!important;}.wpProQuiz_time_limit_expired{font-weight:700!important;font-size:15px!important;text-align:center!important;}.wpProQuiz_question_text{margin-bottom:10px!important;}.wpProQuiz_tipp{padding:10px!important;background-color:#DDECFF!important;border:1px dotted #363636!important;border-radius:10px!important;position:absolute!important;bottom:35px!important;left:5px!important;right:5px!important;box-shadow:2px 2px 5px 0 #313131!important;z-index:99999!important;}.wpProQuiz_matrixSortString,.wpProQuiz_matrixSortString > h3{margin-bottom:10px!important;margin-top:0!important;}.wpProQuiz_matrixSortString{background:#F8FAF5!important;border:1px solid #C3D1A3!important;padding:5px!important;}.wpProQuiz_sortStringList{padding:10px!important;}.wpProQuiz_sortStringList > li{float:left!important;margin-left:5px!important;margin-right:5px!important;margin-bottom:5px!important;}.wpProQuiz_sortStringItem{margin:0!important;background-image:none!important;list-style:none!important;}.wpProQuiz_maxtrixSortCriterion{padding:5px!important;}.wpProQuiz_placehold{background-color:#FFFFC2!important;list-style:none!important;background-image:none!important;padding:5px!important;height:30px!important;min-width:50px!important;margin:0!important;}.wpProQuiz_maxtrixSortText{padding:5px!important;}.wpProQuiz_mextrixTr > td{border:1px solid #D1D1D1!important;padding:5px!important;vertical-align:middle!important;}.wpProQuiz_points{font-weight:700!important;text-align:center!important;margin-bottom:20px!important;}.wpProQuiz_cloze input{background:transparent;border:0!important;border-bottom:1px solid!important;height:18px!important;margin:0!important;padding:0 4px!important;color:#000!important;border-radius:0!important;box-shadow:0 0!important;}.wpProQuiz_cloze input:focus{outline:none!important;}.wpProQuiz_questionListItem input,.wpProQuiz_questionListItem label{margin:0!important;font-weight:400;}.wpProQuiz_resultsList > li{background-image:none!important;padding:0!important;margin:0!important;}.wpProQuiz_lock{border:1px dotted #FFC3C3!important;background-color:#FFF7F7!important;}.wpProQuiz_lock p{margin:20px!important;}
js/wpProQuiz_admin.js CHANGED
@@ -122,6 +122,7 @@ jQuery(document).ready(function($) {
122
  $('input[name="answerType"]:checked').click();
123
  $('#wpProQuiz_correctSameText').change();
124
  $('#wpProQuiz_tip').change();
 
125
  };
126
 
127
  var formListener = {
@@ -184,6 +185,14 @@ jQuery(document).ready(function($) {
184
  $('#wpProQuiz_tipBox').hide();
185
  });
186
 
 
 
 
 
 
 
 
 
187
  },
188
 
189
  displaySingle: function(type) {
@@ -700,6 +709,7 @@ jQuery(document).ready(function($) {
700
 
701
  $.fn.wpProQuiz_statistics = function() {
702
  var currectTab = 'wpProQuiz_typeAnonymeUser';
 
703
 
704
  var methode = {
705
  loadStatistics: function(userId) {
@@ -711,7 +721,7 @@ jQuery(document).ready(function($) {
711
  };
712
 
713
  $('#wpProQuiz_loadData').show();
714
- $('#wpProQuiz_statistics_content').hide();
715
 
716
  $.post(
717
  url,
@@ -727,10 +737,15 @@ jQuery(document).ready(function($) {
727
  var points = 0;
728
  var gPoints = 0;
729
 
 
 
 
 
730
  var setItem = function(i, j, r) {
731
- i.find('.wpProQuiz_cCorrect').text(j.cCorrect + ' (' + j.pCorrect + '%)');;
732
- i.find('.wpProQuiz_cIncorrect').text(j.cIncorrect + ' (' + j.pIncorrect + '%)');;
733
  i.find('.wpProQuiz_cTip').text(j.cTip);
 
734
 
735
  if(r == true) {
736
  if(gPoints > 0) {
@@ -741,8 +756,8 @@ jQuery(document).ready(function($) {
741
  $table.find('.wpProQuiz_cResult').text("0%");
742
  }
743
  } else {
744
- points += j.cCorrect * i.find('.wpProQuiz_points').text();
745
- gPoints += (j.cCorrect + j.cIncorrect )* i.find('.wpProQuiz_points').text();
746
  }
747
  };
748
 
@@ -755,7 +770,78 @@ jQuery(document).ready(function($) {
755
  setItem($table.find('tfoot'), json.global, true);
756
 
757
  $('#wpProQuiz_loadData').hide();
758
- $('#wpProQuiz_statistics_content').show();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
759
  },
760
 
761
  changeTab: function(id) {
@@ -766,7 +852,7 @@ jQuery(document).ready(function($) {
766
  } else if( id == 'wpProQuiz_typeAnonymeUser') {
767
  methode.loadStatistics(0);
768
  } else {
769
-
770
  }
771
  },
772
 
@@ -783,6 +869,25 @@ jQuery(document).ready(function($) {
783
  $.post(url, data, function(e) {
784
  methode.changeTab(currectTab);
785
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
786
  }
787
  };
788
 
@@ -812,7 +917,7 @@ jQuery(document).ready(function($) {
812
  methode.changeTab('wpProQuiz_typeRegisteredUser');
813
  });
814
 
815
- $('#wpProQuiz_update').click(function() {
816
  methode.changeTab(currectTab);
817
 
818
  return false;
@@ -830,7 +935,7 @@ jQuery(document).ready(function($) {
830
  return false;
831
  });
832
 
833
- $('#wpProQuiz_resetComplete').click(function() {
834
 
835
  var c =confirm(wpProQuizLocalize.reset_statistics_msg);
836
 
@@ -841,7 +946,43 @@ jQuery(document).ready(function($) {
841
  return false;
842
  });
843
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
844
 
 
 
 
 
 
 
845
 
846
  methode.changeTab('wpProQuiz_typeAnonymeUser');
847
  };
122
  $('input[name="answerType"]:checked').click();
123
  $('#wpProQuiz_correctSameText').change();
124
  $('#wpProQuiz_tip').change();
125
+ $('input[name="pointsPerAnswer"]').change();
126
  };
127
 
128
  var formListener = {
185
  $('#wpProQuiz_tipBox').hide();
186
  });
187
 
188
+ $('input[name="pointsPerAnswer"]').change(function() {
189
+ if(this.checked) {
190
+ $('#wpProQuiz_showPointsBox').show();
191
+ } else {
192
+ $('#wpProQuiz_showPointsBox').hide();
193
+ }
194
+ });
195
+
196
  },
197
 
198
  displaySingle: function(type) {
709
 
710
  $.fn.wpProQuiz_statistics = function() {
711
  var currectTab = 'wpProQuiz_typeAnonymeUser';
712
+ var changePageNav = true;
713
 
714
  var methode = {
715
  loadStatistics: function(userId) {
721
  };
722
 
723
  $('#wpProQuiz_loadData').show();
724
+ $('#wpProQuiz_statistics_content, #wpProQuiz_statistics_overview').hide();
725
 
726
  $.post(
727
  url,
737
  var points = 0;
738
  var gPoints = 0;
739
 
740
+ if(currectTab == 'wpProQuiz_typeOverview') {
741
+ return;
742
+ }
743
+
744
  var setItem = function(i, j, r) {
745
+ i.find('.wpProQuiz_cCorrect').text(j.cCorrect + ' (' + j.pCorrect + '%)');
746
+ i.find('.wpProQuiz_cIncorrect').text(j.cIncorrect + ' (' + j.pIncorrect + '%)');
747
  i.find('.wpProQuiz_cTip').text(j.cTip);
748
+ i.find('.wpProQuiz_cCorrectAnswerPoints').text(j.cCorrectAnswerPoints * i.find('.wpProQuiz_pointsAnswer').text());
749
 
750
  if(r == true) {
751
  if(gPoints > 0) {
756
  $table.find('.wpProQuiz_cResult').text("0%");
757
  }
758
  } else {
759
+ points += (j.cCorrectAnswerPoints * i.find('.wpProQuiz_pointsAnswer').text());
760
+ gPoints += (j.cCorrect + j.cIncorrect ) * i.find('.wpProQuiz_points').text();
761
  }
762
  };
763
 
770
  setItem($table.find('tfoot'), json.global, true);
771
 
772
  $('#wpProQuiz_loadData').hide();
773
+ $('#wpProQuiz_statistics_content, .wpProQuiz_statistics_table').show();
774
+ },
775
+
776
+ loadOverview: function() {
777
+ $('.wpProQuiz_statistics_table, #wpProQuiz_statistics_content, #wpProQuiz_statistics_overview').hide();
778
+ $('#wpProQuiz_loadData').show();
779
+
780
+ var location = window.location.pathname + window.location.search;
781
+ var url = location.replace('admin.php', 'admin-ajax.php') + '&action=load_statistics';
782
+ var data = {
783
+ action: 'wp_pro_quiz_load_statistics',
784
+ overview: true,
785
+ pageLimit: $('#wpProQuiz_pageLimit').val(),
786
+ onlyCompleted: Number($('#wpProQuiz_onlyCompleted').is(':checked')),
787
+ page: $('#wpProQuiz_currentPage').val(),
788
+ generatePageNav: Number(changePageNav)
789
+ };
790
+
791
+ $.post(
792
+ url,
793
+ data,
794
+ function(json) {
795
+ $('#wpProQuiz_statistics_overview_data').empty();
796
+
797
+ if(currectTab != 'wpProQuiz_typeOverview') {
798
+ return;
799
+ }
800
+
801
+ var item = $( '<tr>'
802
+ + '<th><a href="#">---</a></th>'
803
+ + '<th class="wpProQuiz_points">---</th>'
804
+ + '<th class="wpProQuiz_cCorrect" style="color: green;">---</th>'
805
+ + '<th class="wpProQuiz_cIncorrect" style="color: red;">---</th>'
806
+ + '<th class="wpProQuiz_cTip">---</th>'
807
+ + '<th class="wpProQuiz_cResult" style="font-weight: bold;">---</th>'
808
+ + '</tr>'
809
+ );
810
+
811
+ $.each(json.items, function(i, v) {
812
+ var d = item.clone();
813
+
814
+ d.find('a').text(v.userName).data('userId', v.userId).click(function() {
815
+ $('#userSelect').val($(this).data('userId'));
816
+
817
+ $('#wpProQuiz_typeRegisteredUser').click();
818
+
819
+ return false;
820
+ });
821
+
822
+ if(v.completed) {
823
+ d.find('.wpProQuiz_points').text(v.cPoints);
824
+ d.find('.wpProQuiz_cCorrect').text(v.cCorrect + ' (' + v.pCorrect + '%)');
825
+ d.find('.wpProQuiz_cIncorrect').text(v.cIncorrect + ' (' + v.pIncorrect + '%)');
826
+ d.find('.wpProQuiz_cTip').text(v.cTip);
827
+ d.find('.wpProQuiz_cResult').text((Math.round(v.cPoints / v.totalPoints * 100 * 100) / 100) + '%');
828
+ } else {
829
+ d.find('th').removeAttr('style');
830
+ }
831
+
832
+ $('#wpProQuiz_statistics_overview_data').append(d);
833
+ });
834
+
835
+ if(json.page != undefined) {
836
+ methode.setPageNav(json.page);
837
+ changePageNav = false;
838
+ }
839
+
840
+ $('#wpProQuiz_loadData').hide();
841
+ $('#wpProQuiz_statistics_overview').show();
842
+ },
843
+ 'json'
844
+ );
845
  },
846
 
847
  changeTab: function(id) {
852
  } else if( id == 'wpProQuiz_typeAnonymeUser') {
853
  methode.loadStatistics(0);
854
  } else {
855
+ methode.loadOverview();
856
  }
857
  },
858
 
869
  $.post(url, data, function(e) {
870
  methode.changeTab(currectTab);
871
  });
872
+ },
873
+
874
+ setPageNav: function(page) {
875
+ page = Math.ceil(page / $('#wpProQuiz_pageLimit').val());
876
+ $('#wpProQuiz_currentPage').empty();
877
+
878
+ for(var i = 1; i <= page; i++) {
879
+ $(document.createElement('option'))
880
+ .val(i)
881
+ .text(i)
882
+ .appendTo($('#wpProQuiz_currentPage'));
883
+ }
884
+
885
+ $('#wpProQuiz_pageLeft, #wpProQuiz_pageRight').hide();
886
+
887
+ if($('#wpProQuiz_currentPage option').length > 1) {
888
+ $('#wpProQuiz_pageRight').show();
889
+
890
+ }
891
  }
892
  };
893
 
917
  methode.changeTab('wpProQuiz_typeRegisteredUser');
918
  });
919
 
920
+ $('.wpProQuiz_update').click(function() {
921
  methode.changeTab(currectTab);
922
 
923
  return false;
935
  return false;
936
  });
937
 
938
+ $('.wpProQuiz_resetComplete').click(function() {
939
 
940
  var c =confirm(wpProQuizLocalize.reset_statistics_msg);
941
 
946
  return false;
947
  });
948
 
949
+ $('#wpProQuiz_pageLimit, #wpProQuiz_onlyCompleted').change(function() {
950
+ $('#wpProQuiz_currentPage').val(0);
951
+ changePageNav = true;
952
+ methode.changeTab(currectTab);
953
+
954
+ return false;
955
+ });
956
+
957
+ $('#wpProQuiz_currentPage').change(function() {
958
+ $('#wpProQuiz_pageLeft, #wpProQuiz_pageRight').hide();
959
+
960
+ if($('#wpProQuiz_currentPage option').length == 1) {
961
+
962
+ } else if($('#wpProQuiz_currentPage option:first-child:selected').length) {
963
+ $('#wpProQuiz_pageRight').show();
964
+ } else if($('#wpProQuiz_currentPage option:last-child:selected').length) {
965
+ $('#wpProQuiz_pageLeft').show();
966
+ }else {
967
+ $('#wpProQuiz_pageLeft, #wpProQuiz_pageRight').show();
968
+ }
969
+
970
+ methode.changeTab(currectTab);
971
+ });
972
+
973
+ $('#wpProQuiz_pageRight').click(function() {
974
+ $('#wpProQuiz_currentPage option:selected').next().attr('selected', 'selected');
975
+ $('#wpProQuiz_currentPage').change();
976
+
977
+ return false;
978
+ });
979
 
980
+ $('#wpProQuiz_pageLeft').click(function() {
981
+ $('#wpProQuiz_currentPage option:selected').prev().attr('selected', 'selected');
982
+ $('#wpProQuiz_currentPage').change();
983
+
984
+ return false;
985
+ });
986
 
987
  methode.changeTab('wpProQuiz_typeAnonymeUser');
988
  };
js/wpProQuiz_admin.min.js CHANGED
@@ -1,27 +1,33 @@
1
- jQuery(document).ready(function(a){a.fn.wpProQuiz_preview=function(){var c={openPreview:function(d){window.open(a(d).attr("href"),"wpProQuizPreview","width=900,height=900")}};a(".wpProQuiz_prview").click(function(a){c.openPreview(this);a.preventDefault()})};a.fn.wpProQuiz_quizOverall=function(){var c={changeExport:function(d){$input=a(d);$export=a(".wpProQuiz_exportList");$ul=$export.find("ul").first();$export.find("li").remove();a('input[name="exportItems"]').each(function(){$this=a(this);if(this.checked){var b=
2
  $this.parent().parent().find(".wpProQuiz_quizName").text();a("<li>"+b+"</li>").appendTo($ul)}})},startExport:function(){$ele=a('input[name="exportItems"]:checked');if(1>$ele.length)return alert(wpProQuizLocalize.no_selected_quiz),!1;$hidden=a("#exportHidden");$hidden.html("");a('input[name="exportItems"]').each(function(){$this=a(this);this.checked&&a('<input type="hidden" value="'+this.value+'" name="exportIds[]">').appendTo($hidden)});return!0}};a(".wpProQuiz_delete").click(function(a){return!confirm(wpProQuizLocalize.delete_msg)?
3
- (a.preventDefault(),!1):!0});a(".wpProQuiz_import").click(function(d){d.preventDefault();a(".wpProQuiz_importList").toggle("fast");a(".wpProQuiz_exportList").hide();a(".wpProQuiz_exportCheck").hide()});a(".wpProQuiz_export").click(function(d){d.preventDefault();a(".wpProQuiz_exportList").toggle("fast");a(".wpProQuiz_exportCheck").toggle("fast");a(".wpProQuiz_importList").hide()});a('input[name="exportItems"]').change(function(){c.changeExport(this)});a('input[name="exportItemsAll"]').change(function(){var d=
4
- a('input[name="exportItems"]');this.checked?d.attr("checked",!0):d.attr("checked",!1);d.change()});a("#exportStart").click(function(a){c.startExport()||a.preventDefault()})};a.fn.wpProQuiz_questionEdit=function(){var c={setup:function(){a('input[name="answerType"]').click(function(){a(".answer_felder").children().css("display","none");switch(this.value){case "single":c.displaySingle("radio");break;case "multiple":c.displaySingle("checkbox");break;case "free_answer":c.displayFreeAnswer();break;case "sort_answer":c.displaySortAnswer();
5
- break;case "matrix_sort_answer":c.displayMatrixSortAnswer();break;case "cloze_answer":c.displayClozeAnswer()}});a(".addAnswer").click(function(){c.addAnswer(this)});a(".deleteAnswer").click(function(){c.deleteAnswer(this)});a("#saveQuestion").click(function(){return d()});a(".sort_answer ul, .classic_answer ul, .matrix_sort_answer ul").sortable({handle:".wpProQuiz_move",update:function(){c.setValueClassicAnswer()}});a("#wpProQuiz_correctSameText").change(function(){this.checked?a("#wpProQuiz_incorrectMassageBox").hide():
6
- a("#wpProQuiz_incorrectMassageBox").show()});a("#wpProQuiz_tip").change(function(){this.checked?a("#wpProQuiz_tipBox").show():a("#wpProQuiz_tipBox").hide()})},displaySingle:function(b){a(".classic_answer").find('input[name="answerJson[classic_answer][correct][]"]').each(function(){a("<input type="+b+" />").attr({name:this.name,value:this.value,checked:this.checked}).insertBefore(this)}).remove();a(".classic_answer").css("display","block")},displayFreeAnswer:function(){a(".free_answer").css("display",
7
- "block")},displaySortAnswer:function(){a(".sort_answer").css("display","block")},displayMatrixSortAnswer:function(){a(".matrix_sort_answer").show()},displayClozeAnswer:function(){a(".cloze_answer").show()},addAnswer:function(b){a(b).siblings("ul").children().first().clone().css("display","block").appendTo(a(b).siblings("ul"));c.setValueClassicAnswer();a(".deleteAnswer").click(function(){c.deleteAnswer(this)})},deleteAnswer:function(b){a(b).parent("li").remove();c.setValueClassicAnswer()},setValueClassicAnswer:function(){var b=
8
- 0;a('input[name="answerJson[classic_answer][correct][]"]').each(function(){this.value=b++});b=0;a('input[name="answerJson[answer_matrix_sort][sort_string_html][]"]').each(function(){this.value=b++});b=0;a('input[name="answerJson[answer_matrix_sort][answer_html][]"]').each(function(){this.value=b++})}},d=function(){var d="",c=a('input[name="answerType"]:checked'),f=a('input[name="points"]'),d=void 0!=tinymce.editors.question&&!tinymce.editors.question.isHidden()?tinymce.editors.question.getContent():
9
- a('textarea[name="question"]').val();if(isNaN(f.val())||1>f.val())return alert(wpProQuizLocalize.no_nummber_points),f.focus(),!1;if(b(d))return alert(wpProQuizLocalize.no_question_msg),!1;if("single"==c.val()||"multiple"==c.val()){var e=!0;if(1>a('input[name="answerJson[classic_answer][correct][]"]:checked').each(function(){e=""!=a.trim(a(this).parent().siblings("textarea").val())?e&1:!1}).size())return alert(wpProQuizLocalize.no_correct_msg),!1;if(!e)return alert(wpProQuizLocalize.no_answer_msg),
10
- !1}else if("sort_answer"==c.val()){if(e=!1,a('textarea[name="answerJson[answer_sort][answer][]"]').each(function(){e=b(a(this).val())?e|0:!0}),!e)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("matrix_sort_answer"==c.val()){if(e=!1,a('textarea[name="answerJson[answer_matrix_sort][answer][]"]').each(function(){if(b(a(this).val()))e|=0;else{var d=a(this).parent().parent().find('textarea[name="answerJson[answer_matrix_sort][sort_string][]"]');e=b(d.val())?e|0:!0}}),!e)return alert(wpProQuizLocalize.no_answer_msg),
11
- !1}else if("cloze_answer"==c.val()){if(d="",d=void 0!=tinymce.editors.cloze&&!tinymce.editors.cloze.isHidden()?tinymce.editors.cloze.getContent():a('textarea[name="answerJson[answer_cloze][text]"]').val(),b(d))return alert(wpProQuizLocalize.no_answer_msg),!1}else if("free_answer"==c.val()&&(d=a('textarea[name="answerJson[free_answer][correct]"]').val(),b(d)))return alert(wpProQuizLocalize.no_answer_msg),!1;return!0},b=function(b){b=a.trim(b);return!b||0===b.length};c.setup();1>a('input[name="answerType"][checked="checked"]').size()&&
12
- a('input[name="answerType"][value="single"]').attr({checked:"checked"});a('input[name="answerType"]:checked').click();a("#wpProQuiz_correctSameText").change();a("#wpProQuiz_tip").change()};a.fn.wpProQuiz_questionOverall=function(){var c={saveSort:function(){var d={action:"wp_pro_quiz_update_sort",sort:c.parseSortArray()},b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=save_sort";a.post(b,d,function(){a("#sortMsg").show(400).delay(1E3).hide(400)})},
13
- parseSortArray:function(){var d=[];a("tbody tr").each(function(){d.push(this.id.replace("wpProQuiz_questionId_",""))});return d},sortUpdate:function(){a(".wpProQuiz_questionOverall tbody").children().each(function(){$t=a(this).children().first().text(a(this).index()+1)})},loadQuestionCopy:function(){var d=a("#questionCopySelect"),b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_question";d.hide();d.empty();a("#loadDataImg").show();a.post(b,{action:"wp_pro_quiz_load_question",
14
- excludeId:1},function(b){a.each(b,function(b,c){var e=a(document.createElement("optgroup"));e.attr("label",c.name);a.each(c.question,function(b,d){a(document.createElement("option")).val(d.id).text(d.name).appendTo(e)});d.append(e)});a("#loadDataImg").hide();d.show()},"json")}};a(".wp-list-table tbody").sortable({handle:".wpProQuiz_move",update:c.sortUpdate});a(".wpProQuiz_delete").click(function(a){return!confirm(wpProQuizLocalize.delete_msg)?(a.preventDefault(),!1):!0});a("#wpProQuiz_saveSort").click(function(a){a.preventDefault();
15
- c.saveSort()});a("#wpProQuiz_questionCopy").click(function(d){var b=a(".wpProQuiz_questionCopy");b.is(":visible")?b.hide():(b.show(),c.loadQuestionCopy());d.preventDefault()})};a.fn.wpProQuiz_quizEdit=function(){var c={addResult:function(){a("#resultList").children().each(function(){if("none"==a(this).css("display")){var b=a(this),d=b.find('textarea[name="resultTextGrade[text][]"]'),c=d.attr("id"),f=!0;b.find('input[name="resultTextGrade[prozent][]"]').val("0");b.find('input[name="resultTextGrade[activ][]"]').val("1").keyup();
16
- void 0!=tinymce.editors[c]&&!tinymce.editors[c].isHidden()&&(f=!1);void 0!=switchEditors&&!f&&(switchEditors.go(c,"toggle"),switchEditors.go(c,"toggle"));void 0!=tinymce.editors[c]?tinymce.editors[c].setContent(""):d.val("");void 0!=tinymce.editors[c]&&!f&&tinyMCE.execCommand("mceRemoveControl",!1,c);b.parent().children(":visible").last().after(b);void 0!=tinymce.editors[c]&&!f&&tinyMCE.execCommand("mceAddControl",!1,c);a(this).show();void 0!=switchEditors&&!f&&switchEditors.go(c,"toggle");return!1}})},
17
- deleteResult:function(b){a(b).parent().parent().hide();a(b).siblings('input[name="resultTextGrade[activ][]"]').val("0")},changeResult:function(b){b=a(b);if(c.validResultInput(b.val()))return b.siblings(".resultProzent").text(b.val()),b.removeAttr("style"),!0;b.css("background-color","#FF9696");return!1},validResultInput:function(a){if(d(a))return!1;a=a.replace(/\,/,".");return!isNaN(a)&&100>=Number(a)&&0<=Number(a)?null!=a.match(/\./)?3>a.split(".")[1].length:!0:!1},validInput:function(){if(d(a("#wpProQuiz_title").val()))return alert(wpProQuizLocalize.no_title_msg),
18
- !1;var b="",b=void 0!=tinymce.editors.text&&!tinymce.editors.text.isHidden()?tinymce.editors.text.getContent():a('textarea[name="text"]').val();if(d(b))return alert(wpProQuizLocalize.no_quiz_start_msg),!1;if(a("#wpProQuiz_resultGradeEnabled:checked").length){var g=!0;a("#resultList").children().each(function(){if(a(this).is(":visible")&&!c.validResultInput(a(this).find('input[name="resultTextGrade[prozent][]"]').val()))return g=!1});if(!g)return alert(wpProQuizLocalize.fail_grade_result),!1}return!0},
19
- resetLock:function(){var b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php"),b=b.replace("action=edit","action=reset_lock");a.post(b,{action:"wp_pro_quiz_reset_lock"},function(){a("#resetLockMsg").show("fast").delay(2E3).hide("fast")})}},d=function(b){b=a.trim(b);return!b||0===b.length};a("#statistics_on").change(function(){this.checked?a("#statistics_ip_lock_tr").show():a("#statistics_ip_lock_tr").hide()});a(".addResult").click(function(){c.addResult()});a(".deleteResult").click(function(){c.deleteResult(this)});
20
- a('input[name="resultTextGrade[prozent][]"]').keyup(function(){c.changeResult(this)}).keydown(function(a){13==a.which&&a.preventDefault()});a("#wpProQuiz_resultGradeEnabled").change(function(){this.checked?(a("#resultGrade").show(),a("#resultNormal").hide()):(a("#resultGrade").hide(),a("#resultNormal").show())});a("#wpProQuiz_save").click(function(a){c.validInput()||a.preventDefault()});a('input[name="quizRunOnce"]').change(function(){this.checked?(a("#wpProQuiz_quiz_run_once_type").show(),a('input[name="quizRunOnceType"]:checked').change()):
21
- a("#wpProQuiz_quiz_run_once_type").hide()});a('input[name="quizRunOnceType"]').change(function(){this.checked&&("1"==this.value||"3"==this.value)?a("#wpProQuiz_quiz_run_once_cookie").show():a("#wpProQuiz_quiz_run_once_cookie").hide()});a('input[name="resetQuizLock"]').click(function(){c.resetLock();return!1});a(".wpProQuiz_demoBox a").mouseover(function(){a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1});a("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change();
22
- a('input[name="quizRunOnce"]').change();a('input[name="quizRunOnceType"]:checked').change()};a.fn.wpProQuiz_statistics=function(){var c="wpProQuiz_typeAnonymeUser",d={loadStatistics:function(b){var c=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics",b={action:"wp_pro_quiz_load_statistics",userId:b};a("#wpProQuiz_loadData").show();a("#wpProQuiz_statistics_content").hide();a.post(c,b,d.setStatistics,"json")},setStatistics:function(b){var c=
23
- a(".wpProQuiz_statistics_table"),d=c.find("tbody"),f=0,e=0,h=function(a,b,d){a.find(".wpProQuiz_cCorrect").text(b.cCorrect+" ("+b.pCorrect+"%)");a.find(".wpProQuiz_cIncorrect").text(b.cIncorrect+" ("+b.pIncorrect+"%)");a.find(".wpProQuiz_cTip").text(b.cTip);!0==d?0<e?c.find(".wpProQuiz_cResult").text(Math.round(1E4*(f/e))/100+"%"):c.find(".wpProQuiz_cResult").text("0%"):(f+=b.cCorrect*a.find(".wpProQuiz_points").text(),e+=(b.cCorrect+b.cIncorrect)*a.find(".wpProQuiz_points").text())};h(c,b.clear,
24
- !1);a.each(b.items,function(a,b){h(d.find("#wpProQuiz_tr_"+b.id),b,!1)});h(c.find("tfoot"),b.global,!0);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_content").show()},changeTab:function(b){c=b;"wpProQuiz_typeRegisteredUser"==b?d.loadStatistics(a("#userSelect").val()):"wpProQuiz_typeAnonymeUser"==b&&d.loadStatistics(0)},resetStatistic:function(b){var g="wpProQuiz_typeRegisteredUser"==c?a("#userSelect").val():0,i=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+
25
- "&action=reset";a.post(i,{action:"wp_pro_quiz_statistics",userId:g,complete:b},function(){d.changeTab(c)})}};a(".wpProQuiz_tab").click(function(){var b=a(this);if(b.hasClass("button-primary"))return!1;"wpProQuiz_typeRegisteredUser"==b.attr("id")?a("#wpProQuiz_userBox").show():a("#wpProQuiz_userBox").hide();a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");b.removeClass("button-secondary").addClass("button-primary");d.changeTab(b.attr("id"));return!1});a("#userSelect").change(function(){d.changeTab("wpProQuiz_typeRegisteredUser")});
26
- a("#wpProQuiz_update").click(function(){d.changeTab(c);return!1});a("#wpProQuiz_reset").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!1);return!1});a("#wpProQuiz_resetComplete").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!0);return!1});d.changeTab("wpProQuiz_typeAnonymeUser")};a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_preview();a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_quizOverall();
27
- a(".wpProQuiz_quizEdit").length&&a(".wpProQuiz_quizEdit").wpProQuiz_quizEdit();a(".wpProQuiz_questionEdit").length&&a(".wpProQuiz_questionEdit").wpProQuiz_questionEdit();a(".wpProQuiz_questionOverall").length&&a(".wpProQuiz_questionOverall").wpProQuiz_questionOverall();a(".wpProQuiz_statistics").length&&a(".wpProQuiz_statistics").wpProQuiz_statistics()});
 
 
 
 
 
 
1
+ jQuery(document).ready(function(a){a.fn.wpProQuiz_preview=function(){var c={openPreview:function(e){window.open(a(e).attr("href"),"wpProQuizPreview","width=900,height=900")}};a(".wpProQuiz_prview").click(function(a){c.openPreview(this);a.preventDefault()})};a.fn.wpProQuiz_quizOverall=function(){var c={changeExport:function(e){$input=a(e);$export=a(".wpProQuiz_exportList");$ul=$export.find("ul").first();$export.find("li").remove();a('input[name="exportItems"]').each(function(){$this=a(this);if(this.checked){var b=
2
  $this.parent().parent().find(".wpProQuiz_quizName").text();a("<li>"+b+"</li>").appendTo($ul)}})},startExport:function(){$ele=a('input[name="exportItems"]:checked');if(1>$ele.length)return alert(wpProQuizLocalize.no_selected_quiz),!1;$hidden=a("#exportHidden");$hidden.html("");a('input[name="exportItems"]').each(function(){$this=a(this);this.checked&&a('<input type="hidden" value="'+this.value+'" name="exportIds[]">').appendTo($hidden)});return!0}};a(".wpProQuiz_delete").click(function(a){return!confirm(wpProQuizLocalize.delete_msg)?
3
+ (a.preventDefault(),!1):!0});a(".wpProQuiz_import").click(function(c){c.preventDefault();a(".wpProQuiz_importList").toggle("fast");a(".wpProQuiz_exportList").hide();a(".wpProQuiz_exportCheck").hide()});a(".wpProQuiz_export").click(function(c){c.preventDefault();a(".wpProQuiz_exportList").toggle("fast");a(".wpProQuiz_exportCheck").toggle("fast");a(".wpProQuiz_importList").hide()});a('input[name="exportItems"]').change(function(){c.changeExport(this)});a('input[name="exportItemsAll"]').change(function(){var c=
4
+ a('input[name="exportItems"]');this.checked?c.attr("checked",!0):c.attr("checked",!1);c.change()});a("#exportStart").click(function(a){c.startExport()||a.preventDefault()})};a.fn.wpProQuiz_questionEdit=function(){var c={setup:function(){a('input[name="answerType"]').click(function(){a(".answer_felder").children().css("display","none");switch(this.value){case "single":c.displaySingle("radio");break;case "multiple":c.displaySingle("checkbox");break;case "free_answer":c.displayFreeAnswer();break;case "sort_answer":c.displaySortAnswer();
5
+ break;case "matrix_sort_answer":c.displayMatrixSortAnswer();break;case "cloze_answer":c.displayClozeAnswer()}});a(".addAnswer").click(function(){c.addAnswer(this)});a(".deleteAnswer").click(function(){c.deleteAnswer(this)});a("#saveQuestion").click(function(){return e()});a(".sort_answer ul, .classic_answer ul, .matrix_sort_answer ul").sortable({handle:".wpProQuiz_move",update:function(){c.setValueClassicAnswer()}});a("#wpProQuiz_correctSameText").change(function(){this.checked?a("#wpProQuiz_incorrectMassageBox").hide():
6
+ a("#wpProQuiz_incorrectMassageBox").show()});a("#wpProQuiz_tip").change(function(){this.checked?a("#wpProQuiz_tipBox").show():a("#wpProQuiz_tipBox").hide()});a('input[name="pointsPerAnswer"]').change(function(){this.checked?a("#wpProQuiz_showPointsBox").show():a("#wpProQuiz_showPointsBox").hide()})},displaySingle:function(b){a(".classic_answer").find('input[name="answerJson[classic_answer][correct][]"]').each(function(){a("<input type="+b+" />").attr({name:this.name,value:this.value,checked:this.checked}).insertBefore(this)}).remove();
7
+ a(".classic_answer").css("display","block")},displayFreeAnswer:function(){a(".free_answer").css("display","block")},displaySortAnswer:function(){a(".sort_answer").css("display","block")},displayMatrixSortAnswer:function(){a(".matrix_sort_answer").show()},displayClozeAnswer:function(){a(".cloze_answer").show()},addAnswer:function(b){a(b).siblings("ul").children().first().clone().css("display","block").appendTo(a(b).siblings("ul"));c.setValueClassicAnswer();a(".deleteAnswer").click(function(){c.deleteAnswer(this)})},
8
+ deleteAnswer:function(b){a(b).parent("li").remove();c.setValueClassicAnswer()},setValueClassicAnswer:function(){var b=0;a('input[name="answerJson[classic_answer][correct][]"]').each(function(){this.value=b++});b=0;a('input[name="answerJson[answer_matrix_sort][sort_string_html][]"]').each(function(){this.value=b++});b=0;a('input[name="answerJson[answer_matrix_sort][answer_html][]"]').each(function(){this.value=b++})}},e=function(){var c="",d=a('input[name="answerType"]:checked'),e=a('input[name="points"]'),
9
+ c=void 0!=tinymce.editors.question&&!tinymce.editors.question.isHidden()?tinymce.editors.question.getContent():a('textarea[name="question"]').val();if(isNaN(e.val())||1>e.val())return alert(wpProQuizLocalize.no_nummber_points),e.focus(),!1;if(b(c))return alert(wpProQuizLocalize.no_question_msg),!1;if("single"==d.val()||"multiple"==d.val()){var f=!0;if(1>a('input[name="answerJson[classic_answer][correct][]"]:checked').each(function(){f=""!=a.trim(a(this).parent().siblings("textarea").val())?f&1:!1}).size())return alert(wpProQuizLocalize.no_correct_msg),
10
+ !1;if(!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("sort_answer"==d.val()){if(f=!1,a('textarea[name="answerJson[answer_sort][answer][]"]').each(function(){f=b(a(this).val())?f|0:!0}),!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("matrix_sort_answer"==d.val()){if(f=!1,a('textarea[name="answerJson[answer_matrix_sort][answer][]"]').each(function(){if(b(a(this).val()))f|=0;else{var c=a(this).parent().parent().find('textarea[name="answerJson[answer_matrix_sort][sort_string][]"]');
11
+ f=b(c.val())?f|0:!0}}),!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("cloze_answer"==d.val()){if(c="",c=void 0!=tinymce.editors.cloze&&!tinymce.editors.cloze.isHidden()?tinymce.editors.cloze.getContent():a('textarea[name="answerJson[answer_cloze][text]"]').val(),b(c))return alert(wpProQuizLocalize.no_answer_msg),!1}else if("free_answer"==d.val()&&(c=a('textarea[name="answerJson[free_answer][correct]"]').val(),b(c)))return alert(wpProQuizLocalize.no_answer_msg),!1;return!0},b=function(b){b=
12
+ a.trim(b);return!b||0===b.length};c.setup();1>a('input[name="answerType"][checked="checked"]').size()&&a('input[name="answerType"][value="single"]').attr({checked:"checked"});a('input[name="answerType"]:checked').click();a("#wpProQuiz_correctSameText").change();a("#wpProQuiz_tip").change();a('input[name="pointsPerAnswer"]').change()};a.fn.wpProQuiz_questionOverall=function(){var c={saveSort:function(){var e={action:"wp_pro_quiz_update_sort",sort:c.parseSortArray()},b=(window.location.pathname+window.location.search).replace("admin.php",
13
+ "admin-ajax.php")+"&action=save_sort";a.post(b,e,function(){a("#sortMsg").show(400).delay(1E3).hide(400)})},parseSortArray:function(){var c=[];a("tbody tr").each(function(){c.push(this.id.replace("wpProQuiz_questionId_",""))});return c},sortUpdate:function(){a(".wpProQuiz_questionOverall tbody").children().each(function(){$t=a(this).children().first().text(a(this).index()+1)})},loadQuestionCopy:function(){var c=a("#questionCopySelect"),b=(window.location.pathname+window.location.search).replace("admin.php",
14
+ "admin-ajax.php")+"&action=load_question";c.hide();c.empty();a("#loadDataImg").show();a.post(b,{action:"wp_pro_quiz_load_question",excludeId:1},function(b){a.each(b,function(b,g){var f=a(document.createElement("optgroup"));f.attr("label",g.name);a.each(g.question,function(b,c){a(document.createElement("option")).val(c.id).text(c.name).appendTo(f)});c.append(f)});a("#loadDataImg").hide();c.show()},"json")}};a(".wp-list-table tbody").sortable({handle:".wpProQuiz_move",update:c.sortUpdate});a(".wpProQuiz_delete").click(function(a){return!confirm(wpProQuizLocalize.delete_msg)?
15
+ (a.preventDefault(),!1):!0});a("#wpProQuiz_saveSort").click(function(a){a.preventDefault();c.saveSort()});a("#wpProQuiz_questionCopy").click(function(e){var b=a(".wpProQuiz_questionCopy");b.is(":visible")?b.hide():(b.show(),c.loadQuestionCopy());e.preventDefault()})};a.fn.wpProQuiz_quizEdit=function(){var c={addResult:function(){a("#resultList").children().each(function(){if("none"==a(this).css("display")){var b=a(this),c=b.find('textarea[name="resultTextGrade[text][]"]'),d=c.attr("id"),e=!0;b.find('input[name="resultTextGrade[prozent][]"]').val("0");
16
+ b.find('input[name="resultTextGrade[activ][]"]').val("1").keyup();void 0!=tinymce.editors[d]&&!tinymce.editors[d].isHidden()&&(e=!1);void 0!=switchEditors&&!e&&(switchEditors.go(d,"toggle"),switchEditors.go(d,"toggle"));void 0!=tinymce.editors[d]?tinymce.editors[d].setContent(""):c.val("");void 0!=tinymce.editors[d]&&!e&&tinyMCE.execCommand("mceRemoveControl",!1,d);b.parent().children(":visible").last().after(b);void 0!=tinymce.editors[d]&&!e&&tinyMCE.execCommand("mceAddControl",!1,d);a(this).show();
17
+ void 0!=switchEditors&&!e&&switchEditors.go(d,"toggle");return!1}})},deleteResult:function(b){a(b).parent().parent().hide();a(b).siblings('input[name="resultTextGrade[activ][]"]').val("0")},changeResult:function(b){b=a(b);if(c.validResultInput(b.val()))return b.siblings(".resultProzent").text(b.val()),b.removeAttr("style"),!0;b.css("background-color","#FF9696");return!1},validResultInput:function(a){if(e(a))return!1;a=a.replace(/\,/,".");return!isNaN(a)&&100>=Number(a)&&0<=Number(a)?null!=a.match(/\./)?
18
+ 3>a.split(".")[1].length:!0:!1},validInput:function(){if(e(a("#wpProQuiz_title").val()))return alert(wpProQuizLocalize.no_title_msg),!1;var b="",b=void 0!=tinymce.editors.text&&!tinymce.editors.text.isHidden()?tinymce.editors.text.getContent():a('textarea[name="text"]').val();if(e(b))return alert(wpProQuizLocalize.no_quiz_start_msg),!1;if(a("#wpProQuiz_resultGradeEnabled:checked").length){var g=!0;a("#resultList").children().each(function(){if(a(this).is(":visible")&&!c.validResultInput(a(this).find('input[name="resultTextGrade[prozent][]"]').val()))return g=
19
+ !1});if(!g)return alert(wpProQuizLocalize.fail_grade_result),!1}return!0},resetLock:function(){var b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php"),b=b.replace("action=edit","action=reset_lock");a.post(b,{action:"wp_pro_quiz_reset_lock"},function(){a("#resetLockMsg").show("fast").delay(2E3).hide("fast")})}},e=function(b){b=a.trim(b);return!b||0===b.length};a("#statistics_on").change(function(){this.checked?a("#statistics_ip_lock_tr").show():a("#statistics_ip_lock_tr").hide()});
20
+ a(".addResult").click(function(){c.addResult()});a(".deleteResult").click(function(){c.deleteResult(this)});a('input[name="resultTextGrade[prozent][]"]').keyup(function(){c.changeResult(this)}).keydown(function(a){13==a.which&&a.preventDefault()});a("#wpProQuiz_resultGradeEnabled").change(function(){this.checked?(a("#resultGrade").show(),a("#resultNormal").hide()):(a("#resultGrade").hide(),a("#resultNormal").show())});a("#wpProQuiz_save").click(function(a){c.validInput()||a.preventDefault()});a('input[name="quizRunOnce"]').change(function(){this.checked?
21
+ (a("#wpProQuiz_quiz_run_once_type").show(),a('input[name="quizRunOnceType"]:checked').change()):a("#wpProQuiz_quiz_run_once_type").hide()});a('input[name="quizRunOnceType"]').change(function(){this.checked&&("1"==this.value||"3"==this.value)?a("#wpProQuiz_quiz_run_once_cookie").show():a("#wpProQuiz_quiz_run_once_cookie").hide()});a('input[name="resetQuizLock"]').click(function(){c.resetLock();return!1});a(".wpProQuiz_demoBox a").mouseover(function(){a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1});
22
+ a("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change();a('input[name="quizRunOnce"]').change();a('input[name="quizRunOnceType"]:checked').change()};a.fn.wpProQuiz_statistics=function(){var c="wpProQuiz_typeAnonymeUser",e=!0,b={loadStatistics:function(c){var d=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics",c={action:"wp_pro_quiz_load_statistics",userId:c};a("#wpProQuiz_loadData").show();a("#wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();
23
+ a.post(d,c,b.setStatistics,"json")},setStatistics:function(b){var d=a(".wpProQuiz_statistics_table"),e=d.find("tbody"),f=0,h=0;if("wpProQuiz_typeOverview"!=c){var i=function(a,b,c){a.find(".wpProQuiz_cCorrect").text(b.cCorrect+" ("+b.pCorrect+"%)");a.find(".wpProQuiz_cIncorrect").text(b.cIncorrect+" ("+b.pIncorrect+"%)");a.find(".wpProQuiz_cTip").text(b.cTip);a.find(".wpProQuiz_cCorrectAnswerPoints").text(b.cCorrectAnswerPoints*a.find(".wpProQuiz_pointsAnswer").text());!0==c?0<h?d.find(".wpProQuiz_cResult").text(Math.round(1E4*
24
+ (f/h))/100+"%"):d.find(".wpProQuiz_cResult").text("0%"):(f+=b.cCorrectAnswerPoints*a.find(".wpProQuiz_pointsAnswer").text(),h+=(b.cCorrect+b.cIncorrect)*a.find(".wpProQuiz_points").text())};i(d,b.clear,!1);a.each(b.items,function(a,b){i(e.find("#wpProQuiz_tr_"+b.id),b,!1)});i(d.find("tfoot"),b.global,!0);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_content, .wpProQuiz_statistics_table").show()}},loadOverview:function(){a(".wpProQuiz_statistics_table, #wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();
25
+ a("#wpProQuiz_loadData").show();var g=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics",d={action:"wp_pro_quiz_load_statistics",overview:!0,pageLimit:a("#wpProQuiz_pageLimit").val(),onlyCompleted:Number(a("#wpProQuiz_onlyCompleted").is(":checked")),page:a("#wpProQuiz_currentPage").val(),generatePageNav:Number(e)};a.post(g,d,function(d){a("#wpProQuiz_statistics_overview_data").empty();if("wpProQuiz_typeOverview"==c){var f=a('<tr><th><a href="#">---</a></th><th class="wpProQuiz_points">---</th><th class="wpProQuiz_cCorrect" style="color: green;">---</th><th class="wpProQuiz_cIncorrect" style="color: red;">---</th><th class="wpProQuiz_cTip">---</th><th class="wpProQuiz_cResult" style="font-weight: bold;">---</th></tr>');
26
+ a.each(d.items,function(b,c){var d=f.clone();d.find("a").text(c.userName).data("userId",c.userId).click(function(){a("#userSelect").val(a(this).data("userId"));a("#wpProQuiz_typeRegisteredUser").click();return!1});c.completed?(d.find(".wpProQuiz_points").text(c.cPoints),d.find(".wpProQuiz_cCorrect").text(c.cCorrect+" ("+c.pCorrect+"%)"),d.find(".wpProQuiz_cIncorrect").text(c.cIncorrect+" ("+c.pIncorrect+"%)"),d.find(".wpProQuiz_cTip").text(c.cTip),d.find(".wpProQuiz_cResult").text(Math.round(1E4*
27
+ (c.cPoints/c.totalPoints))/100+"%")):d.find("th").removeAttr("style");a("#wpProQuiz_statistics_overview_data").append(d)});void 0!=d.page&&(b.setPageNav(d.page),e=!1);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_overview").show()}},"json")},changeTab:function(e){c=e;"wpProQuiz_typeRegisteredUser"==e?b.loadStatistics(a("#userSelect").val()):"wpProQuiz_typeAnonymeUser"==e?b.loadStatistics(0):b.loadOverview()},resetStatistic:function(e){var d="wpProQuiz_typeRegisteredUser"==c?a("#userSelect").val():
28
+ 0,j=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=reset";a.post(j,{action:"wp_pro_quiz_statistics",userId:d,complete:e},function(){b.changeTab(c)})},setPageNav:function(b){b=Math.ceil(b/a("#wpProQuiz_pageLimit").val());a("#wpProQuiz_currentPage").empty();for(var c=1;c<=b;c++)a(document.createElement("option")).val(c).text(c).appendTo(a("#wpProQuiz_currentPage"));a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();1<a("#wpProQuiz_currentPage option").length&&
29
+ a("#wpProQuiz_pageRight").show()}};a(".wpProQuiz_tab").click(function(){var c=a(this);if(c.hasClass("button-primary"))return!1;"wpProQuiz_typeRegisteredUser"==c.attr("id")?a("#wpProQuiz_userBox").show():a("#wpProQuiz_userBox").hide();a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");c.removeClass("button-secondary").addClass("button-primary");b.changeTab(c.attr("id"));return!1});a("#userSelect").change(function(){b.changeTab("wpProQuiz_typeRegisteredUser")});a(".wpProQuiz_update").click(function(){b.changeTab(c);
30
+ return!1});a("#wpProQuiz_reset").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&b.resetStatistic(!1);return!1});a(".wpProQuiz_resetComplete").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&b.resetStatistic(!0);return!1});a("#wpProQuiz_pageLimit, #wpProQuiz_onlyCompleted").change(function(){a("#wpProQuiz_currentPage").val(0);e=!0;b.changeTab(c);return!1});a("#wpProQuiz_currentPage").change(function(){a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();1!=a("#wpProQuiz_currentPage option").length&&
31
+ (a("#wpProQuiz_currentPage option:first-child:selected").length?a("#wpProQuiz_pageRight").show():a("#wpProQuiz_currentPage option:last-child:selected").length?a("#wpProQuiz_pageLeft").show():a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").show());b.changeTab(c)});a("#wpProQuiz_pageRight").click(function(){a("#wpProQuiz_currentPage option:selected").next().attr("selected","selected");a("#wpProQuiz_currentPage").change();return!1});a("#wpProQuiz_pageLeft").click(function(){a("#wpProQuiz_currentPage option:selected").prev().attr("selected",
32
+ "selected");a("#wpProQuiz_currentPage").change();return!1});b.changeTab("wpProQuiz_typeAnonymeUser")};a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_preview();a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_quizOverall();a(".wpProQuiz_quizEdit").length&&a(".wpProQuiz_quizEdit").wpProQuiz_quizEdit();a(".wpProQuiz_questionEdit").length&&a(".wpProQuiz_questionEdit").wpProQuiz_questionEdit();a(".wpProQuiz_questionOverall").length&&a(".wpProQuiz_questionOverall").wpProQuiz_questionOverall();
33
+ a(".wpProQuiz_statistics").length&&a(".wpProQuiz_statistics").wpProQuiz_statistics()});
js/wpProQuiz_front.js CHANGED
@@ -10,6 +10,7 @@
10
  var statistics = new Object();
11
  var points = 0;
12
  var pointsTotal = 0;
 
13
 
14
  var isLock = false;
15
  var locked = false;
@@ -201,7 +202,9 @@
201
  $(this).parent().parent()
202
  .data('type', j.answer_type)
203
  .data('questionId', j.id)
204
- .data('points', j.points);
 
 
205
 
206
  $(this).find('.wpProQuiz_questionInput').each(function() {
207
  switch(j.answer_type) {
@@ -244,6 +247,7 @@
244
  var correct = false;
245
  var checked = $question.find('.wpProQuiz_questionInput');
246
  var type = $question.data('type');
 
247
 
248
  $question.find('input[name="tip"]').hide();
249
 
@@ -258,10 +262,12 @@
258
  if($(this).data('correct') == '1') {
259
  $(this).parent().parent().addClass('wpProQuiz_answerCorrect');
260
 
261
- if(this.checked)
262
  check &= true;
263
- else
 
264
  check &= false;
 
265
  } else {
266
  if(this.checked) {
267
  $(this).parent().parent().addClass('wpProQuiz_answerIncorrect');
@@ -283,6 +289,7 @@
283
  if(correct == index) {
284
  $div.parent().addClass('wpProQuiz_answerCorrect');
285
  check &= true;
 
286
  } else {
287
  $div.parent().addClass('wpProQuiz_answerIncorrect');
288
  check = false;
@@ -309,6 +316,7 @@
309
 
310
  if($.inArray(value, checked.data('correct')) >= 0) {
311
  correct = true;
 
312
  checked.parent().parent().addClass('wpProQuiz_answerCorrect');
313
  } else {
314
  checked.parent().parent().addClass('wpProQuiz_answerIncorrect');
@@ -325,6 +333,7 @@
325
 
326
  if(item.data('correct') == index) {
327
  check &= true;
 
328
  $par.addClass('wpProQuiz_answerCorrect');
329
  } else {
330
  check = false;
@@ -357,6 +366,7 @@
357
 
358
  if(cloze == iText) {
359
  check &= true;
 
360
  input.css('background-color', '#B0DAB0');
361
  } else {
362
  check = false;
@@ -381,11 +391,23 @@
381
  statistics[$question.data('questionId')].correct = Number(correct);
382
 
383
  $question.find('.wpProQuiz_response').show();
384
-
 
 
 
 
 
 
 
385
  if(correct) {
386
  $question.find('.wpProQuiz_correct').show();
387
  correctAnswer++;
388
- points += $question.data('points');
 
 
 
 
 
389
  } else {
390
  $question.find('.wpProQuiz_incorrect').show();
391
  }
@@ -454,7 +476,7 @@
454
  $element.find('.wpProQuiz_resultsList').children().eq(index).show();
455
  }
456
 
457
- plugin.methode.scrollTo($('.wpProQuiz_results'), true);
458
 
459
  plugin.methode.sendCompletedQuiz();
460
  },
@@ -462,12 +484,20 @@
462
  sendCompletedQuiz: function() {
463
  if(config.preview)
464
  return;
465
-
 
 
 
 
466
  $.post(config.url, {
467
  action : 'wp_pro_quiz_completed_quiz',
468
  'results' : statistics,
469
  'quizId' : config.quizId
470
- });
 
 
 
 
471
  },
472
 
473
  findResultIndex: function(p) {
@@ -569,6 +599,10 @@
569
 
570
  loadLocked = true;
571
 
 
 
 
 
572
  $.post(config.url, {
573
  action: 'wp_pro_quiz_check_lock',
574
  quizId: config.quizId
@@ -585,10 +619,19 @@
585
  plugin.methode.startQuiz();
586
  }
587
  }, 'json');
 
 
 
 
588
  }
589
  };
590
 
591
  plugin.init = function() {
 
 
 
 
 
592
  correctAnswer = 0;
593
 
594
  if(config.lock && !config.preview) {
10
  var statistics = new Object();
11
  var points = 0;
12
  var pointsTotal = 0;
13
+ var cors = false;
14
 
15
  var isLock = false;
16
  var locked = false;
202
  $(this).parent().parent()
203
  .data('type', j.answer_type)
204
  .data('questionId', j.id)
205
+ .data('points', j.points)
206
+ .data('pointsPerAnswer', j.pointsPerAnswer)
207
+ .data('pointsAnswer', j.pointsAnswer);
208
 
209
  $(this).find('.wpProQuiz_questionInput').each(function() {
210
  switch(j.answer_type) {
247
  var correct = false;
248
  var checked = $question.find('.wpProQuiz_questionInput');
249
  var type = $question.data('type');
250
+ var correctCount = 0;
251
 
252
  $question.find('input[name="tip"]').hide();
253
 
262
  if($(this).data('correct') == '1') {
263
  $(this).parent().parent().addClass('wpProQuiz_answerCorrect');
264
 
265
+ if(this.checked) {
266
  check &= true;
267
+ correctCount++;
268
+ } else {
269
  check &= false;
270
+ }
271
  } else {
272
  if(this.checked) {
273
  $(this).parent().parent().addClass('wpProQuiz_answerIncorrect');
289
  if(correct == index) {
290
  $div.parent().addClass('wpProQuiz_answerCorrect');
291
  check &= true;
292
+ correctCount++;
293
  } else {
294
  $div.parent().addClass('wpProQuiz_answerIncorrect');
295
  check = false;
316
 
317
  if($.inArray(value, checked.data('correct')) >= 0) {
318
  correct = true;
319
+ correctCount++;
320
  checked.parent().parent().addClass('wpProQuiz_answerCorrect');
321
  } else {
322
  checked.parent().parent().addClass('wpProQuiz_answerIncorrect');
333
 
334
  if(item.data('correct') == index) {
335
  check &= true;
336
+ correctCount++;
337
  $par.addClass('wpProQuiz_answerCorrect');
338
  } else {
339
  check = false;
366
 
367
  if(cloze == iText) {
368
  check &= true;
369
+ correctCount++;
370
  input.css('background-color', '#B0DAB0');
371
  } else {
372
  check = false;
391
  statistics[$question.data('questionId')].correct = Number(correct);
392
 
393
  $question.find('.wpProQuiz_response').show();
394
+
395
+ if($question.data('pointsPerAnswer')) {
396
+ points += $question.data('pointsAnswer') * correctCount;
397
+ statistics[$question.data('questionId')].correct_answer_count = correctCount;
398
+ }
399
+
400
+ $question.find('.wpProQuiz_responsePoints').text($question.data('pointsAnswer') * correctCount);
401
+
402
  if(correct) {
403
  $question.find('.wpProQuiz_correct').show();
404
  correctAnswer++;
405
+
406
+ if(!$question.data('pointsPerAnswer')) {
407
+ points += $question.data('points');
408
+ statistics[$question.data('questionId')].correct_answer_count = 1;
409
+ }
410
+
411
  } else {
412
  $question.find('.wpProQuiz_incorrect').show();
413
  }
476
  $element.find('.wpProQuiz_resultsList').children().eq(index).show();
477
  }
478
 
479
+ plugin.methode.scrollTo($element.find('.wpProQuiz_results'), true);
480
 
481
  plugin.methode.sendCompletedQuiz();
482
  },
484
  sendCompletedQuiz: function() {
485
  if(config.preview)
486
  return;
487
+
488
+ if(cors) {
489
+ jQuery.support.cors = true;
490
+ }
491
+
492
  $.post(config.url, {
493
  action : 'wp_pro_quiz_completed_quiz',
494
  'results' : statistics,
495
  'quizId' : config.quizId
496
+ });
497
+
498
+ if(cors) {
499
+ jQuery.support.cors = false;
500
+ }
501
  },
502
 
503
  findResultIndex: function(p) {
599
 
600
  loadLocked = true;
601
 
602
+ if(cors) {
603
+ jQuery.support.cors = true;
604
+ }
605
+
606
  $.post(config.url, {
607
  action: 'wp_pro_quiz_check_lock',
608
  quizId: config.quizId
619
  plugin.methode.startQuiz();
620
  }
621
  }, 'json');
622
+
623
+ if(cors) {
624
+ jQuery.support.cors = false;
625
+ }
626
  }
627
  };
628
 
629
  plugin.init = function() {
630
+
631
+ if(config.cors && jQuery.support != undefined && jQuery.support.cors != undefined && jQuery.support.cors == false) {
632
+ cors = true;
633
+ }
634
+
635
  correctAnswer = 0;
636
 
637
  if(config.lock && !config.preview) {
js/wpProQuiz_front.min.js CHANGED
@@ -1,22 +1,23 @@
1
- (function(b){b.wpProQuizFront=function(p,d){var a=b(p),f=this,n=0,j=0,s=0,k={},m=0,l=0,t=!1,u=!1,q=!1,r=!1;f.methode={preStartQuiz:function(){k={};d.questionRandom&&f.methode.questionRandom();d.answerRandom?f.methode.answerRandom(".wpProQuiz_questionList"):f.methode.answerRandom(a.find(".wpProQuiz_sortable").parent().parent());f.methode.answerRandom(".wpProQuiz_sortStringList");m=n=0;d.questionOnSinglePage||(d.checkAnswer?a.find('input[name="check"]').show():a.find('input[name="next"]').show());!t||
2
- !q?f.methode.startQuiz():r=!0;d.numberedAnswer&&f.methode.numberedAnswer()},startQuiz:function(){a.find(".wpProQuiz_text").hide();u?a.find(".wpProQuiz_lock").show():(s=new Date,d.timeLimit&&f.methode.setTimeLimit(),d.questionOnSinglePage&&a.find(".wpProQuiz_listItem").show(),a.find(".wpProQuiz_listItem").first().show(),a.find(".wpProQuiz_quiz").fadeIn(200),a.find(".wpProQuiz_sortable").parent().parent().sortable().disableSelection(),a.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable({connectWith:".wpProQuiz_maxtrixSortCriterion:not(:has(li)), .wpProQuiz_sortStringList",
3
- placeholder:"wpProQuiz_placehold"}).disableSelection())},scrollTo:function(c,e){var a=c.offset().top-100;e?(window.pageYOffset||document.body.scrollTop)>a&&b("html,body").animate({scrollTop:a},300):b("html,body").animate({scrollTop:a},300)},reStartQuiz:function(){a.find(".wpProQuiz_answerCorrect").removeClass("wpProQuiz_answerCorrect");a.find(".wpProQuiz_answerIncorrect").removeClass("wpProQuiz_answerIncorrect");a.find('.wpProQuiz_text, input[name="tip"]').show();a.find(".wpProQuiz_quiz, .wpProQuiz_results, .wpProQuiz_response, .wpProQuiz_correct, .wpProQuiz_incorrect").hide();
4
- a.find(".wpProQuiz_time_limit, .wpProQuiz_time_limit_expired, .wpProQuiz_sort_correct_answer").hide();a.find(".wpProQuiz_quiz").children().first().children().hide();a.find(".wpProQuiz_sortable, .wpProQuiz_sortStringItem").removeAttr("style");a.find('input[name="check"]').hide();a.find('input[name="next"]').hide();a.find(".wpProQuiz_questionInput").removeAttr("disabled").removeAttr("checked");a.find('input.wpProQuiz_questionInput[type="text"]').removeAttr("value");a.find(".wpProQuiz_resultsList").children().hide();
5
- a.find(".wpProQuiz_cloze input").removeAttr("disabled").removeAttr("value").css("background-color","");a.find(".wpProQuiz_cloze span").hide();a.find('input[name="checkSingle"]').show();d.questionOnSinglePage||a.find(".wpProQuiz_question_page").show();f.methode.resetMatrix();a.find(".wpProQuiz_listItem").data("isChecked",!1)},numberedAnswer:function(){a.find(".wpProQuiz_listItem").each(function(){var c=b(this),e=c.data("type"),a=1;("multiple"==e||"single"==e)&&c.find(".WpProQuiz_numberedAnswer").each(function(){b(this).text(a++ +
6
- ". ")})})},resetMatrix:function(){a.find(".wpProQuiz_question").each(function(){var c=b(this),e=c.find(".wpProQuiz_sortStringList");c.find(".wpProQuiz_sortStringItem").each(function(){e.append(b(this))})})},setTimeLimit:function(){var c=a.find(".wpProQuiz_time_limit"),e=c.find("span"),b=d.timeLimit;c.css({width:"100%",display:"block"});e.html(f.methode.parseTime(b));c.find(".progress").css("width","100%").animate({width:"0%"},1E3*d.timeLimit);j=setInterval(function(){e.html(f.methode.parseTime(b--));
7
- 0>b&&(clearInterval(j),j=0,c.find(".progress").clearQueue().stop(),a.find('input[name="check"]').click().parent().hide(),a.find(".wpProQuiz_time_limit_expired").show(),f.methode.showResult())},1E3)},parseTime:function(c){var e=parseInt(c%60),a=parseInt(c/60%60),c=parseInt(c/3600%24);return(9<c?"":"0")+c+":"+((9<a?"":"0")+a)+":"+((9<e?"":"0")+e)},setQuizTime:function(){var c=((new Date).getTime()-s.getTime())/1E3;a.find(".wpProQuiz_quiz_time span").first().html(f.methode.parseTime(c))},setData:function(){var c=
8
- 0;a.find(".wpProQuiz_questionList").each(function(){var e=d.json[c],a=0;l+=e.points;b(this).parent().parent().data("type",e.answer_type).data("questionId",e.id).data("points",e.points);b(this).find(".wpProQuiz_questionInput").each(function(){switch(e.answer_type){case "single":case "multiple":0<=b.inArray(this.value,e.correct)?b(this).data("correct","1"):b(this).data("correct","0");break;case "free_answer":b(this).data("correct",e.correct)}});a=0;b(this).find(".wpProQuiz_sortable").each(function(){b(this).data("correct",
9
- e.correct[a++])});a=0;b(this).parent().find(".wpProQuiz_sortStringList").children().each(function(){b(this).data("correct",e.correct[a++])});"matrix_sort_answer"==e.answer_type&&b(this).children().each(function(){b(this).data("correct",b(this).index())});c++})},checkAnswer:function(c){var a=b(c).parent(),d=!1,i=a.find(".wpProQuiz_questionInput"),h=a.data("type");a.find('input[name="tip"]').hide();if(!a.data("isChecked")){if("multiple"==h||"single"==h){var g=!0;i.each(function(){"1"==b(this).data("correct")?
10
- (b(this).parent().parent().addClass("wpProQuiz_answerCorrect"),g=this.checked?g&1:g&0):this.checked&&(b(this).parent().parent().addClass("wpProQuiz_answerIncorrect"),g&=0)});d=g}else if("sort_answer"==h){g=!0;a.find(".wpProQuiz_sortable").each(function(){var a=b(this),c=a.parent().index();a.data("correct")==c?(a.parent().addClass("wpProQuiz_answerCorrect"),g&=1):(a.parent().addClass("wpProQuiz_answerIncorrect"),g=!1);a.css({"box-shadow":"0 0",cursor:"auto"})});var j=a.find(".wpProQuiz_sortable").parent().parent(),
11
- d=j.children("li");j.sortable("destroy");d.sort(function(a,c){return b(a).children("div").data("correct")-b(c).children("div").data("correct")});b.each(d,function(a,c){j.append(c)});d=g}else if("free_answer"==h)h=b.trim(i.val()).toLowerCase(),0<=b.inArray(h,i.data("correct"))?(d=!0,i.parent().parent().addClass("wpProQuiz_answerCorrect")):i.parent().parent().addClass("wpProQuiz_answerIncorrect");else if("matrix_sort_answer"==h){var g=!0,l={};a.find(".wpProQuiz_questionList").children().each(function(){var a=
12
- b(this).data("correct"),c=b(this).find(".wpProQuiz_maxtrixSortCriterion");c.children().first().data("correct")==a?(g&=1,c.addClass("wpProQuiz_answerCorrect")):(g=!1,c.addClass("wpProQuiz_answerIncorrect"));l[a]=b(this)});a.find(".wpProQuiz_sortStringItem").each(function(){l[b(this).data("correct")].find(".wpProQuiz_maxtrixSortCriterion").append(this)}).css({"box-shadow":"0 0",cursor:"auto"});a.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable("destroy");d=g}else"cloze_answer"==
13
- h&&(g=!0,a.find(".wpProQuiz_cloze").each(function(){var a=b(this).children(),c=a.first(),e=c.val().toLowerCase(),d=a.last().text().toLowerCase(),d=b.trim(d.substr(1,d.length-2)),d=f.methode.cleanupCurlyQuotes(d),e=f.methode.cleanupCurlyQuotes(b.trim(e));d==e?(g&=1,c.css("background-color","#B0DAB0")):(g=!1,c.css("background-color","#FFBABA"),a.last().show());c.attr("disabled","disabled")}),d=g);b(c).hide();i.attr("disabled","disabled");void 0==k[a.data("questionId")]&&(k[a.data("questionId")]={});
14
- k[a.data("questionId")].correct=Number(d);a.find(".wpProQuiz_response").show();d?(a.find(".wpProQuiz_correct").show(),n++,m+=a.data("points")):a.find(".wpProQuiz_incorrect").show();a.find('input[name="next"]').show();a.data("isChecked",!0)}},nextQuestion:function(c){var c=b(c).parent(),e=c.next();c.hide();e.length?(e.show(),d.backButton&&!d.checkAnswer&&e.find('input[name="back"]').show(),f.methode.scrollTo(e,!0)):(d.questionOnSinglePage&&a.find('.wpProQuiz_listItem, input[name="checkSingle"]').hide(),
15
- (!d.checkAnswer||d.questionOnSinglePage)&&a.find('input[name="check"]').click(),f.methode.showResult())},backQuestion:function(a){var a=b(a).parent(),e=a.prev();a.hide();e.show();f.methode.scrollTo(e,!0)},showResult:function(){clearInterval(j);var c=a.find(".wpProQuiz_points span");a.find(".wpProQuiz_time_limit .progress").clearQueue().stop();a.find(".wpProQuiz_correct_answer").html(n);a.find(".wpProQuiz_results").show();a.find('.wpProQuiz_time_limit, input[name="checkSingle"]').hide();f.methode.setQuizTime();
16
- var e=Math.round(1E4*(m/l))/100;c.eq(0).text(m);c.eq(1).text(l);c.eq(2).text(e);c=f.methode.findResultIndex(e);-1<c&&a.find(".wpProQuiz_resultsList").children().eq(c).show();f.methode.scrollTo(b(".wpProQuiz_results"),!0);f.methode.sendCompletedQuiz()},sendCompletedQuiz:function(){d.preview||b.post(d.url,{action:"wp_pro_quiz_completed_quiz",results:k,quizId:d.quizId})},findResultIndex:function(a){for(var b=d.resultsGrade,f=-1,i=999999,h=0;h<b.length;h++){var g=b[h];a>=g&&a-g<i&&(i=a-g,f=h)}return f},
17
- cleanupCurlyQuotes:function(a){a=a.replace(/\u2018/,"'");a=a.replace(/\u2019/,"'");a=a.replace(/\u201C/,'"');return a=a.replace(/\u201D/,'"')},reShowQuestion:function(){a.find('input[name="next"], input[name="check"], input[name="back"], input[name="checkSingle"]').hide();a.find(".wpProQuiz_quiz").children().first().children().show();a.find(".wpProQuiz_question_page").hide()},answerRandom:function(c){a.find(c).each(function(){var a=b(this).children(),a=a.sort(function(){return Math.round(Math.random())-
18
- 0.5}).slice(0,a.length);b(a).appendTo(a[0].parentNode).show()})},questionRandom:function(){var c=a.find(".wpProQuiz_quiz ol").children(),c=c.sort(function(){return Math.round(Math.random())-0.5}).slice(0,c.length);b(c).appendTo(c[0].parentNode);var e=1;b(c).each(function(){b(this).find(".wpProQuiz_question_page span").eq(0).html(e);b(this).find("h3 span").html(e++)})},showTip:function(a){$tip=b(a).siblings(".wpProQuiz_tipp");$par=b(a).parent();void 0==k[$par.data("questionId")]&&(k[$par.data("questionId")]=
19
- {});k[$par.data("questionId")].tip=1;$tip.toggle("fast")},setClozeStyle:function(){a.find(".wpProQuiz_cloze").each(function(){var a=b(this).children(),e=a.first(),a=a.last().clone();a.css("visibility","hidden");b("body").append(a);var d=a.width();a.remove();e.width(d+10)})},checkLock:function(){q=!0;b.post(d.url,{action:"wp_pro_quiz_check_lock",quizId:d.quizId},function(c){u=c.is;q=!1;c.pre&&a.find('input[name="restartQuiz"]').hide();r&&(r=!1,f.methode.startQuiz())},"json")}};f.init=function(){n=
20
- 0;d.lock&&!d.preview&&(t=!0,f.methode.checkLock());void 0==d.resultsGrade&&(d.resultsGrade=[0]);a.find(".wpProQuiz_quiz, .wpProQuiz_results").hide();a.find(".wpProQuiz_quiz").children().first().children().hide();f.methode.setData();f.methode.setClozeStyle();a.find('input[name="startQuiz"]').click(function(a){a.preventDefault();f.methode.preStartQuiz()});a.find('input[name="check"]').click(function(a){a.preventDefault();f.methode.checkAnswer(this)});a.find('input[name="next"]').click(function(a){a.preventDefault();
21
- f.methode.nextQuestion(this)});a.find('input[name="restartQuiz"]').click(function(a){a.preventDefault();f.methode.reStartQuiz()});a.find('input[name="reShowQuestion"]').click(function(a){a.preventDefault();f.methode.reShowQuestion(this)});a.find('input[name="back"]').click(function(){f.methode.backQuestion(this)});a.find('input[name="tip"]').click(function(){f.methode.showTip(this)});a.find('input[name="checkSingle"]').click(function(){a.find('input[name="next"]').last().click()});b(document).mouseup(function(c){var b=
22
- a.find(".wpProQuiz_tipp"),d=a.find('input[name="tip"]');!b.is(c.target)&&(0==b.has(c.target).length&&!d.is(c.target))&&b.hide("fast")})};f.init()};b.fn.wpProQuizFront=function(p){return this.each(function(){void 0==b(this).data("wpProQuizFront")&&b(this).data("wpProQuizFront",new b.wpProQuizFront(this,p))})}})(jQuery);
 
1
+ (function(d){d.wpProQuizFront=function(q,e){var b=d(q),f=this,n=0,l=0,t=0,j={},m=0,p=0,k=!1,u=!1,v=!1,r=!1,s=!1;f.methode={preStartQuiz:function(){j={};e.questionRandom&&f.methode.questionRandom();e.answerRandom?f.methode.answerRandom(".wpProQuiz_questionList"):f.methode.answerRandom(b.find(".wpProQuiz_sortable").parent().parent());f.methode.answerRandom(".wpProQuiz_sortStringList");m=n=0;e.questionOnSinglePage||(e.checkAnswer?b.find('input[name="check"]').show():b.find('input[name="next"]').show());
2
+ !u||!r?f.methode.startQuiz():s=!0;e.numberedAnswer&&f.methode.numberedAnswer()},startQuiz:function(){b.find(".wpProQuiz_text").hide();v?b.find(".wpProQuiz_lock").show():(t=new Date,e.timeLimit&&f.methode.setTimeLimit(),e.questionOnSinglePage&&b.find(".wpProQuiz_listItem").show(),b.find(".wpProQuiz_listItem").first().show(),b.find(".wpProQuiz_quiz").fadeIn(200),b.find(".wpProQuiz_sortable").parent().parent().sortable().disableSelection(),b.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable({connectWith:".wpProQuiz_maxtrixSortCriterion:not(:has(li)), .wpProQuiz_sortStringList",
3
+ placeholder:"wpProQuiz_placehold"}).disableSelection())},scrollTo:function(a,c){var b=a.offset().top-100;c?(window.pageYOffset||document.body.scrollTop)>b&&d("html,body").animate({scrollTop:b},300):d("html,body").animate({scrollTop:b},300)},reStartQuiz:function(){b.find(".wpProQuiz_answerCorrect").removeClass("wpProQuiz_answerCorrect");b.find(".wpProQuiz_answerIncorrect").removeClass("wpProQuiz_answerIncorrect");b.find('.wpProQuiz_text, input[name="tip"]').show();b.find(".wpProQuiz_quiz, .wpProQuiz_results, .wpProQuiz_response, .wpProQuiz_correct, .wpProQuiz_incorrect").hide();
4
+ b.find(".wpProQuiz_time_limit, .wpProQuiz_time_limit_expired, .wpProQuiz_sort_correct_answer").hide();b.find(".wpProQuiz_quiz").children().first().children().hide();b.find(".wpProQuiz_sortable, .wpProQuiz_sortStringItem").removeAttr("style");b.find('input[name="check"]').hide();b.find('input[name="next"]').hide();b.find(".wpProQuiz_questionInput").removeAttr("disabled").removeAttr("checked");b.find('input.wpProQuiz_questionInput[type="text"]').removeAttr("value");b.find(".wpProQuiz_resultsList").children().hide();
5
+ b.find(".wpProQuiz_cloze input").removeAttr("disabled").removeAttr("value").css("background-color","");b.find(".wpProQuiz_cloze span").hide();b.find('input[name="checkSingle"]').show();e.questionOnSinglePage||b.find(".wpProQuiz_question_page").show();f.methode.resetMatrix();b.find(".wpProQuiz_listItem").data("isChecked",!1)},numberedAnswer:function(){b.find(".wpProQuiz_listItem").each(function(){var a=d(this),c=a.data("type"),b=1;("multiple"==c||"single"==c)&&a.find(".WpProQuiz_numberedAnswer").each(function(){d(this).text(b++ +
6
+ ". ")})})},resetMatrix:function(){b.find(".wpProQuiz_question").each(function(){var a=d(this),c=a.find(".wpProQuiz_sortStringList");a.find(".wpProQuiz_sortStringItem").each(function(){c.append(d(this))})})},setTimeLimit:function(){var a=b.find(".wpProQuiz_time_limit"),c=a.find("span"),d=e.timeLimit;a.css({width:"100%",display:"block"});c.html(f.methode.parseTime(d));a.find(".progress").css("width","100%").animate({width:"0%"},1E3*e.timeLimit);l=setInterval(function(){c.html(f.methode.parseTime(d--));
7
+ 0>d&&(clearInterval(l),l=0,a.find(".progress").clearQueue().stop(),b.find('input[name="check"]').click().parent().hide(),b.find(".wpProQuiz_time_limit_expired").show(),f.methode.showResult())},1E3)},parseTime:function(a){var c=parseInt(a%60),b=parseInt(a/60%60),a=parseInt(a/3600%24);return(9<a?"":"0")+a+":"+((9<b?"":"0")+b)+":"+((9<c?"":"0")+c)},setQuizTime:function(){var a=((new Date).getTime()-t.getTime())/1E3;b.find(".wpProQuiz_quiz_time span").first().html(f.methode.parseTime(a))},setData:function(){var a=
8
+ 0;b.find(".wpProQuiz_questionList").each(function(){var c=e.json[a],b=0;p+=c.points;d(this).parent().parent().data("type",c.answer_type).data("questionId",c.id).data("points",c.points).data("pointsPerAnswer",c.pointsPerAnswer).data("pointsAnswer",c.pointsAnswer);d(this).find(".wpProQuiz_questionInput").each(function(){switch(c.answer_type){case "single":case "multiple":0<=d.inArray(this.value,c.correct)?d(this).data("correct","1"):d(this).data("correct","0");break;case "free_answer":d(this).data("correct",
9
+ c.correct)}});b=0;d(this).find(".wpProQuiz_sortable").each(function(){d(this).data("correct",c.correct[b++])});b=0;d(this).parent().find(".wpProQuiz_sortStringList").children().each(function(){d(this).data("correct",c.correct[b++])});"matrix_sort_answer"==c.answer_type&&d(this).children().each(function(){d(this).data("correct",d(this).index())});a++})},checkAnswer:function(a){var c=d(a).parent(),b=!1,e=c.find(".wpProQuiz_questionInput"),h=c.data("type"),i=0;c.find('input[name="tip"]').hide();if(!c.data("isChecked")){if("multiple"==
10
+ h||"single"==h){var g=!0;e.each(function(){"1"==d(this).data("correct")?(d(this).parent().parent().addClass("wpProQuiz_answerCorrect"),this.checked?(g&=1,i++):g&=0):this.checked&&(d(this).parent().parent().addClass("wpProQuiz_answerIncorrect"),g&=0)});b=g}else if("sort_answer"==h){g=!0;c.find(".wpProQuiz_sortable").each(function(){var a=d(this),b=a.parent().index();a.data("correct")==b?(a.parent().addClass("wpProQuiz_answerCorrect"),g&=1,i++):(a.parent().addClass("wpProQuiz_answerIncorrect"),g=!1);
11
+ a.css({"box-shadow":"0 0",cursor:"auto"})});var k=c.find(".wpProQuiz_sortable").parent().parent(),b=k.children("li");k.sortable("destroy");b.sort(function(a,b){return d(a).children("div").data("correct")-d(b).children("div").data("correct")});d.each(b,function(a,b){k.append(b)});b=g}else if("free_answer"==h)h=d.trim(e.val()).toLowerCase(),0<=d.inArray(h,e.data("correct"))?(b=!0,i++,e.parent().parent().addClass("wpProQuiz_answerCorrect")):e.parent().parent().addClass("wpProQuiz_answerIncorrect");else if("matrix_sort_answer"==
12
+ h){var g=!0,l={};c.find(".wpProQuiz_questionList").children().each(function(){var a=d(this).data("correct"),b=d(this).find(".wpProQuiz_maxtrixSortCriterion");b.children().first().data("correct")==a?(g&=1,i++,b.addClass("wpProQuiz_answerCorrect")):(g=!1,b.addClass("wpProQuiz_answerIncorrect"));l[a]=d(this)});c.find(".wpProQuiz_sortStringItem").each(function(){l[d(this).data("correct")].find(".wpProQuiz_maxtrixSortCriterion").append(this)}).css({"box-shadow":"0 0",cursor:"auto"});c.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable("destroy");
13
+ b=g}else"cloze_answer"==h&&(g=!0,c.find(".wpProQuiz_cloze").each(function(){var a=d(this).children(),b=a.first(),c=b.val().toLowerCase(),e=a.last().text().toLowerCase(),e=d.trim(e.substr(1,e.length-2)),e=f.methode.cleanupCurlyQuotes(e),c=f.methode.cleanupCurlyQuotes(d.trim(c));e==c?(g&=1,i++,b.css("background-color","#B0DAB0")):(g=!1,b.css("background-color","#FFBABA"),a.last().show());b.attr("disabled","disabled")}),b=g);d(a).hide();e.attr("disabled","disabled");void 0==j[c.data("questionId")]&&
14
+ (j[c.data("questionId")]={});j[c.data("questionId")].correct=Number(b);c.find(".wpProQuiz_response").show();c.data("pointsPerAnswer")&&(m+=c.data("pointsAnswer")*i,j[c.data("questionId")].correct_answer_count=i);c.find(".wpProQuiz_responsePoints").text(c.data("pointsAnswer")*i);b?(c.find(".wpProQuiz_correct").show(),n++,c.data("pointsPerAnswer")||(m+=c.data("points"),j[c.data("questionId")].correct_answer_count=1)):c.find(".wpProQuiz_incorrect").show();c.find('input[name="next"]').show();c.data("isChecked",
15
+ !0)}},nextQuestion:function(a){var a=d(a).parent(),c=a.next();a.hide();c.length?(c.show(),e.backButton&&!e.checkAnswer&&c.find('input[name="back"]').show(),f.methode.scrollTo(c,!0)):(e.questionOnSinglePage&&b.find('.wpProQuiz_listItem, input[name="checkSingle"]').hide(),(!e.checkAnswer||e.questionOnSinglePage)&&b.find('input[name="check"]').click(),f.methode.showResult())},backQuestion:function(a){var a=d(a).parent(),b=a.prev();a.hide();b.show();f.methode.scrollTo(b,!0)},showResult:function(){clearInterval(l);
16
+ var a=b.find(".wpProQuiz_points span");b.find(".wpProQuiz_time_limit .progress").clearQueue().stop();b.find(".wpProQuiz_correct_answer").html(n);b.find(".wpProQuiz_results").show();b.find('.wpProQuiz_time_limit, input[name="checkSingle"]').hide();f.methode.setQuizTime();var c=Math.round(1E4*(m/p))/100;a.eq(0).text(m);a.eq(1).text(p);a.eq(2).text(c);a=f.methode.findResultIndex(c);-1<a&&b.find(".wpProQuiz_resultsList").children().eq(a).show();f.methode.scrollTo(b.find(".wpProQuiz_results"),!0);f.methode.sendCompletedQuiz()},
17
+ sendCompletedQuiz:function(){e.preview||(k&&(jQuery.support.cors=!0),d.post(e.url,{action:"wp_pro_quiz_completed_quiz",results:j,quizId:e.quizId}),k&&(jQuery.support.cors=!1))},findResultIndex:function(a){for(var b=e.resultsGrade,d=-1,f=999999,h=0;h<b.length;h++){var i=b[h];a>=i&&a-i<f&&(f=a-i,d=h)}return d},cleanupCurlyQuotes:function(a){a=a.replace(/\u2018/,"'");a=a.replace(/\u2019/,"'");a=a.replace(/\u201C/,'"');return a=a.replace(/\u201D/,'"')},reShowQuestion:function(){b.find('input[name="next"], input[name="check"], input[name="back"], input[name="checkSingle"]').hide();
18
+ b.find(".wpProQuiz_quiz").children().first().children().show();b.find(".wpProQuiz_question_page").hide()},answerRandom:function(a){b.find(a).each(function(){var a=d(this).children(),a=a.sort(function(){return Math.round(Math.random())-0.5}).slice(0,a.length);d(a).appendTo(a[0].parentNode).show()})},questionRandom:function(){var a=b.find(".wpProQuiz_quiz ol").children(),a=a.sort(function(){return Math.round(Math.random())-0.5}).slice(0,a.length);d(a).appendTo(a[0].parentNode);var c=1;d(a).each(function(){d(this).find(".wpProQuiz_question_page span").eq(0).html(c);
19
+ d(this).find("h3 span").html(c++)})},showTip:function(a){$tip=d(a).siblings(".wpProQuiz_tipp");$par=d(a).parent();void 0==j[$par.data("questionId")]&&(j[$par.data("questionId")]={});j[$par.data("questionId")].tip=1;$tip.toggle("fast")},setClozeStyle:function(){b.find(".wpProQuiz_cloze").each(function(){var a=d(this).children(),b=a.first(),a=a.last().clone();a.css("visibility","hidden");d("body").append(a);var e=a.width();a.remove();b.width(e+10)})},checkLock:function(){r=!0;k&&(jQuery.support.cors=
20
+ !0);d.post(e.url,{action:"wp_pro_quiz_check_lock",quizId:e.quizId},function(a){v=a.is;r=!1;a.pre&&b.find('input[name="restartQuiz"]').hide();s&&(s=!1,f.methode.startQuiz())},"json");k&&(jQuery.support.cors=!1)}};f.init=function(){e.cors&&(void 0!=jQuery.support&&void 0!=jQuery.support.cors&&!1==jQuery.support.cors)&&(k=!0);n=0;e.lock&&!e.preview&&(u=!0,f.methode.checkLock());void 0==e.resultsGrade&&(e.resultsGrade=[0]);b.find(".wpProQuiz_quiz, .wpProQuiz_results").hide();b.find(".wpProQuiz_quiz").children().first().children().hide();
21
+ f.methode.setData();f.methode.setClozeStyle();b.find('input[name="startQuiz"]').click(function(a){a.preventDefault();f.methode.preStartQuiz()});b.find('input[name="check"]').click(function(a){a.preventDefault();f.methode.checkAnswer(this)});b.find('input[name="next"]').click(function(a){a.preventDefault();f.methode.nextQuestion(this)});b.find('input[name="restartQuiz"]').click(function(a){a.preventDefault();f.methode.reStartQuiz()});b.find('input[name="reShowQuestion"]').click(function(a){a.preventDefault();
22
+ f.methode.reShowQuestion(this)});b.find('input[name="back"]').click(function(){f.methode.backQuestion(this)});b.find('input[name="tip"]').click(function(){f.methode.showTip(this)});b.find('input[name="checkSingle"]').click(function(){b.find('input[name="next"]').last().click()});d(document).mouseup(function(a){var c=b.find(".wpProQuiz_tipp"),d=b.find('input[name="tip"]');!c.is(a.target)&&(0==c.has(a.target).length&&!d.is(a.target))&&c.hide("fast")})};f.init()};d.fn.wpProQuizFront=function(q){return this.each(function(){void 0==
23
+ d(this).data("wpProQuizFront")&&d(this).data("wpProQuizFront",new d.wpProQuizFront(this,q))})}})(jQuery);
languages/wp-pro-quiz-ar.mo CHANGED
Binary file
languages/wp-pro-quiz-ar.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2012-12-26 17:50+0100\n"
5
- "PO-Revision-Date: 2012-12-26 17:50+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: abuhassan <sajja2002@hotmail.com>\n"
8
  "Language: Arabic\n"
@@ -14,51 +14,67 @@ msgstr ""
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: lib/controller/WpProQuiz_Controller_Admin.php:91
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "هل تريد حقاً ان تحذف هذا الاختبار/السؤال؟"
20
 
21
- #: lib/controller/WpProQuiz_Controller_Admin.php:92
22
  msgid "Title is not filled!"
23
  msgstr "لم يتم تعبئة هذا!"
24
 
25
- #: lib/controller/WpProQuiz_Controller_Admin.php:93
26
  msgid "No question deposited!"
27
  msgstr "لم يتم وضع سؤال!"
28
 
29
- #: lib/controller/WpProQuiz_Controller_Admin.php:94
30
  msgid "Correct answer was not selected!"
31
  msgstr "لم يتم اختيار اجابة صحيحة!"
32
 
33
- #: lib/controller/WpProQuiz_Controller_Admin.php:95
34
  msgid "No answer deposited!"
35
  msgstr "لم يتم وضع اجابة!"
36
 
37
- #: lib/controller/WpProQuiz_Controller_Admin.php:96
38
  msgid "No quiz description filled!"
39
  msgstr "لم يتم تعبئة وصف للاختبار!"
40
 
41
- #: lib/controller/WpProQuiz_Controller_Admin.php:97
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "النسبة المئوية في نص النتائج غير صحيحة."
44
 
45
- #: lib/controller/WpProQuiz_Controller_Admin.php:98
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "لا يوجد رقم في حقل /\"النقاط/\" أو أقل من 1"
48
 
49
- #: lib/controller/WpProQuiz_Controller_Admin.php:99
50
  msgid "No quiz selected"
51
  msgstr "لم يتم اختيار اختبار"
52
 
53
- #: lib/controller/WpProQuiz_Controller_Admin.php:100
54
  msgid "Do you really want to reset the statistic?"
55
  msgstr ""
56
 
57
- #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  msgid "Settings saved"
59
  msgstr ""
60
 
61
- #: lib/controller/WpProQuiz_Controller_ImportExport.php:70
62
  #: lib/helper/WpProQuiz_Helper_Import.php:54
63
  #: lib/helper/WpProQuiz_Helper_Import.php:63
64
  #: lib/helper/WpProQuiz_Helper_Import.php:70
@@ -67,59 +83,60 @@ msgstr "لا يمكن استكمال الملف"
67
 
68
  #: lib/controller/WpProQuiz_Controller_Question.php:9
69
  #: lib/controller/WpProQuiz_Controller_Question.php:19
70
- #: lib/controller/WpProQuiz_Controller_Quiz.php:63
71
  msgid "Quiz not found"
72
  msgstr "لم يتم العثور على الاختبار"
73
 
74
- #: lib/controller/WpProQuiz_Controller_Question.php:60
75
  msgid "questions copied"
76
  msgstr ""
77
 
78
- #: lib/controller/WpProQuiz_Controller_Question.php:121
79
  msgid "Edit question"
80
  msgstr "تحرير السؤال"
81
 
82
- #: lib/controller/WpProQuiz_Controller_Question.php:125
83
  msgid "Question not found"
84
  msgstr "لم يتم العثور على السؤال"
85
 
86
- #: lib/controller/WpProQuiz_Controller_Question.php:138
87
  #: lib/controller/WpProQuiz_Controller_Question.php:164
 
88
  #, php-format
89
  msgid "Question: %d"
90
  msgstr "السؤال: %d"
91
 
92
- #: lib/controller/WpProQuiz_Controller_Question.php:142
93
  msgid "Question edited"
94
  msgstr "تم تحرير السؤال"
95
 
96
- #: lib/controller/WpProQuiz_Controller_Question.php:151
97
  msgid "New question"
98
  msgstr "سؤال جديد"
99
 
100
- #: lib/controller/WpProQuiz_Controller_Question.php:169
101
  msgid "Question added"
102
  msgstr "تم اضافة سؤال"
103
 
104
- #: lib/controller/WpProQuiz_Controller_Quiz.php:58
 
105
  msgid "Edit quiz"
106
  msgstr "تحرير الاختبار"
107
 
108
- #: lib/controller/WpProQuiz_Controller_Quiz.php:78
109
  msgid "Quiz edited"
110
  msgstr "تم تحرير الاختبار"
111
 
112
- #: lib/controller/WpProQuiz_Controller_Quiz.php:87
113
- #: lib/controller/WpProQuiz_Controller_Quiz.php:115
114
  msgid "Quiz title or quiz description are not filled"
115
  msgstr "لم يتم تعبئة عنوان او وصف الاختبار"
116
 
117
- #: lib/controller/WpProQuiz_Controller_Quiz.php:98
118
- #: lib/controller/WpProQuiz_Controller_Quiz.php:109
119
  msgid "Create quiz"
120
  msgstr "انشاء اختبار"
121
 
122
- #: lib/controller/WpProQuiz_Controller_Quiz.php:135
123
  msgid "Quiz deleted"
124
  msgstr "تم حذف الاختبار"
125
 
@@ -131,104 +148,123 @@ msgstr "لم يتم رفع الملف"
131
  msgid "File have wrong format"
132
  msgstr "صيغة الملف خاطئة"
133
 
134
- #: lib/view/WpProQuiz_View_FrontQuiz.php:80
 
 
 
 
135
  msgid "Start quiz"
136
  msgstr "بدأ الاختبار"
137
 
138
- #: lib/view/WpProQuiz_View_FrontQuiz.php:85
139
  msgid ""
140
  "You have already completed the quiz before. Hence you can not start it again."
141
  msgstr ""
142
 
143
- #: lib/view/WpProQuiz_View_FrontQuiz.php:89
144
- #: lib/view/WpProQuiz_View_Statistics.php:58
 
145
  msgid "Results"
146
  msgstr "النتائج"
147
 
148
- #: lib/view/WpProQuiz_View_FrontQuiz.php:91
149
  #, php-format
150
  msgid "%s of %s questions answered correctly"
151
  msgstr "تم اجابة %s من %s اسئلة بشكل صحيح"
152
 
153
- #: lib/view/WpProQuiz_View_FrontQuiz.php:94
154
  msgid "Your time: <span></span>"
155
  msgstr "وقتك: <span></span>"
156
 
157
- #: lib/view/WpProQuiz_View_FrontQuiz.php:97
158
  msgid "Time has elapsed"
159
  msgstr "مضى من الوقت"
160
 
161
- #: lib/view/WpProQuiz_View_FrontQuiz.php:100
162
  msgid ""
163
  "You have reached <span></span> of <span></span> points, (<span></span>%)"
164
  msgstr "لقد وصلت الي <span></span> من <span></span> لنقاط, (<span></span>%)"
165
 
166
- #: lib/view/WpProQuiz_View_FrontQuiz.php:115
167
  msgid "Restart quiz"
168
  msgstr "اعادة الاختبار"
169
 
170
- #: lib/view/WpProQuiz_View_FrontQuiz.php:117
171
  msgid "View questions"
172
  msgstr "استعراض الاسئلة"
173
 
174
- #: lib/view/WpProQuiz_View_FrontQuiz.php:122
175
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
176
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
177
  msgid "Time limit"
178
  msgstr "الوقت المحدد"
179
 
180
- #: lib/view/WpProQuiz_View_FrontQuiz.php:135
181
  #, php-format
182
  msgid "Question %s of %s"
183
  msgstr "اسئلة %s من %s "
184
 
185
- #: lib/view/WpProQuiz_View_FrontQuiz.php:138
186
- #: lib/view/WpProQuiz_View_QuestionEdit.php:35
187
  #: lib/view/WpProQuiz_View_Statistics.php:53
188
  msgid "Question"
189
  msgstr "اسئلة"
190
 
191
- #: lib/view/WpProQuiz_View_FrontQuiz.php:142
192
  #, php-format
193
  msgid "%d points"
194
  msgstr "%d درجات"
195
 
196
- #: lib/view/WpProQuiz_View_FrontQuiz.php:152
197
- #: lib/view/WpProQuiz_View_QuestionEdit.php:235
198
- #: lib/view/WpProQuiz_View_QuestionEdit.php:273
199
- #: lib/view/WpProQuiz_View_QuestionEdit.php:308
200
  msgid "Sort elements"
201
  msgstr "ترتيب العناصر"
202
 
203
- #: lib/view/WpProQuiz_View_FrontQuiz.php:232
 
204
  #: lib/view/WpProQuiz_View_Statistics.php:55
 
205
  msgid "Correct"
206
  msgstr "صحيح"
207
 
208
- #: lib/view/WpProQuiz_View_FrontQuiz.php:240
 
 
 
 
 
 
 
 
 
 
 
209
  #: lib/view/WpProQuiz_View_Statistics.php:56
 
210
  msgid "Incorrect"
211
  msgstr "خطأ"
212
 
213
- #: lib/view/WpProQuiz_View_FrontQuiz.php:256
214
- #: lib/view/WpProQuiz_View_FrontQuiz.php:266
215
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
216
  msgid "Hint"
217
  msgstr "تلميح"
218
 
219
- #: lib/view/WpProQuiz_View_FrontQuiz.php:263
220
  msgid "Check"
221
  msgstr "التحقق"
222
 
223
- #: lib/view/WpProQuiz_View_FrontQuiz.php:264
224
  msgid "Back"
225
  msgstr "العودة"
226
 
227
- #: lib/view/WpProQuiz_View_FrontQuiz.php:268
228
  msgid "Next exercise"
229
  msgstr "التمرين التالي"
230
 
231
- #: lib/view/WpProQuiz_View_FrontQuiz.php:281
232
  msgid "Finish quiz"
233
  msgstr ""
234
 
@@ -242,7 +278,7 @@ msgstr ""
242
 
243
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
244
  #: lib/view/WpProQuiz_View_GobalSettings.php:25
245
- #: lib/view/WpProQuiz_View_QuizOverall.php:47
246
  msgid "Settings in case of problems"
247
  msgstr ""
248
 
@@ -257,8 +293,8 @@ msgstr ""
257
 
258
  #: lib/view/WpProQuiz_View_GobalSettings.php:21
259
  #: lib/view/WpProQuiz_View_Import.php:22
260
- #: lib/view/WpProQuiz_View_QuestionEdit.php:13
261
- #: lib/view/WpProQuiz_View_QuestionOverall.php:18
262
  #: lib/view/WpProQuiz_View_QuizEdit.php:8
263
  #: lib/view/WpProQuiz_View_Statistics.php:18
264
  #: lib/view/WpProQuiz_View_StyleManager.php:11
@@ -272,6 +308,7 @@ msgstr ""
272
 
273
  #: lib/view/WpProQuiz_View_GobalSettings.php:40
274
  #: lib/view/WpProQuiz_View_GobalSettings.php:62
 
275
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
276
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
277
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
@@ -352,15 +389,32 @@ msgstr ""
352
  msgid "If you have any problems with the Touch Library, please deactivate it."
353
  msgstr ""
354
 
355
- #: lib/view/WpProQuiz_View_GobalSettings.php:107
356
- #: lib/view/WpProQuiz_View_QuestionEdit.php:353
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
357
  #: lib/view/WpProQuiz_View_QuizEdit.php:430
358
  msgid "Save"
359
  msgstr "حفظ"
360
 
361
  #: lib/view/WpProQuiz_View_Import.php:21
362
- #: lib/view/WpProQuiz_View_QuizOverall.php:81
363
- #: lib/view/WpProQuiz_View_QuizOverall.php:96
364
  msgid "Import"
365
  msgstr "استيراد"
366
 
@@ -381,28 +435,28 @@ msgid "Quiz name"
381
  msgstr "اسم الاختبار"
382
 
383
  #: lib/view/WpProQuiz_View_Import.php:44
384
- #: lib/view/WpProQuiz_View_QuizOverall.php:69
385
  msgid "Questions"
386
  msgstr "اسئلة"
387
 
388
  #: lib/view/WpProQuiz_View_Import.php:67
389
- #: lib/view/WpProQuiz_View_QuizOverall.php:107
390
  msgid "Start import"
391
  msgstr "ابدأ الاستيراد"
392
 
393
- #: lib/view/WpProQuiz_View_QuestionEdit.php:17
394
  msgid "Title"
395
  msgstr "العنوان"
396
 
397
- #: lib/view/WpProQuiz_View_QuestionEdit.php:17
398
- #: lib/view/WpProQuiz_View_QuestionEdit.php:43
399
- #: lib/view/WpProQuiz_View_QuestionEdit.php:60
400
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
401
  #: lib/view/WpProQuiz_View_QuizEdit.php:362
402
  msgid "(optional)"
403
  msgstr "(اختيار)"
404
 
405
- #: lib/view/WpProQuiz_View_QuestionEdit.php:20
406
  msgid ""
407
  "The title is used for overview, it is not visible in quiz. If you leave the "
408
  "title field empty, a title will be generated."
@@ -410,29 +464,38 @@ msgstr ""
410
  "يتم استخدام العنوان للعرض، وهو غير مرئيا في الاختبار. إذا تركت حقل العنوان "
411
  "فارغا، سيتم إنشاء عنوان."
412
 
413
- #: lib/view/WpProQuiz_View_QuestionEdit.php:26
414
- #: lib/view/WpProQuiz_View_QuestionEdit.php:31
415
- #: lib/view/WpProQuiz_View_Statistics.php:54
416
- msgid "Points"
417
- msgstr "درجات"
418
-
419
- #: lib/view/WpProQuiz_View_QuestionEdit.php:26
420
- #: lib/view/WpProQuiz_View_QuestionEdit.php:35
421
- #: lib/view/WpProQuiz_View_QuestionEdit.php:123
422
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
423
  #: lib/view/WpProQuiz_View_QuizEdit.php:351
424
  msgid "(required)"
425
  msgstr "(مطلوب)"
426
 
427
- #: lib/view/WpProQuiz_View_QuestionEdit.php:29
428
  msgid "Points for this question (Standard is 1 point)"
429
  msgstr "درجات هذا السؤال (عادة 1 درجة)"
430
 
 
 
 
 
 
 
 
 
 
 
 
431
  #: lib/view/WpProQuiz_View_QuestionEdit.php:43
 
 
 
 
432
  msgid "Message with the correct answer"
433
  msgstr "رسالة مع الاجابة الصحيحة"
434
 
435
- #: lib/view/WpProQuiz_View_QuestionEdit.php:46
436
  msgid ""
437
  "This text will be visible if answered correctly. It can be used as "
438
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -441,15 +504,15 @@ msgstr ""
441
  "وهذا النص مرئية إذا أجاب بشكل صحيح. ويمكن استخدامه كدليل شرح للمسائل "
442
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
443
 
444
- #: lib/view/WpProQuiz_View_QuestionEdit.php:50
445
  msgid "Same text for correct- and incorrect-message?"
446
  msgstr "نفس النص مع رسالة الاجابة الصحيحة - و الغير صحيحة؟"
447
 
448
- #: lib/view/WpProQuiz_View_QuestionEdit.php:60
449
  msgid "Message with the incorrect answer"
450
  msgstr "رسالة مع الاجابة الغير صحيحة"
451
 
452
- #: lib/view/WpProQuiz_View_QuestionEdit.php:63
453
  msgid ""
454
  "This text will be visible if answered incorrectly. It can be used as "
455
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -458,53 +521,53 @@ msgstr ""
458
  "وهذا النص مرئية إذا أجاب بشكل غير صحيح. ويمكن استخدامه كدليل شرح للمسائل "
459
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
460
 
461
- #: lib/view/WpProQuiz_View_QuestionEdit.php:74
462
  msgid "Here you can enter solution hint."
463
  msgstr "يمكنك وضع هنا تلميح للأجابة."
464
 
465
- #: lib/view/WpProQuiz_View_QuestionEdit.php:78
466
  msgid "Activate hint for this question?"
467
  msgstr "تفعيل التلميح لهذا السؤال؟"
468
 
469
- #: lib/view/WpProQuiz_View_QuestionEdit.php:90
470
  msgid "Answer type"
471
  msgstr "نوع السؤال؟"
472
 
473
- #: lib/view/WpProQuiz_View_QuestionEdit.php:98
474
  msgid "Single choice"
475
  msgstr "اختيار واحد"
476
 
477
- #: lib/view/WpProQuiz_View_QuestionEdit.php:102
478
  msgid "Multiple choice"
479
  msgstr "أختيار متعدد"
480
 
481
- #: lib/view/WpProQuiz_View_QuestionEdit.php:106
482
  msgid "\"Free\" choice"
483
  msgstr "\"حر\" اختيار"
484
 
485
- #: lib/view/WpProQuiz_View_QuestionEdit.php:110
486
  msgid "\"Sorting\" choice"
487
  msgstr "\"ترتيب\" اختيار"
488
 
489
- #: lib/view/WpProQuiz_View_QuestionEdit.php:114
490
  msgid "\"Matrix Sorting\" choice"
491
  msgstr "\"ترتيب منظمي\" اختيار"
492
 
493
- #: lib/view/WpProQuiz_View_QuestionEdit.php:118
494
  msgid "Cloze"
495
  msgstr "اكمل"
496
 
497
- #: lib/view/WpProQuiz_View_QuestionEdit.php:123
498
  msgid "Answers"
499
  msgstr "اجابات"
500
 
501
- #: lib/view/WpProQuiz_View_QuestionEdit.php:128
502
- #: lib/view/WpProQuiz_View_QuestionEdit.php:132
503
  msgid ""
504
  "correct answers (one per line) (answers will be converted to lower case)"
505
  msgstr "الإجابات الصحيحة (واحد في كل سطر) (يتم تحويل الإجابات إلى أحرف صغيرة)"
506
 
507
- #: lib/view/WpProQuiz_View_QuestionEdit.php:138
508
  msgid ""
509
  "Please sort the answers in right order with the \"Move\" - Button. The "
510
  "answers will be displayed randomly."
@@ -512,59 +575,59 @@ msgstr ""
512
  "يرجى فرز الإجابات في بالترتيب الصحيح بزر \"نقل\" - . سوف يتم عرض الإجابات "
513
  "بشكل عشوائي."
514
 
515
- #: lib/view/WpProQuiz_View_QuestionEdit.php:144
516
- #: lib/view/WpProQuiz_View_QuestionEdit.php:156
517
- #: lib/view/WpProQuiz_View_QuestionEdit.php:166
518
- #: lib/view/WpProQuiz_View_QuestionEdit.php:185
519
- #: lib/view/WpProQuiz_View_QuestionEdit.php:201
520
  #: lib/view/WpProQuiz_View_QuestionEdit.php:215
521
- #: lib/view/WpProQuiz_View_QuestionEdit.php:263
522
- #: lib/view/WpProQuiz_View_QuestionEdit.php:301
523
- #: lib/view/WpProQuiz_View_QuestionEdit.php:336
 
524
  msgid "Delete answer"
525
  msgstr "حذف الاجابة"
526
 
527
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
528
- #: lib/view/WpProQuiz_View_QuestionEdit.php:157
529
- #: lib/view/WpProQuiz_View_QuestionEdit.php:167
530
- #: lib/view/WpProQuiz_View_QuestionEdit.php:186
531
- #: lib/view/WpProQuiz_View_QuestionEdit.php:202
532
  #: lib/view/WpProQuiz_View_QuestionEdit.php:216
533
- #: lib/view/WpProQuiz_View_QuestionEdit.php:262
534
- #: lib/view/WpProQuiz_View_QuestionEdit.php:300
535
- #: lib/view/WpProQuiz_View_QuestionEdit.php:335
536
- #: lib/view/WpProQuiz_View_QuestionOverall.php:38
 
537
  msgid "Move"
538
  msgstr "تحريك"
539
 
540
- #: lib/view/WpProQuiz_View_QuestionEdit.php:147
541
- #: lib/view/WpProQuiz_View_QuestionEdit.php:159
542
- #: lib/view/WpProQuiz_View_QuestionEdit.php:169
543
- #: lib/view/WpProQuiz_View_QuestionEdit.php:188
544
- #: lib/view/WpProQuiz_View_QuestionEdit.php:204
545
  #: lib/view/WpProQuiz_View_QuestionEdit.php:218
546
- #: lib/view/WpProQuiz_View_QuestionEdit.php:249
547
- #: lib/view/WpProQuiz_View_QuestionEdit.php:255
548
- #: lib/view/WpProQuiz_View_QuestionEdit.php:287
549
- #: lib/view/WpProQuiz_View_QuestionEdit.php:293
550
- #: lib/view/WpProQuiz_View_QuestionEdit.php:322
551
- #: lib/view/WpProQuiz_View_QuestionEdit.php:328
 
552
  msgid "Allow HTML"
553
  msgstr "السماح بــ HTML"
554
 
555
- #: lib/view/WpProQuiz_View_QuestionEdit.php:175
556
- #: lib/view/WpProQuiz_View_QuestionEdit.php:224
557
- #: lib/view/WpProQuiz_View_QuestionEdit.php:340
558
  msgid "Add new answer"
559
  msgstr "اضف اجابة جديدة"
560
 
561
- #: lib/view/WpProQuiz_View_QuestionEdit.php:183
562
- #: lib/view/WpProQuiz_View_QuestionEdit.php:199
563
  #: lib/view/WpProQuiz_View_QuestionEdit.php:213
 
564
  msgid "correct?"
565
  msgstr "صحيح؟"
566
 
567
- #: lib/view/WpProQuiz_View_QuestionEdit.php:228
568
  msgid ""
569
  "In this mode, not a list have to be sorted, but elements must be assigned to "
570
  "matching criterion."
@@ -572,13 +635,13 @@ msgstr ""
572
  "في هذا الوضع، لا يوجد قائمة لا بد من فرزها، ولكن يجب تعيين عناصر مطابقة "
573
  "لمعيار."
574
 
575
- #: lib/view/WpProQuiz_View_QuestionEdit.php:234
576
- #: lib/view/WpProQuiz_View_QuestionEdit.php:272
577
- #: lib/view/WpProQuiz_View_QuestionEdit.php:307
578
  msgid "Criterion"
579
  msgstr "معيار"
580
 
581
- #: lib/view/WpProQuiz_View_QuestionEdit.php:344
582
  msgid ""
583
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
584
  "small letters will be ignored."
@@ -590,51 +653,56 @@ msgstr ""
590
  msgid "Questions sorted"
591
  msgstr "ترتيب الاسئلة"
592
 
593
- #: lib/view/WpProQuiz_View_QuestionOverall.php:23
594
- #: lib/view/WpProQuiz_View_QuizOverall.php:55
595
  msgid "Name"
596
  msgstr "الاسم"
597
 
598
- #: lib/view/WpProQuiz_View_QuestionOverall.php:24
599
- #: lib/view/WpProQuiz_View_QuizOverall.php:56
600
  msgid "Action"
601
  msgstr "الحدث"
602
 
603
- #: lib/view/WpProQuiz_View_QuestionOverall.php:36
604
- #: lib/view/WpProQuiz_View_QuizOverall.php:70
605
  msgid "Edit"
606
  msgstr "تحرير"
607
 
608
- #: lib/view/WpProQuiz_View_QuestionOverall.php:37
609
- #: lib/view/WpProQuiz_View_QuizOverall.php:71
610
  msgid "Delete"
611
  msgstr "حذف"
612
 
613
- #: lib/view/WpProQuiz_View_QuestionOverall.php:45
 
 
 
 
 
614
  msgid "Add question"
615
  msgstr "اضافة سؤال"
616
 
617
- #: lib/view/WpProQuiz_View_QuestionOverall.php:46
618
  msgid "Save order"
619
  msgstr "حفظ الترتيب"
620
 
621
- #: lib/view/WpProQuiz_View_QuestionOverall.php:47
622
- #: lib/view/WpProQuiz_View_QuestionOverall.php:51
623
  msgid "Copy questions from another Quiz"
624
  msgstr ""
625
 
626
- #: lib/view/WpProQuiz_View_QuestionOverall.php:52
627
  msgid ""
628
  "Here you can copy questions from another quiz into this quiz. (Multiple "
629
  "selection enabled)"
630
  msgstr ""
631
 
632
- #: lib/view/WpProQuiz_View_QuestionOverall.php:56
633
  #: lib/view/WpProQuiz_View_Statistics.php:45
634
  msgid "Loading"
635
  msgstr ""
636
 
637
- #: lib/view/WpProQuiz_View_QuestionOverall.php:64
638
  msgid "Copy questions"
639
  msgstr ""
640
 
@@ -762,7 +830,7 @@ msgstr ""
762
 
763
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
764
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
765
- #: lib/view/WpProQuiz_View_QuizOverall.php:73
766
  msgid "Statistics"
767
  msgstr "احصائيات"
768
 
@@ -935,42 +1003,42 @@ msgstr "إذا الاختبار لا يعمل في الواجهة الأمامي
935
  msgid "Style Manager"
936
  msgstr ""
937
 
938
- #: lib/view/WpProQuiz_View_QuizOverall.php:53
939
  msgid "ID"
940
  msgstr "الرقم"
941
 
942
- #: lib/view/WpProQuiz_View_QuizOverall.php:54
943
  msgid "Shortcode"
944
  msgstr "الكود"
945
 
946
- #: lib/view/WpProQuiz_View_QuizOverall.php:72
947
  msgid "Preview"
948
  msgstr "استعراض"
949
 
950
- #: lib/view/WpProQuiz_View_QuizOverall.php:80
951
  msgid "Add quiz"
952
  msgstr "اضف اختبار"
953
 
954
- #: lib/view/WpProQuiz_View_QuizOverall.php:82
955
- #: lib/view/WpProQuiz_View_QuizOverall.php:86
956
  msgid "Export"
957
  msgstr "تصدير"
958
 
959
- #: lib/view/WpProQuiz_View_QuizOverall.php:87
960
  msgid ""
961
  "Choose the respective question, which you would like to export and press on "
962
  "\"Start export\""
963
  msgstr "اختار سؤال، الذي تود أن تقوم بتصديره و اضغط على \"ابدأ التصدير\""
964
 
965
- #: lib/view/WpProQuiz_View_QuizOverall.php:91
966
  msgid "Start export"
967
  msgstr "ابدأ التصدير"
968
 
969
- #: lib/view/WpProQuiz_View_QuizOverall.php:97
970
  msgid "Import only *.wpq files from known and trusted sources."
971
  msgstr "استورد ملفات *.wpq فقط من مصدر معروف او موثوق به"
972
 
973
- #: lib/view/WpProQuiz_View_QuizOverall.php:105
974
  #, php-format
975
  msgid "Maximal %d MiB"
976
  msgstr "الحد الاقصى من %d MIB"
@@ -993,7 +1061,7 @@ msgid "Anonymous users"
993
  msgstr ""
994
 
995
  #: lib/view/WpProQuiz_View_Statistics.php:28
996
- msgid "Registered useres"
997
  msgstr ""
998
 
999
  #: lib/view/WpProQuiz_View_Statistics.php:29
@@ -1005,25 +1073,44 @@ msgid "Please select user name:"
1005
  msgstr ""
1006
 
1007
  #: lib/view/WpProQuiz_View_Statistics.php:57
 
1008
  msgid "Hints used"
1009
  msgstr "التلميحات مستخدمة"
1010
 
1011
- #: lib/view/WpProQuiz_View_Statistics.php:82
1012
- msgid "Total"
1013
- msgstr "المجموع"
1014
 
1015
- #: lib/view/WpProQuiz_View_Statistics.php:94
1016
  msgid "Reset statistics"
1017
  msgstr "اعادة ضبط الاحصائيات"
1018
 
1019
- #: lib/view/WpProQuiz_View_Statistics.php:95
 
1020
  msgid "Refresh"
1021
  msgstr ""
1022
 
1023
- #: lib/view/WpProQuiz_View_Statistics.php:98
 
1024
  msgid "Reset entire statistic"
1025
  msgstr ""
1026
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1027
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1028
  msgid "Front"
1029
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-01-07 23:42+0100\n"
5
+ "PO-Revision-Date: 2013-01-07 23:42+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: abuhassan <sajja2002@hotmail.com>\n"
8
  "Language: Arabic\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
+ #: lib/controller/WpProQuiz_Controller_Admin.php:54
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "هل تريد حقاً ان تحذف هذا الاختبار/السؤال؟"
20
 
21
+ #: lib/controller/WpProQuiz_Controller_Admin.php:55
22
  msgid "Title is not filled!"
23
  msgstr "لم يتم تعبئة هذا!"
24
 
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:56
26
  msgid "No question deposited!"
27
  msgstr "لم يتم وضع سؤال!"
28
 
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:57
30
  msgid "Correct answer was not selected!"
31
  msgstr "لم يتم اختيار اجابة صحيحة!"
32
 
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:58
34
  msgid "No answer deposited!"
35
  msgstr "لم يتم وضع اجابة!"
36
 
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:59
38
  msgid "No quiz description filled!"
39
  msgstr "لم يتم تعبئة وصف للاختبار!"
40
 
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:60
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "النسبة المئوية في نص النتائج غير صحيحة."
44
 
45
+ #: lib/controller/WpProQuiz_Controller_Admin.php:61
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "لا يوجد رقم في حقل /\"النقاط/\" أو أقل من 1"
48
 
49
+ #: lib/controller/WpProQuiz_Controller_Admin.php:62
50
  msgid "No quiz selected"
51
  msgstr "لم يتم اختيار اختبار"
52
 
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:63
54
  msgid "Do you really want to reset the statistic?"
55
  msgstr ""
56
 
57
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
58
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
59
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:43
60
+ #: lib/controller/WpProQuiz_Controller_Question.php:51
61
+ #: lib/controller/WpProQuiz_Controller_Question.php:128
62
+ #: lib/controller/WpProQuiz_Controller_Question.php:143
63
+ #: lib/controller/WpProQuiz_Controller_Question.php:189
64
+ #: lib/controller/WpProQuiz_Controller_Question.php:284
65
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:55
66
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:69
67
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:114
68
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:147
69
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:138
70
+ msgid "You do not have sufficient permissions to access this page."
71
+ msgstr ""
72
+
73
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:19
74
  msgid "Settings saved"
75
  msgstr ""
76
 
77
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
78
  #: lib/helper/WpProQuiz_Helper_Import.php:54
79
  #: lib/helper/WpProQuiz_Helper_Import.php:63
80
  #: lib/helper/WpProQuiz_Helper_Import.php:70
83
 
84
  #: lib/controller/WpProQuiz_Controller_Question.php:9
85
  #: lib/controller/WpProQuiz_Controller_Question.php:19
86
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:78
87
  msgid "Quiz not found"
88
  msgstr "لم يتم العثور على الاختبار"
89
 
90
+ #: lib/controller/WpProQuiz_Controller_Question.php:65
91
  msgid "questions copied"
92
  msgstr ""
93
 
94
+ #: lib/controller/WpProQuiz_Controller_Question.php:147
95
  msgid "Edit question"
96
  msgstr "تحرير السؤال"
97
 
98
+ #: lib/controller/WpProQuiz_Controller_Question.php:151
99
  msgid "Question not found"
100
  msgstr "لم يتم العثور على السؤال"
101
 
 
102
  #: lib/controller/WpProQuiz_Controller_Question.php:164
103
+ #: lib/controller/WpProQuiz_Controller_Question.php:206
104
  #, php-format
105
  msgid "Question: %d"
106
  msgstr "السؤال: %d"
107
 
108
+ #: lib/controller/WpProQuiz_Controller_Question.php:174
109
  msgid "Question edited"
110
  msgstr "تم تحرير السؤال"
111
 
112
+ #: lib/controller/WpProQuiz_Controller_Question.php:193
113
  msgid "New question"
114
  msgstr "سؤال جديد"
115
 
116
+ #: lib/controller/WpProQuiz_Controller_Question.php:217
117
  msgid "Question added"
118
  msgstr "تم اضافة سؤال"
119
 
120
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:73
121
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:21
122
  msgid "Edit quiz"
123
  msgstr "تحرير الاختبار"
124
 
125
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:93
126
  msgid "Quiz edited"
127
  msgstr "تم تحرير الاختبار"
128
 
129
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:102
130
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:135
131
  msgid "Quiz title or quiz description are not filled"
132
  msgstr "لم يتم تعبئة عنوان او وصف الاختبار"
133
 
134
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:118
135
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:129
136
  msgid "Create quiz"
137
  msgstr "انشاء اختبار"
138
 
139
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:160
140
  msgid "Quiz deleted"
141
  msgstr "تم حذف الاختبار"
142
 
148
  msgid "File have wrong format"
149
  msgstr "صيغة الملف خاطئة"
150
 
151
+ #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
152
+ msgid "The user completed a quiz."
153
+ msgstr ""
154
+
155
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:86
156
  msgid "Start quiz"
157
  msgstr "بدأ الاختبار"
158
 
159
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:91
160
  msgid ""
161
  "You have already completed the quiz before. Hence you can not start it again."
162
  msgstr ""
163
 
164
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:95
165
+ #: lib/view/WpProQuiz_View_Statistics.php:59
166
+ #: lib/view/WpProQuiz_View_Statistics.php:150
167
  msgid "Results"
168
  msgstr "النتائج"
169
 
170
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:97
171
  #, php-format
172
  msgid "%s of %s questions answered correctly"
173
  msgstr "تم اجابة %s من %s اسئلة بشكل صحيح"
174
 
175
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:100
176
  msgid "Your time: <span></span>"
177
  msgstr "وقتك: <span></span>"
178
 
179
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:103
180
  msgid "Time has elapsed"
181
  msgstr "مضى من الوقت"
182
 
183
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:106
184
  msgid ""
185
  "You have reached <span></span> of <span></span> points, (<span></span>%)"
186
  msgstr "لقد وصلت الي <span></span> من <span></span> لنقاط, (<span></span>%)"
187
 
188
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:121
189
  msgid "Restart quiz"
190
  msgstr "اعادة الاختبار"
191
 
192
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:123
193
  msgid "View questions"
194
  msgstr "استعراض الاسئلة"
195
 
196
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:128
197
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
198
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
199
  msgid "Time limit"
200
  msgstr "الوقت المحدد"
201
 
202
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:141
203
  #, php-format
204
  msgid "Question %s of %s"
205
  msgstr "اسئلة %s من %s "
206
 
207
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:144
208
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:49
209
  #: lib/view/WpProQuiz_View_Statistics.php:53
210
  msgid "Question"
211
  msgstr "اسئلة"
212
 
213
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:148
214
  #, php-format
215
  msgid "%d points"
216
  msgstr "%d درجات"
217
 
218
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:158
219
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
220
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:290
221
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:327
222
  msgid "Sort elements"
223
  msgstr "ترتيب العناصر"
224
 
225
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:240
226
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:247
227
  #: lib/view/WpProQuiz_View_Statistics.php:55
228
+ #: lib/view/WpProQuiz_View_Statistics.php:147
229
  msgid "Correct"
230
  msgstr "صحيح"
231
 
232
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:242
233
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:260
234
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
235
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
236
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
237
+ #: lib/view/WpProQuiz_View_Statistics.php:54
238
+ #: lib/view/WpProQuiz_View_Statistics.php:146
239
+ msgid "Points"
240
+ msgstr "درجات"
241
+
242
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:258
243
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:265
244
  #: lib/view/WpProQuiz_View_Statistics.php:56
245
+ #: lib/view/WpProQuiz_View_Statistics.php:148
246
  msgid "Incorrect"
247
  msgstr "خطأ"
248
 
249
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:282
250
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:292
251
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:85
252
  msgid "Hint"
253
  msgstr "تلميح"
254
 
255
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:289
256
  msgid "Check"
257
  msgstr "التحقق"
258
 
259
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:290
260
  msgid "Back"
261
  msgstr "العودة"
262
 
263
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:294
264
  msgid "Next exercise"
265
  msgstr "التمرين التالي"
266
 
267
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:307
268
  msgid "Finish quiz"
269
  msgstr ""
270
 
278
 
279
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
280
  #: lib/view/WpProQuiz_View_GobalSettings.php:25
281
+ #: lib/view/WpProQuiz_View_QuizOverall.php:48
282
  msgid "Settings in case of problems"
283
  msgstr ""
284
 
293
 
294
  #: lib/view/WpProQuiz_View_GobalSettings.php:21
295
  #: lib/view/WpProQuiz_View_Import.php:22
296
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
297
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
298
  #: lib/view/WpProQuiz_View_QuizEdit.php:8
299
  #: lib/view/WpProQuiz_View_Statistics.php:18
300
  #: lib/view/WpProQuiz_View_StyleManager.php:11
308
 
309
  #: lib/view/WpProQuiz_View_GobalSettings.php:40
310
  #: lib/view/WpProQuiz_View_GobalSettings.php:62
311
+ #: lib/view/WpProQuiz_View_GobalSettings.php:114
312
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
313
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
314
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
389
  msgid "If you have any problems with the Touch Library, please deactivate it."
390
  msgstr ""
391
 
392
+ #: lib/view/WpProQuiz_View_GobalSettings.php:105
393
+ #: lib/view/WpProQuiz_View_GobalSettings.php:110
394
+ msgid "jQuery support cors"
395
+ msgstr ""
396
+
397
+ #: lib/view/WpProQuiz_View_GobalSettings.php:117
398
+ msgid "Is required only in rare cases."
399
+ msgstr ""
400
+
401
+ #: lib/view/WpProQuiz_View_GobalSettings.php:120
402
+ msgid "If you have problems with the front ajax, please activate it."
403
+ msgstr ""
404
+
405
+ #: lib/view/WpProQuiz_View_GobalSettings.php:123
406
+ msgid "e.g. Domain with special characters in combination with IE"
407
+ msgstr ""
408
+
409
+ #: lib/view/WpProQuiz_View_GobalSettings.php:132
410
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:373
411
  #: lib/view/WpProQuiz_View_QuizEdit.php:430
412
  msgid "Save"
413
  msgstr "حفظ"
414
 
415
  #: lib/view/WpProQuiz_View_Import.php:21
416
+ #: lib/view/WpProQuiz_View_QuizOverall.php:91
417
+ #: lib/view/WpProQuiz_View_QuizOverall.php:108
418
  msgid "Import"
419
  msgstr "استيراد"
420
 
435
  msgstr "اسم الاختبار"
436
 
437
  #: lib/view/WpProQuiz_View_Import.php:44
438
+ #: lib/view/WpProQuiz_View_QuizOverall.php:71
439
  msgid "Questions"
440
  msgstr "اسئلة"
441
 
442
  #: lib/view/WpProQuiz_View_Import.php:67
443
+ #: lib/view/WpProQuiz_View_QuizOverall.php:119
444
  msgid "Start import"
445
  msgstr "ابدأ الاستيراد"
446
 
447
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
448
  msgid "Title"
449
  msgstr "العنوان"
450
 
451
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
452
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:57
453
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
454
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:85
455
  #: lib/view/WpProQuiz_View_QuizEdit.php:362
456
  msgid "(optional)"
457
  msgstr "(اختيار)"
458
 
459
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:15
460
  msgid ""
461
  "The title is used for overview, it is not visible in quiz. If you leave the "
462
  "title field empty, a title will be generated."
464
  "يتم استخدام العنوان للعرض، وهو غير مرئيا في الاختبار. إذا تركت حقل العنوان "
465
  "فارغا، سيتم إنشاء عنوان."
466
 
467
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
468
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:49
469
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:137
 
 
 
 
 
 
470
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
471
  #: lib/view/WpProQuiz_View_QuizEdit.php:351
472
  msgid "(required)"
473
  msgstr "(مطلوب)"
474
 
475
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:25
476
  msgid "Points for this question (Standard is 1 point)"
477
  msgstr "درجات هذا السؤال (عادة 1 درجة)"
478
 
479
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:34
480
+ msgid "Points per correct answer"
481
+ msgstr ""
482
+
483
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:37
484
+ msgid ""
485
+ "If you enable this option, for every correct answer user will receive X "
486
+ "points. Otherwise he will receive points only if the question was solved "
487
+ "completely."
488
+ msgstr ""
489
+
490
  #: lib/view/WpProQuiz_View_QuestionEdit.php:43
491
+ msgid "Show reached points in the correct- and incorrect message?"
492
+ msgstr ""
493
+
494
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:57
495
  msgid "Message with the correct answer"
496
  msgstr "رسالة مع الاجابة الصحيحة"
497
 
498
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
499
  msgid ""
500
  "This text will be visible if answered correctly. It can be used as "
501
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
504
  "وهذا النص مرئية إذا أجاب بشكل صحيح. ويمكن استخدامه كدليل شرح للمسائل "
505
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
506
 
507
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:64
508
  msgid "Same text for correct- and incorrect-message?"
509
  msgstr "نفس النص مع رسالة الاجابة الصحيحة - و الغير صحيحة؟"
510
 
511
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
512
  msgid "Message with the incorrect answer"
513
  msgstr "رسالة مع الاجابة الغير صحيحة"
514
 
515
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:77
516
  msgid ""
517
  "This text will be visible if answered incorrectly. It can be used as "
518
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
521
  "وهذا النص مرئية إذا أجاب بشكل غير صحيح. ويمكن استخدامه كدليل شرح للمسائل "
522
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
523
 
524
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:88
525
  msgid "Here you can enter solution hint."
526
  msgstr "يمكنك وضع هنا تلميح للأجابة."
527
 
528
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:92
529
  msgid "Activate hint for this question?"
530
  msgstr "تفعيل التلميح لهذا السؤال؟"
531
 
532
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:104
533
  msgid "Answer type"
534
  msgstr "نوع السؤال؟"
535
 
536
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:112
537
  msgid "Single choice"
538
  msgstr "اختيار واحد"
539
 
540
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:116
541
  msgid "Multiple choice"
542
  msgstr "أختيار متعدد"
543
 
544
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:120
545
  msgid "\"Free\" choice"
546
  msgstr "\"حر\" اختيار"
547
 
548
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:124
549
  msgid "\"Sorting\" choice"
550
  msgstr "\"ترتيب\" اختيار"
551
 
552
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:128
553
  msgid "\"Matrix Sorting\" choice"
554
  msgstr "\"ترتيب منظمي\" اختيار"
555
 
556
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:132
557
  msgid "Cloze"
558
  msgstr "اكمل"
559
 
560
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:137
561
  msgid "Answers"
562
  msgstr "اجابات"
563
 
564
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:142
565
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:146
566
  msgid ""
567
  "correct answers (one per line) (answers will be converted to lower case)"
568
  msgstr "الإجابات الصحيحة (واحد في كل سطر) (يتم تحويل الإجابات إلى أحرف صغيرة)"
569
 
570
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:152
571
  msgid ""
572
  "Please sort the answers in right order with the \"Move\" - Button. The "
573
  "answers will be displayed randomly."
575
  "يرجى فرز الإجابات في بالترتيب الصحيح بزر \"نقل\" - . سوف يتم عرض الإجابات "
576
  "بشكل عشوائي."
577
 
578
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:158
579
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
580
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:180
581
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:199
 
582
  #: lib/view/WpProQuiz_View_QuestionEdit.php:215
583
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:229
584
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:279
585
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:319
586
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:356
587
  msgid "Delete answer"
588
  msgstr "حذف الاجابة"
589
 
590
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:159
591
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:171
592
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:181
593
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:200
 
594
  #: lib/view/WpProQuiz_View_QuestionEdit.php:216
595
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:230
596
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:278
597
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
598
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:355
599
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
600
  msgid "Move"
601
  msgstr "تحريك"
602
 
603
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:161
604
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
605
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:183
606
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
 
607
  #: lib/view/WpProQuiz_View_QuestionEdit.php:218
608
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:232
609
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:265
610
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:271
611
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:305
612
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:311
613
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:342
614
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:348
615
  msgid "Allow HTML"
616
  msgstr "السماح بــ HTML"
617
 
618
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:189
619
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:238
620
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
621
  msgid "Add new answer"
622
  msgstr "اضف اجابة جديدة"
623
 
624
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:197
 
625
  #: lib/view/WpProQuiz_View_QuestionEdit.php:213
626
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:227
627
  msgid "correct?"
628
  msgstr "صحيح؟"
629
 
630
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:242
631
  msgid ""
632
  "In this mode, not a list have to be sorted, but elements must be assigned to "
633
  "matching criterion."
635
  "في هذا الوضع، لا يوجد قائمة لا بد من فرزها، ولكن يجب تعيين عناصر مطابقة "
636
  "لمعيار."
637
 
638
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:249
639
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
640
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:326
641
  msgid "Criterion"
642
  msgstr "معيار"
643
 
644
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:364
645
  msgid ""
646
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
647
  "small letters will be ignored."
653
  msgid "Questions sorted"
654
  msgstr "ترتيب الاسئلة"
655
 
656
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
657
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
658
  msgid "Name"
659
  msgstr "الاسم"
660
 
661
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:30
662
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
663
  msgid "Action"
664
  msgstr "الحدث"
665
 
666
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:46
667
+ #: lib/view/WpProQuiz_View_QuizOverall.php:74
668
  msgid "Edit"
669
  msgstr "تحرير"
670
 
671
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:48
672
+ #: lib/view/WpProQuiz_View_QuizOverall.php:76
673
  msgid "Delete"
674
  msgstr "حذف"
675
 
676
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:59
677
+ #: lib/view/WpProQuiz_View_Statistics.php:84
678
+ msgid "Total"
679
+ msgstr "المجموع"
680
+
681
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
682
  msgid "Add question"
683
  msgstr "اضافة سؤال"
684
 
685
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:68
686
  msgid "Save order"
687
  msgstr "حفظ الترتيب"
688
 
689
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:69
690
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
691
  msgid "Copy questions from another Quiz"
692
  msgstr ""
693
 
694
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:75
695
  msgid ""
696
  "Here you can copy questions from another quiz into this quiz. (Multiple "
697
  "selection enabled)"
698
  msgstr ""
699
 
700
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:79
701
  #: lib/view/WpProQuiz_View_Statistics.php:45
702
  msgid "Loading"
703
  msgstr ""
704
 
705
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:87
706
  msgid "Copy questions"
707
  msgstr ""
708
 
830
 
831
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
832
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
833
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
834
  msgid "Statistics"
835
  msgstr "احصائيات"
836
 
1003
  msgid "Style Manager"
1004
  msgstr ""
1005
 
1006
+ #: lib/view/WpProQuiz_View_QuizOverall.php:55
1007
  msgid "ID"
1008
  msgstr "الرقم"
1009
 
1010
+ #: lib/view/WpProQuiz_View_QuizOverall.php:56
1011
  msgid "Shortcode"
1012
  msgstr "الكود"
1013
 
1014
+ #: lib/view/WpProQuiz_View_QuizOverall.php:78
1015
  msgid "Preview"
1016
  msgstr "استعراض"
1017
 
1018
+ #: lib/view/WpProQuiz_View_QuizOverall.php:89
1019
  msgid "Add quiz"
1020
  msgstr "اضف اختبار"
1021
 
1022
+ #: lib/view/WpProQuiz_View_QuizOverall.php:93
1023
+ #: lib/view/WpProQuiz_View_QuizOverall.php:98
1024
  msgid "Export"
1025
  msgstr "تصدير"
1026
 
1027
+ #: lib/view/WpProQuiz_View_QuizOverall.php:99
1028
  msgid ""
1029
  "Choose the respective question, which you would like to export and press on "
1030
  "\"Start export\""
1031
  msgstr "اختار سؤال، الذي تود أن تقوم بتصديره و اضغط على \"ابدأ التصدير\""
1032
 
1033
+ #: lib/view/WpProQuiz_View_QuizOverall.php:103
1034
  msgid "Start export"
1035
  msgstr "ابدأ التصدير"
1036
 
1037
+ #: lib/view/WpProQuiz_View_QuizOverall.php:109
1038
  msgid "Import only *.wpq files from known and trusted sources."
1039
  msgstr "استورد ملفات *.wpq فقط من مصدر معروف او موثوق به"
1040
 
1041
+ #: lib/view/WpProQuiz_View_QuizOverall.php:117
1042
  #, php-format
1043
  msgid "Maximal %d MiB"
1044
  msgstr "الحد الاقصى من %d MIB"
1061
  msgstr ""
1062
 
1063
  #: lib/view/WpProQuiz_View_Statistics.php:28
1064
+ msgid "Registered users"
1065
  msgstr ""
1066
 
1067
  #: lib/view/WpProQuiz_View_Statistics.php:29
1073
  msgstr ""
1074
 
1075
  #: lib/view/WpProQuiz_View_Statistics.php:57
1076
+ #: lib/view/WpProQuiz_View_Statistics.php:149
1077
  msgid "Hints used"
1078
  msgstr "التلميحات مستخدمة"
1079
 
1080
+ #: lib/view/WpProQuiz_View_Statistics.php:58
1081
+ msgid "Points scored"
1082
+ msgstr ""
1083
 
1084
+ #: lib/view/WpProQuiz_View_Statistics.php:98
1085
  msgid "Reset statistics"
1086
  msgstr "اعادة ضبط الاحصائيات"
1087
 
1088
+ #: lib/view/WpProQuiz_View_Statistics.php:100
1089
+ #: lib/view/WpProQuiz_View_Statistics.php:172
1090
  msgid "Refresh"
1091
  msgstr ""
1092
 
1093
+ #: lib/view/WpProQuiz_View_Statistics.php:104
1094
+ #: lib/view/WpProQuiz_View_Statistics.php:174
1095
  msgid "Reset entire statistic"
1096
  msgstr ""
1097
 
1098
+ #: lib/view/WpProQuiz_View_Statistics.php:115
1099
+ msgid "Filter"
1100
+ msgstr ""
1101
+
1102
+ #: lib/view/WpProQuiz_View_Statistics.php:120
1103
+ msgid "Show only users, who solved the quiz:"
1104
+ msgstr ""
1105
+
1106
+ #: lib/view/WpProQuiz_View_Statistics.php:126
1107
+ msgid "How many entries should be shown on one page:"
1108
+ msgstr ""
1109
+
1110
+ #: lib/view/WpProQuiz_View_Statistics.php:145
1111
+ msgid "User"
1112
+ msgstr ""
1113
+
1114
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1115
  msgid "Front"
1116
  msgstr ""
languages/wp-pro-quiz-de_DE.mo CHANGED
Binary file
languages/wp-pro-quiz-de_DE.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2012-12-26 17:50+0100\n"
5
- "PO-Revision-Date: 2012-12-26 17:50+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Julius Fischer\n"
8
  "Language: German\n"
@@ -14,51 +14,68 @@ msgstr ""
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: lib/controller/WpProQuiz_Controller_Admin.php:91
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "Wollen Sie das Quiz/Frage wirklich löschen?"
20
 
21
- #: lib/controller/WpProQuiz_Controller_Admin.php:92
22
  msgid "Title is not filled!"
23
  msgstr "Titel wurde nicht ausgefüllt!"
24
 
25
- #: lib/controller/WpProQuiz_Controller_Admin.php:93
26
  msgid "No question deposited!"
27
  msgstr "Keine Frage hinterlegt!"
28
 
29
- #: lib/controller/WpProQuiz_Controller_Admin.php:94
30
  msgid "Correct answer was not selected!"
31
  msgstr "Keine korrekte Antwort markiert!"
32
 
33
- #: lib/controller/WpProQuiz_Controller_Admin.php:95
34
  msgid "No answer deposited!"
35
  msgstr "Keine Antwort hinterlegt!"
36
 
37
- #: lib/controller/WpProQuiz_Controller_Admin.php:96
38
  msgid "No quiz description filled!"
39
  msgstr "Quiz-Beschreibung nicht ausgefüllt!"
40
 
41
- #: lib/controller/WpProQuiz_Controller_Admin.php:97
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "Die Prozentwerte im Ergebnistext stimmen nicht."
44
 
45
- #: lib/controller/WpProQuiz_Controller_Admin.php:98
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "Keine Zahl im Feld \"Punkte\" oder kleiner 1"
48
 
49
- #: lib/controller/WpProQuiz_Controller_Admin.php:99
50
  msgid "No quiz selected"
51
  msgstr "Kein Quiz ausgewählt"
52
 
53
- #: lib/controller/WpProQuiz_Controller_Admin.php:100
54
  msgid "Do you really want to reset the statistic?"
55
  msgstr "Soll die Statistik wirklich zurückgesetzt werden?"
56
 
57
- #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  msgid "Settings saved"
59
  msgstr "Einstellungen gespeichert"
60
 
61
- #: lib/controller/WpProQuiz_Controller_ImportExport.php:70
62
  #: lib/helper/WpProQuiz_Helper_Import.php:54
63
  #: lib/helper/WpProQuiz_Helper_Import.php:63
64
  #: lib/helper/WpProQuiz_Helper_Import.php:70
@@ -67,59 +84,60 @@ msgstr "Datei kann nicht verarbeitet werden"
67
 
68
  #: lib/controller/WpProQuiz_Controller_Question.php:9
69
  #: lib/controller/WpProQuiz_Controller_Question.php:19
70
- #: lib/controller/WpProQuiz_Controller_Quiz.php:63
71
  msgid "Quiz not found"
72
  msgstr "Quiz nicht gefunden"
73
 
74
- #: lib/controller/WpProQuiz_Controller_Question.php:60
75
  msgid "questions copied"
76
  msgstr "Fragen kopiert"
77
 
78
- #: lib/controller/WpProQuiz_Controller_Question.php:121
79
  msgid "Edit question"
80
  msgstr "Frage bearbeiten"
81
 
82
- #: lib/controller/WpProQuiz_Controller_Question.php:125
83
  msgid "Question not found"
84
  msgstr "Frage nicht gefunden"
85
 
86
- #: lib/controller/WpProQuiz_Controller_Question.php:138
87
  #: lib/controller/WpProQuiz_Controller_Question.php:164
 
88
  #, php-format
89
  msgid "Question: %d"
90
  msgstr "Frage: %d"
91
 
92
- #: lib/controller/WpProQuiz_Controller_Question.php:142
93
  msgid "Question edited"
94
  msgstr "Frage geändert"
95
 
96
- #: lib/controller/WpProQuiz_Controller_Question.php:151
97
  msgid "New question"
98
  msgstr "Neue Frage"
99
 
100
- #: lib/controller/WpProQuiz_Controller_Question.php:169
101
  msgid "Question added"
102
  msgstr "Frage hinzugefügt"
103
 
104
- #: lib/controller/WpProQuiz_Controller_Quiz.php:58
 
105
  msgid "Edit quiz"
106
  msgstr "Quiz bearbeiten"
107
 
108
- #: lib/controller/WpProQuiz_Controller_Quiz.php:78
109
  msgid "Quiz edited"
110
  msgstr "Quiz bearbeitet"
111
 
112
- #: lib/controller/WpProQuiz_Controller_Quiz.php:87
113
- #: lib/controller/WpProQuiz_Controller_Quiz.php:115
114
  msgid "Quiz title or quiz description are not filled"
115
  msgstr "Quiz Titel oder Quiz Beschreibung nicht ausgefüllt"
116
 
117
- #: lib/controller/WpProQuiz_Controller_Quiz.php:98
118
- #: lib/controller/WpProQuiz_Controller_Quiz.php:109
119
  msgid "Create quiz"
120
  msgstr "Quiz erstellen"
121
 
122
- #: lib/controller/WpProQuiz_Controller_Quiz.php:135
123
  msgid "Quiz deleted"
124
  msgstr "Quiz gelöscht"
125
 
@@ -131,107 +149,126 @@ msgstr "Datei wurde nicht hochgeladen"
131
  msgid "File have wrong format"
132
  msgstr "Datei hat falsches Format"
133
 
134
- #: lib/view/WpProQuiz_View_FrontQuiz.php:80
 
 
 
 
135
  msgid "Start quiz"
136
  msgstr "Quiz starten"
137
 
138
- #: lib/view/WpProQuiz_View_FrontQuiz.php:85
139
  msgid ""
140
  "You have already completed the quiz before. Hence you can not start it again."
141
  msgstr ""
142
  "Sie haben das Quiz schon einmal absolviert. Daher können sie es nicht erneut "
143
  "starten."
144
 
145
- #: lib/view/WpProQuiz_View_FrontQuiz.php:89
146
- #: lib/view/WpProQuiz_View_Statistics.php:58
 
147
  msgid "Results"
148
  msgstr "Ergebnis"
149
 
150
- #: lib/view/WpProQuiz_View_FrontQuiz.php:91
151
  #, php-format
152
  msgid "%s of %s questions answered correctly"
153
  msgstr "%s von %s Frage korrekt beantwortet"
154
 
155
- #: lib/view/WpProQuiz_View_FrontQuiz.php:94
156
  msgid "Your time: <span></span>"
157
  msgstr "Ihre Zeit: <span></span>"
158
 
159
- #: lib/view/WpProQuiz_View_FrontQuiz.php:97
160
  msgid "Time has elapsed"
161
  msgstr "Zeit ist abgelaufen"
162
 
163
- #: lib/view/WpProQuiz_View_FrontQuiz.php:100
164
  msgid ""
165
  "You have reached <span></span> of <span></span> points, (<span></span>%)"
166
  msgstr ""
167
  "Sie haben <span></span> von <span></span> Punkten erreicht (<span></span>%)"
168
 
169
- #: lib/view/WpProQuiz_View_FrontQuiz.php:115
170
  msgid "Restart quiz"
171
  msgstr "Quiz erneut starten"
172
 
173
- #: lib/view/WpProQuiz_View_FrontQuiz.php:117
174
  msgid "View questions"
175
  msgstr "Fragen ansehen"
176
 
177
- #: lib/view/WpProQuiz_View_FrontQuiz.php:122
178
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
179
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
180
  msgid "Time limit"
181
  msgstr "Zeitlimit"
182
 
183
- #: lib/view/WpProQuiz_View_FrontQuiz.php:135
184
  #, php-format
185
  msgid "Question %s of %s"
186
  msgstr "Frage %s von %s"
187
 
188
- #: lib/view/WpProQuiz_View_FrontQuiz.php:138
189
- #: lib/view/WpProQuiz_View_QuestionEdit.php:35
190
  #: lib/view/WpProQuiz_View_Statistics.php:53
191
  msgid "Question"
192
  msgstr "Frage"
193
 
194
- #: lib/view/WpProQuiz_View_FrontQuiz.php:142
195
  #, php-format
196
  msgid "%d points"
197
  msgstr "%d Punkte"
198
 
199
- #: lib/view/WpProQuiz_View_FrontQuiz.php:152
200
- #: lib/view/WpProQuiz_View_QuestionEdit.php:235
201
- #: lib/view/WpProQuiz_View_QuestionEdit.php:273
202
- #: lib/view/WpProQuiz_View_QuestionEdit.php:308
203
  msgid "Sort elements"
204
  msgstr "Sortierelemente"
205
 
206
- #: lib/view/WpProQuiz_View_FrontQuiz.php:232
 
207
  #: lib/view/WpProQuiz_View_Statistics.php:55
 
208
  msgid "Correct"
209
  msgstr "Korrekt"
210
 
211
- #: lib/view/WpProQuiz_View_FrontQuiz.php:240
 
 
 
 
 
 
 
 
 
 
 
212
  #: lib/view/WpProQuiz_View_Statistics.php:56
 
213
  msgid "Incorrect"
214
  msgstr "Inkorrekt"
215
 
216
- #: lib/view/WpProQuiz_View_FrontQuiz.php:256
217
- #: lib/view/WpProQuiz_View_FrontQuiz.php:266
218
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
219
  msgid "Hint"
220
  msgstr "Tipp"
221
 
222
- #: lib/view/WpProQuiz_View_FrontQuiz.php:263
223
  msgid "Check"
224
  msgstr "Prüfen"
225
 
226
- #: lib/view/WpProQuiz_View_FrontQuiz.php:264
227
  msgid "Back"
228
  msgstr "Zurück"
229
 
230
- #: lib/view/WpProQuiz_View_FrontQuiz.php:268
231
  msgid "Next exercise"
232
  msgstr "Nächste Frage"
233
 
234
- #: lib/view/WpProQuiz_View_FrontQuiz.php:281
235
  msgid "Finish quiz"
236
  msgstr "Quiz abschließen"
237
 
@@ -245,7 +282,7 @@ msgstr "nicht zu aktivieren"
245
 
246
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
247
  #: lib/view/WpProQuiz_View_GobalSettings.php:25
248
- #: lib/view/WpProQuiz_View_QuizOverall.php:47
249
  msgid "Settings in case of problems"
250
  msgstr "Einstellungen bei Problemen"
251
 
@@ -262,8 +299,8 @@ msgstr ""
262
 
263
  #: lib/view/WpProQuiz_View_GobalSettings.php:21
264
  #: lib/view/WpProQuiz_View_Import.php:22
265
- #: lib/view/WpProQuiz_View_QuestionEdit.php:13
266
- #: lib/view/WpProQuiz_View_QuestionOverall.php:18
267
  #: lib/view/WpProQuiz_View_QuizEdit.php:8
268
  #: lib/view/WpProQuiz_View_Statistics.php:18
269
  #: lib/view/WpProQuiz_View_StyleManager.php:11
@@ -277,6 +314,7 @@ msgstr "Automatisch [raw] Shortcode hinzufügen"
277
 
278
  #: lib/view/WpProQuiz_View_GobalSettings.php:40
279
  #: lib/view/WpProQuiz_View_GobalSettings.php:62
 
280
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
281
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
282
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
@@ -369,15 +407,32 @@ msgstr ""
369
  "Wenn Sie Probleme mit der Touch Library haben, können Sie dies hier "
370
  "deaktivieren."
371
 
372
- #: lib/view/WpProQuiz_View_GobalSettings.php:107
373
- #: lib/view/WpProQuiz_View_QuestionEdit.php:353
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
  #: lib/view/WpProQuiz_View_QuizEdit.php:430
375
  msgid "Save"
376
  msgstr "Speichern"
377
 
378
  #: lib/view/WpProQuiz_View_Import.php:21
379
- #: lib/view/WpProQuiz_View_QuizOverall.php:81
380
- #: lib/view/WpProQuiz_View_QuizOverall.php:96
381
  msgid "Import"
382
  msgstr "Import"
383
 
@@ -398,28 +453,28 @@ msgid "Quiz name"
398
  msgstr "Quiz-Name"
399
 
400
  #: lib/view/WpProQuiz_View_Import.php:44
401
- #: lib/view/WpProQuiz_View_QuizOverall.php:69
402
  msgid "Questions"
403
  msgstr "Fragen"
404
 
405
  #: lib/view/WpProQuiz_View_Import.php:67
406
- #: lib/view/WpProQuiz_View_QuizOverall.php:107
407
  msgid "Start import"
408
  msgstr "Import starten"
409
 
410
- #: lib/view/WpProQuiz_View_QuestionEdit.php:17
411
  msgid "Title"
412
  msgstr "Titel"
413
 
414
- #: lib/view/WpProQuiz_View_QuestionEdit.php:17
415
- #: lib/view/WpProQuiz_View_QuestionEdit.php:43
416
- #: lib/view/WpProQuiz_View_QuestionEdit.php:60
417
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
418
  #: lib/view/WpProQuiz_View_QuizEdit.php:362
419
  msgid "(optional)"
420
  msgstr "(Optional)"
421
 
422
- #: lib/view/WpProQuiz_View_QuestionEdit.php:20
423
  msgid ""
424
  "The title is used for overview, it is not visible in quiz. If you leave the "
425
  "title field empty, a title will be generated."
@@ -427,29 +482,41 @@ msgstr ""
427
  "Der Titel dient nur zur Übersicht, es wird nicht im Quiz angezeigt. Wird der "
428
  "Titel leer gelassen, wird ein Titel generiert."
429
 
430
- #: lib/view/WpProQuiz_View_QuestionEdit.php:26
431
- #: lib/view/WpProQuiz_View_QuestionEdit.php:31
432
- #: lib/view/WpProQuiz_View_Statistics.php:54
433
- msgid "Points"
434
- msgstr "Punkte"
435
-
436
- #: lib/view/WpProQuiz_View_QuestionEdit.php:26
437
- #: lib/view/WpProQuiz_View_QuestionEdit.php:35
438
- #: lib/view/WpProQuiz_View_QuestionEdit.php:123
439
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
440
  #: lib/view/WpProQuiz_View_QuizEdit.php:351
441
  msgid "(required)"
442
  msgstr "(Pflichtfeld)"
443
 
444
- #: lib/view/WpProQuiz_View_QuestionEdit.php:29
445
  msgid "Points for this question (Standard is 1 point)"
446
  msgstr "Punkte für diese Frage (Standard ist 1 Punkt)"
447
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
  #: lib/view/WpProQuiz_View_QuestionEdit.php:43
 
 
 
 
449
  msgid "Message with the correct answer"
450
  msgstr "Nachricht bei korrekter Antwort"
451
 
452
- #: lib/view/WpProQuiz_View_QuestionEdit.php:46
453
  msgid ""
454
  "This text will be visible if answered correctly. It can be used as "
455
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -459,15 +526,15 @@ msgstr ""
459
  "für komplexe Aufgaben dienen. Die Nachricht \"Richtig\" oder \"Falsch\" wird "
460
  "immer automatisch angezeigt."
461
 
462
- #: lib/view/WpProQuiz_View_QuestionEdit.php:50
463
  msgid "Same text for correct- and incorrect-message?"
464
  msgstr "Gleicher Text für Korrekt- und Inkorrekt-Nachricht?"
465
 
466
- #: lib/view/WpProQuiz_View_QuestionEdit.php:60
467
  msgid "Message with the incorrect answer"
468
  msgstr "Nachricht bei inkorrekter Antwort"
469
 
470
- #: lib/view/WpProQuiz_View_QuestionEdit.php:63
471
  msgid ""
472
  "This text will be visible if answered incorrectly. It can be used as "
473
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -477,55 +544,55 @@ msgstr ""
477
  "komplexe Aufgaben dienen. Die Nachricht \"Richtig\" oder \"Falsch\" wird "
478
  "immer automatisch angezeigt."
479
 
480
- #: lib/view/WpProQuiz_View_QuestionEdit.php:74
481
  msgid "Here you can enter solution hint."
482
  msgstr "Hier können Sie einen Lösungstipp hinterlegen."
483
 
484
- #: lib/view/WpProQuiz_View_QuestionEdit.php:78
485
  msgid "Activate hint for this question?"
486
  msgstr "Tipp für diese Frage aktivieren?"
487
 
488
- #: lib/view/WpProQuiz_View_QuestionEdit.php:90
489
  msgid "Answer type"
490
  msgstr "Antwort Typ?"
491
 
492
- #: lib/view/WpProQuiz_View_QuestionEdit.php:98
493
  msgid "Single choice"
494
  msgstr "Single choice"
495
 
496
- #: lib/view/WpProQuiz_View_QuestionEdit.php:102
497
  msgid "Multiple choice"
498
  msgstr "Multiple choice"
499
 
500
- #: lib/view/WpProQuiz_View_QuestionEdit.php:106
501
  msgid "\"Free\" choice"
502
  msgstr "\"Free\" choice"
503
 
504
- #: lib/view/WpProQuiz_View_QuestionEdit.php:110
505
  msgid "\"Sorting\" choice"
506
  msgstr "\"Sorting\" choice"
507
 
508
- #: lib/view/WpProQuiz_View_QuestionEdit.php:114
509
  msgid "\"Matrix Sorting\" choice"
510
  msgstr "\"Matrix Sorting\" choice"
511
 
512
- #: lib/view/WpProQuiz_View_QuestionEdit.php:118
513
  msgid "Cloze"
514
  msgstr "Lückentext"
515
 
516
- #: lib/view/WpProQuiz_View_QuestionEdit.php:123
517
  msgid "Answers"
518
  msgstr "Antworten"
519
 
520
- #: lib/view/WpProQuiz_View_QuestionEdit.php:128
521
- #: lib/view/WpProQuiz_View_QuestionEdit.php:132
522
  msgid ""
523
  "correct answers (one per line) (answers will be converted to lower case)"
524
  msgstr ""
525
  "Korrekte Antworten (eine pro Zeile ) (Antworten werden in Kleinbuchstaben "
526
  "umgewandelt)"
527
 
528
- #: lib/view/WpProQuiz_View_QuestionEdit.php:138
529
  msgid ""
530
  "Please sort the answers in right order with the \"Move\" - Button. The "
531
  "answers will be displayed randomly."
@@ -533,59 +600,59 @@ msgstr ""
533
  "Bitte Antworten mit dem \"Verschiebe\"-Button in die richtige Reihenfolge "
534
  "bringen. Die Antworten werden später immer zufällig ausgegeben."
535
 
536
- #: lib/view/WpProQuiz_View_QuestionEdit.php:144
537
- #: lib/view/WpProQuiz_View_QuestionEdit.php:156
538
- #: lib/view/WpProQuiz_View_QuestionEdit.php:166
539
- #: lib/view/WpProQuiz_View_QuestionEdit.php:185
540
- #: lib/view/WpProQuiz_View_QuestionEdit.php:201
541
  #: lib/view/WpProQuiz_View_QuestionEdit.php:215
542
- #: lib/view/WpProQuiz_View_QuestionEdit.php:263
543
- #: lib/view/WpProQuiz_View_QuestionEdit.php:301
544
- #: lib/view/WpProQuiz_View_QuestionEdit.php:336
 
545
  msgid "Delete answer"
546
  msgstr "Antwort löschen"
547
 
548
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
549
- #: lib/view/WpProQuiz_View_QuestionEdit.php:157
550
- #: lib/view/WpProQuiz_View_QuestionEdit.php:167
551
- #: lib/view/WpProQuiz_View_QuestionEdit.php:186
552
- #: lib/view/WpProQuiz_View_QuestionEdit.php:202
553
  #: lib/view/WpProQuiz_View_QuestionEdit.php:216
554
- #: lib/view/WpProQuiz_View_QuestionEdit.php:262
555
- #: lib/view/WpProQuiz_View_QuestionEdit.php:300
556
- #: lib/view/WpProQuiz_View_QuestionEdit.php:335
557
- #: lib/view/WpProQuiz_View_QuestionOverall.php:38
 
558
  msgid "Move"
559
  msgstr "Verschieben"
560
 
561
- #: lib/view/WpProQuiz_View_QuestionEdit.php:147
562
- #: lib/view/WpProQuiz_View_QuestionEdit.php:159
563
- #: lib/view/WpProQuiz_View_QuestionEdit.php:169
564
- #: lib/view/WpProQuiz_View_QuestionEdit.php:188
565
- #: lib/view/WpProQuiz_View_QuestionEdit.php:204
566
  #: lib/view/WpProQuiz_View_QuestionEdit.php:218
567
- #: lib/view/WpProQuiz_View_QuestionEdit.php:249
568
- #: lib/view/WpProQuiz_View_QuestionEdit.php:255
569
- #: lib/view/WpProQuiz_View_QuestionEdit.php:287
570
- #: lib/view/WpProQuiz_View_QuestionEdit.php:293
571
- #: lib/view/WpProQuiz_View_QuestionEdit.php:322
572
- #: lib/view/WpProQuiz_View_QuestionEdit.php:328
 
573
  msgid "Allow HTML"
574
  msgstr "HTML erlauben"
575
 
576
- #: lib/view/WpProQuiz_View_QuestionEdit.php:175
577
- #: lib/view/WpProQuiz_View_QuestionEdit.php:224
578
- #: lib/view/WpProQuiz_View_QuestionEdit.php:340
579
  msgid "Add new answer"
580
  msgstr "Neue Antwort hinzufügen"
581
 
582
- #: lib/view/WpProQuiz_View_QuestionEdit.php:183
583
- #: lib/view/WpProQuiz_View_QuestionEdit.php:199
584
  #: lib/view/WpProQuiz_View_QuestionEdit.php:213
 
585
  msgid "correct?"
586
  msgstr "Korrekt?"
587
 
588
- #: lib/view/WpProQuiz_View_QuestionEdit.php:228
589
  msgid ""
590
  "In this mode, not a list have to be sorted, but elements must be assigned to "
591
  "matching criterion."
@@ -593,13 +660,13 @@ msgstr ""
593
  "In diesem Modus muss nicht eine Liste sortiert werden, sondern die "
594
  "Sortierelemente müssen zu den passenden Kriterium zugeordnet werden."
595
 
596
- #: lib/view/WpProQuiz_View_QuestionEdit.php:234
597
- #: lib/view/WpProQuiz_View_QuestionEdit.php:272
598
- #: lib/view/WpProQuiz_View_QuestionEdit.php:307
599
  msgid "Criterion"
600
  msgstr "Kriterium"
601
 
602
- #: lib/view/WpProQuiz_View_QuestionEdit.php:344
603
  msgid ""
604
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
605
  "small letters will be ignored."
@@ -611,40 +678,45 @@ msgstr ""
611
  msgid "Questions sorted"
612
  msgstr "Fragen sortiert"
613
 
614
- #: lib/view/WpProQuiz_View_QuestionOverall.php:23
615
- #: lib/view/WpProQuiz_View_QuizOverall.php:55
616
  msgid "Name"
617
  msgstr "Name"
618
 
619
- #: lib/view/WpProQuiz_View_QuestionOverall.php:24
620
- #: lib/view/WpProQuiz_View_QuizOverall.php:56
621
  msgid "Action"
622
  msgstr "Aktion"
623
 
624
- #: lib/view/WpProQuiz_View_QuestionOverall.php:36
625
- #: lib/view/WpProQuiz_View_QuizOverall.php:70
626
  msgid "Edit"
627
  msgstr "Bearbeiten"
628
 
629
- #: lib/view/WpProQuiz_View_QuestionOverall.php:37
630
- #: lib/view/WpProQuiz_View_QuizOverall.php:71
631
  msgid "Delete"
632
  msgstr "Löschen"
633
 
634
- #: lib/view/WpProQuiz_View_QuestionOverall.php:45
 
 
 
 
 
635
  msgid "Add question"
636
  msgstr "Frage hinzufügen"
637
 
638
- #: lib/view/WpProQuiz_View_QuestionOverall.php:46
639
  msgid "Save order"
640
  msgstr "Sortierung speichern"
641
 
642
- #: lib/view/WpProQuiz_View_QuestionOverall.php:47
643
- #: lib/view/WpProQuiz_View_QuestionOverall.php:51
644
  msgid "Copy questions from another Quiz"
645
  msgstr "Fragen aus einem anderen Quiz kopieren."
646
 
647
- #: lib/view/WpProQuiz_View_QuestionOverall.php:52
648
  msgid ""
649
  "Here you can copy questions from another quiz into this quiz. (Multiple "
650
  "selection enabled)"
@@ -652,12 +724,12 @@ msgstr ""
652
  "Hier können Sie Fragen aus einem anderen Quiz in dieses Quiz kopieren. "
653
  "(Mehrfachauswahl aktiviert)"
654
 
655
- #: lib/view/WpProQuiz_View_QuestionOverall.php:56
656
  #: lib/view/WpProQuiz_View_Statistics.php:45
657
  msgid "Loading"
658
  msgstr "Daten werden geladen"
659
 
660
- #: lib/view/WpProQuiz_View_QuestionOverall.php:64
661
  msgid "Copy questions"
662
  msgstr "Fragen kopieren"
663
 
@@ -791,7 +863,7 @@ msgstr ""
791
 
792
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
793
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
794
- #: lib/view/WpProQuiz_View_QuizOverall.php:73
795
  msgid "Statistics"
796
  msgstr "Statistik"
797
 
@@ -972,28 +1044,28 @@ msgstr ""
972
  msgid "Style Manager"
973
  msgstr "Style Manager"
974
 
975
- #: lib/view/WpProQuiz_View_QuizOverall.php:53
976
  msgid "ID"
977
  msgstr "ID"
978
 
979
- #: lib/view/WpProQuiz_View_QuizOverall.php:54
980
  msgid "Shortcode"
981
  msgstr "Shortcode"
982
 
983
- #: lib/view/WpProQuiz_View_QuizOverall.php:72
984
  msgid "Preview"
985
  msgstr "Vorschau"
986
 
987
- #: lib/view/WpProQuiz_View_QuizOverall.php:80
988
  msgid "Add quiz"
989
  msgstr "Quiz hinzufügen"
990
 
991
- #: lib/view/WpProQuiz_View_QuizOverall.php:82
992
- #: lib/view/WpProQuiz_View_QuizOverall.php:86
993
  msgid "Export"
994
  msgstr "Export"
995
 
996
- #: lib/view/WpProQuiz_View_QuizOverall.php:87
997
  msgid ""
998
  "Choose the respective question, which you would like to export and press on "
999
  "\"Start export\""
@@ -1001,17 +1073,17 @@ msgstr ""
1001
  "Wählen Sie oben die entsprechen Quiz aus, die Sie exportieren möchten und "
1002
  "klicken Sie anschliessen auf \"Export starten\""
1003
 
1004
- #: lib/view/WpProQuiz_View_QuizOverall.php:91
1005
  msgid "Start export"
1006
  msgstr "Export starten"
1007
 
1008
- #: lib/view/WpProQuiz_View_QuizOverall.php:97
1009
  msgid "Import only *.wpq files from known and trusted sources."
1010
  msgstr ""
1011
  "Importieren sie nur *.wpq Dateien aus bekannten und vertrauenswürdigen "
1012
  "Quellen."
1013
 
1014
- #: lib/view/WpProQuiz_View_QuizOverall.php:105
1015
  #, php-format
1016
  msgid "Maximal %d MiB"
1017
  msgstr "Maximal %d MiB"
@@ -1034,7 +1106,7 @@ msgid "Anonymous users"
1034
  msgstr "anonyme Benutzer"
1035
 
1036
  #: lib/view/WpProQuiz_View_Statistics.php:28
1037
- msgid "Registered useres"
1038
  msgstr "registrierte Benutzer"
1039
 
1040
  #: lib/view/WpProQuiz_View_Statistics.php:29
@@ -1046,25 +1118,44 @@ msgid "Please select user name:"
1046
  msgstr "Bitte Benutzername auswählen:"
1047
 
1048
  #: lib/view/WpProQuiz_View_Statistics.php:57
 
1049
  msgid "Hints used"
1050
  msgstr "Tipp benutzt"
1051
 
1052
- #: lib/view/WpProQuiz_View_Statistics.php:82
1053
- msgid "Total"
1054
- msgstr "Total"
1055
 
1056
- #: lib/view/WpProQuiz_View_Statistics.php:94
1057
  msgid "Reset statistics"
1058
  msgstr "Statistik zurücksetzen"
1059
 
1060
- #: lib/view/WpProQuiz_View_Statistics.php:95
 
1061
  msgid "Refresh"
1062
  msgstr "Aktualisieren"
1063
 
1064
- #: lib/view/WpProQuiz_View_Statistics.php:98
 
1065
  msgid "Reset entire statistic"
1066
  msgstr "Alle Statistiken zurücksetzten"
1067
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1068
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1069
  msgid "Front"
1070
  msgstr "Front"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-01-07 23:42+0100\n"
5
+ "PO-Revision-Date: 2013-01-07 23:44+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Julius Fischer\n"
8
  "Language: German\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
+ #: lib/controller/WpProQuiz_Controller_Admin.php:54
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "Wollen Sie das Quiz/Frage wirklich löschen?"
20
 
21
+ #: lib/controller/WpProQuiz_Controller_Admin.php:55
22
  msgid "Title is not filled!"
23
  msgstr "Titel wurde nicht ausgefüllt!"
24
 
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:56
26
  msgid "No question deposited!"
27
  msgstr "Keine Frage hinterlegt!"
28
 
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:57
30
  msgid "Correct answer was not selected!"
31
  msgstr "Keine korrekte Antwort markiert!"
32
 
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:58
34
  msgid "No answer deposited!"
35
  msgstr "Keine Antwort hinterlegt!"
36
 
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:59
38
  msgid "No quiz description filled!"
39
  msgstr "Quiz-Beschreibung nicht ausgefüllt!"
40
 
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:60
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "Die Prozentwerte im Ergebnistext stimmen nicht."
44
 
45
+ #: lib/controller/WpProQuiz_Controller_Admin.php:61
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "Keine Zahl im Feld \"Punkte\" oder kleiner 1"
48
 
49
+ #: lib/controller/WpProQuiz_Controller_Admin.php:62
50
  msgid "No quiz selected"
51
  msgstr "Kein Quiz ausgewählt"
52
 
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:63
54
  msgid "Do you really want to reset the statistic?"
55
  msgstr "Soll die Statistik wirklich zurückgesetzt werden?"
56
 
57
+ # Must not be translated
58
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
59
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
60
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:43
61
+ #: lib/controller/WpProQuiz_Controller_Question.php:51
62
+ #: lib/controller/WpProQuiz_Controller_Question.php:128
63
+ #: lib/controller/WpProQuiz_Controller_Question.php:143
64
+ #: lib/controller/WpProQuiz_Controller_Question.php:189
65
+ #: lib/controller/WpProQuiz_Controller_Question.php:284
66
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:55
67
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:69
68
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:114
69
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:147
70
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:138
71
+ msgid "You do not have sufficient permissions to access this page."
72
+ msgstr "You do not have sufficient permissions to access this page."
73
+
74
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:19
75
  msgid "Settings saved"
76
  msgstr "Einstellungen gespeichert"
77
 
78
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
79
  #: lib/helper/WpProQuiz_Helper_Import.php:54
80
  #: lib/helper/WpProQuiz_Helper_Import.php:63
81
  #: lib/helper/WpProQuiz_Helper_Import.php:70
84
 
85
  #: lib/controller/WpProQuiz_Controller_Question.php:9
86
  #: lib/controller/WpProQuiz_Controller_Question.php:19
87
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:78
88
  msgid "Quiz not found"
89
  msgstr "Quiz nicht gefunden"
90
 
91
+ #: lib/controller/WpProQuiz_Controller_Question.php:65
92
  msgid "questions copied"
93
  msgstr "Fragen kopiert"
94
 
95
+ #: lib/controller/WpProQuiz_Controller_Question.php:147
96
  msgid "Edit question"
97
  msgstr "Frage bearbeiten"
98
 
99
+ #: lib/controller/WpProQuiz_Controller_Question.php:151
100
  msgid "Question not found"
101
  msgstr "Frage nicht gefunden"
102
 
 
103
  #: lib/controller/WpProQuiz_Controller_Question.php:164
104
+ #: lib/controller/WpProQuiz_Controller_Question.php:206
105
  #, php-format
106
  msgid "Question: %d"
107
  msgstr "Frage: %d"
108
 
109
+ #: lib/controller/WpProQuiz_Controller_Question.php:174
110
  msgid "Question edited"
111
  msgstr "Frage geändert"
112
 
113
+ #: lib/controller/WpProQuiz_Controller_Question.php:193
114
  msgid "New question"
115
  msgstr "Neue Frage"
116
 
117
+ #: lib/controller/WpProQuiz_Controller_Question.php:217
118
  msgid "Question added"
119
  msgstr "Frage hinzugefügt"
120
 
121
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:73
122
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:21
123
  msgid "Edit quiz"
124
  msgstr "Quiz bearbeiten"
125
 
126
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:93
127
  msgid "Quiz edited"
128
  msgstr "Quiz bearbeitet"
129
 
130
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:102
131
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:135
132
  msgid "Quiz title or quiz description are not filled"
133
  msgstr "Quiz Titel oder Quiz Beschreibung nicht ausgefüllt"
134
 
135
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:118
136
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:129
137
  msgid "Create quiz"
138
  msgstr "Quiz erstellen"
139
 
140
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:160
141
  msgid "Quiz deleted"
142
  msgstr "Quiz gelöscht"
143
 
149
  msgid "File have wrong format"
150
  msgstr "Datei hat falsches Format"
151
 
152
+ #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
153
+ msgid "The user completed a quiz."
154
+ msgstr "Der Benutzer beendet ein Quiz."
155
+
156
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:86
157
  msgid "Start quiz"
158
  msgstr "Quiz starten"
159
 
160
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:91
161
  msgid ""
162
  "You have already completed the quiz before. Hence you can not start it again."
163
  msgstr ""
164
  "Sie haben das Quiz schon einmal absolviert. Daher können sie es nicht erneut "
165
  "starten."
166
 
167
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:95
168
+ #: lib/view/WpProQuiz_View_Statistics.php:59
169
+ #: lib/view/WpProQuiz_View_Statistics.php:150
170
  msgid "Results"
171
  msgstr "Ergebnis"
172
 
173
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:97
174
  #, php-format
175
  msgid "%s of %s questions answered correctly"
176
  msgstr "%s von %s Frage korrekt beantwortet"
177
 
178
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:100
179
  msgid "Your time: <span></span>"
180
  msgstr "Ihre Zeit: <span></span>"
181
 
182
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:103
183
  msgid "Time has elapsed"
184
  msgstr "Zeit ist abgelaufen"
185
 
186
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:106
187
  msgid ""
188
  "You have reached <span></span> of <span></span> points, (<span></span>%)"
189
  msgstr ""
190
  "Sie haben <span></span> von <span></span> Punkten erreicht (<span></span>%)"
191
 
192
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:121
193
  msgid "Restart quiz"
194
  msgstr "Quiz erneut starten"
195
 
196
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:123
197
  msgid "View questions"
198
  msgstr "Fragen ansehen"
199
 
200
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:128
201
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
202
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
203
  msgid "Time limit"
204
  msgstr "Zeitlimit"
205
 
206
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:141
207
  #, php-format
208
  msgid "Question %s of %s"
209
  msgstr "Frage %s von %s"
210
 
211
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:144
212
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:49
213
  #: lib/view/WpProQuiz_View_Statistics.php:53
214
  msgid "Question"
215
  msgstr "Frage"
216
 
217
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:148
218
  #, php-format
219
  msgid "%d points"
220
  msgstr "%d Punkte"
221
 
222
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:158
223
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
224
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:290
225
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:327
226
  msgid "Sort elements"
227
  msgstr "Sortierelemente"
228
 
229
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:240
230
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:247
231
  #: lib/view/WpProQuiz_View_Statistics.php:55
232
+ #: lib/view/WpProQuiz_View_Statistics.php:147
233
  msgid "Correct"
234
  msgstr "Korrekt"
235
 
236
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:242
237
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:260
238
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
239
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
240
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
241
+ #: lib/view/WpProQuiz_View_Statistics.php:54
242
+ #: lib/view/WpProQuiz_View_Statistics.php:146
243
+ msgid "Points"
244
+ msgstr "Punkte"
245
+
246
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:258
247
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:265
248
  #: lib/view/WpProQuiz_View_Statistics.php:56
249
+ #: lib/view/WpProQuiz_View_Statistics.php:148
250
  msgid "Incorrect"
251
  msgstr "Inkorrekt"
252
 
253
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:282
254
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:292
255
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:85
256
  msgid "Hint"
257
  msgstr "Tipp"
258
 
259
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:289
260
  msgid "Check"
261
  msgstr "Prüfen"
262
 
263
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:290
264
  msgid "Back"
265
  msgstr "Zurück"
266
 
267
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:294
268
  msgid "Next exercise"
269
  msgstr "Nächste Frage"
270
 
271
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:307
272
  msgid "Finish quiz"
273
  msgstr "Quiz abschließen"
274
 
282
 
283
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
284
  #: lib/view/WpProQuiz_View_GobalSettings.php:25
285
+ #: lib/view/WpProQuiz_View_QuizOverall.php:48
286
  msgid "Settings in case of problems"
287
  msgstr "Einstellungen bei Problemen"
288
 
299
 
300
  #: lib/view/WpProQuiz_View_GobalSettings.php:21
301
  #: lib/view/WpProQuiz_View_Import.php:22
302
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
303
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
304
  #: lib/view/WpProQuiz_View_QuizEdit.php:8
305
  #: lib/view/WpProQuiz_View_Statistics.php:18
306
  #: lib/view/WpProQuiz_View_StyleManager.php:11
314
 
315
  #: lib/view/WpProQuiz_View_GobalSettings.php:40
316
  #: lib/view/WpProQuiz_View_GobalSettings.php:62
317
+ #: lib/view/WpProQuiz_View_GobalSettings.php:114
318
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
319
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
320
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
407
  "Wenn Sie Probleme mit der Touch Library haben, können Sie dies hier "
408
  "deaktivieren."
409
 
410
+ #: lib/view/WpProQuiz_View_GobalSettings.php:105
411
+ #: lib/view/WpProQuiz_View_GobalSettings.php:110
412
+ msgid "jQuery support cors"
413
+ msgstr "jQuery support cors"
414
+
415
+ #: lib/view/WpProQuiz_View_GobalSettings.php:117
416
+ msgid "Is required only in rare cases."
417
+ msgstr "Ist nur in seltenen Fällen erforderlich."
418
+
419
+ #: lib/view/WpProQuiz_View_GobalSettings.php:120
420
+ msgid "If you have problems with the front ajax, please activate it."
421
+ msgstr "Wenn Sie Probleme mit dem Front AJAX haben, bitte aktivieren Sie es."
422
+
423
+ #: lib/view/WpProQuiz_View_GobalSettings.php:123
424
+ msgid "e.g. Domain with special characters in combination with IE"
425
+ msgstr "z.B. Bei einer Domain mit Sonderzeichen in Kombination mit IE"
426
+
427
+ #: lib/view/WpProQuiz_View_GobalSettings.php:132
428
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:373
429
  #: lib/view/WpProQuiz_View_QuizEdit.php:430
430
  msgid "Save"
431
  msgstr "Speichern"
432
 
433
  #: lib/view/WpProQuiz_View_Import.php:21
434
+ #: lib/view/WpProQuiz_View_QuizOverall.php:91
435
+ #: lib/view/WpProQuiz_View_QuizOverall.php:108
436
  msgid "Import"
437
  msgstr "Import"
438
 
453
  msgstr "Quiz-Name"
454
 
455
  #: lib/view/WpProQuiz_View_Import.php:44
456
+ #: lib/view/WpProQuiz_View_QuizOverall.php:71
457
  msgid "Questions"
458
  msgstr "Fragen"
459
 
460
  #: lib/view/WpProQuiz_View_Import.php:67
461
+ #: lib/view/WpProQuiz_View_QuizOverall.php:119
462
  msgid "Start import"
463
  msgstr "Import starten"
464
 
465
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
466
  msgid "Title"
467
  msgstr "Titel"
468
 
469
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
470
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:57
471
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
472
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:85
473
  #: lib/view/WpProQuiz_View_QuizEdit.php:362
474
  msgid "(optional)"
475
  msgstr "(Optional)"
476
 
477
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:15
478
  msgid ""
479
  "The title is used for overview, it is not visible in quiz. If you leave the "
480
  "title field empty, a title will be generated."
482
  "Der Titel dient nur zur Übersicht, es wird nicht im Quiz angezeigt. Wird der "
483
  "Titel leer gelassen, wird ein Titel generiert."
484
 
485
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
486
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:49
487
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:137
 
 
 
 
 
 
488
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
489
  #: lib/view/WpProQuiz_View_QuizEdit.php:351
490
  msgid "(required)"
491
  msgstr "(Pflichtfeld)"
492
 
493
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:25
494
  msgid "Points for this question (Standard is 1 point)"
495
  msgstr "Punkte für diese Frage (Standard ist 1 Punkt)"
496
 
497
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:34
498
+ msgid "Points per correct answer"
499
+ msgstr "Punkte pro korrekte Antwort"
500
+
501
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:37
502
+ msgid ""
503
+ "If you enable this option, for every correct answer user will receive X "
504
+ "points. Otherwise he will receive points only if the question was solved "
505
+ "completely."
506
+ msgstr ""
507
+ "Wenn Sie diese Option aktivieren, werden für jede korrekte Antwort X Punkte "
508
+ "vergeben. Ansonsten gibt es nur Punkte wenn die Frage vollständig korrekt "
509
+ "abgeschlossen wird."
510
+
511
  #: lib/view/WpProQuiz_View_QuestionEdit.php:43
512
+ msgid "Show reached points in the correct- and incorrect message?"
513
+ msgstr "Erreichte Punkte in der Korrekt- und Inkorrekt-Nachricht anzeigen?"
514
+
515
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:57
516
  msgid "Message with the correct answer"
517
  msgstr "Nachricht bei korrekter Antwort"
518
 
519
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
520
  msgid ""
521
  "This text will be visible if answered correctly. It can be used as "
522
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
526
  "für komplexe Aufgaben dienen. Die Nachricht \"Richtig\" oder \"Falsch\" wird "
527
  "immer automatisch angezeigt."
528
 
529
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:64
530
  msgid "Same text for correct- and incorrect-message?"
531
  msgstr "Gleicher Text für Korrekt- und Inkorrekt-Nachricht?"
532
 
533
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
534
  msgid "Message with the incorrect answer"
535
  msgstr "Nachricht bei inkorrekter Antwort"
536
 
537
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:77
538
  msgid ""
539
  "This text will be visible if answered incorrectly. It can be used as "
540
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
544
  "komplexe Aufgaben dienen. Die Nachricht \"Richtig\" oder \"Falsch\" wird "
545
  "immer automatisch angezeigt."
546
 
547
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:88
548
  msgid "Here you can enter solution hint."
549
  msgstr "Hier können Sie einen Lösungstipp hinterlegen."
550
 
551
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:92
552
  msgid "Activate hint for this question?"
553
  msgstr "Tipp für diese Frage aktivieren?"
554
 
555
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:104
556
  msgid "Answer type"
557
  msgstr "Antwort Typ?"
558
 
559
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:112
560
  msgid "Single choice"
561
  msgstr "Single choice"
562
 
563
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:116
564
  msgid "Multiple choice"
565
  msgstr "Multiple choice"
566
 
567
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:120
568
  msgid "\"Free\" choice"
569
  msgstr "\"Free\" choice"
570
 
571
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:124
572
  msgid "\"Sorting\" choice"
573
  msgstr "\"Sorting\" choice"
574
 
575
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:128
576
  msgid "\"Matrix Sorting\" choice"
577
  msgstr "\"Matrix Sorting\" choice"
578
 
579
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:132
580
  msgid "Cloze"
581
  msgstr "Lückentext"
582
 
583
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:137
584
  msgid "Answers"
585
  msgstr "Antworten"
586
 
587
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:142
588
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:146
589
  msgid ""
590
  "correct answers (one per line) (answers will be converted to lower case)"
591
  msgstr ""
592
  "Korrekte Antworten (eine pro Zeile ) (Antworten werden in Kleinbuchstaben "
593
  "umgewandelt)"
594
 
595
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:152
596
  msgid ""
597
  "Please sort the answers in right order with the \"Move\" - Button. The "
598
  "answers will be displayed randomly."
600
  "Bitte Antworten mit dem \"Verschiebe\"-Button in die richtige Reihenfolge "
601
  "bringen. Die Antworten werden später immer zufällig ausgegeben."
602
 
603
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:158
604
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
605
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:180
606
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:199
 
607
  #: lib/view/WpProQuiz_View_QuestionEdit.php:215
608
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:229
609
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:279
610
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:319
611
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:356
612
  msgid "Delete answer"
613
  msgstr "Antwort löschen"
614
 
615
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:159
616
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:171
617
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:181
618
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:200
 
619
  #: lib/view/WpProQuiz_View_QuestionEdit.php:216
620
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:230
621
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:278
622
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
623
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:355
624
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
625
  msgid "Move"
626
  msgstr "Verschieben"
627
 
628
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:161
629
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
630
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:183
631
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
 
632
  #: lib/view/WpProQuiz_View_QuestionEdit.php:218
633
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:232
634
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:265
635
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:271
636
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:305
637
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:311
638
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:342
639
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:348
640
  msgid "Allow HTML"
641
  msgstr "HTML erlauben"
642
 
643
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:189
644
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:238
645
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
646
  msgid "Add new answer"
647
  msgstr "Neue Antwort hinzufügen"
648
 
649
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:197
 
650
  #: lib/view/WpProQuiz_View_QuestionEdit.php:213
651
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:227
652
  msgid "correct?"
653
  msgstr "Korrekt?"
654
 
655
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:242
656
  msgid ""
657
  "In this mode, not a list have to be sorted, but elements must be assigned to "
658
  "matching criterion."
660
  "In diesem Modus muss nicht eine Liste sortiert werden, sondern die "
661
  "Sortierelemente müssen zu den passenden Kriterium zugeordnet werden."
662
 
663
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:249
664
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
665
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:326
666
  msgid "Criterion"
667
  msgstr "Kriterium"
668
 
669
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:364
670
  msgid ""
671
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
672
  "small letters will be ignored."
678
  msgid "Questions sorted"
679
  msgstr "Fragen sortiert"
680
 
681
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
682
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
683
  msgid "Name"
684
  msgstr "Name"
685
 
686
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:30
687
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
688
  msgid "Action"
689
  msgstr "Aktion"
690
 
691
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:46
692
+ #: lib/view/WpProQuiz_View_QuizOverall.php:74
693
  msgid "Edit"
694
  msgstr "Bearbeiten"
695
 
696
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:48
697
+ #: lib/view/WpProQuiz_View_QuizOverall.php:76
698
  msgid "Delete"
699
  msgstr "Löschen"
700
 
701
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:59
702
+ #: lib/view/WpProQuiz_View_Statistics.php:84
703
+ msgid "Total"
704
+ msgstr "Total"
705
+
706
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
707
  msgid "Add question"
708
  msgstr "Frage hinzufügen"
709
 
710
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:68
711
  msgid "Save order"
712
  msgstr "Sortierung speichern"
713
 
714
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:69
715
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
716
  msgid "Copy questions from another Quiz"
717
  msgstr "Fragen aus einem anderen Quiz kopieren."
718
 
719
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:75
720
  msgid ""
721
  "Here you can copy questions from another quiz into this quiz. (Multiple "
722
  "selection enabled)"
724
  "Hier können Sie Fragen aus einem anderen Quiz in dieses Quiz kopieren. "
725
  "(Mehrfachauswahl aktiviert)"
726
 
727
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:79
728
  #: lib/view/WpProQuiz_View_Statistics.php:45
729
  msgid "Loading"
730
  msgstr "Daten werden geladen"
731
 
732
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:87
733
  msgid "Copy questions"
734
  msgstr "Fragen kopieren"
735
 
863
 
864
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
865
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
866
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
867
  msgid "Statistics"
868
  msgstr "Statistik"
869
 
1044
  msgid "Style Manager"
1045
  msgstr "Style Manager"
1046
 
1047
+ #: lib/view/WpProQuiz_View_QuizOverall.php:55
1048
  msgid "ID"
1049
  msgstr "ID"
1050
 
1051
+ #: lib/view/WpProQuiz_View_QuizOverall.php:56
1052
  msgid "Shortcode"
1053
  msgstr "Shortcode"
1054
 
1055
+ #: lib/view/WpProQuiz_View_QuizOverall.php:78
1056
  msgid "Preview"
1057
  msgstr "Vorschau"
1058
 
1059
+ #: lib/view/WpProQuiz_View_QuizOverall.php:89
1060
  msgid "Add quiz"
1061
  msgstr "Quiz hinzufügen"
1062
 
1063
+ #: lib/view/WpProQuiz_View_QuizOverall.php:93
1064
+ #: lib/view/WpProQuiz_View_QuizOverall.php:98
1065
  msgid "Export"
1066
  msgstr "Export"
1067
 
1068
+ #: lib/view/WpProQuiz_View_QuizOverall.php:99
1069
  msgid ""
1070
  "Choose the respective question, which you would like to export and press on "
1071
  "\"Start export\""
1073
  "Wählen Sie oben die entsprechen Quiz aus, die Sie exportieren möchten und "
1074
  "klicken Sie anschliessen auf \"Export starten\""
1075
 
1076
+ #: lib/view/WpProQuiz_View_QuizOverall.php:103
1077
  msgid "Start export"
1078
  msgstr "Export starten"
1079
 
1080
+ #: lib/view/WpProQuiz_View_QuizOverall.php:109
1081
  msgid "Import only *.wpq files from known and trusted sources."
1082
  msgstr ""
1083
  "Importieren sie nur *.wpq Dateien aus bekannten und vertrauenswürdigen "
1084
  "Quellen."
1085
 
1086
+ #: lib/view/WpProQuiz_View_QuizOverall.php:117
1087
  #, php-format
1088
  msgid "Maximal %d MiB"
1089
  msgstr "Maximal %d MiB"
1106
  msgstr "anonyme Benutzer"
1107
 
1108
  #: lib/view/WpProQuiz_View_Statistics.php:28
1109
+ msgid "Registered users"
1110
  msgstr "registrierte Benutzer"
1111
 
1112
  #: lib/view/WpProQuiz_View_Statistics.php:29
1118
  msgstr "Bitte Benutzername auswählen:"
1119
 
1120
  #: lib/view/WpProQuiz_View_Statistics.php:57
1121
+ #: lib/view/WpProQuiz_View_Statistics.php:149
1122
  msgid "Hints used"
1123
  msgstr "Tipp benutzt"
1124
 
1125
+ #: lib/view/WpProQuiz_View_Statistics.php:58
1126
+ msgid "Points scored"
1127
+ msgstr "Punkte erzielt"
1128
 
1129
+ #: lib/view/WpProQuiz_View_Statistics.php:98
1130
  msgid "Reset statistics"
1131
  msgstr "Statistik zurücksetzen"
1132
 
1133
+ #: lib/view/WpProQuiz_View_Statistics.php:100
1134
+ #: lib/view/WpProQuiz_View_Statistics.php:172
1135
  msgid "Refresh"
1136
  msgstr "Aktualisieren"
1137
 
1138
+ #: lib/view/WpProQuiz_View_Statistics.php:104
1139
+ #: lib/view/WpProQuiz_View_Statistics.php:174
1140
  msgid "Reset entire statistic"
1141
  msgstr "Alle Statistiken zurücksetzten"
1142
 
1143
+ #: lib/view/WpProQuiz_View_Statistics.php:115
1144
+ msgid "Filter"
1145
+ msgstr "Filter"
1146
+
1147
+ #: lib/view/WpProQuiz_View_Statistics.php:120
1148
+ msgid "Show only users, who solved the quiz:"
1149
+ msgstr "Nur Benutzer anzeigen die das Quiz absolviert haben:"
1150
+
1151
+ #: lib/view/WpProQuiz_View_Statistics.php:126
1152
+ msgid "How many entries should be shown on one page:"
1153
+ msgstr "Wie viele Benutzer sollen auf einer Seite angezeigt werden:"
1154
+
1155
+ #: lib/view/WpProQuiz_View_Statistics.php:145
1156
+ msgid "User"
1157
+ msgstr "Benutzer"
1158
+
1159
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1160
  msgid "Front"
1161
  msgstr "Front"
languages/wp-pro-quiz-ru_RU.mo ADDED
Binary file
languages/wp-pro-quiz-ru_RU.po ADDED
@@ -0,0 +1,1172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-01-07 23:42+0100\n"
5
+ "PO-Revision-Date: 2013-01-07 23:42+0100\n"
6
+ "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
+ "Language-Team: Sergei Bondarenko\n"
8
+ "Language: Russian\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
+ "X-Poedit-SearchPath-0: .\n"
16
+
17
+ #: lib/controller/WpProQuiz_Controller_Admin.php:54
18
+ msgid "Do you really want to delete the quiz/question?"
19
+ msgstr "Вы действительно хотите удалить тест/вопрос?"
20
+
21
+ #: lib/controller/WpProQuiz_Controller_Admin.php:55
22
+ msgid "Title is not filled!"
23
+ msgstr "Заголовок не заполнен!"
24
+
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:56
26
+ msgid "No question deposited!"
27
+ msgstr "Нет сохраненных вопросов!"
28
+
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:57
30
+ msgid "Correct answer was not selected!"
31
+ msgstr "Правильный ответ не выбран!"
32
+
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:58
34
+ msgid "No answer deposited!"
35
+ msgstr "Ответ не сохранен!!"
36
+
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:59
38
+ msgid "No quiz description filled!"
39
+ msgstr "Не заполнено описание к тесту!"
40
+
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:60
42
+ msgid "The percent values in result text are incorrect."
43
+ msgstr "Процентное значение в тексте результатов неверно."
44
+
45
+ #: lib/controller/WpProQuiz_Controller_Admin.php:61
46
+ msgid "No number in the field \"Points\" or less than 1"
47
+ msgstr "Нет числа в поле \"Баллы\" или оно меньше 1"
48
+
49
+ #: lib/controller/WpProQuiz_Controller_Admin.php:62
50
+ msgid "No quiz selected"
51
+ msgstr "Тест не выбран"
52
+
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:63
54
+ msgid "Do you really want to reset the statistic?"
55
+ msgstr "Вы действительно хотите сбросить статистику?"
56
+
57
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
58
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
59
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:43
60
+ #: lib/controller/WpProQuiz_Controller_Question.php:51
61
+ #: lib/controller/WpProQuiz_Controller_Question.php:128
62
+ #: lib/controller/WpProQuiz_Controller_Question.php:143
63
+ #: lib/controller/WpProQuiz_Controller_Question.php:189
64
+ #: lib/controller/WpProQuiz_Controller_Question.php:284
65
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:55
66
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:69
67
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:114
68
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:147
69
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:138
70
+ msgid "You do not have sufficient permissions to access this page."
71
+ msgstr ""
72
+
73
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:19
74
+ msgid "Settings saved"
75
+ msgstr "Настройки сохранены"
76
+
77
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
78
+ #: lib/helper/WpProQuiz_Helper_Import.php:54
79
+ #: lib/helper/WpProQuiz_Helper_Import.php:63
80
+ #: lib/helper/WpProQuiz_Helper_Import.php:70
81
+ msgid "File cannot be processed"
82
+ msgstr "Файл не может быть обработан"
83
+
84
+ #: lib/controller/WpProQuiz_Controller_Question.php:9
85
+ #: lib/controller/WpProQuiz_Controller_Question.php:19
86
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:78
87
+ msgid "Quiz not found"
88
+ msgstr "Тест не найден"
89
+
90
+ #: lib/controller/WpProQuiz_Controller_Question.php:65
91
+ msgid "questions copied"
92
+ msgstr "вопросы скопированы"
93
+
94
+ #: lib/controller/WpProQuiz_Controller_Question.php:147
95
+ msgid "Edit question"
96
+ msgstr "Редактирование вопроса"
97
+
98
+ #: lib/controller/WpProQuiz_Controller_Question.php:151
99
+ msgid "Question not found"
100
+ msgstr "Вопрос не найден"
101
+
102
+ #: lib/controller/WpProQuiz_Controller_Question.php:164
103
+ #: lib/controller/WpProQuiz_Controller_Question.php:206
104
+ #, php-format
105
+ msgid "Question: %d"
106
+ msgstr "Вопрос: %d"
107
+
108
+ #: lib/controller/WpProQuiz_Controller_Question.php:174
109
+ msgid "Question edited"
110
+ msgstr "Вопрос отредактирован"
111
+
112
+ #: lib/controller/WpProQuiz_Controller_Question.php:193
113
+ msgid "New question"
114
+ msgstr "Новый вопрос"
115
+
116
+ #: lib/controller/WpProQuiz_Controller_Question.php:217
117
+ msgid "Question added"
118
+ msgstr "Вопрос добавлен"
119
+
120
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:73
121
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:21
122
+ msgid "Edit quiz"
123
+ msgstr "Редактирование теста"
124
+
125
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:93
126
+ msgid "Quiz edited"
127
+ msgstr "Тест отредактирован"
128
+
129
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:102
130
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:135
131
+ msgid "Quiz title or quiz description are not filled"
132
+ msgstr "Не заполнены заголовок или описание теста"
133
+
134
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:118
135
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:129
136
+ msgid "Create quiz"
137
+ msgstr "Создать тест"
138
+
139
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:160
140
+ msgid "Quiz deleted"
141
+ msgstr "Тест удален"
142
+
143
+ #: lib/helper/WpProQuiz_Helper_Import.php:9
144
+ msgid "File was not uploaded"
145
+ msgstr "Файл не загружен"
146
+
147
+ #: lib/helper/WpProQuiz_Helper_Import.php:40
148
+ msgid "File have wrong format"
149
+ msgstr "Неверный формат файла"
150
+
151
+ #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
152
+ msgid "The user completed a quiz."
153
+ msgstr ""
154
+
155
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:86
156
+ msgid "Start quiz"
157
+ msgstr "Начать тест"
158
+
159
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:91
160
+ msgid ""
161
+ "You have already completed the quiz before. Hence you can not start it again."
162
+ msgstr "Вы уже проходили тест ранее. Вы не можете запустить его снова."
163
+
164
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:95
165
+ #: lib/view/WpProQuiz_View_Statistics.php:59
166
+ #: lib/view/WpProQuiz_View_Statistics.php:150
167
+ msgid "Results"
168
+ msgstr "Результаты"
169
+
170
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:97
171
+ #, php-format
172
+ msgid "%s of %s questions answered correctly"
173
+ msgstr "Правильных ответов: %s из %s"
174
+
175
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:100
176
+ msgid "Your time: <span></span>"
177
+ msgstr "Ваше время: <span></span>"
178
+
179
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:103
180
+ msgid "Time has elapsed"
181
+ msgstr "Время вышло"
182
+
183
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:106
184
+ msgid ""
185
+ "You have reached <span></span> of <span></span> points, (<span></span>%)"
186
+ msgstr "Вы набрали <span></span> из <span></span> баллов (<span></span>%)"
187
+
188
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:121
189
+ msgid "Restart quiz"
190
+ msgstr "Начать тест заново"
191
+
192
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:123
193
+ msgid "View questions"
194
+ msgstr "Показать вопросы"
195
+
196
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:128
197
+ #: lib/view/WpProQuiz_View_QuizEdit.php:132
198
+ #: lib/view/WpProQuiz_View_QuizEdit.php:137
199
+ msgid "Time limit"
200
+ msgstr "Осталось"
201
+
202
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:141
203
+ #, php-format
204
+ msgid "Question %s of %s"
205
+ msgstr "Вопрос %s из %s"
206
+
207
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:144
208
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:49
209
+ #: lib/view/WpProQuiz_View_Statistics.php:53
210
+ msgid "Question"
211
+ msgstr "Вопрос"
212
+
213
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:148
214
+ #, php-format
215
+ msgid "%d points"
216
+ msgstr "%d б."
217
+
218
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:158
219
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
220
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:290
221
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:327
222
+ msgid "Sort elements"
223
+ msgstr "Элементы сортировки"
224
+
225
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:240
226
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:247
227
+ #: lib/view/WpProQuiz_View_Statistics.php:55
228
+ #: lib/view/WpProQuiz_View_Statistics.php:147
229
+ msgid "Correct"
230
+ msgstr "Правильно"
231
+
232
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:242
233
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:260
234
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
235
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
236
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
237
+ #: lib/view/WpProQuiz_View_Statistics.php:54
238
+ #: lib/view/WpProQuiz_View_Statistics.php:146
239
+ msgid "Points"
240
+ msgstr "Баллы"
241
+
242
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:258
243
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:265
244
+ #: lib/view/WpProQuiz_View_Statistics.php:56
245
+ #: lib/view/WpProQuiz_View_Statistics.php:148
246
+ msgid "Incorrect"
247
+ msgstr "Неправильно"
248
+
249
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:282
250
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:292
251
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:85
252
+ msgid "Hint"
253
+ msgstr "Подсказка"
254
+
255
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:289
256
+ msgid "Check"
257
+ msgstr "Проверить"
258
+
259
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:290
260
+ msgid "Back"
261
+ msgstr "Назад"
262
+
263
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:294
264
+ msgid "Next exercise"
265
+ msgstr "Далее"
266
+
267
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:307
268
+ msgid "Finish quiz"
269
+ msgstr "Завершить тест"
270
+
271
+ #: lib/view/WpProQuiz_View_GobalSettings.php:7
272
+ msgid "to activate"
273
+ msgstr "включить"
274
+
275
+ #: lib/view/WpProQuiz_View_GobalSettings.php:9
276
+ msgid "not to activate"
277
+ msgstr "отключить"
278
+
279
+ #: lib/view/WpProQuiz_View_GobalSettings.php:14
280
+ #: lib/view/WpProQuiz_View_GobalSettings.php:25
281
+ #: lib/view/WpProQuiz_View_QuizOverall.php:48
282
+ msgid "Settings in case of problems"
283
+ msgstr "Настройки в случае возникновения проблем"
284
+
285
+ #: lib/view/WpProQuiz_View_GobalSettings.php:16
286
+ msgid "Please note"
287
+ msgstr "Пожалуйста, обратите внимание"
288
+
289
+ #: lib/view/WpProQuiz_View_GobalSettings.php:18
290
+ msgid ""
291
+ "These settings should only be set in cases of problems with Wp-Pro-Quiz."
292
+ msgstr ""
293
+ "Эти параметры должны быть установлены только в случае проблем с Wp-Pro-Quiz."
294
+
295
+ #: lib/view/WpProQuiz_View_GobalSettings.php:21
296
+ #: lib/view/WpProQuiz_View_Import.php:22
297
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
298
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
299
+ #: lib/view/WpProQuiz_View_QuizEdit.php:8
300
+ #: lib/view/WpProQuiz_View_Statistics.php:18
301
+ #: lib/view/WpProQuiz_View_StyleManager.php:11
302
+ msgid "back to overview"
303
+ msgstr "Назад к списку"
304
+
305
+ #: lib/view/WpProQuiz_View_GobalSettings.php:31
306
+ #: lib/view/WpProQuiz_View_GobalSettings.php:36
307
+ msgid "Automatically add [raw] shortcode"
308
+ msgstr "Автоматически добавлять шорткод [raw]"
309
+
310
+ #: lib/view/WpProQuiz_View_GobalSettings.php:40
311
+ #: lib/view/WpProQuiz_View_GobalSettings.php:62
312
+ #: lib/view/WpProQuiz_View_GobalSettings.php:114
313
+ #: lib/view/WpProQuiz_View_QuizEdit.php:33
314
+ #: lib/view/WpProQuiz_View_QuizEdit.php:52
315
+ #: lib/view/WpProQuiz_View_QuizEdit.php:71
316
+ #: lib/view/WpProQuiz_View_QuizEdit.php:90
317
+ #: lib/view/WpProQuiz_View_QuizEdit.php:109
318
+ #: lib/view/WpProQuiz_View_QuizEdit.php:125
319
+ #: lib/view/WpProQuiz_View_QuizEdit.php:159
320
+ #: lib/view/WpProQuiz_View_QuizEdit.php:184
321
+ #: lib/view/WpProQuiz_View_QuizEdit.php:209
322
+ #: lib/view/WpProQuiz_View_QuizEdit.php:234
323
+ #: lib/view/WpProQuiz_View_QuizEdit.php:259
324
+ #: lib/view/WpProQuiz_View_QuizEdit.php:299
325
+ msgid "Activate"
326
+ msgstr "Активно"
327
+
328
+ #: lib/view/WpProQuiz_View_GobalSettings.php:40
329
+ #, php-format
330
+ msgid "It is recommended %s this option on your system."
331
+ msgstr "Рекомендуется %s эту опцию в вашей системе."
332
+
333
+ #: lib/view/WpProQuiz_View_GobalSettings.php:43
334
+ msgid ""
335
+ "If this option is activated, a [raw] shortcode is automatically set around "
336
+ "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
337
+ msgstr ""
338
+ "Если этот параметр активен, шорткод [raw] будет автоматически обрамлять "
339
+ "WpProQuiz шорткод ( [WpProQuiz X] в [raw] [WpProQuiz X] [/raw])."
340
+
341
+ #: lib/view/WpProQuiz_View_GobalSettings.php:46
342
+ #: lib/view/WpProQuiz_View_QuizOverall.php:42
343
+ msgid ""
344
+ "Own themes changes internal order of filters, what causes the problems. "
345
+ "With additional shortcode [raw] this is prevented."
346
+ msgstr ""
347
+ "Некоторые темы меняют внутренний порядок фильтра, что приводит к ошибкам. "
348
+ "Шорткод [raw] препятствует этому."
349
+
350
+ #: lib/view/WpProQuiz_View_GobalSettings.php:53
351
+ #: lib/view/WpProQuiz_View_GobalSettings.php:58
352
+ msgid "Do not load the Javascript-files in the footer"
353
+ msgstr "Не загружать Javascript-файлы в нижнюю часть страницы (подвал)"
354
+
355
+ #: lib/view/WpProQuiz_View_GobalSettings.php:65
356
+ msgid ""
357
+ "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
358
+ "when they are really needed."
359
+ msgstr ""
360
+ "По умолчанию все WpProQuiz-Javascript файлы грузятся в нижнюю часть страницы "
361
+ "(подвал) и только если они действительно нужны."
362
+
363
+ #: lib/view/WpProQuiz_View_GobalSettings.php:68
364
+ msgid "In very old Wordpress themes this can lead to problems."
365
+ msgstr "Может вызывать проблемы в старых темах Wordpress."
366
+
367
+ #: lib/view/WpProQuiz_View_GobalSettings.php:71
368
+ msgid ""
369
+ "If you activate this option, all WpProQuiz-Javascript files are loaded in "
370
+ "the header even if they are not needed."
371
+ msgstr ""
372
+ "Если вы включите эту опцию, все WpProQuiz-Javascript файлы будут загружены в "
373
+ "заголовок страницы, даже если они не нужны."
374
+
375
+ #: lib/view/WpProQuiz_View_GobalSettings.php:74
376
+ #, php-format
377
+ msgid ""
378
+ "Anyone who wants to learn more about this topic should read through the "
379
+ "following websites %s and %s."
380
+ msgstr ""
381
+ "Если Вам нужна дополнительная информация по данной теме, посетите следующие "
382
+ "вебсайты: %s и %s"
383
+
384
+ #: lib/view/WpProQuiz_View_GobalSettings.php:83
385
+ #: lib/view/WpProQuiz_View_GobalSettings.php:88
386
+ msgid "Touch Library"
387
+ msgstr "Сеснсорная библиотека"
388
+
389
+ #: lib/view/WpProQuiz_View_GobalSettings.php:92
390
+ msgid "Deactivate"
391
+ msgstr "Неактивно"
392
+
393
+ #: lib/view/WpProQuiz_View_GobalSettings.php:95
394
+ msgid "In Version 0.13 a new Touch Library was added for mobile devices."
395
+ msgstr ""
396
+ "В версии 0.13 добавлена новая сенсорная библиотека для мобильных устройств."
397
+
398
+ #: lib/view/WpProQuiz_View_GobalSettings.php:98
399
+ msgid "If you have any problems with the Touch Library, please deactivate it."
400
+ msgstr "Если у Вас проблемы с сенсорной библиотекой, пожалуйста отключите ее."
401
+
402
+ #: lib/view/WpProQuiz_View_GobalSettings.php:105
403
+ #: lib/view/WpProQuiz_View_GobalSettings.php:110
404
+ msgid "jQuery support cors"
405
+ msgstr ""
406
+
407
+ #: lib/view/WpProQuiz_View_GobalSettings.php:117
408
+ msgid "Is required only in rare cases."
409
+ msgstr ""
410
+
411
+ #: lib/view/WpProQuiz_View_GobalSettings.php:120
412
+ msgid "If you have problems with the front ajax, please activate it."
413
+ msgstr ""
414
+
415
+ #: lib/view/WpProQuiz_View_GobalSettings.php:123
416
+ msgid "e.g. Domain with special characters in combination with IE"
417
+ msgstr ""
418
+
419
+ #: lib/view/WpProQuiz_View_GobalSettings.php:132
420
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:373
421
+ #: lib/view/WpProQuiz_View_QuizEdit.php:430
422
+ msgid "Save"
423
+ msgstr "Сохранить"
424
+
425
+ #: lib/view/WpProQuiz_View_Import.php:21
426
+ #: lib/view/WpProQuiz_View_QuizOverall.php:91
427
+ #: lib/view/WpProQuiz_View_QuizOverall.php:108
428
+ msgid "Import"
429
+ msgstr "Импорт"
430
+
431
+ #: lib/view/WpProQuiz_View_Import.php:25
432
+ msgid "Error"
433
+ msgstr "Ошибка"
434
+
435
+ #: lib/view/WpProQuiz_View_Import.php:32
436
+ msgid "Successfully"
437
+ msgstr "Успешно"
438
+
439
+ #: lib/view/WpProQuiz_View_Import.php:34
440
+ msgid "Import completed successfully"
441
+ msgstr "Импорт завершен успешно"
442
+
443
+ #: lib/view/WpProQuiz_View_Import.php:43
444
+ msgid "Quiz name"
445
+ msgstr "Название теста"
446
+
447
+ #: lib/view/WpProQuiz_View_Import.php:44
448
+ #: lib/view/WpProQuiz_View_QuizOverall.php:71
449
+ msgid "Questions"
450
+ msgstr "Вопросы"
451
+
452
+ #: lib/view/WpProQuiz_View_Import.php:67
453
+ #: lib/view/WpProQuiz_View_QuizOverall.php:119
454
+ msgid "Start import"
455
+ msgstr "Начать импорт"
456
+
457
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
458
+ msgid "Title"
459
+ msgstr "Заголовок"
460
+
461
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
462
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:57
463
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
464
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:85
465
+ #: lib/view/WpProQuiz_View_QuizEdit.php:362
466
+ msgid "(optional)"
467
+ msgstr "(необязательное поле)"
468
+
469
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:15
470
+ msgid ""
471
+ "The title is used for overview, it is not visible in quiz. If you leave the "
472
+ "title field empty, a title will be generated."
473
+ msgstr ""
474
+ "Название используется для обзора и не отображается в тесте. Если поле "
475
+ "оставить пустым, название сгенерируется автоматически."
476
+
477
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
478
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:49
479
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:137
480
+ #: lib/view/WpProQuiz_View_QuizEdit.php:12
481
+ #: lib/view/WpProQuiz_View_QuizEdit.php:351
482
+ msgid "(required)"
483
+ msgstr "(обязательное поле)"
484
+
485
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:25
486
+ msgid "Points for this question (Standard is 1 point)"
487
+ msgstr "Количество баллов для этого вопроса (по-умолчанию 1 балл)"
488
+
489
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:34
490
+ msgid "Points per correct answer"
491
+ msgstr ""
492
+
493
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:37
494
+ msgid ""
495
+ "If you enable this option, for every correct answer user will receive X "
496
+ "points. Otherwise he will receive points only if the question was solved "
497
+ "completely."
498
+ msgstr ""
499
+
500
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:43
501
+ msgid "Show reached points in the correct- and incorrect message?"
502
+ msgstr ""
503
+
504
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:57
505
+ msgid "Message with the correct answer"
506
+ msgstr "Сообщение для правильного ответа"
507
+
508
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
509
+ msgid ""
510
+ "This text will be visible if answered correctly. It can be used as "
511
+ "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
512
+ "always displayed automatically."
513
+ msgstr ""
514
+ "Этот текст будет виден, если ответили правильно. Он может быть использован в "
515
+ "качестве объяснения сложных вопросов. Сообщение \"Правильно \" или "
516
+ "\"Неправильно\" всегда отображается автоматически."
517
+
518
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:64
519
+ msgid "Same text for correct- and incorrect-message?"
520
+ msgstr "Одинаковый текст для сообщений с правильным и неправильным ответом?"
521
+
522
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
523
+ msgid "Message with the incorrect answer"
524
+ msgstr "Сообщение для неправильного ответа"
525
+
526
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:77
527
+ msgid ""
528
+ "This text will be visible if answered incorrectly. It can be used as "
529
+ "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
530
+ "always displayed automatically."
531
+ msgstr ""
532
+ "Этот текст будет виден, если ответили неправильно. Он может быть использован "
533
+ "в качестве объяснения сложных вопросов. Сообщение \"Правильно \" или "
534
+ "\"Неправильно\" всегда отображается автоматически."
535
+
536
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:88
537
+ msgid "Here you can enter solution hint."
538
+ msgstr "Сюда можно ввести подсказку."
539
+
540
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:92
541
+ msgid "Activate hint for this question?"
542
+ msgstr "Активировать подсказку для этого вопроса?"
543
+
544
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:104
545
+ msgid "Answer type"
546
+ msgstr "Тип ответа"
547
+
548
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:112
549
+ msgid "Single choice"
550
+ msgstr "Одиночный выбор"
551
+
552
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:116
553
+ msgid "Multiple choice"
554
+ msgstr "Множественный выбор"
555
+
556
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:120
557
+ msgid "\"Free\" choice"
558
+ msgstr "\"Открытый\""
559
+
560
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:124
561
+ msgid "\"Sorting\" choice"
562
+ msgstr "\"Сортировка\""
563
+
564
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:128
565
+ msgid "\"Matrix Sorting\" choice"
566
+ msgstr "\"Матричная сортировка\""
567
+
568
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:132
569
+ #, fuzzy
570
+ msgid "Cloze"
571
+ msgstr "\"Заключенный текст\""
572
+
573
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:137
574
+ msgid "Answers"
575
+ msgstr "Ответы"
576
+
577
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:142
578
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:146
579
+ msgid ""
580
+ "correct answers (one per line) (answers will be converted to lower case)"
581
+ msgstr ""
582
+ "правильных ответов (по одному на строку) (ответы будут преобразованы в "
583
+ "нижний регистр)"
584
+
585
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:152
586
+ msgid ""
587
+ "Please sort the answers in right order with the \"Move\" - Button. The "
588
+ "answers will be displayed randomly."
589
+ msgstr ""
590
+ "Пожалуйста, отсортируйте ответы в правильном порядке при помощи кнопки "
591
+ "\"Переместить \". Ответы будут отображаться в случайном порядке."
592
+
593
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:158
594
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
595
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:180
596
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:199
597
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:215
598
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:229
599
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:279
600
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:319
601
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:356
602
+ msgid "Delete answer"
603
+ msgstr "Удалить ответ"
604
+
605
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:159
606
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:171
607
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:181
608
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:200
609
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:216
610
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:230
611
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:278
612
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
613
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:355
614
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
615
+ msgid "Move"
616
+ msgstr "Переместить"
617
+
618
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:161
619
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
620
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:183
621
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
622
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:218
623
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:232
624
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:265
625
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:271
626
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:305
627
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:311
628
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:342
629
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:348
630
+ msgid "Allow HTML"
631
+ msgstr "Разрешить HTML"
632
+
633
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:189
634
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:238
635
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
636
+ msgid "Add new answer"
637
+ msgstr "Добавить новый ответ"
638
+
639
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:197
640
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:213
641
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:227
642
+ msgid "correct?"
643
+ msgstr "правильно?"
644
+
645
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:242
646
+ msgid ""
647
+ "In this mode, not a list have to be sorted, but elements must be assigned to "
648
+ "matching criterion."
649
+ msgstr ""
650
+ "В этом режиме не нужно сортировать список. Элементы сортировки должны быть "
651
+ "отнесены к соответствующему критерию."
652
+
653
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:249
654
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
655
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:326
656
+ msgid "Criterion"
657
+ msgstr "Критерий"
658
+
659
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:364
660
+ #, fuzzy
661
+ msgid ""
662
+ "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
663
+ "small letters will be ignored."
664
+ msgstr ""
665
+ "Заключите поиск слов в { } , например, \"I {играть} в футбол\". Прописные и "
666
+ "строчные буквы будут игнорироваться."
667
+
668
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:17
669
+ msgid "Questions sorted"
670
+ msgstr "Вопросы отсортированы"
671
+
672
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
673
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
674
+ msgid "Name"
675
+ msgstr "Название"
676
+
677
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:30
678
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
679
+ msgid "Action"
680
+ msgstr "Действие"
681
+
682
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:46
683
+ #: lib/view/WpProQuiz_View_QuizOverall.php:74
684
+ msgid "Edit"
685
+ msgstr "Редактировать"
686
+
687
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:48
688
+ #: lib/view/WpProQuiz_View_QuizOverall.php:76
689
+ msgid "Delete"
690
+ msgstr "Удалить"
691
+
692
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:59
693
+ #: lib/view/WpProQuiz_View_Statistics.php:84
694
+ msgid "Total"
695
+ msgstr "Всего"
696
+
697
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
698
+ msgid "Add question"
699
+ msgstr "Добавить вопрос"
700
+
701
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:68
702
+ msgid "Save order"
703
+ msgstr "сохранить сортировку"
704
+
705
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:69
706
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
707
+ msgid "Copy questions from another Quiz"
708
+ msgstr "Копировать вопросы из другого теста."
709
+
710
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:75
711
+ msgid ""
712
+ "Here you can copy questions from another quiz into this quiz. (Multiple "
713
+ "selection enabled)"
714
+ msgstr ""
715
+ "Здесь Вы можете скопировать вопросы из другого теста в этот тест. "
716
+ "(Множественный выбор включен)"
717
+
718
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:79
719
+ #: lib/view/WpProQuiz_View_Statistics.php:45
720
+ msgid "Loading"
721
+ msgstr "Загрузка"
722
+
723
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:87
724
+ msgid "Copy questions"
725
+ msgstr "Вопросы скопированы"
726
+
727
+ #: lib/view/WpProQuiz_View_QuizEdit.php:12
728
+ msgid "Quiz title"
729
+ msgstr "Заголовок теста"
730
+
731
+ #: lib/view/WpProQuiz_View_QuizEdit.php:18
732
+ msgid "Options"
733
+ msgstr "Настройки"
734
+
735
+ #: lib/view/WpProQuiz_View_QuizEdit.php:24
736
+ msgid "Hide quiz title"
737
+ msgstr "Спрятать заголовок теста"
738
+
739
+ #: lib/view/WpProQuiz_View_QuizEdit.php:29
740
+ msgid "Hide title"
741
+ msgstr "Спрятать заголовок"
742
+
743
+ #: lib/view/WpProQuiz_View_QuizEdit.php:36
744
+ msgid "The title serves as quiz heading."
745
+ msgstr "Заголовок служит названием теста."
746
+
747
+ #: lib/view/WpProQuiz_View_QuizEdit.php:43
748
+ #: lib/view/WpProQuiz_View_QuizEdit.php:48
749
+ msgid "Hide \"Restart quiz\" button"
750
+ msgstr "Спрятать кнопку \"Перезагрузить тест\""
751
+
752
+ #: lib/view/WpProQuiz_View_QuizEdit.php:55
753
+ msgid "Hide the \"Restart quiz\" button in the Frontend."
754
+ msgstr "Спрятать кнопку \"Перезагрузить тест\" в конце теста."
755
+
756
+ #: lib/view/WpProQuiz_View_QuizEdit.php:62
757
+ #: lib/view/WpProQuiz_View_QuizEdit.php:67
758
+ msgid "Hide \"View question\" button"
759
+ msgstr "Спрятать кнопку \"Показать вопросы\""
760
+
761
+ #: lib/view/WpProQuiz_View_QuizEdit.php:74
762
+ msgid "Hide the \"View question\" button in the Frontend."
763
+ msgstr "Спрятать кнопку \"Показать вопросы\" в конце теста."
764
+
765
+ #: lib/view/WpProQuiz_View_QuizEdit.php:81
766
+ #: lib/view/WpProQuiz_View_QuizEdit.php:86
767
+ msgid "Show points"
768
+ msgstr "Показывать баллы"
769
+
770
+ #: lib/view/WpProQuiz_View_QuizEdit.php:93
771
+ msgid "Shows in quiz, how many points are reachable for respective question."
772
+ msgstr ""
773
+ "Показывать в тесте, сколько можно набрать баллов на соответствующий вопрос."
774
+
775
+ #: lib/view/WpProQuiz_View_QuizEdit.php:100
776
+ #: lib/view/WpProQuiz_View_QuizEdit.php:105
777
+ msgid "Display question randomly"
778
+ msgstr "Выводить вопросы случайным образом"
779
+
780
+ #: lib/view/WpProQuiz_View_QuizEdit.php:116
781
+ #: lib/view/WpProQuiz_View_QuizEdit.php:121
782
+ msgid "Display answers randomly"
783
+ msgstr "Выводить ответы случайным образом"
784
+
785
+ #: lib/view/WpProQuiz_View_QuizEdit.php:140
786
+ msgid "Seconds"
787
+ msgstr "Секунды"
788
+
789
+ #: lib/view/WpProQuiz_View_QuizEdit.php:143
790
+ msgid "0 = no limit"
791
+ msgstr "0 = без ограничений"
792
+
793
+ #: lib/view/WpProQuiz_View_QuizEdit.php:150
794
+ #: lib/view/WpProQuiz_View_QuizEdit.php:155
795
+ msgid "Number answers"
796
+ msgstr "Номера ответов"
797
+
798
+ #: lib/view/WpProQuiz_View_QuizEdit.php:162
799
+ msgid ""
800
+ "If this option is activated, all answers are numbered (only single and "
801
+ "multiple choice)"
802
+ msgstr ""
803
+ "Если эта опция включена, все ответы нумеруются (только для одиночного и "
804
+ "множественного выбора)"
805
+
806
+ #: lib/view/WpProQuiz_View_QuizEdit.php:165
807
+ #: lib/view/WpProQuiz_View_QuizEdit.php:190
808
+ #: lib/view/WpProQuiz_View_QuizEdit.php:215
809
+ #: lib/view/WpProQuiz_View_QuizEdit.php:240
810
+ msgid "Demo"
811
+ msgstr "Демо"
812
+
813
+ #: lib/view/WpProQuiz_View_QuizEdit.php:175
814
+ #: lib/view/WpProQuiz_View_QuizEdit.php:180
815
+ msgid "Questions below each other"
816
+ msgstr "Вопросы один под другим"
817
+
818
+ #: lib/view/WpProQuiz_View_QuizEdit.php:187
819
+ msgid ""
820
+ "If this option is activated, all answers are displayed below each other, i."
821
+ "e. all questions are on a single page. Otherwise all questions are displayed "
822
+ "one after the other."
823
+ msgstr ""
824
+ "Если Вы включите данную опцию, вопросы будут отображаться один под другим, т."
825
+ "е. все вопросы на одной странице. В противном случае все вопросы "
826
+ "отображаются последовательно."
827
+
828
+ #: lib/view/WpProQuiz_View_QuizEdit.php:200
829
+ #: lib/view/WpProQuiz_View_QuizEdit.php:205
830
+ msgid "Check -> continue"
831
+ msgstr "Проверить -> Далее"
832
+
833
+ #: lib/view/WpProQuiz_View_QuizEdit.php:212
834
+ msgid ""
835
+ "Shows \"right or wrong\" after each question. Otherwise the solutions will "
836
+ "be displayed at the end. (Option will be ignored if \"questions below each "
837
+ "other\" was used)"
838
+ msgstr ""
839
+ "Показывать \"правильно или неправильно\" после вопроса. В противном случае "
840
+ "решение будет показано в конце теста. (Опция игнорируется для \"Ответы с "
841
+ "номерами \")"
842
+
843
+ #: lib/view/WpProQuiz_View_QuizEdit.php:225
844
+ #: lib/view/WpProQuiz_View_QuizEdit.php:230
845
+ msgid "Back button"
846
+ msgstr "Кнопка назад"
847
+
848
+ #: lib/view/WpProQuiz_View_QuizEdit.php:237
849
+ msgid ""
850
+ "Allows to use the back button in a question. (Option will be ignored if "
851
+ "\"Check -> Continue\" or \"questions below each other\" was used)"
852
+ msgstr ""
853
+ "Позволяет вернуться к вопросу. (Опция игнорируется для \"Проверить -> Далее "
854
+ "\" и для \"Ответы с номерами \")"
855
+
856
+ #: lib/view/WpProQuiz_View_QuizEdit.php:250
857
+ #: lib/view/WpProQuiz_View_QuizEdit.php:255
858
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
859
+ msgid "Statistics"
860
+ msgstr "Статистика"
861
+
862
+ #: lib/view/WpProQuiz_View_QuizEdit.php:262
863
+ msgid ""
864
+ "Statistics about right or wrong answers. Statistics will be saved by "
865
+ "completed quiz, not after every question. The statistics is only visible "
866
+ "over administration menu. (internal statistics)"
867
+ msgstr ""
868
+ "Статистические данные по правильным или неправильным ответам. Статистика "
869
+ "будет сохранена по завершении теста, а не после каждого вопроса. Статистика "
870
+ "отображается только в административном меню. (внутренняя статистика)"
871
+
872
+ #: lib/view/WpProQuiz_View_QuizEdit.php:269
873
+ #: lib/view/WpProQuiz_View_QuizEdit.php:274
874
+ msgid "Statistics IP-lock"
875
+ msgstr "Статистика IP-блокировки"
876
+
877
+ #: lib/view/WpProQuiz_View_QuizEdit.php:278
878
+ msgid "in minutes (recommended 1440 minutes = 1 day)"
879
+ msgstr "в минутах (рекомендация: 1440 минут = 1 день)"
880
+
881
+ #: lib/view/WpProQuiz_View_QuizEdit.php:281
882
+ msgid ""
883
+ "Protect the statistics from spam. Result will only be saved every X minutes "
884
+ "from same IP. (0 = deactivated)"
885
+ msgstr ""
886
+ "Защитить статистику от спама. Результат будет сохраняться только каждые X "
887
+ "минут с одного IP. (0 = деактивировано)"
888
+
889
+ #: lib/view/WpProQuiz_View_QuizEdit.php:288
890
+ #: lib/view/WpProQuiz_View_QuizEdit.php:294
891
+ msgid "Execute quiz only once"
892
+ msgstr "Выполнять тест только 1 раз"
893
+
894
+ #: lib/view/WpProQuiz_View_QuizEdit.php:302
895
+ msgid ""
896
+ "If you activate this option, the user can complete the quiz only once. "
897
+ "Afterwards the quiz is blocked for this user."
898
+ msgstr ""
899
+ "Если вы активируете эту опцию, пользователь сможет пройти тест только один "
900
+ "раз. После тест будет заблокирован для данного пользователя."
901
+
902
+ #: lib/view/WpProQuiz_View_QuizEdit.php:306
903
+ msgid "This option applies to:"
904
+ msgstr "Этот параметр применяется к:"
905
+
906
+ #: lib/view/WpProQuiz_View_QuizEdit.php:314
907
+ msgid "all users"
908
+ msgstr "все пользователи"
909
+
910
+ #: lib/view/WpProQuiz_View_QuizEdit.php:318
911
+ msgid "registered useres only"
912
+ msgstr "только зарегистрированные пользователи"
913
+
914
+ #: lib/view/WpProQuiz_View_QuizEdit.php:322
915
+ msgid "anonymous users only"
916
+ msgstr "только анонимные пользователи"
917
+
918
+ #: lib/view/WpProQuiz_View_QuizEdit.php:328
919
+ msgid "user identification by cookie"
920
+ msgstr "Идентифицировать пользователя по кукисам"
921
+
922
+ #: lib/view/WpProQuiz_View_QuizEdit.php:331
923
+ msgid ""
924
+ "If you activate this option, a cookie is set additionally for unregistrated "
925
+ "(anonymous) users. This ensures a longer assignment of the user than the "
926
+ "simple assignment by the IP address."
927
+ msgstr ""
928
+ "Если вы активируете эту опцию, куки установливаются дополнительно для "
929
+ "незарегистрированных (анонимных) пользователей. Это обеспечивает более "
930
+ "длительное назначение пользователю, чем простое задание по IP-адресу."
931
+
932
+ #: lib/view/WpProQuiz_View_QuizEdit.php:336
933
+ msgid "Reset the user identification"
934
+ msgstr "Сброс идентификации пользователя"
935
+
936
+ #: lib/view/WpProQuiz_View_QuizEdit.php:337
937
+ msgid "User identification has been reset."
938
+ msgstr "Идентификация пользователей была сброшена."
939
+
940
+ #: lib/view/WpProQuiz_View_QuizEdit.php:339
941
+ msgid "Resets user identification for all users."
942
+ msgstr "Сбросить идентификацию для всех пользователей."
943
+
944
+ #: lib/view/WpProQuiz_View_QuizEdit.php:351
945
+ msgid "Quiz description"
946
+ msgstr "Описание теста"
947
+
948
+ #: lib/view/WpProQuiz_View_QuizEdit.php:354
949
+ msgid "This text will be displayed before start of the quiz."
950
+ msgstr "Этот текст будет отображаться перед началом теста."
951
+
952
+ #: lib/view/WpProQuiz_View_QuizEdit.php:362
953
+ msgid "Results text"
954
+ msgstr "Текст для результата"
955
+
956
+ #: lib/view/WpProQuiz_View_QuizEdit.php:365
957
+ msgid ""
958
+ "This text will be displayed at the end of the quiz (in results). (this text "
959
+ "is optional)"
960
+ msgstr ""
961
+ "Этот текст будет отображаться в конце теста (в результатах). (не является "
962
+ "обязательным)"
963
+
964
+ #: lib/view/WpProQuiz_View_QuizEdit.php:369
965
+ msgid "Activate graduation"
966
+ msgstr "Активировать окончания"
967
+
968
+ #: lib/view/WpProQuiz_View_QuizEdit.php:375
969
+ msgid "Hint:"
970
+ msgstr "Подсказка:"
971
+
972
+ #: lib/view/WpProQuiz_View_QuizEdit.php:377
973
+ msgid "Maximal 15 levels"
974
+ msgstr "Максимум 15 уровней"
975
+
976
+ #: lib/view/WpProQuiz_View_QuizEdit.php:379
977
+ #, php-format
978
+ msgid ""
979
+ "Percentages refer to the total score of the quiz. (Current total %d points "
980
+ "in %d questions."
981
+ msgstr ""
982
+ "Проценты относятся к общему баллу теста (Всего %d баллов в %d вопросах)"
983
+
984
+ #: lib/view/WpProQuiz_View_QuizEdit.php:382
985
+ msgid "Values can also be mixed up"
986
+ msgstr "значения могут быть перепутаны"
987
+
988
+ #: lib/view/WpProQuiz_View_QuizEdit.php:383
989
+ msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
990
+ msgstr "Допускается 10,15% или 10.15% (макс. до двух знаков после запятой)"
991
+
992
+ #: lib/view/WpProQuiz_View_QuizEdit.php:399
993
+ #: lib/view/WpProQuiz_View_QuizEdit.php:410
994
+ msgid "from:"
995
+ msgstr "от:"
996
+
997
+ #: lib/view/WpProQuiz_View_QuizEdit.php:399
998
+ #: lib/view/WpProQuiz_View_QuizEdit.php:410
999
+ msgid "percent"
1000
+ msgstr "процент"
1001
+
1002
+ #: lib/view/WpProQuiz_View_QuizEdit.php:399
1003
+ #: lib/view/WpProQuiz_View_QuizEdit.php:410
1004
+ #, fuzzy, php-format
1005
+ msgid ""
1006
+ "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
1007
+ "%s</span>%%)"
1008
+ msgstr ""
1009
+ "(Будет отображаться, если процентный результат >= <span class=\"resultProzent"
1010
+ "\">%s</span>%%)"
1011
+
1012
+ #: lib/view/WpProQuiz_View_QuizEdit.php:400
1013
+ #: lib/view/WpProQuiz_View_QuizEdit.php:411
1014
+ msgid "Delete graduation"
1015
+ msgstr "Удалить окончания"
1016
+
1017
+ #: lib/view/WpProQuiz_View_QuizEdit.php:418
1018
+ msgid "Add graduation"
1019
+ msgstr "Добавить окончания"
1020
+
1021
+ #: lib/view/WpProQuiz_View_QuizOverall.php:32
1022
+ msgid "Quiz overview"
1023
+ msgstr "Обзор теста"
1024
+
1025
+ #: lib/view/WpProQuiz_View_QuizOverall.php:34
1026
+ msgid "In case of problems"
1027
+ msgstr "В случае возникновения проблем"
1028
+
1029
+ #: lib/view/WpProQuiz_View_QuizOverall.php:36
1030
+ msgid "If quiz doesn't work in front-end, please try following:"
1031
+ msgstr "Если тест не работает в интерфейсе, попробуйте следующее:"
1032
+
1033
+ #: lib/view/WpProQuiz_View_QuizOverall.php:46
1034
+ msgid "Style Manager"
1035
+ msgstr "Менеджер стилей"
1036
+
1037
+ #: lib/view/WpProQuiz_View_QuizOverall.php:55
1038
+ msgid "ID"
1039
+ msgstr "ID"
1040
+
1041
+ #: lib/view/WpProQuiz_View_QuizOverall.php:56
1042
+ msgid "Shortcode"
1043
+ msgstr "Шорткод"
1044
+
1045
+ #: lib/view/WpProQuiz_View_QuizOverall.php:78
1046
+ msgid "Preview"
1047
+ msgstr "Предварительный просмотр"
1048
+
1049
+ #: lib/view/WpProQuiz_View_QuizOverall.php:89
1050
+ msgid "Add quiz"
1051
+ msgstr "Добавить тест"
1052
+
1053
+ #: lib/view/WpProQuiz_View_QuizOverall.php:93
1054
+ #: lib/view/WpProQuiz_View_QuizOverall.php:98
1055
+ msgid "Export"
1056
+ msgstr "Экспорт"
1057
+
1058
+ #: lib/view/WpProQuiz_View_QuizOverall.php:99
1059
+ msgid ""
1060
+ "Choose the respective question, which you would like to export and press on "
1061
+ "\"Start export\""
1062
+ msgstr ""
1063
+ "Выберите вопрос, который хотите экспортировать и нажмите \"Экспортировать\""
1064
+
1065
+ #: lib/view/WpProQuiz_View_QuizOverall.php:103
1066
+ msgid "Start export"
1067
+ msgstr "Экспортировать"
1068
+
1069
+ #: lib/view/WpProQuiz_View_QuizOverall.php:109
1070
+ msgid "Import only *.wpq files from known and trusted sources."
1071
+ msgstr "Импортировать только *.wpq файлы из известных и надежных источников."
1072
+
1073
+ #: lib/view/WpProQuiz_View_QuizOverall.php:117
1074
+ #, php-format
1075
+ msgid "Maximal %d MiB"
1076
+ msgstr "Максимально %d MiB"
1077
+
1078
+ #: lib/view/WpProQuiz_View_Statistics.php:17
1079
+ #, php-format
1080
+ msgid "Quiz: %s - Statistics"
1081
+ msgstr "Тест: %s - Статистика"
1082
+
1083
+ #: lib/view/WpProQuiz_View_Statistics.php:21
1084
+ msgid "Stats not enabled"
1085
+ msgstr "Статистика выключена"
1086
+
1087
+ #: lib/view/WpProQuiz_View_Statistics.php:22
1088
+ msgid "Activate statistics"
1089
+ msgstr "Включить статистику"
1090
+
1091
+ #: lib/view/WpProQuiz_View_Statistics.php:27
1092
+ msgid "Anonymous users"
1093
+ msgstr "Анонимный пользователь"
1094
+
1095
+ #: lib/view/WpProQuiz_View_Statistics.php:28
1096
+ #, fuzzy
1097
+ msgid "Registered users"
1098
+ msgstr "Зарегистрированный пользователь"
1099
+
1100
+ #: lib/view/WpProQuiz_View_Statistics.php:29
1101
+ msgid "Overview"
1102
+ msgstr "Обзор"
1103
+
1104
+ #: lib/view/WpProQuiz_View_Statistics.php:34
1105
+ msgid "Please select user name:"
1106
+ msgstr "Пожалуйста, укажите имя:"
1107
+
1108
+ #: lib/view/WpProQuiz_View_Statistics.php:57
1109
+ #: lib/view/WpProQuiz_View_Statistics.php:149
1110
+ msgid "Hints used"
1111
+ msgstr "Подсказка использована"
1112
+
1113
+ #: lib/view/WpProQuiz_View_Statistics.php:58
1114
+ msgid "Points scored"
1115
+ msgstr ""
1116
+
1117
+ #: lib/view/WpProQuiz_View_Statistics.php:98
1118
+ msgid "Reset statistics"
1119
+ msgstr "Сбросить статистику"
1120
+
1121
+ #: lib/view/WpProQuiz_View_Statistics.php:100
1122
+ #: lib/view/WpProQuiz_View_Statistics.php:172
1123
+ msgid "Refresh"
1124
+ msgstr "Обновить"
1125
+
1126
+ #: lib/view/WpProQuiz_View_Statistics.php:104
1127
+ #: lib/view/WpProQuiz_View_Statistics.php:174
1128
+ msgid "Reset entire statistic"
1129
+ msgstr "Сброс всей статистики"
1130
+
1131
+ #: lib/view/WpProQuiz_View_Statistics.php:115
1132
+ msgid "Filter"
1133
+ msgstr ""
1134
+
1135
+ #: lib/view/WpProQuiz_View_Statistics.php:120
1136
+ msgid "Show only users, who solved the quiz:"
1137
+ msgstr ""
1138
+
1139
+ #: lib/view/WpProQuiz_View_Statistics.php:126
1140
+ msgid "How many entries should be shown on one page:"
1141
+ msgstr ""
1142
+
1143
+ #: lib/view/WpProQuiz_View_Statistics.php:145
1144
+ msgid "User"
1145
+ msgstr ""
1146
+
1147
+ #: lib/view/WpProQuiz_View_StyleManager.php:15
1148
+ #, fuzzy
1149
+ msgid "Front"
1150
+ msgstr "Фронт"
1151
+
1152
+ #~ msgid "All"
1153
+ #~ msgstr "Alle"
1154
+
1155
+ #~ msgid "One question is one point"
1156
+ #~ msgstr "Eine Frage ist 1 Punkt"
1157
+
1158
+ #~ msgid "Right"
1159
+ #~ msgstr "Richtig"
1160
+
1161
+ #~ msgid "Wrong"
1162
+ #~ msgstr "Falsch"
1163
+
1164
+ #~ msgid "Tip"
1165
+ #~ msgstr "Tipp"
1166
+
1167
+ #, fuzzy
1168
+ #~ msgid "Statistics reset"
1169
+ #~ msgstr "Statistik zurücksetzen"
1170
+
1171
+ #~ msgid "Not all fields are filled"
1172
+ #~ msgstr "Nicht alle Felder ausgefüllt"
languages/wp-pro-quiz-sv_SE.mo ADDED
Binary file
languages/wp-pro-quiz-sv_SE.po ADDED
@@ -0,0 +1,1171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-01-07 23:42+0100\n"
5
+ "PO-Revision-Date: 2013-01-07 23:42+0100\n"
6
+ "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
+ "Language-Team: abuhassan <sajja2002@hotmail.com>\n"
8
+ "Language: Arabic\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
+ "X-Poedit-SearchPath-0: .\n"
16
+
17
+ #: lib/controller/WpProQuiz_Controller_Admin.php:54
18
+ msgid "Do you really want to delete the quiz/question?"
19
+ msgstr "Vill du verkligen ta bort detta quiz/denna fråga"
20
+
21
+ #: lib/controller/WpProQuiz_Controller_Admin.php:55
22
+ msgid "Title is not filled!"
23
+ msgstr "Överskriften är tom!"
24
+
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:56
26
+ msgid "No question deposited!"
27
+ msgstr "Ingen fråga inlagd!"
28
+
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:57
30
+ msgid "Correct answer was not selected!"
31
+ msgstr "Rätt svar var inte markerat!"
32
+
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:58
34
+ msgid "No answer deposited!"
35
+ msgstr "Inget svar inskrivet!"
36
+
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:59
38
+ msgid "No quiz description filled!"
39
+ msgstr "Ingen quiz-beskrivning iskriven!"
40
+
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:60
42
+ msgid "The percent values in result text are incorrect."
43
+ msgstr "Procenttalet för resultattexten är inkorrekt."
44
+
45
+ #: lib/controller/WpProQuiz_Controller_Admin.php:61
46
+ msgid "No number in the field \"Points\" or less than 1"
47
+ msgstr "Inget nummer i fältet \"Poäng\" är mindre än 1"
48
+
49
+ #: lib/controller/WpProQuiz_Controller_Admin.php:62
50
+ msgid "No quiz selected"
51
+ msgstr "Inget quiz markerat"
52
+
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:63
54
+ msgid "Do you really want to reset the statistic?"
55
+ msgstr "Vill du verkligen nollställa statistiken?"
56
+
57
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
58
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
59
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:43
60
+ #: lib/controller/WpProQuiz_Controller_Question.php:51
61
+ #: lib/controller/WpProQuiz_Controller_Question.php:128
62
+ #: lib/controller/WpProQuiz_Controller_Question.php:143
63
+ #: lib/controller/WpProQuiz_Controller_Question.php:189
64
+ #: lib/controller/WpProQuiz_Controller_Question.php:284
65
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:55
66
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:69
67
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:114
68
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:147
69
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:138
70
+ msgid "You do not have sufficient permissions to access this page."
71
+ msgstr ""
72
+
73
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:19
74
+ msgid "Settings saved"
75
+ msgstr "Inställningar sparade"
76
+
77
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
78
+ #: lib/helper/WpProQuiz_Helper_Import.php:54
79
+ #: lib/helper/WpProQuiz_Helper_Import.php:63
80
+ #: lib/helper/WpProQuiz_Helper_Import.php:70
81
+ msgid "File cannot be processed"
82
+ msgstr "Filen kan inte processeras"
83
+
84
+ #: lib/controller/WpProQuiz_Controller_Question.php:9
85
+ #: lib/controller/WpProQuiz_Controller_Question.php:19
86
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:78
87
+ msgid "Quiz not found"
88
+ msgstr "Quiz hittades ej"
89
+
90
+ #: lib/controller/WpProQuiz_Controller_Question.php:65
91
+ msgid "questions copied"
92
+ msgstr "Frågor kopierade"
93
+
94
+ #: lib/controller/WpProQuiz_Controller_Question.php:147
95
+ msgid "Edit question"
96
+ msgstr "Ändra fråga"
97
+
98
+ #: lib/controller/WpProQuiz_Controller_Question.php:151
99
+ msgid "Question not found"
100
+ msgstr "Fråga ej funnen"
101
+
102
+ #: lib/controller/WpProQuiz_Controller_Question.php:164
103
+ #: lib/controller/WpProQuiz_Controller_Question.php:206
104
+ #, php-format
105
+ msgid "Question: %d"
106
+ msgstr "Fråga: %d"
107
+
108
+ #: lib/controller/WpProQuiz_Controller_Question.php:174
109
+ msgid "Question edited"
110
+ msgstr "Fråga ändrad"
111
+
112
+ #: lib/controller/WpProQuiz_Controller_Question.php:193
113
+ msgid "New question"
114
+ msgstr "Ny fråga"
115
+
116
+ #: lib/controller/WpProQuiz_Controller_Question.php:217
117
+ msgid "Question added"
118
+ msgstr "Fråga tillagd"
119
+
120
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:73
121
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:21
122
+ msgid "Edit quiz"
123
+ msgstr "Ändra quiz"
124
+
125
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:93
126
+ msgid "Quiz edited"
127
+ msgstr "Quiz ändrat"
128
+
129
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:102
130
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:135
131
+ msgid "Quiz title or quiz description are not filled"
132
+ msgstr "Quiz-överskriften eller quiz-beskrivningen är inte ifylld"
133
+
134
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:118
135
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:129
136
+ msgid "Create quiz"
137
+ msgstr "Skapa quiz"
138
+
139
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:160
140
+ msgid "Quiz deleted"
141
+ msgstr "Quiz borttaget"
142
+
143
+ #: lib/helper/WpProQuiz_Helper_Import.php:9
144
+ msgid "File was not uploaded"
145
+ msgstr "Fil laddades ej upp"
146
+
147
+ #: lib/helper/WpProQuiz_Helper_Import.php:40
148
+ msgid "File have wrong format"
149
+ msgstr "Filen har fel format"
150
+
151
+ #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
152
+ msgid "The user completed a quiz."
153
+ msgstr ""
154
+
155
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:86
156
+ msgid "Start quiz"
157
+ msgstr "Starta quiz"
158
+
159
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:91
160
+ msgid ""
161
+ "You have already completed the quiz before. Hence you can not start it again."
162
+ msgstr ""
163
+ "Du har redan färdigställt detta quiz, därför får du inte starta det igen."
164
+
165
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:95
166
+ #: lib/view/WpProQuiz_View_Statistics.php:59
167
+ #: lib/view/WpProQuiz_View_Statistics.php:150
168
+ msgid "Results"
169
+ msgstr "Resultat"
170
+
171
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:97
172
+ #, php-format
173
+ msgid "%s of %s questions answered correctly"
174
+ msgstr "%s av %s är frågor korrekt svarade"
175
+
176
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:100
177
+ msgid "Your time: <span></span>"
178
+ msgstr "Din tid: <span></span>"
179
+
180
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:103
181
+ msgid "Time has elapsed"
182
+ msgstr "Tid har gått ut!"
183
+
184
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:106
185
+ msgid ""
186
+ "You have reached <span></span> of <span></span> points, (<span></span>%)"
187
+ msgstr "Du fick <span></span> av <span></span> möjliga poäng, (<span></span>%)"
188
+
189
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:121
190
+ msgid "Restart quiz"
191
+ msgstr "Starta om quiz"
192
+
193
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:123
194
+ msgid "View questions"
195
+ msgstr "Visa svar"
196
+
197
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:128
198
+ #: lib/view/WpProQuiz_View_QuizEdit.php:132
199
+ #: lib/view/WpProQuiz_View_QuizEdit.php:137
200
+ msgid "Time limit"
201
+ msgstr "Tid"
202
+
203
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:141
204
+ #, php-format
205
+ msgid "Question %s of %s"
206
+ msgstr "Fråga %s av %s"
207
+
208
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:144
209
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:49
210
+ #: lib/view/WpProQuiz_View_Statistics.php:53
211
+ msgid "Question"
212
+ msgstr "Fråga"
213
+
214
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:148
215
+ #, php-format
216
+ msgid "%d points"
217
+ msgstr "%d poäng"
218
+
219
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:158
220
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
221
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:290
222
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:327
223
+ msgid "Sort elements"
224
+ msgstr "sortera element"
225
+
226
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:240
227
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:247
228
+ #: lib/view/WpProQuiz_View_Statistics.php:55
229
+ #: lib/view/WpProQuiz_View_Statistics.php:147
230
+ msgid "Correct"
231
+ msgstr "Rätt svar!"
232
+
233
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:242
234
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:260
235
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
236
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
237
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
238
+ #: lib/view/WpProQuiz_View_Statistics.php:54
239
+ #: lib/view/WpProQuiz_View_Statistics.php:146
240
+ msgid "Points"
241
+ msgstr "Poäng"
242
+
243
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:258
244
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:265
245
+ #: lib/view/WpProQuiz_View_Statistics.php:56
246
+ #: lib/view/WpProQuiz_View_Statistics.php:148
247
+ msgid "Incorrect"
248
+ msgstr "Fel svar!"
249
+
250
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:282
251
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:292
252
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:85
253
+ msgid "Hint"
254
+ msgstr "Tips"
255
+
256
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:289
257
+ msgid "Check"
258
+ msgstr "Svara"
259
+
260
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:290
261
+ msgid "Back"
262
+ msgstr "Tillbaka"
263
+
264
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:294
265
+ msgid "Next exercise"
266
+ msgstr "Nästa fråga >>"
267
+
268
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:307
269
+ msgid "Finish quiz"
270
+ msgstr "Avsluta quiz"
271
+
272
+ #: lib/view/WpProQuiz_View_GobalSettings.php:7
273
+ msgid "to activate"
274
+ msgstr "att aktivera"
275
+
276
+ #: lib/view/WpProQuiz_View_GobalSettings.php:9
277
+ msgid "not to activate"
278
+ msgstr "inte att aktivera"
279
+
280
+ #: lib/view/WpProQuiz_View_GobalSettings.php:14
281
+ #: lib/view/WpProQuiz_View_GobalSettings.php:25
282
+ #: lib/view/WpProQuiz_View_QuizOverall.php:48
283
+ msgid "Settings in case of problems"
284
+ msgstr "Inställningar i fall det blir problem"
285
+
286
+ #: lib/view/WpProQuiz_View_GobalSettings.php:16
287
+ msgid "Please note"
288
+ msgstr "Vänligen notera"
289
+
290
+ #: lib/view/WpProQuiz_View_GobalSettings.php:18
291
+ msgid ""
292
+ "These settings should only be set in cases of problems with Wp-Pro-Quiz."
293
+ msgstr ""
294
+ "Dessa inställningar skall endast användas vid problemet med Wp-Pro-Quiz"
295
+
296
+ #: lib/view/WpProQuiz_View_GobalSettings.php:21
297
+ #: lib/view/WpProQuiz_View_Import.php:22
298
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
299
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
300
+ #: lib/view/WpProQuiz_View_QuizEdit.php:8
301
+ #: lib/view/WpProQuiz_View_Statistics.php:18
302
+ #: lib/view/WpProQuiz_View_StyleManager.php:11
303
+ msgid "back to overview"
304
+ msgstr "Tillbaka till översikten"
305
+
306
+ #: lib/view/WpProQuiz_View_GobalSettings.php:31
307
+ #: lib/view/WpProQuiz_View_GobalSettings.php:36
308
+ msgid "Automatically add [raw] shortcode"
309
+ msgstr "Lägger automatiskt till [raw]-kortkoden"
310
+
311
+ #: lib/view/WpProQuiz_View_GobalSettings.php:40
312
+ #: lib/view/WpProQuiz_View_GobalSettings.php:62
313
+ #: lib/view/WpProQuiz_View_GobalSettings.php:114
314
+ #: lib/view/WpProQuiz_View_QuizEdit.php:33
315
+ #: lib/view/WpProQuiz_View_QuizEdit.php:52
316
+ #: lib/view/WpProQuiz_View_QuizEdit.php:71
317
+ #: lib/view/WpProQuiz_View_QuizEdit.php:90
318
+ #: lib/view/WpProQuiz_View_QuizEdit.php:109
319
+ #: lib/view/WpProQuiz_View_QuizEdit.php:125
320
+ #: lib/view/WpProQuiz_View_QuizEdit.php:159
321
+ #: lib/view/WpProQuiz_View_QuizEdit.php:184
322
+ #: lib/view/WpProQuiz_View_QuizEdit.php:209
323
+ #: lib/view/WpProQuiz_View_QuizEdit.php:234
324
+ #: lib/view/WpProQuiz_View_QuizEdit.php:259
325
+ #: lib/view/WpProQuiz_View_QuizEdit.php:299
326
+ msgid "Activate"
327
+ msgstr "Aktivera"
328
+
329
+ #: lib/view/WpProQuiz_View_GobalSettings.php:40
330
+ #, php-format
331
+ msgid "It is recommended %s this option on your system."
332
+ msgstr "Det är rekommenderat att %s detta val på ditt system"
333
+
334
+ #: lib/view/WpProQuiz_View_GobalSettings.php:43
335
+ msgid ""
336
+ "If this option is activated, a [raw] shortcode is automatically set around "
337
+ "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
338
+ msgstr ""
339
+ "Om det här valet är aktiverat, en [raw]-kortkod sätts automatiskt runt "
340
+ "WpProQuiz-kortkodet ([WpProQuiz X] ) blir [raw] [WpProQuiz X] [/raw]"
341
+
342
+ #: lib/view/WpProQuiz_View_GobalSettings.php:46
343
+ #: lib/view/WpProQuiz_View_QuizOverall.php:42
344
+ msgid ""
345
+ "Own themes changes internal order of filters, what causes the problems. "
346
+ "With additional shortcode [raw] this is prevented."
347
+ msgstr ""
348
+ "Egna tema-ändringar ändrar på filterna, vilket kan orsaka problem. Med "
349
+ "tillägg av kortkoden [raw] kan detta förhindras."
350
+
351
+ #: lib/view/WpProQuiz_View_GobalSettings.php:53
352
+ #: lib/view/WpProQuiz_View_GobalSettings.php:58
353
+ msgid "Do not load the Javascript-files in the footer"
354
+ msgstr "Ladda inte Javascript-filerna i footer"
355
+
356
+ #: lib/view/WpProQuiz_View_GobalSettings.php:65
357
+ msgid ""
358
+ "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
359
+ "when they are really needed."
360
+ msgstr ""
361
+ "Generellt laddas alla WpProQuiz-javascriptfiler i footern och endast när de "
362
+ "behövs."
363
+
364
+ #: lib/view/WpProQuiz_View_GobalSettings.php:68
365
+ msgid "In very old Wordpress themes this can lead to problems."
366
+ msgstr "I väldigt gamla Wordpress-tema kan detta leda till problem."
367
+
368
+ #: lib/view/WpProQuiz_View_GobalSettings.php:71
369
+ msgid ""
370
+ "If you activate this option, all WpProQuiz-Javascript files are loaded in "
371
+ "the header even if they are not needed."
372
+ msgstr ""
373
+ "Om du aktiverar detta val, så kommer alla WpProQuiz-javascriptfiler att "
374
+ "laddas i headern även om det inte behövs."
375
+
376
+ #: lib/view/WpProQuiz_View_GobalSettings.php:74
377
+ #, php-format
378
+ msgid ""
379
+ "Anyone who wants to learn more about this topic should read through the "
380
+ "following websites %s and %s."
381
+ msgstr ""
382
+ "Alla som vill lära sig mer om detta ämne bör läsa igenom de följande "
383
+ "webbsidorna %s och %s."
384
+
385
+ #: lib/view/WpProQuiz_View_GobalSettings.php:83
386
+ #: lib/view/WpProQuiz_View_GobalSettings.php:88
387
+ msgid "Touch Library"
388
+ msgstr "Touch Library"
389
+
390
+ #: lib/view/WpProQuiz_View_GobalSettings.php:92
391
+ msgid "Deactivate"
392
+ msgstr "Deaktivera"
393
+
394
+ #: lib/view/WpProQuiz_View_GobalSettings.php:95
395
+ msgid "In Version 0.13 a new Touch Library was added for mobile devices."
396
+ msgstr "I version 0.13 lades ett nytt Touch Library till för mobila enheter."
397
+
398
+ #: lib/view/WpProQuiz_View_GobalSettings.php:98
399
+ msgid "If you have any problems with the Touch Library, please deactivate it."
400
+ msgstr "Om du har några problem med Touch Library, vänligen deaktivera det."
401
+
402
+ #: lib/view/WpProQuiz_View_GobalSettings.php:105
403
+ #: lib/view/WpProQuiz_View_GobalSettings.php:110
404
+ msgid "jQuery support cors"
405
+ msgstr ""
406
+
407
+ #: lib/view/WpProQuiz_View_GobalSettings.php:117
408
+ msgid "Is required only in rare cases."
409
+ msgstr ""
410
+
411
+ #: lib/view/WpProQuiz_View_GobalSettings.php:120
412
+ msgid "If you have problems with the front ajax, please activate it."
413
+ msgstr ""
414
+
415
+ #: lib/view/WpProQuiz_View_GobalSettings.php:123
416
+ msgid "e.g. Domain with special characters in combination with IE"
417
+ msgstr ""
418
+
419
+ #: lib/view/WpProQuiz_View_GobalSettings.php:132
420
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:373
421
+ #: lib/view/WpProQuiz_View_QuizEdit.php:430
422
+ msgid "Save"
423
+ msgstr "Spara"
424
+
425
+ #: lib/view/WpProQuiz_View_Import.php:21
426
+ #: lib/view/WpProQuiz_View_QuizOverall.php:91
427
+ #: lib/view/WpProQuiz_View_QuizOverall.php:108
428
+ msgid "Import"
429
+ msgstr "Importera"
430
+
431
+ #: lib/view/WpProQuiz_View_Import.php:25
432
+ msgid "Error"
433
+ msgstr "Fel"
434
+
435
+ #: lib/view/WpProQuiz_View_Import.php:32
436
+ msgid "Successfully"
437
+ msgstr "Lyckades"
438
+
439
+ #: lib/view/WpProQuiz_View_Import.php:34
440
+ msgid "Import completed successfully"
441
+ msgstr "Import lyckades"
442
+
443
+ #: lib/view/WpProQuiz_View_Import.php:43
444
+ msgid "Quiz name"
445
+ msgstr "Quiz-namn"
446
+
447
+ #: lib/view/WpProQuiz_View_Import.php:44
448
+ #: lib/view/WpProQuiz_View_QuizOverall.php:71
449
+ msgid "Questions"
450
+ msgstr "Frågor"
451
+
452
+ #: lib/view/WpProQuiz_View_Import.php:67
453
+ #: lib/view/WpProQuiz_View_QuizOverall.php:119
454
+ msgid "Start import"
455
+ msgstr "Börja importera"
456
+
457
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
458
+ msgid "Title"
459
+ msgstr "Titel"
460
+
461
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
462
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:57
463
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
464
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:85
465
+ #: lib/view/WpProQuiz_View_QuizEdit.php:362
466
+ msgid "(optional)"
467
+ msgstr "(valfritt)"
468
+
469
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:15
470
+ msgid ""
471
+ "The title is used for overview, it is not visible in quiz. If you leave the "
472
+ "title field empty, a title will be generated."
473
+ msgstr ""
474
+ "Denna överskrift syns bara i admin-gränssnittet, och är inte synbart i "
475
+ "quizzet. Om du lämnar överskriften tom kommer en överskrift att genereras."
476
+
477
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
478
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:49
479
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:137
480
+ #: lib/view/WpProQuiz_View_QuizEdit.php:12
481
+ #: lib/view/WpProQuiz_View_QuizEdit.php:351
482
+ msgid "(required)"
483
+ msgstr "(krav)"
484
+
485
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:25
486
+ msgid "Points for this question (Standard is 1 point)"
487
+ msgstr "Poäng för denna fråga (standard är 1 poäng)"
488
+
489
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:34
490
+ msgid "Points per correct answer"
491
+ msgstr ""
492
+
493
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:37
494
+ msgid ""
495
+ "If you enable this option, for every correct answer user will receive X "
496
+ "points. Otherwise he will receive points only if the question was solved "
497
+ "completely."
498
+ msgstr ""
499
+
500
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:43
501
+ msgid "Show reached points in the correct- and incorrect message?"
502
+ msgstr ""
503
+
504
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:57
505
+ msgid "Message with the correct answer"
506
+ msgstr "Meddelande till det rätta svaret"
507
+
508
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
509
+ msgid ""
510
+ "This text will be visible if answered correctly. It can be used as "
511
+ "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
512
+ "always displayed automatically."
513
+ msgstr ""
514
+ "Denna text kommer att visas om svaret är korrekt. Det kan användas som "
515
+ "förklaring vid en komplicerad fråga. Meddelandet \"Rätt\" eller \"Fel\" "
516
+ "kommer alltid att visas automatiskt."
517
+
518
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:64
519
+ msgid "Same text for correct- and incorrect-message?"
520
+ msgstr "Samma text för rätt och fel svar?"
521
+
522
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
523
+ msgid "Message with the incorrect answer"
524
+ msgstr "Meddelande för felaktigt svar"
525
+
526
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:77
527
+ msgid ""
528
+ "This text will be visible if answered incorrectly. It can be used as "
529
+ "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
530
+ "always displayed automatically."
531
+ msgstr ""
532
+ "Denna text kommer att visas om användarens svar är felaktigt. Det kan "
533
+ "användas som förklaring vid en komplicerad fråga. Meddelandet \"Rätt\" eller "
534
+ "\"Fel\" kommer alltid att visas automatiskt."
535
+
536
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:88
537
+ msgid "Here you can enter solution hint."
538
+ msgstr "Här kan du skriva in ett tips."
539
+
540
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:92
541
+ msgid "Activate hint for this question?"
542
+ msgstr "Aktivera tips för denna fråga"
543
+
544
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:104
545
+ msgid "Answer type"
546
+ msgstr "Svarstyp"
547
+
548
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:112
549
+ msgid "Single choice"
550
+ msgstr "Ett svar"
551
+
552
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:116
553
+ msgid "Multiple choice"
554
+ msgstr "Flera svar"
555
+
556
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:120
557
+ msgid "\"Free\" choice"
558
+ msgstr "\"Fritt\" svar"
559
+
560
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:124
561
+ msgid "\"Sorting\" choice"
562
+ msgstr "\"Sorteringssvar\""
563
+
564
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:128
565
+ msgid "\"Matrix Sorting\" choice"
566
+ msgstr "\"Matrix Sorting\"-svar"
567
+
568
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:132
569
+ msgid "Cloze"
570
+ msgstr "Cloze"
571
+
572
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:137
573
+ msgid "Answers"
574
+ msgstr "Svar"
575
+
576
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:142
577
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:146
578
+ msgid ""
579
+ "correct answers (one per line) (answers will be converted to lower case)"
580
+ msgstr ""
581
+ "Korrekt svar (en per rad) (svar kommer att konverteras till små bokstäver)"
582
+
583
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:152
584
+ msgid ""
585
+ "Please sort the answers in right order with the \"Move\" - Button. The "
586
+ "answers will be displayed randomly."
587
+ msgstr ""
588
+ "Vänligen sortera svaren i rätt ordning med \"flytta\"-knappen. Svaren kommer "
589
+ "att visas i blandad ordning."
590
+
591
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:158
592
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
593
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:180
594
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:199
595
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:215
596
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:229
597
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:279
598
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:319
599
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:356
600
+ msgid "Delete answer"
601
+ msgstr "Radera svar"
602
+
603
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:159
604
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:171
605
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:181
606
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:200
607
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:216
608
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:230
609
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:278
610
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
611
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:355
612
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
613
+ msgid "Move"
614
+ msgstr "Flytta"
615
+
616
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:161
617
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
618
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:183
619
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
620
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:218
621
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:232
622
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:265
623
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:271
624
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:305
625
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:311
626
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:342
627
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:348
628
+ msgid "Allow HTML"
629
+ msgstr "Tillåt HTML"
630
+
631
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:189
632
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:238
633
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
634
+ msgid "Add new answer"
635
+ msgstr "Lägg till nytt svar"
636
+
637
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:197
638
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:213
639
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:227
640
+ msgid "correct?"
641
+ msgstr "Korrekt svar"
642
+
643
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:242
644
+ msgid ""
645
+ "In this mode, not a list have to be sorted, but elements must be assigned to "
646
+ "matching criterion."
647
+ msgstr ""
648
+ "I denna metod så har vi inte en lista som måste sorteras, utan element som "
649
+ "måste matchas till kriterier."
650
+
651
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:249
652
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
653
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:326
654
+ msgid "Criterion"
655
+ msgstr "Kriterie"
656
+
657
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:364
658
+ msgid ""
659
+ "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
660
+ "small letters will be ignored."
661
+ msgstr ""
662
+ "Inkapsla det sökta ordet med {} t.ex \"Jag {spelar} fotboll\". Stora och små "
663
+ "bokstäver ignoreras."
664
+
665
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:17
666
+ msgid "Questions sorted"
667
+ msgstr "Frågor sorterade"
668
+
669
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
670
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
671
+ msgid "Name"
672
+ msgstr "Namn"
673
+
674
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:30
675
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
676
+ msgid "Action"
677
+ msgstr "Aktion"
678
+
679
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:46
680
+ #: lib/view/WpProQuiz_View_QuizOverall.php:74
681
+ msgid "Edit"
682
+ msgstr "Ändra"
683
+
684
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:48
685
+ #: lib/view/WpProQuiz_View_QuizOverall.php:76
686
+ msgid "Delete"
687
+ msgstr "Ta bort"
688
+
689
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:59
690
+ #: lib/view/WpProQuiz_View_Statistics.php:84
691
+ msgid "Total"
692
+ msgstr "Totalt"
693
+
694
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
695
+ msgid "Add question"
696
+ msgstr "Lägg till fråga"
697
+
698
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:68
699
+ msgid "Save order"
700
+ msgstr "Spara sortering"
701
+
702
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:69
703
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
704
+ msgid "Copy questions from another Quiz"
705
+ msgstr "Kopiera frågor från ett annat quiz"
706
+
707
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:75
708
+ msgid ""
709
+ "Here you can copy questions from another quiz into this quiz. (Multiple "
710
+ "selection enabled)"
711
+ msgstr ""
712
+ "Här kan du kopiera frågor från ett annat quiz till detta quiz (man kan "
713
+ "merkera flera samtidigt)"
714
+
715
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:79
716
+ #: lib/view/WpProQuiz_View_Statistics.php:45
717
+ msgid "Loading"
718
+ msgstr "Laddar"
719
+
720
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:87
721
+ msgid "Copy questions"
722
+ msgstr "Kopiera frågor"
723
+
724
+ #: lib/view/WpProQuiz_View_QuizEdit.php:12
725
+ msgid "Quiz title"
726
+ msgstr "Quiz-överskrift"
727
+
728
+ #: lib/view/WpProQuiz_View_QuizEdit.php:18
729
+ msgid "Options"
730
+ msgstr "Alternativ"
731
+
732
+ #: lib/view/WpProQuiz_View_QuizEdit.php:24
733
+ msgid "Hide quiz title"
734
+ msgstr "Göm quiz-överskrift"
735
+
736
+ #: lib/view/WpProQuiz_View_QuizEdit.php:29
737
+ msgid "Hide title"
738
+ msgstr "Göm överskrift"
739
+
740
+ #: lib/view/WpProQuiz_View_QuizEdit.php:36
741
+ msgid "The title serves as quiz heading."
742
+ msgstr "Titeln agerar quiz-överskrift"
743
+
744
+ #: lib/view/WpProQuiz_View_QuizEdit.php:43
745
+ #: lib/view/WpProQuiz_View_QuizEdit.php:48
746
+ msgid "Hide \"Restart quiz\" button"
747
+ msgstr "Göm \"Starta om quiz\"-knappen"
748
+
749
+ #: lib/view/WpProQuiz_View_QuizEdit.php:55
750
+ msgid "Hide the \"Restart quiz\" button in the Frontend."
751
+ msgstr "Gömmer \"Starta om quiz\"-knappen för användaren"
752
+
753
+ #: lib/view/WpProQuiz_View_QuizEdit.php:62
754
+ #: lib/view/WpProQuiz_View_QuizEdit.php:67
755
+ msgid "Hide \"View question\" button"
756
+ msgstr "Göm \"Visa fråga\"-knappen"
757
+
758
+ #: lib/view/WpProQuiz_View_QuizEdit.php:74
759
+ msgid "Hide the \"View question\" button in the Frontend."
760
+ msgstr "Gömmer \"Visa fråga\"-knappen för användaren"
761
+
762
+ #: lib/view/WpProQuiz_View_QuizEdit.php:81
763
+ #: lib/view/WpProQuiz_View_QuizEdit.php:86
764
+ msgid "Show points"
765
+ msgstr "Visa poäng"
766
+
767
+ #: lib/view/WpProQuiz_View_QuizEdit.php:93
768
+ msgid "Shows in quiz, how many points are reachable for respective question."
769
+ msgstr "Visa i quiz hur många poäng som är max för varje fråga."
770
+
771
+ #: lib/view/WpProQuiz_View_QuizEdit.php:100
772
+ #: lib/view/WpProQuiz_View_QuizEdit.php:105
773
+ msgid "Display question randomly"
774
+ msgstr "Visa frågor i blandad ordning"
775
+
776
+ #: lib/view/WpProQuiz_View_QuizEdit.php:116
777
+ #: lib/view/WpProQuiz_View_QuizEdit.php:121
778
+ msgid "Display answers randomly"
779
+ msgstr "Visa svar i blandad ordning"
780
+
781
+ #: lib/view/WpProQuiz_View_QuizEdit.php:140
782
+ msgid "Seconds"
783
+ msgstr "Sekunder"
784
+
785
+ #: lib/view/WpProQuiz_View_QuizEdit.php:143
786
+ msgid "0 = no limit"
787
+ msgstr "0 = ingen tidsbegränsning"
788
+
789
+ #: lib/view/WpProQuiz_View_QuizEdit.php:150
790
+ #: lib/view/WpProQuiz_View_QuizEdit.php:155
791
+ msgid "Number answers"
792
+ msgstr "Nummersvar"
793
+
794
+ #: lib/view/WpProQuiz_View_QuizEdit.php:162
795
+ msgid ""
796
+ "If this option is activated, all answers are numbered (only single and "
797
+ "multiple choice)"
798
+ msgstr ""
799
+ "Om det här svaret är aktiverat, så kommer alla svar att vara numrerade "
800
+ "(endast singel och multi-svar)"
801
+
802
+ #: lib/view/WpProQuiz_View_QuizEdit.php:165
803
+ #: lib/view/WpProQuiz_View_QuizEdit.php:190
804
+ #: lib/view/WpProQuiz_View_QuizEdit.php:215
805
+ #: lib/view/WpProQuiz_View_QuizEdit.php:240
806
+ msgid "Demo"
807
+ msgstr "Demo"
808
+
809
+ #: lib/view/WpProQuiz_View_QuizEdit.php:175
810
+ #: lib/view/WpProQuiz_View_QuizEdit.php:180
811
+ msgid "Questions below each other"
812
+ msgstr "Frågor under varandra"
813
+
814
+ #: lib/view/WpProQuiz_View_QuizEdit.php:187
815
+ msgid ""
816
+ "If this option is activated, all answers are displayed below each other, i."
817
+ "e. all questions are on a single page. Otherwise all questions are displayed "
818
+ "one after the other."
819
+ msgstr ""
820
+ "Om det här valet är aktiverat så kommer alla frågor visas under varandra, "
821
+ "tex alla frågor är på en enskild sida. Annars kommer alla frågor att visas "
822
+ "en och en."
823
+
824
+ #: lib/view/WpProQuiz_View_QuizEdit.php:200
825
+ #: lib/view/WpProQuiz_View_QuizEdit.php:205
826
+ msgid "Check -> continue"
827
+ msgstr "Visa rätt svar innan användaren fortsätter"
828
+
829
+ #: lib/view/WpProQuiz_View_QuizEdit.php:212
830
+ msgid ""
831
+ "Shows \"right or wrong\" after each question. Otherwise the solutions will "
832
+ "be displayed at the end. (Option will be ignored if \"questions below each "
833
+ "other\" was used)"
834
+ msgstr ""
835
+ "Visar \"rätt eller fel\" efter varje fråga. I annat fall kommer de rätta "
836
+ "svaren att visas i slutet (Valet kommer att ignoreras ifall \"Frågor under "
837
+ "varadra\" har använts)"
838
+
839
+ #: lib/view/WpProQuiz_View_QuizEdit.php:225
840
+ #: lib/view/WpProQuiz_View_QuizEdit.php:230
841
+ msgid "Back button"
842
+ msgstr "Bakåtknapp"
843
+
844
+ #: lib/view/WpProQuiz_View_QuizEdit.php:237
845
+ msgid ""
846
+ "Allows to use the back button in a question. (Option will be ignored if "
847
+ "\"Check -> Continue\" or \"questions below each other\" was used)"
848
+ msgstr ""
849
+ "Tillåter en bakåt-knapp i frågorna (valet kommer att ignoreras om \"Visa "
850
+ "rätt svar innan användaren fortsätter\" eller \"\frågor under varandra\" har "
851
+ "använts)"
852
+
853
+ #: lib/view/WpProQuiz_View_QuizEdit.php:250
854
+ #: lib/view/WpProQuiz_View_QuizEdit.php:255
855
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
856
+ msgid "Statistics"
857
+ msgstr "Statistik"
858
+
859
+ #: lib/view/WpProQuiz_View_QuizEdit.php:262
860
+ msgid ""
861
+ "Statistics about right or wrong answers. Statistics will be saved by "
862
+ "completed quiz, not after every question. The statistics is only visible "
863
+ "over administration menu. (internal statistics)"
864
+ msgstr ""
865
+ "Statistik om rätt och fel frågor. Statistik kommer att svaras vid "
866
+ "färdigställda quiz, inte efter varje fråga. Statistiken går endast att se i "
867
+ "administratörsmenyn (intern statistik)"
868
+
869
+ #: lib/view/WpProQuiz_View_QuizEdit.php:269
870
+ #: lib/view/WpProQuiz_View_QuizEdit.php:274
871
+ msgid "Statistics IP-lock"
872
+ msgstr "Statistik-IPblockering"
873
+
874
+ #: lib/view/WpProQuiz_View_QuizEdit.php:278
875
+ msgid "in minutes (recommended 1440 minutes = 1 day)"
876
+ msgstr "i minuter (rekommenderas 1440 minuter = 1 dag)"
877
+
878
+ #: lib/view/WpProQuiz_View_QuizEdit.php:281
879
+ msgid ""
880
+ "Protect the statistics from spam. Result will only be saved every X minutes "
881
+ "from same IP. (0 = deactivated)"
882
+ msgstr ""
883
+ "Skydda statistik för spam. Resultat kommer endast att sparas varje x minut "
884
+ "från samma IP. (0 = deaktiverad)"
885
+
886
+ #: lib/view/WpProQuiz_View_QuizEdit.php:288
887
+ #: lib/view/WpProQuiz_View_QuizEdit.php:294
888
+ msgid "Execute quiz only once"
889
+ msgstr "Tillåt användare att genomföra quiz endast en gång"
890
+
891
+ #: lib/view/WpProQuiz_View_QuizEdit.php:302
892
+ msgid ""
893
+ "If you activate this option, the user can complete the quiz only once. "
894
+ "Afterwards the quiz is blocked for this user."
895
+ msgstr ""
896
+ "Om du aktiverar detta så kommer användarna endast kunna köra ditt quiz en "
897
+ "gång. Efter är användaren blockerad för att köra igen."
898
+
899
+ #: lib/view/WpProQuiz_View_QuizEdit.php:306
900
+ msgid "This option applies to:"
901
+ msgstr "Detta val gäller:"
902
+
903
+ #: lib/view/WpProQuiz_View_QuizEdit.php:314
904
+ msgid "all users"
905
+ msgstr "alla användare"
906
+
907
+ #: lib/view/WpProQuiz_View_QuizEdit.php:318
908
+ msgid "registered useres only"
909
+ msgstr "endast registrerade användare"
910
+
911
+ #: lib/view/WpProQuiz_View_QuizEdit.php:322
912
+ msgid "anonymous users only"
913
+ msgstr "endast anonyma användare"
914
+
915
+ #: lib/view/WpProQuiz_View_QuizEdit.php:328
916
+ msgid "user identification by cookie"
917
+ msgstr "användaridentifiering via cookies"
918
+
919
+ #: lib/view/WpProQuiz_View_QuizEdit.php:331
920
+ msgid ""
921
+ "If you activate this option, a cookie is set additionally for unregistrated "
922
+ "(anonymous) users. This ensures a longer assignment of the user than the "
923
+ "simple assignment by the IP address."
924
+ msgstr ""
925
+ "Om du aktiverar detta val så kommer en cookie att sättas för oregistrerade "
926
+ "(anonyma) användare. Detta säkrar mer långvariga quiz för användaren "
927
+ "istället för bara kontroll via IP-adress."
928
+
929
+ #: lib/view/WpProQuiz_View_QuizEdit.php:336
930
+ msgid "Reset the user identification"
931
+ msgstr "Nollställ användaridentifikation"
932
+
933
+ #: lib/view/WpProQuiz_View_QuizEdit.php:337
934
+ msgid "User identification has been reset."
935
+ msgstr "Användaridentifikation nollställd."
936
+
937
+ #: lib/view/WpProQuiz_View_QuizEdit.php:339
938
+ msgid "Resets user identification for all users."
939
+ msgstr "Nollställ användaridentifikation för alla användare."
940
+
941
+ #: lib/view/WpProQuiz_View_QuizEdit.php:351
942
+ msgid "Quiz description"
943
+ msgstr "Quiz-beskrivning"
944
+
945
+ #: lib/view/WpProQuiz_View_QuizEdit.php:354
946
+ msgid "This text will be displayed before start of the quiz."
947
+ msgstr "Denna text kommer att visas innan quiz startas."
948
+
949
+ #: lib/view/WpProQuiz_View_QuizEdit.php:362
950
+ msgid "Results text"
951
+ msgstr "Resultattext"
952
+
953
+ #: lib/view/WpProQuiz_View_QuizEdit.php:365
954
+ msgid ""
955
+ "This text will be displayed at the end of the quiz (in results). (this text "
956
+ "is optional)"
957
+ msgstr ""
958
+ "Denna text kommer att visas i slutet av varje quiz (i resultatetn). (Denna "
959
+ "text är frivillig)"
960
+
961
+ #: lib/view/WpProQuiz_View_QuizEdit.php:369
962
+ msgid "Activate graduation"
963
+ msgstr "Aktivera graduering"
964
+
965
+ #: lib/view/WpProQuiz_View_QuizEdit.php:375
966
+ msgid "Hint:"
967
+ msgstr "Tips:"
968
+
969
+ #: lib/view/WpProQuiz_View_QuizEdit.php:377
970
+ msgid "Maximal 15 levels"
971
+ msgstr "Maximum 15 nivåer"
972
+
973
+ #: lib/view/WpProQuiz_View_QuizEdit.php:379
974
+ #, php-format
975
+ msgid ""
976
+ "Percentages refer to the total score of the quiz. (Current total %d points "
977
+ "in %d questions."
978
+ msgstr ""
979
+ "Procenten representerar totalprocenten för quizzet. (För närvarande totalt "
980
+ "%d poäng av %d frågor)"
981
+
982
+ #: lib/view/WpProQuiz_View_QuizEdit.php:382
983
+ msgid "Values can also be mixed up"
984
+ msgstr "Värden kan också mixas in"
985
+
986
+ #: lib/view/WpProQuiz_View_QuizEdit.php:383
987
+ msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
988
+ msgstr "10,15% och 10.15% tillåtet (max två siffror efter decimalen)"
989
+
990
+ #: lib/view/WpProQuiz_View_QuizEdit.php:399
991
+ #: lib/view/WpProQuiz_View_QuizEdit.php:410
992
+ msgid "from:"
993
+ msgstr "från:"
994
+
995
+ #: lib/view/WpProQuiz_View_QuizEdit.php:399
996
+ #: lib/view/WpProQuiz_View_QuizEdit.php:410
997
+ msgid "percent"
998
+ msgstr "procent"
999
+
1000
+ #: lib/view/WpProQuiz_View_QuizEdit.php:399
1001
+ #: lib/view/WpProQuiz_View_QuizEdit.php:410
1002
+ #, php-format
1003
+ msgid ""
1004
+ "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
1005
+ "%s</span>%%)"
1006
+ msgstr ""
1007
+ "(Kommer att visas när resultat-procenten är >= <span class=\"resultprozent\">"
1008
+ "%s</span>%%)"
1009
+
1010
+ #: lib/view/WpProQuiz_View_QuizEdit.php:400
1011
+ #: lib/view/WpProQuiz_View_QuizEdit.php:411
1012
+ msgid "Delete graduation"
1013
+ msgstr "Ta bort graduering"
1014
+
1015
+ #: lib/view/WpProQuiz_View_QuizEdit.php:418
1016
+ msgid "Add graduation"
1017
+ msgstr "Lägg till graduering"
1018
+
1019
+ #: lib/view/WpProQuiz_View_QuizOverall.php:32
1020
+ msgid "Quiz overview"
1021
+ msgstr "Quiz-överblick"
1022
+
1023
+ #: lib/view/WpProQuiz_View_QuizOverall.php:34
1024
+ msgid "In case of problems"
1025
+ msgstr "Vid problem"
1026
+
1027
+ #: lib/view/WpProQuiz_View_QuizOverall.php:36
1028
+ msgid "If quiz doesn't work in front-end, please try following:"
1029
+ msgstr "Om ditt quiz inte fungerar för användarna, vänligen prova följande:"
1030
+
1031
+ #: lib/view/WpProQuiz_View_QuizOverall.php:46
1032
+ msgid "Style Manager"
1033
+ msgstr "Stil-manager"
1034
+
1035
+ #: lib/view/WpProQuiz_View_QuizOverall.php:55
1036
+ msgid "ID"
1037
+ msgstr "ID"
1038
+
1039
+ #: lib/view/WpProQuiz_View_QuizOverall.php:56
1040
+ msgid "Shortcode"
1041
+ msgstr "Kortkod"
1042
+
1043
+ #: lib/view/WpProQuiz_View_QuizOverall.php:78
1044
+ msgid "Preview"
1045
+ msgstr "Förhandsgranskning"
1046
+
1047
+ #: lib/view/WpProQuiz_View_QuizOverall.php:89
1048
+ msgid "Add quiz"
1049
+ msgstr "Lägg till quiz"
1050
+
1051
+ #: lib/view/WpProQuiz_View_QuizOverall.php:93
1052
+ #: lib/view/WpProQuiz_View_QuizOverall.php:98
1053
+ msgid "Export"
1054
+ msgstr "Exportera"
1055
+
1056
+ #: lib/view/WpProQuiz_View_QuizOverall.php:99
1057
+ msgid ""
1058
+ "Choose the respective question, which you would like to export and press on "
1059
+ "\"Start export\""
1060
+ msgstr ""
1061
+ "Välj respektive fråga som du vill exportera och klicka på \"Starta "
1062
+ "exportering\""
1063
+
1064
+ #: lib/view/WpProQuiz_View_QuizOverall.php:103
1065
+ msgid "Start export"
1066
+ msgstr "Starta expotering"
1067
+
1068
+ #: lib/view/WpProQuiz_View_QuizOverall.php:109
1069
+ msgid "Import only *.wpq files from known and trusted sources."
1070
+ msgstr "Impoertera endast *.wpq-filer från kända källor."
1071
+
1072
+ #: lib/view/WpProQuiz_View_QuizOverall.php:117
1073
+ #, php-format
1074
+ msgid "Maximal %d MiB"
1075
+ msgstr "Maximalt %d MiB"
1076
+
1077
+ #: lib/view/WpProQuiz_View_Statistics.php:17
1078
+ #, php-format
1079
+ msgid "Quiz: %s - Statistics"
1080
+ msgstr "Quiz: %s - Statistik"
1081
+
1082
+ #: lib/view/WpProQuiz_View_Statistics.php:21
1083
+ msgid "Stats not enabled"
1084
+ msgstr "Statistik inte påsatt"
1085
+
1086
+ #: lib/view/WpProQuiz_View_Statistics.php:22
1087
+ msgid "Activate statistics"
1088
+ msgstr "Aktivera statistik"
1089
+
1090
+ #: lib/view/WpProQuiz_View_Statistics.php:27
1091
+ msgid "Anonymous users"
1092
+ msgstr "Anonyma användare"
1093
+
1094
+ #: lib/view/WpProQuiz_View_Statistics.php:28
1095
+ msgid "Registered users"
1096
+ msgstr "Registrerade användare"
1097
+
1098
+ #: lib/view/WpProQuiz_View_Statistics.php:29
1099
+ msgid "Overview"
1100
+ msgstr "Överblick"
1101
+
1102
+ #: lib/view/WpProQuiz_View_Statistics.php:34
1103
+ msgid "Please select user name:"
1104
+ msgstr "Vänligen markera användarnamn"
1105
+
1106
+ #: lib/view/WpProQuiz_View_Statistics.php:57
1107
+ #: lib/view/WpProQuiz_View_Statistics.php:149
1108
+ msgid "Hints used"
1109
+ msgstr "Tips använt"
1110
+
1111
+ #: lib/view/WpProQuiz_View_Statistics.php:58
1112
+ msgid "Points scored"
1113
+ msgstr ""
1114
+
1115
+ #: lib/view/WpProQuiz_View_Statistics.php:98
1116
+ msgid "Reset statistics"
1117
+ msgstr "Nollställ statistik"
1118
+
1119
+ #: lib/view/WpProQuiz_View_Statistics.php:100
1120
+ #: lib/view/WpProQuiz_View_Statistics.php:172
1121
+ msgid "Refresh"
1122
+ msgstr "Uppdatera"
1123
+
1124
+ #: lib/view/WpProQuiz_View_Statistics.php:104
1125
+ #: lib/view/WpProQuiz_View_Statistics.php:174
1126
+ msgid "Reset entire statistic"
1127
+ msgstr "Nolltäll all statistik"
1128
+
1129
+ #: lib/view/WpProQuiz_View_Statistics.php:115
1130
+ msgid "Filter"
1131
+ msgstr ""
1132
+
1133
+ #: lib/view/WpProQuiz_View_Statistics.php:120
1134
+ msgid "Show only users, who solved the quiz:"
1135
+ msgstr ""
1136
+
1137
+ #: lib/view/WpProQuiz_View_Statistics.php:126
1138
+ msgid "How many entries should be shown on one page:"
1139
+ msgstr ""
1140
+
1141
+ #: lib/view/WpProQuiz_View_Statistics.php:145
1142
+ msgid "User"
1143
+ msgstr ""
1144
+
1145
+ #: lib/view/WpProQuiz_View_StyleManager.php:15
1146
+ msgid "Front"
1147
+ msgstr "Front"
1148
+
1149
+ #~ msgid "One question is one point"
1150
+ #~ msgstr "سؤال واحد يعني درجة واحدة"
1151
+
1152
+ #~ msgid "Right"
1153
+ #~ msgstr "صحيح"
1154
+
1155
+ #~ msgid "Wrong"
1156
+ #~ msgstr "خطأ"
1157
+
1158
+ #~ msgid "Tip"
1159
+ #~ msgstr "ملاحظة"
1160
+
1161
+ #~ msgid "Statistics activate"
1162
+ #~ msgstr "تفعيل الاحصائيات"
1163
+
1164
+ #~ msgid "Statistics reset"
1165
+ #~ msgstr "اعادة ضبط الاحصائيات"
1166
+
1167
+ #~ msgid "add new question"
1168
+ #~ msgstr "اضف سؤال جديد"
1169
+
1170
+ #~ msgid "Not all fields are filled"
1171
+ #~ msgstr "لم يتم تعبئة جميع الحقول"
lib/controller/WpProQuiz_Controller_Admin.php CHANGED
@@ -1,14 +1,7 @@
1
  <?php
2
  class WpProQuiz_Controller_Admin {
3
-
4
- private $_plugin_dir;
5
- private $_plugin_file;
6
-
7
- public function __construct($plugin_dir) {
8
- spl_autoload_register(array($this, 'autoload'));
9
 
10
- $this->_plugin_dir = $plugin_dir;
11
- $this->_plugin_file = $this->_plugin_dir.'/wp-pro-quiz.php';
12
 
13
  add_action('wp_ajax_wp_pro_quiz_update_sort', array($this, 'updateSort'));
14
  add_action('wp_ajax_wp_pro_quiz_load_question', array($this, 'updateSort'));
@@ -28,29 +21,7 @@ class WpProQuiz_Controller_Admin {
28
  add_action('admin_menu', array($this, 'register_page'));
29
  }
30
 
31
- public static function getPluginInfo() {
32
- $path = realpath(dirname(__FILE__) .'/../../');
33
-
34
- return array('path' => $path,
35
- 'file' => $path.'/wp-pro-quiz.php');
36
- }
37
-
38
- public static function getPluginPath() {
39
- return realpath(dirname(__FILE__) .'/../../');
40
- }
41
-
42
- public static function getPluginFile() {
43
- return realpath(WpProQuiz_Controller_Admin::getPluginPath().'/wp-pro-quiz.php');
44
- }
45
-
46
- public static function getPluginUrl() {
47
- return plugins_url('', WpProQuiz_Controller_Admin::getPluginFile());
48
- }
49
-
50
  public function resetLock() {
51
- if(!current_user_can('administrator'))
52
- exit;
53
-
54
  $c = new WpProQuiz_Controller_Quiz();
55
  $c->route();
56
  }
@@ -64,19 +35,11 @@ class WpProQuiz_Controller_Admin {
64
  }
65
 
66
  public function updateSort() {
67
-
68
- if(!current_user_can('administrator'))
69
- exit;
70
-
71
  $c = new WpProQuiz_Controller_Question();
72
  $c->route();
73
  }
74
 
75
  public function loadStatistics() {
76
-
77
- if(!current_user_can('administrator'))
78
- exit;
79
-
80
  $c = new WpProQuiz_Controller_Statistics();
81
  $c->route();
82
  }
@@ -106,7 +69,7 @@ class WpProQuiz_Controller_Admin {
106
  public function enqueueScript() {
107
  wp_enqueue_script(
108
  'wpProQuiz_admin_javascript',
109
- plugins_url('js/wpProQuiz_admin.min.js', $this->_plugin_file),
110
  array('jquery', 'jquery-ui-sortable'),
111
  WPPROQUIZ_VERSION
112
  );
@@ -114,20 +77,11 @@ class WpProQuiz_Controller_Admin {
114
  $this->localizeScript();
115
  }
116
 
117
- public static function install() {
118
-
119
- $db = new WpProQuiz_Helper_DbUpgrade();
120
- $v = $db->upgrade(get_option('wpProQuiz_dbVersion', false));
121
-
122
- if(add_option('wpProQuiz_dbVersion', $v) === false)
123
- update_option('wpProQuiz_dbVersion', $v);
124
- }
125
-
126
  public function register_page() {
127
  $page = add_menu_page(
128
  'WP-Pro-Quiz',
129
  'WP-Pro-Quiz',
130
- 'administrator',
131
  'wpProQuiz',
132
  array($this, 'route'));
133
 
@@ -147,7 +101,7 @@ class WpProQuiz_Controller_Admin {
147
  $c = new WpProQuiz_Controller_Question();
148
  break;
149
  case 'preview':
150
- $c = new WpProQuiz_Controller_Preview($this->_plugin_file);
151
  break;
152
  case 'statistics':
153
  $c = new WpProQuiz_Controller_Statistics();
@@ -167,31 +121,4 @@ class WpProQuiz_Controller_Admin {
167
  $c->route();
168
  }
169
  }
170
-
171
- public function autoload($class) {
172
- $c = explode("_", $class);
173
-
174
- if($c === false || count($c) != 3 || $c[0] !== 'WpProQuiz')
175
- return;
176
-
177
- $dir = '';
178
-
179
- switch ($c[1]) {
180
- case 'View':
181
- $dir = 'view';
182
- break;
183
- case 'Model':
184
- $dir = 'model';
185
- break;
186
- case 'Helper':
187
- $dir = 'helper';
188
- break;
189
- case 'Controller':
190
- $dir = 'controller';
191
- break;
192
- }
193
-
194
- if(file_exists($this->_plugin_dir.'/lib/'.$dir.'/'.$class.'.php'))
195
- include_once $this->_plugin_dir.'/lib/'.$dir.'/'.$class.'.php';
196
- }
197
  }
1
  <?php
2
  class WpProQuiz_Controller_Admin {
 
 
 
 
 
 
3
 
4
+ public function __construct() {
 
5
 
6
  add_action('wp_ajax_wp_pro_quiz_update_sort', array($this, 'updateSort'));
7
  add_action('wp_ajax_wp_pro_quiz_load_question', array($this, 'updateSort'));
21
  add_action('admin_menu', array($this, 'register_page'));
22
  }
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  public function resetLock() {
 
 
 
25
  $c = new WpProQuiz_Controller_Quiz();
26
  $c->route();
27
  }
35
  }
36
 
37
  public function updateSort() {
 
 
 
 
38
  $c = new WpProQuiz_Controller_Question();
39
  $c->route();
40
  }
41
 
42
  public function loadStatistics() {
 
 
 
 
43
  $c = new WpProQuiz_Controller_Statistics();
44
  $c->route();
45
  }
69
  public function enqueueScript() {
70
  wp_enqueue_script(
71
  'wpProQuiz_admin_javascript',
72
+ plugins_url('js/wpProQuiz_admin.min.js', WPPROQUIZ_FILE),
73
  array('jquery', 'jquery-ui-sortable'),
74
  WPPROQUIZ_VERSION
75
  );
77
  $this->localizeScript();
78
  }
79
 
 
 
 
 
 
 
 
 
 
80
  public function register_page() {
81
  $page = add_menu_page(
82
  'WP-Pro-Quiz',
83
  'WP-Pro-Quiz',
84
+ 'wpProQuiz_show',
85
  'wpProQuiz',
86
  array($this, 'route'));
87
 
101
  $c = new WpProQuiz_Controller_Question();
102
  break;
103
  case 'preview':
104
+ $c = new WpProQuiz_Controller_Preview();
105
  break;
106
  case 'statistics':
107
  $c = new WpProQuiz_Controller_Statistics();
121
  $c->route();
122
  }
123
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  }
lib/controller/WpProQuiz_Controller_Front.php CHANGED
@@ -1,20 +1,12 @@
1
  <?php
2
  class WpProQuiz_Controller_Front {
3
-
4
- private $_plugin_dir;
5
- private $_plugin_file;
6
-
7
  /**
8
  * @var WpProQuiz_Model_GlobalSettings
9
  */
10
  private $_settings = null;
11
 
12
- public function __construct($plugin_dir) {
13
- $this->_plugin_dir = $plugin_dir;
14
- $this->_plugin_file = $this->_plugin_dir.'/wp-pro-quiz.php';
15
-
16
- spl_autoload_register(array($this, 'autoload'));
17
-
18
  $this->loadSettings();
19
 
20
  add_action('wp_enqueue_scripts', array($this, 'loadDefaultScripts'));
@@ -26,7 +18,7 @@ class WpProQuiz_Controller_Front {
26
 
27
  wp_enqueue_style(
28
  'wpProQuiz_front_style',
29
- plugins_url('css/wpProQuiz_front.min.css', $this->_plugin_file),
30
  array(),
31
  WPPROQUIZ_VERSION
32
  );
@@ -39,7 +31,7 @@ class WpProQuiz_Controller_Front {
39
  private function loadJsScripts($footer = true) {
40
  wp_enqueue_script(
41
  'wpProQuiz_front_javascript',
42
- plugins_url('js/wpProQuiz_front.min.js', $this->_plugin_file),
43
  array('jquery-ui-sortable'),
44
  WPPROQUIZ_VERSION,
45
  $footer
@@ -48,7 +40,7 @@ class WpProQuiz_Controller_Front {
48
  if(!$this->_settings->isTouchLibraryDeactivate()) {
49
  wp_enqueue_script(
50
  'jquery-ui-touch-punch',
51
- plugins_url('js/jquery.ui.touch-punch.min.js', $this->_plugin_file),
52
  array('jquery-ui-sortable'),
53
  '0.2.2',
54
  $footer
@@ -63,7 +55,7 @@ class WpProQuiz_Controller_Front {
63
  if(!$this->_settings->isJsLoadInHead()) {
64
  $this->loadJsScripts();
65
  }
66
-
67
  if(is_numeric($id)) {
68
  ob_start();
69
 
@@ -107,28 +99,4 @@ class WpProQuiz_Controller_Front {
107
 
108
  $this->_settings = $mapper->fetchAll();
109
  }
110
-
111
- public function autoload($class) {
112
- $c = explode("_", $class);
113
-
114
- if($c === false || count($c) != 3 || $c[0] !== 'WpProQuiz')
115
- return;
116
-
117
- $dir = '';
118
-
119
- switch ($c[1]) {
120
- case 'View':
121
- $dir = 'view';
122
- break;
123
- case 'Model':
124
- $dir = 'model';
125
- break;
126
- case 'Controller':
127
- $dir = 'controller';
128
- break;
129
- }
130
-
131
- if(file_exists($this->_plugin_dir.'/lib/'.$dir.'/'.$class.'.php'))
132
- include_once $this->_plugin_dir.'/lib/'.$dir.'/'.$class.'.php';
133
- }
134
  }
1
  <?php
2
  class WpProQuiz_Controller_Front {
3
+
 
 
 
4
  /**
5
  * @var WpProQuiz_Model_GlobalSettings
6
  */
7
  private $_settings = null;
8
 
9
+ public function __construct() {
 
 
 
 
 
10
  $this->loadSettings();
11
 
12
  add_action('wp_enqueue_scripts', array($this, 'loadDefaultScripts'));
18
 
19
  wp_enqueue_style(
20
  'wpProQuiz_front_style',
21
+ plugins_url('css/wpProQuiz_front.min.css', WPPROQUIZ_FILE),
22
  array(),
23
  WPPROQUIZ_VERSION
24
  );
31
  private function loadJsScripts($footer = true) {
32
  wp_enqueue_script(
33
  'wpProQuiz_front_javascript',
34
+ plugins_url('js/wpProQuiz_front.min.js', WPPROQUIZ_FILE),
35
  array('jquery-ui-sortable'),
36
  WPPROQUIZ_VERSION,
37
  $footer
40
  if(!$this->_settings->isTouchLibraryDeactivate()) {
41
  wp_enqueue_script(
42
  'jquery-ui-touch-punch',
43
+ plugins_url('js/jquery.ui.touch-punch.min.js', WPPROQUIZ_FILE),
44
  array('jquery-ui-sortable'),
45
  '0.2.2',
46
  $footer
55
  if(!$this->_settings->isJsLoadInHead()) {
56
  $this->loadJsScripts();
57
  }
58
+
59
  if(is_numeric($id)) {
60
  ob_start();
61
 
99
 
100
  $this->_settings = $mapper->fetchAll();
101
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  }
lib/controller/WpProQuiz_Controller_GlobalSettings.php CHANGED
@@ -6,6 +6,11 @@ class WpProQuiz_Controller_GlobalSettings extends WpProQuiz_Controller_Controlle
6
  }
7
 
8
  private function edit() {
 
 
 
 
 
9
  $mapper = new WpProQuiz_Model_GlobalSettingsMapper();
10
  $view = new WpProQuiz_View_GobalSettings();
11
 
6
  }
7
 
8
  private function edit() {
9
+
10
+ if(!current_user_can('wpProQuiz_change_settings')) {
11
+ wp_die(__('You do not have sufficient permissions to access this page.'));
12
+ }
13
+
14
  $mapper = new WpProQuiz_Model_GlobalSettingsMapper();
15
  $view = new WpProQuiz_View_GobalSettings();
16
 
lib/controller/WpProQuiz_Controller_ImportExport.php CHANGED
@@ -18,6 +18,11 @@ class WpProQuiz_Controller_ImportExport extends WpProQuiz_Controller_Controller
18
  }
19
 
20
  private function handleExport() {
 
 
 
 
 
21
  $export = new WpProQuiz_Helper_Export();
22
 
23
  $a = $export->export($this->_post['exportIds']);
@@ -34,6 +39,10 @@ class WpProQuiz_Controller_ImportExport extends WpProQuiz_Controller_Controller
34
 
35
  private function handleImport() {
36
 
 
 
 
 
37
  $this->view = new WpProQuiz_View_Import();
38
  $this->view->error = false;
39
 
18
  }
19
 
20
  private function handleExport() {
21
+
22
+ if(!current_user_can('wpProQuiz_export')) {
23
+ wp_die(__('You do not have sufficient permissions to access this page.'));
24
+ }
25
+
26
  $export = new WpProQuiz_Helper_Export();
27
 
28
  $a = $export->export($this->_post['exportIds']);
39
 
40
  private function handleImport() {
41
 
42
+ if(!current_user_can('wpProQuiz_import')) {
43
+ wp_die(__('You do not have sufficient permissions to access this page.'));
44
+ }
45
+
46
  $this->view = new WpProQuiz_View_Import();
47
  $this->view->error = false;
48
 
lib/controller/WpProQuiz_Controller_Preview.php CHANGED
@@ -1,27 +1,18 @@
1
  <?php
2
  class WpProQuiz_Controller_Preview extends WpProQuiz_Controller_Controller {
3
 
4
- private $_plugin_file;
5
-
6
- public function __construct($plugin_file) {
7
- parent::__construct();
8
-
9
-
10
- $this->_plugin_file = $plugin_file;
11
- }
12
-
13
  public function route() {
14
 
15
  wp_enqueue_script(
16
  'wpProQuiz_fron_javascript',
17
- plugins_url('js/wpProQuiz_front.min.js', $this->_plugin_file),
18
  array('jquery', 'jquery-ui-sortable'),
19
  WPPROQUIZ_VERSION
20
  );
21
 
22
  wp_enqueue_style(
23
  'wpProQuiz_front_style',
24
- plugins_url('css/wpProQuiz_front.min.css', $this->_plugin_file),
25
  array(),
26
  WPPROQUIZ_VERSION
27
  );
1
  <?php
2
  class WpProQuiz_Controller_Preview extends WpProQuiz_Controller_Controller {
3
 
 
 
 
 
 
 
 
 
 
4
  public function route() {
5
 
6
  wp_enqueue_script(
7
  'wpProQuiz_fron_javascript',
8
+ plugins_url('js/wpProQuiz_front.min.js', WPPROQUIZ_FILE),
9
  array('jquery', 'jquery-ui-sortable'),
10
  WPPROQUIZ_VERSION
11
  );
12
 
13
  wp_enqueue_style(
14
  'wpProQuiz_front_style',
15
+ plugins_url('css/wpProQuiz_front.min.css', WPPROQUIZ_FILE),
16
  array(),
17
  WPPROQUIZ_VERSION
18
  );
lib/controller/WpProQuiz_Controller_Question.php CHANGED
@@ -46,6 +46,11 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
46
  }
47
 
48
  public function copyQuestion($quizId) {
 
 
 
 
 
49
  $m = new WpProQuiz_Model_QuestionMapper();
50
 
51
  $questions = $m->fetchById($this->_post['copyIds']);
@@ -63,6 +68,12 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
63
  }
64
 
65
  public function loadQuestion($quizId) {
 
 
 
 
 
 
66
  $quizMapper = new WpProQuiz_Model_QuizMapper();
67
  $questionMapper = new WpProQuiz_Model_QuestionMapper();
68
  $data = array();
@@ -97,6 +108,11 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
97
  }
98
 
99
  public function saveSort($quizId) {
 
 
 
 
 
100
  $mapper = new WpProQuiz_Model_QuestionMapper();
101
  $map = $this->_post['sort'];
102
 
@@ -107,6 +123,11 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
107
  }
108
 
109
  public function deleteAction($id) {
 
 
 
 
 
110
  $mapper = new WpProQuiz_Model_QuestionMapper();
111
  $mapper->delete($id);
112
 
@@ -117,6 +138,11 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
117
  }
118
 
119
  public function editAction($id) {
 
 
 
 
 
120
  $this->view = new WpProQuiz_View_QuestionEdit();
121
  $this->view->header = __('Edit question', 'wp-pro-quiz');
122
  $mapper = new WpProQuiz_Model_QuestionMapper();
@@ -136,17 +162,33 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
136
  $question = $mapper->fetch($id);
137
 
138
  $post['title'] = sprintf(__('Question: %d', 'wp-pro-quiz'), $question->getSort()+1);
139
- }
 
 
 
 
 
 
140
 
141
  $mapper->save(new WpProQuiz_Model_Question($post));
142
  WpProQuiz_View_View::admin_notices(__('Question edited', 'wp-pro-quiz'), 'info');
143
- }
144
 
145
  $this->view->question = $mapper->fetch($id);
 
 
 
 
 
146
  $this->view->show();
147
  }
148
 
149
  public function createAction() {
 
 
 
 
 
150
  $this->view = new WpProQuiz_View_QuestionEdit();
151
  $this->view->header = __('New question', 'wp-pro-quiz');
152
  $post = null;
@@ -164,6 +206,12 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
164
  $post['title'] = sprintf(__('Question: %d', 'wp-pro-quiz'), $count+1);
165
  }
166
 
 
 
 
 
 
 
167
  $questionMapper->save(new WpProQuiz_Model_Question($post));
168
 
169
  WpProQuiz_View_View::admin_notices(__('Question added', 'wp-pro-quiz'), 'info');
@@ -174,6 +222,11 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
174
 
175
  $this->view->question = new WpProQuiz_Model_Question($post);
176
  $this->view->question->setQuizId($this->_quizId);
 
 
 
 
 
177
  $this->view->show();
178
  }
179
 
@@ -226,6 +279,11 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
226
  }
227
 
228
  public function showAction() {
 
 
 
 
 
229
  $m = new WpProQuiz_Model_QuizMapper();
230
  $mm = new WpProQuiz_Model_QuestionMapper();
231
 
@@ -234,4 +292,21 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
234
  $this->view->question = $mm->fetchAll($this->_quizId);
235
  $this->view->show();
236
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
237
  }
46
  }
47
 
48
  public function copyQuestion($quizId) {
49
+
50
+ if(!current_user_can('wpProQuiz_edit_quiz')) {
51
+ wp_die(__('You do not have sufficient permissions to access this page.'));
52
+ }
53
+
54
  $m = new WpProQuiz_Model_QuestionMapper();
55
 
56
  $questions = $m->fetchById($this->_post['copyIds']);
68
  }
69
 
70
  public function loadQuestion($quizId) {
71
+
72
+ if(!current_user_can('wpProQuiz_edit_quiz')) {
73
+ echo json_encode(array());
74
+ exit;
75
+ }
76
+
77
  $quizMapper = new WpProQuiz_Model_QuizMapper();
78
  $questionMapper = new WpProQuiz_Model_QuestionMapper();
79
  $data = array();
108
  }
109
 
110
  public function saveSort($quizId) {
111
+
112
+ if(!current_user_can('wpProQuiz_edit_quiz')) {
113
+ exit;
114
+ }
115
+
116
  $mapper = new WpProQuiz_Model_QuestionMapper();
117
  $map = $this->_post['sort'];
118
 
123
  }
124
 
125
  public function deleteAction($id) {
126
+
127
+ if(!current_user_can('wpProQuiz_delete_quiz')) {
128
+ wp_die(__('You do not have sufficient permissions to access this page.'));
129
+ }
130
+
131
  $mapper = new WpProQuiz_Model_QuestionMapper();
132
  $mapper->delete($id);
133
 
138
  }
139
 
140
  public function editAction($id) {
141
+
142
+ if(!current_user_can('wpProQuiz_edit_quiz')) {
143
+ wp_die(__('You do not have sufficient permissions to access this page.'));
144
+ }
145
+
146
  $this->view = new WpProQuiz_View_QuestionEdit();
147
  $this->view->header = __('Edit question', 'wp-pro-quiz');
148
  $mapper = new WpProQuiz_Model_QuestionMapper();
162
  $question = $mapper->fetch($id);
163
 
164
  $post['title'] = sprintf(__('Question: %d', 'wp-pro-quiz'), $question->getSort()+1);
165
+ }
166
+
167
+ $post['pointsAnswer'] = $post['points'];
168
+
169
+ if(isset($post['pointsPerAnswer'])) {
170
+ $post['points'] = $this->generatePointsAnswer($post);
171
+ }
172
 
173
  $mapper->save(new WpProQuiz_Model_Question($post));
174
  WpProQuiz_View_View::admin_notices(__('Question edited', 'wp-pro-quiz'), 'info');
175
+ }
176
 
177
  $this->view->question = $mapper->fetch($id);
178
+
179
+ if($this->view->question->isPointsPerAnswer()) {
180
+ $this->view->question->setPoints($this->view->question->getPointsAnswer());
181
+ }
182
+
183
  $this->view->show();
184
  }
185
 
186
  public function createAction() {
187
+
188
+ if(!current_user_can('wpProQuiz_add_quiz')) {
189
+ wp_die(__('You do not have sufficient permissions to access this page.'));
190
+ }
191
+
192
  $this->view = new WpProQuiz_View_QuestionEdit();
193
  $this->view->header = __('New question', 'wp-pro-quiz');
194
  $post = null;
206
  $post['title'] = sprintf(__('Question: %d', 'wp-pro-quiz'), $count+1);
207
  }
208
 
209
+ $post['pointsAnswer'] = $post['points'];
210
+
211
+ if(isset($post['pointsPerAnswer'])) {
212
+ $post['points'] = $this->generatePointsAnswer($post);
213
+ }
214
+
215
  $questionMapper->save(new WpProQuiz_Model_Question($post));
216
 
217
  WpProQuiz_View_View::admin_notices(__('Question added', 'wp-pro-quiz'), 'info');
222
 
223
  $this->view->question = new WpProQuiz_Model_Question($post);
224
  $this->view->question->setQuizId($this->_quizId);
225
+
226
+ if($this->view->question->isPointsPerAnswer()) {
227
+ $this->view->question->setPoints($this->view->question->getPointsAnswer());
228
+ }
229
+
230
  $this->view->show();
231
  }
232
 
279
  }
280
 
281
  public function showAction() {
282
+
283
+ if(!current_user_can('wpProQuiz_show')) {
284
+ wp_die(__('You do not have sufficient permissions to access this page.'));
285
+ }
286
+
287
  $m = new WpProQuiz_Model_QuizMapper();
288
  $mm = new WpProQuiz_Model_QuestionMapper();
289
 
292
  $this->view->question = $mm->fetchAll($this->_quizId);
293
  $this->view->show();
294
  }
295
+
296
+ private function generatePointsAnswer($post) {
297
+ switch($post['answerType']) {
298
+ case 'single':
299
+ case 'multiple':
300
+ return count($post['answerJson']['classic_answer']['correct']) * $post['pointsAnswer'];
301
+ case 'free_answer':
302
+ return $post['pointsAnswer'];
303
+ case 'sort_answer':
304
+ return count($post['answerJson']['answer_sort']['answer']) * $post['pointsAnswer'];
305
+ case 'matrix_sort_answer':
306
+ return count($post['answerJson']['answer_matrix_sort']['answer']) * $post['pointsAnswer'];
307
+ case 'cloze_answer':
308
+ return preg_match_all('#\{(.*?)\}#', $post['answerJson']['answer_cloze']['text']) * $post['pointsAnswer'];
309
+ break;
310
+ }
311
+ }
312
  }
lib/controller/WpProQuiz_Controller_Quiz.php CHANGED
@@ -27,6 +27,11 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
27
  }
28
 
29
  private function resetLock($quizId) {
 
 
 
 
 
30
  $lm = new WpProQuiz_Model_LockMapper();
31
  $qm = new WpProQuiz_Model_QuizMapper();
32
 
@@ -45,6 +50,11 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
45
  }
46
 
47
  private function showAction() {
 
 
 
 
 
48
  $this->view = new WpProQuiz_View_QuizOverall();
49
 
50
  $m = new WpProQuiz_Model_QuizMapper();
@@ -54,6 +64,11 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
54
  }
55
 
56
  private function editAction($id) {
 
 
 
 
 
57
  $this->view = new WpProQuiz_View_QuizEdit();
58
  $this->view->header = __('Edit quiz', 'wp-pro-quiz');
59
 
@@ -94,6 +109,11 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
94
  }
95
 
96
  private function createAction() {
 
 
 
 
 
97
  $this->view = new WpProQuiz_View_QuizEdit();
98
  $this->view->header = __('Create quiz', 'wp-pro-quiz');
99
 
@@ -122,6 +142,11 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
122
  }
123
 
124
  private function deleteAction($id) {
 
 
 
 
 
125
  $m = new WpProQuiz_Model_QuizMapper();
126
  $qm = new WpProQuiz_Model_QuestionMapper();
127
  $lm = new WpProQuiz_Model_LockMapper();
@@ -169,6 +194,8 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
169
  $statistics = new WpProQuiz_Controller_Statistics();
170
  $statistics->save();
171
 
 
 
172
  exit;
173
  }
174
 
@@ -192,6 +219,8 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
192
  if(!$lockIp && !$lockCookie) {
193
  $statistics = new WpProQuiz_Controller_Statistics();
194
  $statistics->save();
 
 
195
 
196
  if(get_current_user_id() == 0 && $quiz->isQuizRunOnceCookie()) {
197
  $cookieData = array();
27
  }
28
 
29
  private function resetLock($quizId) {
30
+
31
+ if(!current_user_can('wpProQuiz_edit_quiz')) {
32
+ exit;
33
+ }
34
+
35
  $lm = new WpProQuiz_Model_LockMapper();
36
  $qm = new WpProQuiz_Model_QuizMapper();
37
 
50
  }
51
 
52
  private function showAction() {
53
+
54
+ if(!current_user_can('wpProQuiz_show')) {
55
+ wp_die(__('You do not have sufficient permissions to access this page.'));
56
+ }
57
+
58
  $this->view = new WpProQuiz_View_QuizOverall();
59
 
60
  $m = new WpProQuiz_Model_QuizMapper();
64
  }
65
 
66
  private function editAction($id) {
67
+
68
+ if(!current_user_can('wpProQuiz_edit_quiz')) {
69
+ wp_die(__('You do not have sufficient permissions to access this page.'));
70
+ }
71
+
72
  $this->view = new WpProQuiz_View_QuizEdit();
73
  $this->view->header = __('Edit quiz', 'wp-pro-quiz');
74
 
109
  }
110
 
111
  private function createAction() {
112
+
113
+ if(!current_user_can('wpProQuiz_add_quiz')) {
114
+ wp_die(__('You do not have sufficient permissions to access this page.'));
115
+ }
116
+
117
  $this->view = new WpProQuiz_View_QuizEdit();
118
  $this->view->header = __('Create quiz', 'wp-pro-quiz');
119
 
142
  }
143
 
144
  private function deleteAction($id) {
145
+
146
+ if(!current_user_can('wpProQuiz_delete_quiz')) {
147
+ wp_die(__('You do not have sufficient permissions to access this page.'));
148
+ }
149
+
150
  $m = new WpProQuiz_Model_QuizMapper();
151
  $qm = new WpProQuiz_Model_QuestionMapper();
152
  $lm = new WpProQuiz_Model_LockMapper();
194
  $statistics = new WpProQuiz_Controller_Statistics();
195
  $statistics->save();
196
 
197
+ do_action('wp_pro_quiz_completed_quiz');
198
+
199
  exit;
200
  }
201
 
219
  if(!$lockIp && !$lockCookie) {
220
  $statistics = new WpProQuiz_Controller_Statistics();
221
  $statistics->save();
222
+
223
+ do_action('wp_pro_quiz_completed_quiz');
224
 
225
  if(get_current_user_id() == 0 && $quiz->isQuizRunOnceCookie()) {
226
  $cookieData = array();
lib/controller/WpProQuiz_Controller_Statistics.php CHANGED
@@ -18,10 +18,22 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
18
  }
19
 
20
  private function loadStatistics($quizId) {
 
 
 
 
 
 
 
 
 
 
 
 
21
  $questionMapper = new WpProQuiz_Model_StatisticMapper();
22
  $questions = $questionMapper->fetchAll($quizId, $this->_post['userId']);
23
 
24
- $data = array( 'global' => array('cCorrect' => 0, 'cIncorrect' => 0, 'pCorrect' => 0, 'pIncorrect' => 0, 'cTip' => 0),
25
  'items' => array());
26
 
27
  $data['clear'] = $data['global'];
@@ -32,6 +44,7 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
32
  $data['global']['cCorrect'] += $question->getCorrectCount();
33
  $data['global']['cIncorrect'] += $question->getIncorrectCount();
34
  $data['global']['cTip'] += $question->getHintCount();
 
35
 
36
  $data['items'][] = array(
37
  'id' => $question->getQuestionId(),
@@ -40,6 +53,7 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
40
  'cTip' => $question->getHintCount(),
41
  'pCorrect' => round((100 * $question->getCorrectCount() / $sum), 2),
42
  'pIncorrect' => round((100 * $question->getIncorrectCount() / $sum), 2),
 
43
  );
44
  }
45
 
@@ -55,7 +69,58 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
55
  exit;
56
  }
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  private function reset($quizId) {
 
 
 
 
 
59
  $statisticMapper = new WpProQuiz_Model_StatisticMapper();
60
 
61
  if(isset($this->_post['complete']) && $this->_post['complete']) {
@@ -68,6 +133,11 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
68
  }
69
 
70
  private function show($quizId) {
 
 
 
 
 
71
  $view = new WpProQuiz_View_Statistics();
72
  $questionMapper = new WpProQuiz_Model_QuestionMapper();
73
  $quizMapper = new WpProQuiz_Model_QuizMapper();
@@ -75,19 +145,18 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
75
  $view->quiz = $quizMapper->fetch($quizId);
76
  $view->question = $questionMapper->fetchAll($quizId);
77
 
78
-
79
- $users = get_users();
80
- $userArray = array();
81
-
82
- if(isset($users[0]->data)) {
83
- foreach($users as $user) {
84
- $userArray[] = $user->data;
85
- }
86
  } else {
87
- $userArray = $users;
88
  }
89
 
90
- $view->users = $userArray;
91
  $view->show();
92
  }
93
 
18
  }
19
 
20
  private function loadStatistics($quizId) {
21
+
22
+ if(!current_user_can('wpProQuiz_show_statistics')) {
23
+ echo json_encode(array());
24
+ exit;
25
+ }
26
+
27
+ if(isset($this->_post['overview']) && $this->_post['overview'] == true) {
28
+ $this->loadStatisticsOverview($quizId);
29
+
30
+ exit;
31
+ }
32
+
33
  $questionMapper = new WpProQuiz_Model_StatisticMapper();
34
  $questions = $questionMapper->fetchAll($quizId, $this->_post['userId']);
35
 
36
+ $data = array( 'global' => array('cCorrect' => 0, 'cIncorrect' => 0, 'pCorrect' => 0, 'pIncorrect' => 0, 'cTip' => 0, 'cCorrectAnswerPoints' => 0),
37
  'items' => array());
38
 
39
  $data['clear'] = $data['global'];
44
  $data['global']['cCorrect'] += $question->getCorrectCount();
45
  $data['global']['cIncorrect'] += $question->getIncorrectCount();
46
  $data['global']['cTip'] += $question->getHintCount();
47
+ $data['global']['cCorrectAnswerPoints'] += $question->getCorrectAnswerCount();
48
 
49
  $data['items'][] = array(
50
  'id' => $question->getQuestionId(),
53
  'cTip' => $question->getHintCount(),
54
  'pCorrect' => round((100 * $question->getCorrectCount() / $sum), 2),
55
  'pIncorrect' => round((100 * $question->getIncorrectCount() / $sum), 2),
56
+ 'cCorrectAnswerPoints' => $question->getCorrectAnswerCount()
57
  );
58
  }
59
 
69
  exit;
70
  }
71
 
72
+ private function loadStatisticsOverview($quizId) {
73
+ $m = new WpProQuiz_Model_StatisticMapper();
74
+
75
+ $page = (isset($this->_post['page']) && $this->_post['page'] > 0) ? $this->_post['page'] : 1;
76
+ $limit = $this->_post['pageLimit'];
77
+ $start = $limit * ($page - 1);
78
+
79
+ $s = $m->fetchOverview($quizId, (bool)$this->_post['onlyCompleted'], $start, $limit);
80
+ $data = array('items' => array());
81
+
82
+ foreach($s as $r) {
83
+
84
+ $sum = $r->getCorrectCount() + $r->getIncorrectCount();
85
+
86
+ if($sum === 0) {
87
+ $data['items'][] = array(
88
+ 'userId' => $r->getUserId(),
89
+ 'userName' => $r->getUserName(),
90
+ 'completed' => false
91
+ );
92
+
93
+ continue;
94
+ }
95
+
96
+ $data['items'][] = array(
97
+ 'userId' => $r->getUserId(),
98
+ 'userName' => $r->getUserName(),
99
+ 'cPoints' => $r->getPoints(),
100
+ 'totalPoints' => $r->getTotalPoints(),
101
+ 'cCorrect' => $r->getCorrectCount(),
102
+ 'cIncorrect' => $r->getIncorrectCount(),
103
+ 'cTip' => $r->getHintCount(),
104
+ 'pCorrect' => round((100 * $r->getCorrectCount() / $sum), 2),
105
+ 'pIncorrect' => round((100 * $r->getIncorrectCount() / $sum), 2),
106
+ 'completed' => true
107
+ );
108
+ }
109
+
110
+ if(isset($this->_post['generatePageNav']) && $this->_post['generatePageNav']) {
111
+ $count = $m->countOverview($quizId, (bool)$this->_post['onlyCompleted']);
112
+ $data['page'] = $count > 0 ? $count : 1;
113
+ }
114
+
115
+ echo json_encode($data);
116
+ }
117
+
118
  private function reset($quizId) {
119
+
120
+ if(!current_user_can('wpProQuiz_reset_statistics')) {
121
+ exit;
122
+ }
123
+
124
  $statisticMapper = new WpProQuiz_Model_StatisticMapper();
125
 
126
  if(isset($this->_post['complete']) && $this->_post['complete']) {
133
  }
134
 
135
  private function show($quizId) {
136
+
137
+ if(!current_user_can('wpProQuiz_show_statistics')) {
138
+ wp_die(__('You do not have sufficient permissions to access this page.'));
139
+ }
140
+
141
  $view = new WpProQuiz_View_Statistics();
142
  $questionMapper = new WpProQuiz_Model_QuestionMapper();
143
  $quizMapper = new WpProQuiz_Model_QuizMapper();
145
  $view->quiz = $quizMapper->fetch($quizId);
146
  $view->question = $questionMapper->fetchAll($quizId);
147
 
148
+ if(has_action('pre_user_query', 'ure_exclude_administrators')) {
149
+ remove_action('pre_user_query', 'ure_exclude_administrators');
150
+
151
+ $users = get_users(array('fields' => array('ID','user_login','display_name')));
152
+
153
+ add_action('pre_user_query', 'ure_exclude_administrators');
154
+
 
155
  } else {
156
+ $users = get_users(array('fields' => array('ID','user_login','display_name')));
157
  }
158
 
159
+ $view->users = $users;
160
  $view->show();
161
  }
162
 
lib/controller/WpProQuiz_Controller_StyleManager.php CHANGED
@@ -7,11 +7,9 @@ class WpProQuiz_Controller_StyleManager extends WpProQuiz_Controller_Controller
7
 
8
  private function show() {
9
 
10
- $plugin = WpProQuiz_Controller_Admin::getPluginInfo();
11
-
12
  wp_enqueue_style(
13
  'wpProQuiz_front_style',
14
- plugins_url('css/wpProQuiz_front.min.css', $plugin['file']),
15
  array(),
16
  WPPROQUIZ_VERSION
17
  );
7
 
8
  private function show() {
9
 
 
 
10
  wp_enqueue_style(
11
  'wpProQuiz_front_style',
12
+ plugins_url('css/wpProQuiz_front.min.css', WPPROQUIZ_FILE),
13
  array(),
14
  WPPROQUIZ_VERSION
15
  );
lib/helper/WpProQuiz_Helper_DbUpgrade.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  class WpProQuiz_Helper_DbUpgrade {
3
 
4
- const WPPROQUIZ_DB_VERSION = 11;
5
 
6
  private $_wpdb;
7
  private $_prefix;
@@ -94,6 +94,9 @@ class WpProQuiz_Helper_DbUpgrade {
94
  `tip_count` int(11) NOT NULL,
95
  `answer_type` varchar(50) NOT NULL,
96
  `answer_json` text NOT NULL,
 
 
 
97
  PRIMARY KEY (`id`),
98
  KEY `quiz_id` (`quiz_id`)
99
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@@ -118,6 +121,7 @@ class WpProQuiz_Helper_DbUpgrade {
118
  `correct_count` int(10) unsigned NOT NULL,
119
  `incorrect_count` int(10) unsigned NOT NULL,
120
  `hint_count` int(10) unsigned NOT NULL,
 
121
  PRIMARY KEY (`quiz_id`,`question_id`,`user_id`)
122
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
123
  ');
@@ -369,4 +373,25 @@ class WpProQuiz_Helper_DbUpgrade {
369
 
370
  return 11;
371
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
372
  }
1
  <?php
2
  class WpProQuiz_Helper_DbUpgrade {
3
 
4
+ const WPPROQUIZ_DB_VERSION = 12;
5
 
6
  private $_wpdb;
7
  private $_prefix;
94
  `tip_count` int(11) NOT NULL,
95
  `answer_type` varchar(50) NOT NULL,
96
  `answer_json` text NOT NULL,
97
+ `points_per_answer` tinyint(1) NOT NULL,
98
+ `points_answer` int(10) unsigned NOT NULL,
99
+ `show_points_in_box` tinyint(1) NOT NULL,
100
  PRIMARY KEY (`id`),
101
  KEY `quiz_id` (`quiz_id`)
102
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
121
  `correct_count` int(10) unsigned NOT NULL,
122
  `incorrect_count` int(10) unsigned NOT NULL,
123
  `hint_count` int(10) unsigned NOT NULL,
124
+ `correct_answer_count` int(10) unsigned NOT NULL,
125
  PRIMARY KEY (`quiz_id`,`question_id`,`user_id`)
126
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
127
  ');
373
 
374
  return 11;
375
  }
376
+
377
+ private function upgradeDbV11() {
378
+
379
+ $this->_wpdb->query('
380
+ ALTER TABLE `'.$this->_wpdb->prefix.'wp_pro_quiz_question`
381
+ ADD `points_per_answer` TINYINT( 1 ) NOT NULL ,
382
+ ADD `points_answer` INT UNSIGNED NOT NULL ,
383
+ ADD `show_points_in_box` TINYINT( 1 ) NOT NULL
384
+ ');
385
+
386
+ $this->_wpdb->query('
387
+ ALTER TABLE `'.$this->_wpdb->prefix.'wp_pro_quiz_statistic`
388
+ ADD `correct_answer_count` INT UNSIGNED NOT NULL
389
+ ');
390
+
391
+ $this->_wpdb->query('UPDATE `'.$this->_wpdb->prefix.'wp_pro_quiz_statistic` SET `correct_answer_count` = `correct_count`');
392
+
393
+ $this->_wpdb->query('UPDATE `'.$this->_wpdb->prefix.'wp_pro_quiz_question` SET `points_answer` = `points`');
394
+
395
+ return 12;
396
+ }
397
  }
lib/helper/WpProQuiz_Helper_Export.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  class WpProQuiz_Helper_Export {
3
 
4
- const WPPROQUIZ_EXPORT_VERSION = 1;
5
 
6
  public function export($ids) {
7
  $export = array();
@@ -44,5 +44,4 @@ class WpProQuiz_Helper_Export {
44
 
45
  return $m->fetchAll($quizId);
46
  }
47
-
48
  }
1
  <?php
2
  class WpProQuiz_Helper_Export {
3
 
4
+ const WPPROQUIZ_EXPORT_VERSION = 2;
5
 
6
  public function export($ids) {
7
  $export = array();
44
 
45
  return $m->fetchAll($quizId);
46
  }
 
47
  }
lib/helper/WpProQuiz_Helper_Import.php CHANGED
@@ -85,12 +85,13 @@ class WpProQuiz_Helper_Import {
85
 
86
  switch($data['exportVersion']) {
87
  case '1':
88
- return $this->importDataV1($data, $ids);
 
89
  break;
90
  }
91
  }
92
 
93
- private function importDataV1($o, $ids = false) {
94
  $quizMapper = new WpProQuiz_Model_QuizMapper();
95
  $questionMapper = new WpProQuiz_Model_QuestionMapper();
96
 
@@ -120,6 +121,10 @@ class WpProQuiz_Helper_Import {
120
  $question->setQuizId($master->getId());
121
  $question->setId(0);
122
 
 
 
 
 
123
  $questionMapper->save($question);
124
  }
125
  }
85
 
86
  switch($data['exportVersion']) {
87
  case '1':
88
+ case '2':
89
+ return $this->importDataV1($data, $ids, $data['exportVersion']);
90
  break;
91
  }
92
  }
93
 
94
+ private function importDataV1($o, $ids = false, $version = '1') {
95
  $quizMapper = new WpProQuiz_Model_QuizMapper();
96
  $questionMapper = new WpProQuiz_Model_QuestionMapper();
97
 
121
  $question->setQuizId($master->getId());
122
  $question->setId(0);
123
 
124
+ if($version == '1') {
125
+ $question->setPointsAnswer($question->getPoints());
126
+ }
127
+
128
  $questionMapper->save($question);
129
  }
130
  }
lib/helper/WpProQuiz_Helper_Upgrade.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_Helper_Upgrade {
3
+
4
+ public static function upgrade() {
5
+
6
+ WpProQuiz_Helper_Upgrade::updateDb();
7
+
8
+ $oldVersion = get_option('wpProQuiz_version');
9
+
10
+ switch($oldVersion) {
11
+ default:
12
+ WpProQuiz_Helper_Upgrade::install();
13
+ break;
14
+ }
15
+
16
+ if(add_option('wpProQuiz_version', WPPROQUIZ_VERSION) === false) {
17
+ update_option('wpProQuiz_version', WPPROQUIZ_VERSION);
18
+ }
19
+ }
20
+
21
+ private static function install() {
22
+ $role = get_role('administrator');
23
+
24
+ $role->add_cap('wpProQuiz_show');
25
+ $role->add_cap('wpProQuiz_add_quiz');
26
+ $role->add_cap('wpProQuiz_edit_quiz');
27
+ $role->add_cap('wpProQuiz_delete_quiz');
28
+ $role->add_cap('wpProQuiz_show_statistics');
29
+ $role->add_cap('wpProQuiz_reset_statistics');
30
+ $role->add_cap('wpProQuiz_import');
31
+ $role->add_cap('wpProQuiz_export');
32
+ $role->add_cap('wpProQuiz_change_settings');
33
+
34
+ //ACHIEVEMENTS Version 2.x.x
35
+ if(defined('ACHIEVEMENTS_IS_INSTALLED') && ACHIEVEMENTS_IS_INSTALLED === 1 && defined('ACHIEVEMENTS_VERSION')) {
36
+ $version = ACHIEVEMENTS_VERSION;
37
+ if($version{0} == '2') {
38
+ WpProQuiz_Plugin_BpAchievementsV2::install();
39
+ }
40
+ }
41
+ }
42
+
43
+ private static function updateDb() {
44
+ $db = new WpProQuiz_Helper_DbUpgrade();
45
+ $v = $db->upgrade(get_option('wpProQuiz_dbVersion', false));
46
+
47
+ if(add_option('wpProQuiz_dbVersion', $v) === false)
48
+ update_option('wpProQuiz_dbVersion', $v);
49
+ }
50
+
51
+ public static function deinstall() {
52
+
53
+ }
54
+ }
lib/model/WpProQuiz_Model_GlobalSettings.php CHANGED
@@ -4,6 +4,7 @@ class WpProQuiz_Model_GlobalSettings extends WpProQuiz_Model_Model {
4
  protected $_addRawShortcode = false;
5
  protected $_jsLoadInHead = false;
6
  protected $_touchLibraryDeactivate = false;
 
7
 
8
  public function setAddRawShortcode($_addRawShortcode) {
9
  $this->_addRawShortcode = (bool)$_addRawShortcode;
@@ -31,4 +32,13 @@ class WpProQuiz_Model_GlobalSettings extends WpProQuiz_Model_Model {
31
  public function isTouchLibraryDeactivate() {
32
  return $this->_touchLibraryDeactivate;
33
  }
 
 
 
 
 
 
 
 
 
34
  }
4
  protected $_addRawShortcode = false;
5
  protected $_jsLoadInHead = false;
6
  protected $_touchLibraryDeactivate = false;
7
+ protected $_corsActivated = false;
8
 
9
  public function setAddRawShortcode($_addRawShortcode) {
10
  $this->_addRawShortcode = (bool)$_addRawShortcode;
32
  public function isTouchLibraryDeactivate() {
33
  return $this->_touchLibraryDeactivate;
34
  }
35
+
36
+ public function setCorsActivated($_corsActivated) {
37
+ $this->_corsActivated = (bool)$_corsActivated;
38
+ return $this;
39
+ }
40
+
41
+ public function isCorsActivated() {
42
+ return $this->_corsActivated;
43
+ }
44
  }
lib/model/WpProQuiz_Model_GlobalSettingsMapper.php CHANGED
@@ -6,7 +6,8 @@ class WpProQuiz_Model_GlobalSettingsMapper extends WpProQuiz_Model_Mapper {
6
 
7
  $s->setAddRawShortcode(get_option('wpProQuiz_addRawShortcode'))
8
  ->setJsLoadInHead(get_option('wpProQuiz_jsLoadInHead'))
9
- ->setTouchLibraryDeactivate(get_option('wpProQuiz_touchLibraryDeactivate'));
 
10
 
11
  return $s;
12
  }
@@ -24,11 +25,16 @@ class WpProQuiz_Model_GlobalSettingsMapper extends WpProQuiz_Model_Mapper {
24
  if(add_option('wpProQuiz_touchLibraryDeactivate', $settings->isTouchLibraryDeactivate()) === false) {
25
  update_option('wpProQuiz_touchLibraryDeactivate', $settings->isTouchLibraryDeactivate());
26
  }
 
 
 
 
27
  }
28
 
29
  public function delete() {
30
  delete_option('wpProQuiz_addRawShortcode');
31
  delete_option('wpProQuiz_jsLoadInHead');
32
  delete_option('wpProQuiz_touchLibraryDeactivate');
 
33
  }
34
  }
6
 
7
  $s->setAddRawShortcode(get_option('wpProQuiz_addRawShortcode'))
8
  ->setJsLoadInHead(get_option('wpProQuiz_jsLoadInHead'))
9
+ ->setTouchLibraryDeactivate(get_option('wpProQuiz_touchLibraryDeactivate'))
10
+ ->setCorsActivated(get_option('wpProQuiz_corsActivated'));
11
 
12
  return $s;
13
  }
25
  if(add_option('wpProQuiz_touchLibraryDeactivate', $settings->isTouchLibraryDeactivate()) === false) {
26
  update_option('wpProQuiz_touchLibraryDeactivate', $settings->isTouchLibraryDeactivate());
27
  }
28
+
29
+ if(add_option('wpProQuiz_corsActivated', $settings->isCorsActivated()) === false) {
30
+ update_option('wpProQuiz_corsActivated', $settings->isCorsActivated());
31
+ }
32
  }
33
 
34
  public function delete() {
35
  delete_option('wpProQuiz_addRawShortcode');
36
  delete_option('wpProQuiz_jsLoadInHead');
37
  delete_option('wpProQuiz_touchLibraryDeactivate');
38
+ delete_option('wpProQuiz_corsActivated');
39
  }
40
  }
lib/model/WpProQuiz_Model_Question.php CHANGED
@@ -16,9 +16,11 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
16
  protected $_tipMsg;
17
  protected $_tipCount;
18
  protected $_points = 1;
 
 
 
19
 
20
- public function setId($_id)
21
- {
22
  $this->_id = $_id;
23
  return $this;
24
  }
@@ -27,8 +29,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
27
  return $this->_id;
28
  }
29
 
30
- public function setQuizId($_quizId)
31
- {
32
  $this->_quizId = $_quizId;
33
  return $this;
34
  }
@@ -37,8 +38,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
37
  return $this->_quizId;
38
  }
39
 
40
- public function setSort($_sort)
41
- {
42
  $this->_sort = $_sort;
43
  return $this;
44
  }
@@ -47,8 +47,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
47
  return $this->_sort;
48
  }
49
 
50
- public function setTitle($title)
51
- {
52
  $this->_title = $title;
53
  return $this;
54
  }
@@ -57,8 +56,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
57
  return $this->_title;
58
  }
59
 
60
- public function setQuestion($question)
61
- {
62
  $this->_question = $question;
63
  return $this;
64
  }
@@ -67,8 +65,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
67
  return $this->_question;
68
  }
69
 
70
- public function setCorrectMsg($correctMsg)
71
- {
72
  $this->_correctMsg = $correctMsg;
73
  return $this;
74
  }
@@ -77,8 +74,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
77
  return $this->_correctMsg;
78
  }
79
 
80
- public function setIncorrectMsg($incorrectMsg)
81
- {
82
  $this->_incorrectMsg = $incorrectMsg;
83
  return $this;
84
  }
@@ -87,8 +83,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
87
  return $this->_incorrectMsg;
88
  }
89
 
90
- public function setAnswerType($_answerType)
91
- {
92
  $this->_answerType = $_answerType;
93
  return $this;
94
  }
@@ -97,8 +92,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
97
  return $this->_answerType;
98
  }
99
 
100
- public function setAnswerJson($answerJson)
101
- {
102
  $this->_answerJson = $answerJson;
103
 
104
  if(isset($this->_answerJson['answer_type']))
@@ -111,8 +105,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
111
  return $this->_answerJson;
112
  }
113
 
114
- public function setCorrectCount($_correctCount)
115
- {
116
  $this->_correctCount = $_correctCount;
117
  return $this;
118
  }
@@ -121,8 +114,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
121
  return (int)$this->_correctCount;
122
  }
123
 
124
- public function setIncorrectCount($_incorrectCount)
125
- {
126
  $this->_incorrectCount = $_incorrectCount;
127
  return $this;
128
  }
@@ -131,8 +123,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
131
  return (int)$this->_incorrectCount;
132
  }
133
 
134
- public function setCorrectSameText($_correctSameText)
135
- {
136
  $this->_correctSameText = (bool)$_correctSameText;
137
  return $this;
138
  }
@@ -141,8 +132,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
141
  return $this->_correctSameText;
142
  }
143
 
144
- public function setTipEnabled($_tipEnabled)
145
- {
146
  $this->_tipEnabled = (bool)$_tipEnabled;
147
  return $this;
148
  }
@@ -151,8 +141,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
151
  return $this->_tipEnabled;
152
  }
153
 
154
- public function setTipMsg($_tipMsg)
155
- {
156
  $this->_tipMsg = $_tipMsg;
157
  return $this;
158
  }
@@ -161,8 +150,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
161
  return $this->_tipMsg;
162
  }
163
 
164
- public function setTipCount($_tipCount)
165
- {
166
  $this->_tipCount = (int)$_tipCount;
167
  return $this;
168
  }
@@ -171,8 +159,7 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
171
  return $this->_tipCount;
172
  }
173
 
174
- public function setPoints($_points)
175
- {
176
  $this->_points = (int)$_points;
177
  return $this;
178
  }
@@ -180,4 +167,31 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
180
  public function getPoints() {
181
  return $this->_points;
182
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
  }
16
  protected $_tipMsg;
17
  protected $_tipCount;
18
  protected $_points = 1;
19
+ protected $_pointsPerAnswer = false;
20
+ protected $_pointsAnswer = 1;
21
+ protected $_showPointsInBox = false;
22
 
23
+ public function setId($_id) {
 
24
  $this->_id = $_id;
25
  return $this;
26
  }
29
  return $this->_id;
30
  }
31
 
32
+ public function setQuizId($_quizId) {
 
33
  $this->_quizId = $_quizId;
34
  return $this;
35
  }
38
  return $this->_quizId;
39
  }
40
 
41
+ public function setSort($_sort) {
 
42
  $this->_sort = $_sort;
43
  return $this;
44
  }
47
  return $this->_sort;
48
  }
49
 
50
+ public function setTitle($title) {
 
51
  $this->_title = $title;
52
  return $this;
53
  }
56
  return $this->_title;
57
  }
58
 
59
+ public function setQuestion($question) {
 
60
  $this->_question = $question;
61
  return $this;
62
  }
65
  return $this->_question;
66
  }
67
 
68
+ public function setCorrectMsg($correctMsg) {
 
69
  $this->_correctMsg = $correctMsg;
70
  return $this;
71
  }
74
  return $this->_correctMsg;
75
  }
76
 
77
+ public function setIncorrectMsg($incorrectMsg) {
 
78
  $this->_incorrectMsg = $incorrectMsg;
79
  return $this;
80
  }
83
  return $this->_incorrectMsg;
84
  }
85
 
86
+ public function setAnswerType($_answerType) {
 
87
  $this->_answerType = $_answerType;
88
  return $this;
89
  }
92
  return $this->_answerType;
93
  }
94
 
95
+ public function setAnswerJson($answerJson) {
 
96
  $this->_answerJson = $answerJson;
97
 
98
  if(isset($this->_answerJson['answer_type']))
105
  return $this->_answerJson;
106
  }
107
 
108
+ public function setCorrectCount($_correctCount) {
 
109
  $this->_correctCount = $_correctCount;
110
  return $this;
111
  }
114
  return (int)$this->_correctCount;
115
  }
116
 
117
+ public function setIncorrectCount($_incorrectCount) {
 
118
  $this->_incorrectCount = $_incorrectCount;
119
  return $this;
120
  }
123
  return (int)$this->_incorrectCount;
124
  }
125
 
126
+ public function setCorrectSameText($_correctSameText) {
 
127
  $this->_correctSameText = (bool)$_correctSameText;
128
  return $this;
129
  }
132
  return $this->_correctSameText;
133
  }
134
 
135
+ public function setTipEnabled($_tipEnabled) {
 
136
  $this->_tipEnabled = (bool)$_tipEnabled;
137
  return $this;
138
  }
141
  return $this->_tipEnabled;
142
  }
143
 
144
+ public function setTipMsg($_tipMsg) {
 
145
  $this->_tipMsg = $_tipMsg;
146
  return $this;
147
  }
150
  return $this->_tipMsg;
151
  }
152
 
153
+ public function setTipCount($_tipCount) {
 
154
  $this->_tipCount = (int)$_tipCount;
155
  return $this;
156
  }
159
  return $this->_tipCount;
160
  }
161
 
162
+ public function setPoints($_points) {
 
163
  $this->_points = (int)$_points;
164
  return $this;
165
  }
167
  public function getPoints() {
168
  return $this->_points;
169
  }
170
+
171
+ public function setPointsPerAnswer($_pointsPerAnswer) {
172
+ $this->_pointsPerAnswer = (bool)$_pointsPerAnswer;
173
+ return $this;
174
+ }
175
+
176
+ public function isPointsPerAnswer() {
177
+ return $this->_pointsPerAnswer;
178
+ }
179
+
180
+ public function setPointsAnswer($_pointsAnswer) {
181
+ $this->_pointsAnswer = (int)$_pointsAnswer;
182
+ return $this;
183
+ }
184
+
185
+ public function getPointsAnswer() {
186
+ return $this->_pointsAnswer;
187
+ }
188
+
189
+ public function setShowPointsInBox($_showPointsInBox) {
190
+ $this->_showPointsInBox = (bool)$_showPointsInBox;
191
+ return $this;
192
+ }
193
+
194
+ public function isShowPointsInBox() {
195
+ return $this->_showPointsInBox;
196
+ }
197
  }
lib/model/WpProQuiz_Model_QuestionMapper.php CHANGED
@@ -40,9 +40,13 @@ class WpProQuiz_Model_QuestionMapper extends WpProQuiz_Model_Mapper {
40
  'tip_enabled' => (int)$question->isTipEnabled(),
41
  'tip_msg' => $question->getTipMsg(),
42
  'answer_type' => $question->getAnswerType(),
43
- 'answer_json' => json_encode($question->getAnswerJson())),
 
 
 
 
44
  array('id' => $question->getId()),
45
- array('%s', '%d', '%s', '%s', '%s', '%d', '%d', '%s', '%s', '%s'),
46
  array('%d'));
47
  } else {
48
  $id = $this->_wpdb->insert($this->_table, array(
@@ -57,9 +61,12 @@ class WpProQuiz_Model_QuestionMapper extends WpProQuiz_Model_Mapper {
57
  'tip_enabled' => (int)$question->isTipEnabled(),
58
  'tip_msg' => $question->getTipMsg(),
59
  'answer_type' => $question->getAnswerType(),
60
- 'answer_json' => json_encode($question->getAnswerJson())
 
 
 
61
  ),
62
- array('%d', '%d', '%s', '%d', '%s', '%s', '%s', '%d', '%d', '%s', '%s', '%s')
63
  );
64
 
65
  $question->setId($id);
40
  'tip_enabled' => (int)$question->isTipEnabled(),
41
  'tip_msg' => $question->getTipMsg(),
42
  'answer_type' => $question->getAnswerType(),
43
+ 'answer_json' => json_encode($question->getAnswerJson()),
44
+ 'points_per_answer' => (int)$question->isPointsPerAnswer(),
45
+ 'points_answer' => (int)$question->getPointsAnswer(),
46
+ 'show_points_in_box' => (int)$question->isShowPointsInBox()
47
+ ),
48
  array('id' => $question->getId()),
49
+ array('%s', '%d', '%s', '%s', '%s', '%d', '%d', '%s', '%s', '%s', '%d', '%d', '%d'),
50
  array('%d'));
51
  } else {
52
  $id = $this->_wpdb->insert($this->_table, array(
61
  'tip_enabled' => (int)$question->isTipEnabled(),
62
  'tip_msg' => $question->getTipMsg(),
63
  'answer_type' => $question->getAnswerType(),
64
+ 'answer_json' => json_encode($question->getAnswerJson()),
65
+ 'points_per_answer' => (int)$question->isPointsPerAnswer(),
66
+ 'points_answer' => (int)$question->getPointsAnswer(),
67
+ 'show_points_in_box' => (int)$question->isShowPointsInBox()
68
  ),
69
+ array('%d', '%d', '%s', '%d', '%s', '%s', '%s', '%d', '%d', '%s', '%s', '%s', '%d', '%d', '%d')
70
  );
71
 
72
  $question->setId($id);
lib/model/WpProQuiz_Model_Statistic.php CHANGED
@@ -1,14 +1,18 @@
1
  <?php
2
  class WpProQuiz_Model_Statistic extends WpProQuiz_Model_Model {
3
  protected $_quizId;
4
- protected $_questionId;
5
- protected $_userId;
6
- protected $_correctCount;
7
- protected $_incorrectCount;
8
- protected $_hintCout;
 
 
 
 
9
 
10
  public function setQuizId($_quizId) {
11
- $this->_quizId = $_quizId;
12
  return $this;
13
  }
14
 
@@ -17,7 +21,7 @@ class WpProQuiz_Model_Statistic extends WpProQuiz_Model_Model {
17
  }
18
 
19
  public function setQuestionId($_questionId) {
20
- $this->_questionId = $_questionId;
21
  return $this;
22
  }
23
 
@@ -35,7 +39,7 @@ class WpProQuiz_Model_Statistic extends WpProQuiz_Model_Model {
35
  }
36
 
37
  public function setCorrectCount($_correctCount) {
38
- $this->_correctCount = $_correctCount;
39
  return $this;
40
  }
41
 
@@ -44,7 +48,7 @@ class WpProQuiz_Model_Statistic extends WpProQuiz_Model_Model {
44
  }
45
 
46
  public function setIncorrectCount($_incorrectCount) {
47
- $this->_incorrectCount = $_incorrectCount;
48
  return $this;
49
  }
50
 
@@ -53,11 +57,47 @@ class WpProQuiz_Model_Statistic extends WpProQuiz_Model_Model {
53
  }
54
 
55
  public function setHintCount($_hintCout) {
56
- $this->_hintCout = $_hintCout;
57
  return $this;
58
  }
59
 
60
  public function getHintCount() {
61
  return (int)$this->_hintCout;
62
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  }
1
  <?php
2
  class WpProQuiz_Model_Statistic extends WpProQuiz_Model_Model {
3
  protected $_quizId;
4
+ protected $_questionId = 0;
5
+ protected $_userId = 0;
6
+ protected $_correctCount = 0;
7
+ protected $_incorrectCount = 0;
8
+ protected $_hintCout = 0;
9
+ protected $_userName = '';
10
+ protected $_points = 0;
11
+ protected $_totalPoints = 0;
12
+ protected $_correctAnswerCount = 0;
13
 
14
  public function setQuizId($_quizId) {
15
+ $this->_quizId = (int)$_quizId;
16
  return $this;
17
  }
18
 
21
  }
22
 
23
  public function setQuestionId($_questionId) {
24
+ $this->_questionId = (int)$_questionId;
25
  return $this;
26
  }
27
 
39
  }
40
 
41
  public function setCorrectCount($_correctCount) {
42
+ $this->_correctCount = (int)$_correctCount;
43
  return $this;
44
  }
45
 
48
  }
49
 
50
  public function setIncorrectCount($_incorrectCount) {
51
+ $this->_incorrectCount = (int)$_incorrectCount;
52
  return $this;
53
  }
54
 
57
  }
58
 
59
  public function setHintCount($_hintCout) {
60
+ $this->_hintCout = (int)$_hintCout;
61
  return $this;
62
  }
63
 
64
  public function getHintCount() {
65
  return (int)$this->_hintCout;
66
  }
67
+
68
+ public function setUserName($_userName) {
69
+ $this->_userName = $_userName;
70
+ return $this;
71
+ }
72
+
73
+ public function getUserName() {
74
+ return $this->_userName;
75
+ }
76
+
77
+ public function setPoints($_points) {
78
+ $this->_points = (int)$_points;
79
+ return $this;
80
+ }
81
+
82
+ public function getPoints() {
83
+ return $this->_points;
84
+ }
85
+
86
+ public function setTotalPoints($_totalPoints) {
87
+ $this->_totalPoints = (int)$_totalPoints;
88
+ return $this;
89
+ }
90
+
91
+ public function getTotalPoints() {
92
+ return $this->_totalPoints;
93
+ }
94
+
95
+ public function setCorrectAnswerCount($_correctAnswerCount) {
96
+ $this->_correctAnswerCount = (int)$_correctAnswerCount;
97
+ return $this;
98
+ }
99
+
100
+ public function getCorrectAnswerCount() {
101
+ return $this->_correctAnswerCount;
102
+ }
103
  }
lib/model/WpProQuiz_Model_StatisticMapper.php CHANGED
@@ -34,6 +34,59 @@ class WpProQuiz_Model_StatisticMapper extends WpProQuiz_Model_Mapper {
34
  return $a;
35
  }
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  public function delete($quizId, $userId) {
38
  $this->_wpdb->delete($this->_table, array(
39
  'quiz_id' => $quizId,
@@ -71,7 +124,8 @@ class WpProQuiz_Model_StatisticMapper extends WpProQuiz_Model_Mapper {
71
  'user_id' => $userId,
72
  'correct_count' => 0,
73
  'incorrect_count' => 0,
74
- 'hint_count' => 0
 
75
  );
76
 
77
  foreach($array as $k => $v) {
@@ -90,6 +144,8 @@ class WpProQuiz_Model_StatisticMapper extends WpProQuiz_Model_Mapper {
90
  $value['incorrect_count'] = 1;
91
  }
92
 
 
 
93
  $values[] = '('.implode(', ', $value).')';
94
  }
95
 
@@ -99,9 +155,10 @@ class WpProQuiz_Model_StatisticMapper extends WpProQuiz_Model_Mapper {
99
  VALUES
100
  '.implode(', ', $values).'
101
  ON DUPLICATE KEY UPDATE
102
- correct_count = correct_count + VALUES(correct_count),
103
- incorrect_count = incorrect_count + VALUES(incorrect_count),
104
- hint_count = hint_count + VALUES(hint_count)'
 
105
  );
106
  }
107
  }
34
  return $a;
35
  }
36
 
37
+ public function fetchOverview($quizId, $onlyCompleded, $start, $limit) {
38
+ $sql = 'SELECT
39
+ u.`user_login`, u.`display_name`, u.ID AS user_id,
40
+ SUM(s.`correct_count`) as correct_count,
41
+ SUM(s.`incorrect_count`) as incorrect_count,
42
+ SUM(s.`hint_count`) as hint_count,
43
+ SUM(q.`points_answer` * s.`correct_answer_count`) as points,
44
+ SUM(q.`points` * (s.`correct_count` + s.`incorrect_count`)) as total_points
45
+ FROM
46
+ `'.$this->_wpdb->users.'` AS u
47
+ '.($onlyCompleded ? 'INNER' : 'LEFT').' JOIN `'.$this->_tableStatistic.'` AS s ON ( s.user_id = u.ID AND s.`quiz_id` = %d )
48
+ LEFT JOIN `'.$this->_tableQuestion.'` AS q ON ( q.id = s.`question_id` )
49
+ GROUP BY u.ID
50
+ ORDER BY u.`user_login`
51
+ LIMIT %d , %d';
52
+
53
+ $a = array();
54
+
55
+ $results = $this->_wpdb->get_results(
56
+ $this->_wpdb->prepare($sql, $quizId, $start, $limit),
57
+ ARRAY_A);
58
+
59
+ foreach($results as $row) {
60
+
61
+ $row['user_name'] = $row['user_login'] . ' ('. $row['display_name'] .')';
62
+
63
+ $a[] = new WpProQuiz_Model_Statistic($row);
64
+ }
65
+
66
+ return $a;
67
+
68
+ }
69
+
70
+ public function countOverview($quizId, $onlyCompleded) {
71
+
72
+ if($onlyCompleded) {
73
+ return $this->_wpdb->get_var(
74
+ $this->_wpdb->prepare(
75
+ "SELECT
76
+ COUNT(ID)
77
+ FROM {$this->_wpdb->users}
78
+ WHERE
79
+ ID IN(SELECT user_id FROM wp_wp_pro_quiz_statistic WHERE quiz_id = %d GROUP BY user_id)",
80
+ $quizId
81
+ )
82
+ );
83
+ } else {
84
+ return $this->_wpdb->get_var(
85
+ "SELECT COUNT(ID) FROM {$this->_wpdb->users}"
86
+ );
87
+ }
88
+ }
89
+
90
  public function delete($quizId, $userId) {
91
  $this->_wpdb->delete($this->_table, array(
92
  'quiz_id' => $quizId,
124
  'user_id' => $userId,
125
  'correct_count' => 0,
126
  'incorrect_count' => 0,
127
+ 'hint_count' => 0,
128
+ 'correct_answer_count' => 0
129
  );
130
 
131
  foreach($array as $k => $v) {
144
  $value['incorrect_count'] = 1;
145
  }
146
 
147
+ $value['correct_answer_count'] = isset($v['correct_answer_count']) ? (int)$v['correct_answer_count'] : 0;
148
+
149
  $values[] = '('.implode(', ', $value).')';
150
  }
151
 
155
  VALUES
156
  '.implode(', ', $values).'
157
  ON DUPLICATE KEY UPDATE
158
+ correct_count = correct_count + VALUES(correct_count),
159
+ incorrect_count = incorrect_count + VALUES(incorrect_count),
160
+ hint_count = hint_count + VALUES(hint_count),
161
+ correct_answer_count = correct_answer_count + VALUES(correct_answer_count)'
162
  );
163
  }
164
  }
lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_Plugin_BpAchievementsV2 {
3
+
4
+ public function __construct() {
5
+ add_filter('dpa_get_addedit_action_descriptions_category_name', array($this, 'setCategoryName'), 10, 2);
6
+
7
+ add_action('wp_pro_quiz_completed_quiz', array($this, 'quizFinished'));
8
+ }
9
+
10
+ public function setCategoryName( $category_name, $category ) {
11
+ $other = 'Other';
12
+
13
+ if (__($other, 'dpa') == $category_name && 'Wp-Pro-Quiz' == $category)
14
+ return 'Wp-Pro-Quiz';
15
+ else
16
+ return $category_name;
17
+ }
18
+
19
+ public function quizFinished() {
20
+ do_action('wp_pro_quiz_quiz_finished');
21
+ }
22
+
23
+ public static function install() {
24
+ global $wpdb;
25
+
26
+ if($wpdb->get_var("SHOW TABLES LIKE '{$wpdb->prefix}achievements_actions'") === null)
27
+ return false;
28
+
29
+ $actions = array(
30
+ array(
31
+ 'category' => 'Wp-Pro-Quiz',
32
+ 'name' => 'wp_pro_quiz_quiz_finished',
33
+ 'description' => __('The user completed a quiz.', 'wp-pro-quiz')
34
+ )
35
+ );
36
+
37
+ foreach($actions as $action) {
38
+ if($wpdb->get_var("SELECT id FROM {$wpdb->prefix}achievements_actions WHERE name = 'wp_pro_quiz_quiz_finished'") === null)
39
+ $wpdb->insert($wpdb->prefix.'achievements_actions', $action);
40
+ }
41
+
42
+ return true;
43
+ }
44
+
45
+ public static function deinstall() {
46
+ global $wpdb;
47
+
48
+ if($wpdb->get_var("SHOW TABLES LIKE '{$wpdb->prefix}achievements_actions'") === null)
49
+ return false;
50
+
51
+ $wpdb->delete($wpdb->prefix.'achievements_actions', array('name' => 'wp_pro_quiz_quiz_finished'));
52
+ }
53
+ }
54
+
55
+ function dpa_handle_action_wp_pro_quiz_quiz_finished() {
56
+ $func_get_args = func_get_args();
57
+ dpa_handle_action('wp_pro_quiz_quiz_finished', $func_get_args);
58
+ }
lib/view/WpProQuiz_View_FrontQuiz.php CHANGED
@@ -9,6 +9,12 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
9
  $a['answer_type'] = $q->getAnswerType();
10
  $a['id'] = $q->getId();
11
  $a['points'] = $q->getPoints();
 
 
 
 
 
 
12
  $j = $q->getAnswerJson();
13
 
14
  switch ($q->getAnswerType()) {
@@ -110,13 +116,13 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
110
  <?php } ?>
111
  </ul>
112
  </div>
113
- <p>
114
  <?php if(!$this->quiz->isBtnRestartQuizHidden()) { ?>
115
  <input type="button" name="restartQuiz" value="<?php _e('Restart quiz', 'wp-pro-quiz'); ?>" >
116
  <?php } if(!$this->quiz->isBtnViewQuestionHidden()) { ?>
117
  <input type="button" name="reShowQuestion" value="<?php _e('View questions', 'wp-pro-quiz'); ?>">
118
  <?php } ?>
119
- </p>
120
  </div>
121
  <div style="display: none;" class="wpProQuiz_time_limit">
122
  <div class="time"><?php _e('Time limit', 'wp-pro-quiz'); ?>: <span>00:03:15</span></div>
@@ -228,17 +234,37 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
228
  </div>
229
  <div class="wpProQuiz_response" style="display: none;">
230
  <div style="display: none;" class="wpProQuiz_correct">
 
 
 
 
 
 
 
 
 
231
  <span>
232
  <?php _e('Correct', 'wp-pro-quiz'); ?>
233
  </span>
 
234
  <p>
235
  <?php echo do_shortcode(apply_filters('comment_text', $question->getCorrectMsg())); ?>
236
  </p>
237
  </div>
238
  <div style="display: none;" class="wpProQuiz_incorrect">
 
 
 
 
 
 
 
 
 
239
  <span>
240
  <?php _e('Incorrect', 'wp-pro-quiz'); ?>
241
  </span>
 
242
  <p>
243
  <?php
244
 
@@ -298,6 +324,7 @@ jQuery(document).ready(function($) {
298
  questionOnSinglePage: <?php echo $questionOnSinglePage; ?>,
299
  url: '<?php echo admin_url('admin-ajax.php'); ?>',
300
  resultsGrade: <?php echo $resultsProzent; ?>,
 
301
  json: <?php echo $json; ?>
302
  });
303
  });
9
  $a['answer_type'] = $q->getAnswerType();
10
  $a['id'] = $q->getId();
11
  $a['points'] = $q->getPoints();
12
+ $a['pointsPerAnswer'] = (int)$q->isPointsPerAnswer();
13
+
14
+ if($q->isPointsPerAnswer()) {
15
+ $a['pointsAnswer'] = $q->getPointsAnswer();
16
+ }
17
+
18
  $j = $q->getAnswerJson();
19
 
20
  switch ($q->getAnswerType()) {
116
  <?php } ?>
117
  </ul>
118
  </div>
119
+ <div style="margin: 10px 0px;">
120
  <?php if(!$this->quiz->isBtnRestartQuizHidden()) { ?>
121
  <input type="button" name="restartQuiz" value="<?php _e('Restart quiz', 'wp-pro-quiz'); ?>" >
122
  <?php } if(!$this->quiz->isBtnViewQuestionHidden()) { ?>
123
  <input type="button" name="reShowQuestion" value="<?php _e('View questions', 'wp-pro-quiz'); ?>">
124
  <?php } ?>
125
+ </div>
126
  </div>
127
  <div style="display: none;" class="wpProQuiz_time_limit">
128
  <div class="time"><?php _e('Time limit', 'wp-pro-quiz'); ?>: <span>00:03:15</span></div>
234
  </div>
235
  <div class="wpProQuiz_response" style="display: none;">
236
  <div style="display: none;" class="wpProQuiz_correct">
237
+ <?php if($question->isShowPointsInBox() && $question->isPointsPerAnswer()) { ?>
238
+ <div>
239
+ <span style="float: left;">
240
+ <?php _e('Correct', 'wp-pro-quiz'); ?>
241
+ </span>
242
+ <span style="float: right;"><?php echo $question->getPoints().' / '.$question->getPoints(); ?> <?php _e('Points', 'wp-pro-quiz'); ?></span>
243
+ <div style="clear: both;"></div>
244
+ </div>
245
+ <?php } else { ?>
246
  <span>
247
  <?php _e('Correct', 'wp-pro-quiz'); ?>
248
  </span>
249
+ <?php } ?>
250
  <p>
251
  <?php echo do_shortcode(apply_filters('comment_text', $question->getCorrectMsg())); ?>
252
  </p>
253
  </div>
254
  <div style="display: none;" class="wpProQuiz_incorrect">
255
+ <?php if($question->isShowPointsInBox() && $question->isPointsPerAnswer()) { ?>
256
+ <div>
257
+ <span style="float: left;">
258
+ <?php _e('Incorrect', 'wp-pro-quiz'); ?>
259
+ </span>
260
+ <span style="float: right;"><span class="wpProQuiz_responsePoints"></span> / <?php echo $question->getPoints(); ?> <?php _e('Points', 'wp-pro-quiz'); ?></span>
261
+ <div style="clear: both;"></div>
262
+ </div>
263
+ <?php } else { ?>
264
  <span>
265
  <?php _e('Incorrect', 'wp-pro-quiz'); ?>
266
  </span>
267
+ <?php } ?>
268
  <p>
269
  <?php
270
 
324
  questionOnSinglePage: <?php echo $questionOnSinglePage; ?>,
325
  url: '<?php echo admin_url('admin-ajax.php'); ?>',
326
  resultsGrade: <?php echo $resultsProzent; ?>,
327
+ <?php echo get_option('wpProQuiz_corsActivated') ? 'cors: 1,' : ''; ?>
328
  json: <?php echo $json; ?>
329
  });
330
  });
lib/view/WpProQuiz_View_GobalSettings.php CHANGED
@@ -100,6 +100,31 @@ class WpProQuiz_View_GobalSettings extends WpProQuiz_View_View {
100
  </fieldset>
101
  </td>
102
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  </tbody>
104
  </table>
105
  </div>
100
  </fieldset>
101
  </td>
102
  </tr>
103
+ <tr>
104
+ <th scope="row">
105
+ <?php _e('jQuery support cors', 'wp-pro-quiz'); ?>
106
+ </th>
107
+ <td>
108
+ <fieldset>
109
+ <legend class="screen-reader-text">
110
+ <span><?php _e('jQuery support cors', 'wp-pro-quiz'); ?></span>
111
+ </legend>
112
+ <label>
113
+ <input type="checkbox" value="1" name="corsActivated" <?php echo $this->settings->isCorsActivated() ? 'checked="checked"' : '' ?> >
114
+ <?php _e('Activate', 'wp-pro-quiz'); ?>
115
+ </label>
116
+ <p class="description">
117
+ <?php _e('Is required only in rare cases.', 'wp-pro-quiz'); ?>
118
+ </p>
119
+ <p class="description">
120
+ <?php _e('If you have problems with the front ajax, please activate it.', 'wp-pro-quiz'); ?>
121
+ </p>
122
+ <p class="description">
123
+ <?php _e('e.g. Domain with special characters in combination with IE', 'wp-pro-quiz'); ?>
124
+ </p>
125
+ </fieldset>
126
+ </td>
127
+ </tr>
128
  </tbody>
129
  </table>
130
  </div>
lib/view/WpProQuiz_View_QuestionEdit.php CHANGED
@@ -3,11 +3,6 @@ class WpProQuiz_View_QuestionEdit extends WpProQuiz_View_View {
3
 
4
  public function show() {
5
  ?>
6
- <script>
7
- jQuery(document).ready(function($) {
8
-
9
- });
10
- </script>
11
  <div class="wrap wpProQuiz_questionEdit">
12
  <h2 style="margin-bottom: 10px;"><?php echo $this->header; ?></h2>
13
  <a class="button-secondary" href="admin.php?page=wpProQuiz&module=question&action=show&quiz_id=<?php echo $this->question->getQuizId(); ?>"><?php _e('back to overview', 'wp-pro-quiz'); ?></a>
@@ -19,16 +14,35 @@ jQuery(document).ready(function($) {
19
  <p class="description">
20
  <?php _e('The title is used for overview, it is not visible in quiz. If you leave the title field empty, a title will be generated.', 'wp-pro-quiz'); ?>
21
  </p>
22
- <input name="title" class="regular-text" value="<?php echo $this->question->getTitle(); ?>">
23
  </div>
24
  </div>
25
  <div class="postbox">
26
  <h3 class="hndle"><?php _e('Points', 'wp-pro-quiz'); ?> <?php _e('(required)', 'wp-pro-quiz'); ?></h3>
27
  <div class="inside">
28
- <p class="description">
29
- <?php _e('Points for this question (Standard is 1 point)', 'wp-pro-quiz'); ?>
30
- </p>
31
- <input name="points" class="small-text" value="<?php echo $this->question->getPoints(); ?>"> <?php _e('Points', 'wp-pro-quiz'); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  </div>
33
  </div>
34
  <div class="postbox">
@@ -231,8 +245,10 @@ jQuery(document).ready(function($) {
231
  <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; display:none; background-color: whiteSmoke;">
232
  <table style="width: 100%; margin-bottom: 10px;">
233
  <thead>
234
- <td><?php _e('Criterion', 'wp-pro-quiz'); ?></td>
235
- <td><?php _e('Sort elements', 'wp-pro-quiz'); ?></td>
 
 
236
  </thead>
237
  <tbody>
238
  <tr>
@@ -269,8 +285,10 @@ jQuery(document).ready(function($) {
269
  <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; background-color: whiteSmoke;">
270
  <table style="width: 100%; margin-bottom: 10px;">
271
  <thead>
272
- <td><?php _e('Criterion', 'wp-pro-quiz'); ?></td>
273
- <td><?php _e('Sort elements', 'wp-pro-quiz'); ?></td>
 
 
274
  </thead>
275
  <tbody>
276
  <tr>
@@ -304,8 +322,10 @@ jQuery(document).ready(function($) {
304
  <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; background-color: whiteSmoke;">
305
  <table style="width: 100%; margin-bottom: 10px;">
306
  <thead>
307
- <th><?php _e('Criterion', 'wp-pro-quiz'); ?></th>
308
- <th><?php _e('Sort elements', 'wp-pro-quiz'); ?></th>
 
 
309
  </thead>
310
  <tbody>
311
  <tr>
3
 
4
  public function show() {
5
  ?>
 
 
 
 
 
6
  <div class="wrap wpProQuiz_questionEdit">
7
  <h2 style="margin-bottom: 10px;"><?php echo $this->header; ?></h2>
8
  <a class="button-secondary" href="admin.php?page=wpProQuiz&module=question&action=show&quiz_id=<?php echo $this->question->getQuizId(); ?>"><?php _e('back to overview', 'wp-pro-quiz'); ?></a>
14
  <p class="description">
15
  <?php _e('The title is used for overview, it is not visible in quiz. If you leave the title field empty, a title will be generated.', 'wp-pro-quiz'); ?>
16
  </p>
17
+ <input name="title" class="regular-text" value="<?php echo $this->question->getTitle(); ?>" type="text">
18
  </div>
19
  </div>
20
  <div class="postbox">
21
  <h3 class="hndle"><?php _e('Points', 'wp-pro-quiz'); ?> <?php _e('(required)', 'wp-pro-quiz'); ?></h3>
22
  <div class="inside">
23
+ <div>
24
+ <p class="description">
25
+ <?php _e('Points for this question (Standard is 1 point)', 'wp-pro-quiz'); ?>
26
+ </p>
27
+ <label>
28
+ <input name="points" class="small-text" value="<?php echo $this->question->getPoints(); ?>" type="text"> <?php _e('Points', 'wp-pro-quiz'); ?>
29
+ </label>
30
+ </div>
31
+ <div style="margin-top: 10px;">
32
+ <label>
33
+ <input name="pointsPerAnswer" value="1" type="checkbox" <?php echo $this->question->isPointsPerAnswer() ? 'checked="checked"' : '' ?>>
34
+ <?php _e('Points per correct answer', 'wp-pro-quiz'); ?>
35
+ </label>
36
+ <p class="description">
37
+ <?php _e('If you enable this option, for every correct answer user will receive X points. Otherwise he will receive points only if the question was solved completely.', 'wp-pro-quiz'); ?>
38
+ </p>
39
+ </div>
40
+ <div style="margin-top: 10px; display: none;" id="wpProQuiz_showPointsBox">
41
+ <label>
42
+ <input name="showPointsInBox" value="1" type="checkbox" <?php echo $this->question->isShowPointsInBox() ? 'checked="checked"' : '' ?>>
43
+ <?php _e('Show reached points in the correct- and incorrect message?', 'wp-pro-quiz'); ?>
44
+ </label>
45
+ </div>
46
  </div>
47
  </div>
48
  <div class="postbox">
245
  <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; display:none; background-color: whiteSmoke;">
246
  <table style="width: 100%; margin-bottom: 10px;">
247
  <thead>
248
+ <tr>
249
+ <td><?php _e('Criterion', 'wp-pro-quiz'); ?></td>
250
+ <td><?php _e('Sort elements', 'wp-pro-quiz'); ?></td>
251
+ </tr>
252
  </thead>
253
  <tbody>
254
  <tr>
285
  <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; background-color: whiteSmoke;">
286
  <table style="width: 100%; margin-bottom: 10px;">
287
  <thead>
288
+ <tr>
289
+ <td><?php _e('Criterion', 'wp-pro-quiz'); ?></td>
290
+ <td><?php _e('Sort elements', 'wp-pro-quiz'); ?></td>
291
+ </tr>
292
  </thead>
293
  <tbody>
294
  <tr>
322
  <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; background-color: whiteSmoke;">
323
  <table style="width: 100%; margin-bottom: 10px;">
324
  <thead>
325
+ <tr>
326
+ <th><?php _e('Criterion', 'wp-pro-quiz'); ?></th>
327
+ <th><?php _e('Sort elements', 'wp-pro-quiz'); ?></th>
328
+ </tr>
329
  </thead>
330
  <tbody>
331
  <tr>
lib/view/WpProQuiz_View_QuestionOverall.php CHANGED
@@ -15,36 +15,59 @@ class WpProQuiz_View_QuestionOverall extends WpProQuiz_View_View {
15
  <div class="wrap wpProQuiz_questionOverall">
16
  <h2>Quiz: <?php echo $this->quiz->getName(); ?></h2>
17
  <div id="sortMsg" class="updated" style="display: none;"><p><strong><?php _e('Questions sorted', 'wp-pro-quiz'); ?></strong></p></div>
18
- <p><a class="button-secondary" href="admin.php?page=wpProQuiz"><?php _e('back to overview', 'wp-pro-quiz'); ?></a></p>
 
 
 
 
 
19
  <table class="wp-list-table widefat">
20
  <thead>
21
  <tr>
22
- <th style="width: 50px;"></th>
23
  <th scope="col"><?php _e('Name', 'wp-pro-quiz'); ?></th>
24
- <th><?php _e('Action', 'wp-pro-quiz'); ?></th>
 
25
  </tr>
26
  </thead>
27
  <tbody>
28
  <?php
29
  $index = 1;
 
30
  foreach ($this->question as $question) {
 
31
  ?>
32
  <tr id="wpProQuiz_questionId_<?php echo $question->getId(); ?>">
33
  <th><?php echo $index++; ?></th>
34
  <th><?php echo $question->getTitle(); ?></th>
 
35
  <th>
36
- <a class="button-secondary" href="admin.php?page=wpProQuiz&module=question&action=edit&quiz_id=<?php echo $this->quiz->getId(); ?>&id=<?php echo $question->getId(); ?>"><?php _e('Edit', 'wp-pro-quiz'); ?></a>
 
 
37
  <a class="button-secondary wpProQuiz_delete" href="admin.php?page=wpProQuiz&module=question&action=delete&quiz_id=<?php echo $this->quiz->getId(); ?>&id=<?php echo $question->getId(); ?>"><?php _e('Delete', 'wp-pro-quiz'); ?></a>
 
38
  <a class="button-secondary wpProQuiz_move" href="#" style="cursor:move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
 
39
  </th>
40
  </tr>
41
  <?php } ?>
42
  </tbody>
 
 
 
 
 
 
 
 
43
  </table>
44
  <p>
 
45
  <a class="button-secondary" href="admin.php?page=wpProQuiz&module=question&action=add&quiz_id=<?php echo $this->quiz->getId(); ?>"><?php _e('Add question', 'wp-pro-quiz'); ?></a>
46
  <a class="button-secondary" href="#" id="wpProQuiz_saveSort"><?php _e('Save order', 'wp-pro-quiz'); ?></a>
47
  <a class="button-secondary" href="#" id="wpProQuiz_questionCopy"><?php _e('Copy questions from another Quiz', 'wp-pro-quiz'); ?></a>
 
48
  </p>
49
  <div class="wpProQuiz_questionCopy">
50
  <form action="admin.php?page=wpProQuiz&module=question&quiz_id=<?php echo $this->quiz->getId(); ?>&action=copy_question" method="POST">
15
  <div class="wrap wpProQuiz_questionOverall">
16
  <h2>Quiz: <?php echo $this->quiz->getName(); ?></h2>
17
  <div id="sortMsg" class="updated" style="display: none;"><p><strong><?php _e('Questions sorted', 'wp-pro-quiz'); ?></strong></p></div>
18
+ <p>
19
+ <a class="button-secondary" href="admin.php?page=wpProQuiz"><?php _e('back to overview', 'wp-pro-quiz'); ?></a>
20
+ <?php if(current_user_can('wpProQuiz_edit_quiz')) { ?>
21
+ <a class="button-secondary" href="admin.php?page=wpProQuiz&action=edit&id=<?php echo $this->quiz->getId(); ?>"><?php _e('Edit quiz', 'wp-pro-quiz'); ?></a>
22
+ <?php } ?>
23
+ </p>
24
  <table class="wp-list-table widefat">
25
  <thead>
26
  <tr>
27
+ <th scope="col" style="width: 50px;"></th>
28
  <th scope="col"><?php _e('Name', 'wp-pro-quiz'); ?></th>
29
+ <th scope="col"><?php _e('Points', 'wp-pro-quiz'); ?></th>
30
+ <th scope="col"><?php _e('Action', 'wp-pro-quiz'); ?></th>
31
  </tr>
32
  </thead>
33
  <tbody>
34
  <?php
35
  $index = 1;
36
+ $points = 0;
37
  foreach ($this->question as $question) {
38
+ $points += $question->getPoints();
39
  ?>
40
  <tr id="wpProQuiz_questionId_<?php echo $question->getId(); ?>">
41
  <th><?php echo $index++; ?></th>
42
  <th><?php echo $question->getTitle(); ?></th>
43
+ <th><?php echo $question->getPoints(); ?></th>
44
  <th>
45
+ <?php if(current_user_can('wpProQuiz_edit_quiz')) { ?>
46
+ <a class="button-secondary" href="admin.php?page=wpProQuiz&module=question&action=edit&quiz_id=<?php echo $this->quiz->getId(); ?>&id=<?php echo $question->getId(); ?>"><?php _e('Edit', 'wp-pro-quiz'); ?></a>
47
+ <?php } if(current_user_can('wpProQuiz_delete_quiz')) { ?>
48
  <a class="button-secondary wpProQuiz_delete" href="admin.php?page=wpProQuiz&module=question&action=delete&quiz_id=<?php echo $this->quiz->getId(); ?>&id=<?php echo $question->getId(); ?>"><?php _e('Delete', 'wp-pro-quiz'); ?></a>
49
+ <?php } if(current_user_can('wpProQuiz_edit_quiz')) { ?>
50
  <a class="button-secondary wpProQuiz_move" href="#" style="cursor:move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
51
+ <?php } ?>
52
  </th>
53
  </tr>
54
  <?php } ?>
55
  </tbody>
56
+ <tfoot>
57
+ <tr>
58
+ <th></th>
59
+ <th style="font-weight: bold;"><?php _e('Total', 'wp-pro-quiz'); ?></th>
60
+ <th style="font-weight: bold;"><?php echo $points; ?></th>
61
+ <th></th>
62
+ </tr>
63
+ </tfoot>
64
  </table>
65
  <p>
66
+ <?php if(current_user_can('wpProQuiz_edit_quiz')) { ?>
67
  <a class="button-secondary" href="admin.php?page=wpProQuiz&module=question&action=add&quiz_id=<?php echo $this->quiz->getId(); ?>"><?php _e('Add question', 'wp-pro-quiz'); ?></a>
68
  <a class="button-secondary" href="#" id="wpProQuiz_saveSort"><?php _e('Save order', 'wp-pro-quiz'); ?></a>
69
  <a class="button-secondary" href="#" id="wpProQuiz_questionCopy"><?php _e('Copy questions from another Quiz', 'wp-pro-quiz'); ?></a>
70
+ <?php } ?>
71
  </p>
72
  <div class="wpProQuiz_questionCopy">
73
  <form action="admin.php?page=wpProQuiz&module=question&quiz_id=<?php echo $this->quiz->getId(); ?>&action=copy_question" method="POST">
lib/view/WpProQuiz_View_QuizEdit.php CHANGED
@@ -164,7 +164,7 @@ class WpProQuiz_View_QuizEdit extends WpProQuiz_View_View {
164
  <div class="wpProQuiz_demoBox">
165
  <a href="#"><?php _e('Demo', 'wp-pro-quiz'); ?></a>
166
  <div style="z-index: 9999999; position: absolute; background-color: #E9E9E9; padding: 10px; box-shadow: 0px 0px 10px 4px rgb(44, 44, 44); display: none; ">
167
- <img alt="" src="<?php echo WpProQuiz_Controller_Admin::getPluginUrl().'/img/numbering.png'; ?> ">
168
  </div>
169
  </div>
170
  </fieldset>
@@ -189,7 +189,7 @@ class WpProQuiz_View_QuizEdit extends WpProQuiz_View_View {
189
  <div class="wpProQuiz_demoBox">
190
  <a href="#"><?php _e('Demo', 'wp-pro-quiz'); ?></a>
191
  <div style="z-index: 9999999; position: absolute; background-color: #E9E9E9; padding: 10px; box-shadow: 0px 0px 10px 4px rgb(44, 44, 44); display: none; ">
192
- <img alt="" src="<?php echo WpProQuiz_Controller_Admin::getPluginUrl().'/img/singlePage.png'; ?> ">
193
  </div>
194
  </div>
195
  </fieldset>
@@ -214,7 +214,7 @@ class WpProQuiz_View_QuizEdit extends WpProQuiz_View_View {
214
  <div class="wpProQuiz_demoBox">
215
  <a href="#"><?php _e('Demo', 'wp-pro-quiz'); ?></a>
216
  <div style="z-index: 9999999; position: absolute; background-color: #E9E9E9; padding: 10px; box-shadow: 0px 0px 10px 4px rgb(44, 44, 44); display: none; ">
217
- <img alt="" src="<?php echo WpProQuiz_Controller_Admin::getPluginUrl().'/img/checkCcontinue.png'; ?> ">
218
  </div>
219
  </div>
220
  </fieldset>
@@ -239,7 +239,7 @@ class WpProQuiz_View_QuizEdit extends WpProQuiz_View_View {
239
  <div class="wpProQuiz_demoBox">
240
  <a href="#"><?php _e('Demo', 'wp-pro-quiz'); ?></a>
241
  <div style="z-index: 9999999; position: absolute; background-color: #E9E9E9; padding: 10px; box-shadow: 0px 0px 10px 4px rgb(44, 44, 44); display: none; ">
242
- <img alt="" src="<?php echo WpProQuiz_Controller_Admin::getPluginUrl().'/img/backButton.png'; ?> ">
243
  </div>
244
  </div>
245
  </fieldset>
164
  <div class="wpProQuiz_demoBox">
165
  <a href="#"><?php _e('Demo', 'wp-pro-quiz'); ?></a>
166
  <div style="z-index: 9999999; position: absolute; background-color: #E9E9E9; padding: 10px; box-shadow: 0px 0px 10px 4px rgb(44, 44, 44); display: none; ">
167
+ <img alt="" src="<?php echo WPPROQUIZ_URL.'/img/numbering.png'; ?> ">
168
  </div>
169
  </div>
170
  </fieldset>
189
  <div class="wpProQuiz_demoBox">
190
  <a href="#"><?php _e('Demo', 'wp-pro-quiz'); ?></a>
191
  <div style="z-index: 9999999; position: absolute; background-color: #E9E9E9; padding: 10px; box-shadow: 0px 0px 10px 4px rgb(44, 44, 44); display: none; ">
192
+ <img alt="" src="<?php echo WPPROQUIZ_URL.'/img/singlePage.png'; ?> ">
193
  </div>
194
  </div>
195
  </fieldset>
214
  <div class="wpProQuiz_demoBox">
215
  <a href="#"><?php _e('Demo', 'wp-pro-quiz'); ?></a>
216
  <div style="z-index: 9999999; position: absolute; background-color: #E9E9E9; padding: 10px; box-shadow: 0px 0px 10px 4px rgb(44, 44, 44); display: none; ">
217
+ <img alt="" src="<?php echo WPPROQUIZ_URL.'/img/checkCcontinue.png'; ?> ">
218
  </div>
219
  </div>
220
  </fieldset>
239
  <div class="wpProQuiz_demoBox">
240
  <a href="#"><?php _e('Demo', 'wp-pro-quiz'); ?></a>
241
  <div style="z-index: 9999999; position: absolute; background-color: #E9E9E9; padding: 10px; box-shadow: 0px 0px 10px 4px rgb(44, 44, 44); display: none; ">
242
+ <img alt="" src="<?php echo WPPROQUIZ_URL.'/img/backButton.png'; ?> ">
243
  </div>
244
  </div>
245
  </fieldset>
lib/view/WpProQuiz_View_QuizOverall.php CHANGED
@@ -44,7 +44,9 @@ class WpProQuiz_View_QuizOverall extends WpProQuiz_View_View {
44
  </div>
45
  <div style="margin: 8px 0px;">
46
  <a class="button-primary" style="font-weight: bold; display: none;" href="admin.php?page=wpProQuiz&module=styleManager"><?php _e('Style Manager', 'wp-pro-quiz'); ?></a>
 
47
  <a class="button-primary" style="font-weight: bold;" href="admin.php?page=wpProQuiz&module=globalSettings"><?php _e('Settings in case of problems', 'wp-pro-quiz'); ?></a>
 
48
  </div>
49
  <table class="wp-list-table widefat">
50
  <thead>
@@ -67,19 +69,29 @@ class WpProQuiz_View_QuizOverall extends WpProQuiz_View_View {
67
  <th class="wpProQuiz_quizName"><?php echo $quiz->getName(); ?></th>
68
  <th>
69
  <a class="button-secondary" href="admin.php?page=wpProQuiz&module=question&quiz_id=<?php echo $quiz->getId(); ?>"><?php _e('Questions', 'wp-pro-quiz'); ?></a>
 
 
70
  <a class="button-secondary" href="admin.php?page=wpProQuiz&action=edit&id=<?php echo $quiz->getId(); ?>"><?php _e('Edit', 'wp-pro-quiz'); ?></a>
 
71
  <a class="button-secondary wpProQuiz_delete" href="admin.php?page=wpProQuiz&action=delete&id=<?php echo $quiz->getId(); ?>"><?php _e('Delete', 'wp-pro-quiz'); ?></a>
 
72
  <a class="button-secondary wpProQuiz_prview" href="admin.php?page=wpProQuiz&module=preview&id=<?php echo $quiz->getId(); ?>"><?php _e('Preview', 'wp-pro-quiz'); ?></a>
 
73
  <a class="button-secondary" href="admin.php?page=wpProQuiz&module=statistics&id=<?php echo $quiz->getId(); ?>"><?php _e('Statistics', 'wp-pro-quiz'); ?></a>
 
74
  </th>
75
  </tr>
76
  <?php } ?>
77
  </tbody>
78
  </table>
79
  <p>
 
80
  <a class="button-secondary" href="admin.php?page=wpProQuiz&action=add"><?php echo __('Add quiz', 'wp-pro-quiz'); ?></a>
 
81
  <a class="button-secondary wpProQuiz_import" href="#"><?php echo __('Import', 'wp-pro-quiz'); ?></a>
 
82
  <a class="button-secondary wpProQuiz_export" href="#"><?php echo __('Export', 'wp-pro-quiz'); ?></a>
 
83
  </p>
84
  <div class="wpProQuiz_exportList">
85
  <form action="admin.php?page=wpProQuiz&module=importExport&action=export&noheader=true" method="POST">
44
  </div>
45
  <div style="margin: 8px 0px;">
46
  <a class="button-primary" style="font-weight: bold; display: none;" href="admin.php?page=wpProQuiz&module=styleManager"><?php _e('Style Manager', 'wp-pro-quiz'); ?></a>
47
+ <?php if(current_user_can('wpProQuiz_change_settings')) { ?>
48
  <a class="button-primary" style="font-weight: bold;" href="admin.php?page=wpProQuiz&module=globalSettings"><?php _e('Settings in case of problems', 'wp-pro-quiz'); ?></a>
49
+ <?php } ?>
50
  </div>
51
  <table class="wp-list-table widefat">
52
  <thead>
69
  <th class="wpProQuiz_quizName"><?php echo $quiz->getName(); ?></th>
70
  <th>
71
  <a class="button-secondary" href="admin.php?page=wpProQuiz&module=question&quiz_id=<?php echo $quiz->getId(); ?>"><?php _e('Questions', 'wp-pro-quiz'); ?></a>
72
+
73
+ <?php if(current_user_can('wpProQuiz_edit_quiz')) { ?>
74
  <a class="button-secondary" href="admin.php?page=wpProQuiz&action=edit&id=<?php echo $quiz->getId(); ?>"><?php _e('Edit', 'wp-pro-quiz'); ?></a>
75
+ <?php } if(current_user_can('wpProQuiz_delete_quiz')) { ?>
76
  <a class="button-secondary wpProQuiz_delete" href="admin.php?page=wpProQuiz&action=delete&id=<?php echo $quiz->getId(); ?>"><?php _e('Delete', 'wp-pro-quiz'); ?></a>
77
+ <?php } ?>
78
  <a class="button-secondary wpProQuiz_prview" href="admin.php?page=wpProQuiz&module=preview&id=<?php echo $quiz->getId(); ?>"><?php _e('Preview', 'wp-pro-quiz'); ?></a>
79
+ <?php if(current_user_can('wpProQuiz_show_statistics')) { ?>
80
  <a class="button-secondary" href="admin.php?page=wpProQuiz&module=statistics&id=<?php echo $quiz->getId(); ?>"><?php _e('Statistics', 'wp-pro-quiz'); ?></a>
81
+ <?php } ?>
82
  </th>
83
  </tr>
84
  <?php } ?>
85
  </tbody>
86
  </table>
87
  <p>
88
+ <?php if(current_user_can('wpProQuiz_add_quiz')) { ?>
89
  <a class="button-secondary" href="admin.php?page=wpProQuiz&action=add"><?php echo __('Add quiz', 'wp-pro-quiz'); ?></a>
90
+ <?php } if(current_user_can('wpProQuiz_import')) { ?>
91
  <a class="button-secondary wpProQuiz_import" href="#"><?php echo __('Import', 'wp-pro-quiz'); ?></a>
92
+ <?php } if(current_user_can('wpProQuiz_export')) { ?>
93
  <a class="button-secondary wpProQuiz_export" href="#"><?php echo __('Export', 'wp-pro-quiz'); ?></a>
94
+ <?php } ?>
95
  </p>
96
  <div class="wpProQuiz_exportList">
97
  <form action="admin.php?page=wpProQuiz&module=importExport&action=export&noheader=true" method="POST">
lib/view/WpProQuiz_View_Statistics.php CHANGED
@@ -25,8 +25,8 @@ class WpProQuiz_View_Statistics extends WpProQuiz_View_View {
25
 
26
  <div style="padding: 10px 0px;">
27
  <a class="button-primary wpProQuiz_tab" id="wpProQuiz_typeAnonymeUser" href="#"><?php _e('Anonymous users', 'wp-pro-quiz'); ?></a>
28
- <a class="button-secondary wpProQuiz_tab" id="wpProQuiz_typeRegisteredUser" href="#"><?php _e('Registered useres', 'wp-pro-quiz'); ?></a>
29
- <a class="button-secondary wpProQuiz_tab" id="wpProQuiz_typeOverview" style="display: none;" href="#"><?php _e('Overview', 'wp-pro-quiz'); ?></a>
30
  </div>
31
 
32
  <div class="wpProQuiz_blueBox" id="wpProQuiz_userBox" style="margin-bottom: 20px; display: none;">
@@ -34,7 +34,7 @@ class WpProQuiz_View_Statistics extends WpProQuiz_View_View {
34
  <?php _e('Please select user name:', 'wp-pro-quiz'); ?>
35
  <select name="userSelect" id="userSelect">
36
  <?php foreach($this->users as $user) {
37
- echo '<option value="', $user->ID, '">', $user->user_nicename, ' (', $user->display_name, ')</option>';
38
  } ?>
39
  </select>
40
  </span>
@@ -42,7 +42,7 @@ class WpProQuiz_View_Statistics extends WpProQuiz_View_View {
42
 
43
  <div id="wpProQuiz_loadData" class="wpProQuiz_blueBox" style="background-color: #F8F5A8;">
44
  <img alt="load" src="data:image/gif;base64,R0lGODlhEAAQAPYAAP///wAAANTU1JSUlGBgYEBAQERERG5ubqKiotzc3KSkpCQkJCgoKDAwMDY2Nj4+Pmpqarq6uhwcHHJycuzs7O7u7sLCwoqKilBQUF5eXr6+vtDQ0Do6OhYWFoyMjKqqqlxcXHx8fOLi4oaGhg4ODmhoaJycnGZmZra2tkZGRgoKCrCwsJaWlhgYGAYGBujo6PT09Hh4eISEhPb29oKCgqioqPr6+vz8/MDAwMrKyvj4+NbW1q6urvDw8NLS0uTk5N7e3s7OzsbGxry8vODg4NjY2PLy8tra2np6erS0tLKyskxMTFJSUlpaWmJiYkJCQjw8PMTExHZ2djIyMurq6ioqKo6OjlhYWCwsLB4eHqCgoE5OThISEoiIiGRkZDQ0NMjIyMzMzObm5ri4uH5+fpKSkp6enlZWVpCQkEpKSkhISCIiIqamphAQEAwMDKysrAQEBJqamiYmJhQUFDg4OHR0dC4uLggICHBwcCAgIFRUVGxsbICAgAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAAHjYAAgoOEhYUbIykthoUIHCQqLoI2OjeFCgsdJSsvgjcwPTaDAgYSHoY2FBSWAAMLE4wAPT89ggQMEbEzQD+CBQ0UsQA7RYIGDhWxN0E+ggcPFrEUQjuCCAYXsT5DRIIJEBgfhjsrFkaDERkgJhswMwk4CDzdhBohJwcxNB4sPAmMIlCwkOGhRo5gwhIGAgAh+QQJCgAAACwAAAAAEAAQAAAHjIAAgoOEhYU7A1dYDFtdG4YAPBhVC1ktXCRfJoVKT1NIERRUSl4qXIRHBFCbhTKFCgYjkII3g0hLUbMAOjaCBEw9ukZGgidNxLMUFYIXTkGzOmLLAEkQCLNUQMEAPxdSGoYvAkS9gjkyNEkJOjovRWAb04NBJlYsWh9KQ2FUkFQ5SWqsEJIAhq6DAAIBACH5BAkKAAAALAAAAAAQABAAAAeJgACCg4SFhQkKE2kGXiwChgBDB0sGDw4NDGpshTheZ2hRFRVDUmsMCIMiZE48hmgtUBuCYxBmkAAQbV2CLBM+t0puaoIySDC3VC4tgh40M7eFNRdH0IRgZUO3NjqDFB9mv4U6Pc+DRzUfQVQ3NzAULxU2hUBDKENCQTtAL9yGRgkbcvggEq9atUAAIfkECQoAAAAsAAAAABAAEAAAB4+AAIKDhIWFPygeEE4hbEeGADkXBycZZ1tqTkqFQSNIbBtGPUJdD088g1QmMjiGZl9MO4I5ViiQAEgMA4JKLAm3EWtXgmxmOrcUElWCb2zHkFQdcoIWPGK3Sm1LgkcoPrdOKiOCRmA4IpBwDUGDL2A5IjCCN/QAcYUURQIJIlQ9MzZu6aAgRgwFGAFvKRwUCAAh+QQJCgAAACwAAAAAEAAQAAAHjIAAgoOEhYUUYW9lHiYRP4YACStxZRc0SBMyFoVEPAoWQDMzAgolEBqDRjg8O4ZKIBNAgkBjG5AAZVtsgj44VLdCanWCYUI3txUPS7xBx5AVDgazAjC3Q3ZeghUJv5B1cgOCNmI/1YUeWSkCgzNUFDODKydzCwqFNkYwOoIubnQIt244MzDC1q2DggIBACH5BAkKAAAALAAAAAAQABAAAAeJgACCg4SFhTBAOSgrEUEUhgBUQThjSh8IcQo+hRUbYEdUNjoiGlZWQYM2QD4vhkI0ZWKCPQmtkG9SEYJURDOQAD4HaLuyv0ZeB4IVj8ZNJ4IwRje/QkxkgjYz05BdamyDN9uFJg9OR4YEK1RUYzFTT0qGdnduXC1Zchg8kEEjaQsMzpTZ8avgoEAAIfkECQoAAAAsAAAAABAAEAAAB4iAAIKDhIWFNz0/Oz47IjCGADpURAkCQUI4USKFNhUvFTMANxU7KElAhDA9OoZHH0oVgjczrJBRZkGyNpCCRCw8vIUzHmXBhDM0HoIGLsCQAjEmgjIqXrxaBxGCGw5cF4Y8TnybglprLXhjFBUWVnpeOIUIT3lydg4PantDz2UZDwYOIEhgzFggACH5BAkKAAAALAAAAAAQABAAAAeLgACCg4SFhjc6RhUVRjaGgzYzRhRiREQ9hSaGOhRFOxSDQQ0uj1RBPjOCIypOjwAJFkSCSyQrrhRDOYILXFSuNkpjggwtvo86H7YAZ1korkRaEYJlC3WuESxBggJLWHGGFhcIxgBvUHQyUT1GQWwhFxuFKyBPakxNXgceYY9HCDEZTlxA8cOVwUGBAAA7AAAAAAAAAAAA">
45
- <?php echo __('Loading', 'wp-pro-quiz'); ?>
46
  </div>
47
 
48
  <div id="wpProQuiz_statistics_content" style="display: none;">
@@ -55,6 +55,7 @@ class WpProQuiz_View_Statistics extends WpProQuiz_View_View {
55
  <th scope="col" style="width: 100px;"><?php _e('Correct', 'wp-pro-quiz'); ?></th>
56
  <th scope="col" style="width: 100px;"><?php _e('Incorrect', 'wp-pro-quiz'); ?></th>
57
  <th scope="col" style="width: 100px;"><?php _e('Hints used', 'wp-pro-quiz'); ?></th>
 
58
  <th scope="col" style="width: 60px;"><?php _e('Results', 'wp-pro-quiz'); ?></th>
59
  </tr>
60
  </thead>
@@ -72,7 +73,8 @@ class WpProQuiz_View_Statistics extends WpProQuiz_View_View {
72
  <th class="wpProQuiz_cCorrect" style="color: green;"></th>
73
  <th class="wpProQuiz_cIncorrect" style="color: red;"></th>
74
  <th class="wpProQuiz_cTip"></th>
75
- <th></th>
 
76
  </tr>
77
  <?php } ?>
78
  </tbody>
@@ -84,6 +86,7 @@ class WpProQuiz_View_Statistics extends WpProQuiz_View_View {
84
  <th class="wpProQuiz_cCorrect" style="color: green;"></th>
85
  <th class="wpProQuiz_cIncorrect" style="color: red;"></th>
86
  <th class="wpProQuiz_cTip"></th>
 
87
  <th class="wpProQuiz_cResult" style="font-weight: bold;"></th>
88
  </tr>
89
  </tfoot>
@@ -91,15 +94,89 @@ class WpProQuiz_View_Statistics extends WpProQuiz_View_View {
91
 
92
  <div style="margin-top: 10px;">
93
  <div style="float: left;">
 
94
  <a class="button-secondary" href="#" id="wpProQuiz_reset"><?php _e('Reset statistics', 'wp-pro-quiz'); ?></a>
95
- <a class="button-secondary" href="#" id="wpProQuiz_update"><?php _e('Refresh', 'wp-pro-quiz'); ?></a>
 
96
  </div>
97
  <div style="float: right;">
98
- <a class="button-secondary" href="#" id="wpProQuiz_resetComplete"><?php _e('Reset entire statistic', 'wp-pro-quiz'); ?></a>
 
 
99
  </div>
100
  <div style="clear: both;"></div>
101
  </div>
102
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  </div>
104
 
105
  <?php
25
 
26
  <div style="padding: 10px 0px;">
27
  <a class="button-primary wpProQuiz_tab" id="wpProQuiz_typeAnonymeUser" href="#"><?php _e('Anonymous users', 'wp-pro-quiz'); ?></a>
28
+ <a class="button-secondary wpProQuiz_tab" id="wpProQuiz_typeRegisteredUser" href="#"><?php _e('Registered users', 'wp-pro-quiz'); ?></a>
29
+ <a class="button-secondary wpProQuiz_tab" id="wpProQuiz_typeOverview" href="#"><?php _e('Overview', 'wp-pro-quiz'); ?></a>
30
  </div>
31
 
32
  <div class="wpProQuiz_blueBox" id="wpProQuiz_userBox" style="margin-bottom: 20px; display: none;">
34
  <?php _e('Please select user name:', 'wp-pro-quiz'); ?>
35
  <select name="userSelect" id="userSelect">
36
  <?php foreach($this->users as $user) {
37
+ echo '<option value="', $user->ID, '">', $user->user_login, ' (', $user->display_name, ')</option>';
38
  } ?>
39
  </select>
40
  </span>
42
 
43
  <div id="wpProQuiz_loadData" class="wpProQuiz_blueBox" style="background-color: #F8F5A8;">
44
  <img alt="load" src="data:image/gif;base64,R0lGODlhEAAQAPYAAP///wAAANTU1JSUlGBgYEBAQERERG5ubqKiotzc3KSkpCQkJCgoKDAwMDY2Nj4+Pmpqarq6uhwcHHJycuzs7O7u7sLCwoqKilBQUF5eXr6+vtDQ0Do6OhYWFoyMjKqqqlxcXHx8fOLi4oaGhg4ODmhoaJycnGZmZra2tkZGRgoKCrCwsJaWlhgYGAYGBujo6PT09Hh4eISEhPb29oKCgqioqPr6+vz8/MDAwMrKyvj4+NbW1q6urvDw8NLS0uTk5N7e3s7OzsbGxry8vODg4NjY2PLy8tra2np6erS0tLKyskxMTFJSUlpaWmJiYkJCQjw8PMTExHZ2djIyMurq6ioqKo6OjlhYWCwsLB4eHqCgoE5OThISEoiIiGRkZDQ0NMjIyMzMzObm5ri4uH5+fpKSkp6enlZWVpCQkEpKSkhISCIiIqamphAQEAwMDKysrAQEBJqamiYmJhQUFDg4OHR0dC4uLggICHBwcCAgIFRUVGxsbICAgAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAAHjYAAgoOEhYUbIykthoUIHCQqLoI2OjeFCgsdJSsvgjcwPTaDAgYSHoY2FBSWAAMLE4wAPT89ggQMEbEzQD+CBQ0UsQA7RYIGDhWxN0E+ggcPFrEUQjuCCAYXsT5DRIIJEBgfhjsrFkaDERkgJhswMwk4CDzdhBohJwcxNB4sPAmMIlCwkOGhRo5gwhIGAgAh+QQJCgAAACwAAAAAEAAQAAAHjIAAgoOEhYU7A1dYDFtdG4YAPBhVC1ktXCRfJoVKT1NIERRUSl4qXIRHBFCbhTKFCgYjkII3g0hLUbMAOjaCBEw9ukZGgidNxLMUFYIXTkGzOmLLAEkQCLNUQMEAPxdSGoYvAkS9gjkyNEkJOjovRWAb04NBJlYsWh9KQ2FUkFQ5SWqsEJIAhq6DAAIBACH5BAkKAAAALAAAAAAQABAAAAeJgACCg4SFhQkKE2kGXiwChgBDB0sGDw4NDGpshTheZ2hRFRVDUmsMCIMiZE48hmgtUBuCYxBmkAAQbV2CLBM+t0puaoIySDC3VC4tgh40M7eFNRdH0IRgZUO3NjqDFB9mv4U6Pc+DRzUfQVQ3NzAULxU2hUBDKENCQTtAL9yGRgkbcvggEq9atUAAIfkECQoAAAAsAAAAABAAEAAAB4+AAIKDhIWFPygeEE4hbEeGADkXBycZZ1tqTkqFQSNIbBtGPUJdD088g1QmMjiGZl9MO4I5ViiQAEgMA4JKLAm3EWtXgmxmOrcUElWCb2zHkFQdcoIWPGK3Sm1LgkcoPrdOKiOCRmA4IpBwDUGDL2A5IjCCN/QAcYUURQIJIlQ9MzZu6aAgRgwFGAFvKRwUCAAh+QQJCgAAACwAAAAAEAAQAAAHjIAAgoOEhYUUYW9lHiYRP4YACStxZRc0SBMyFoVEPAoWQDMzAgolEBqDRjg8O4ZKIBNAgkBjG5AAZVtsgj44VLdCanWCYUI3txUPS7xBx5AVDgazAjC3Q3ZeghUJv5B1cgOCNmI/1YUeWSkCgzNUFDODKydzCwqFNkYwOoIubnQIt244MzDC1q2DggIBACH5BAkKAAAALAAAAAAQABAAAAeJgACCg4SFhTBAOSgrEUEUhgBUQThjSh8IcQo+hRUbYEdUNjoiGlZWQYM2QD4vhkI0ZWKCPQmtkG9SEYJURDOQAD4HaLuyv0ZeB4IVj8ZNJ4IwRje/QkxkgjYz05BdamyDN9uFJg9OR4YEK1RUYzFTT0qGdnduXC1Zchg8kEEjaQsMzpTZ8avgoEAAIfkECQoAAAAsAAAAABAAEAAAB4iAAIKDhIWFNz0/Oz47IjCGADpURAkCQUI4USKFNhUvFTMANxU7KElAhDA9OoZHH0oVgjczrJBRZkGyNpCCRCw8vIUzHmXBhDM0HoIGLsCQAjEmgjIqXrxaBxGCGw5cF4Y8TnybglprLXhjFBUWVnpeOIUIT3lydg4PantDz2UZDwYOIEhgzFggACH5BAkKAAAALAAAAAAQABAAAAeLgACCg4SFhjc6RhUVRjaGgzYzRhRiREQ9hSaGOhRFOxSDQQ0uj1RBPjOCIypOjwAJFkSCSyQrrhRDOYILXFSuNkpjggwtvo86H7YAZ1korkRaEYJlC3WuESxBggJLWHGGFhcIxgBvUHQyUT1GQWwhFxuFKyBPakxNXgceYY9HCDEZTlxA8cOVwUGBAAA7AAAAAAAAAAAA">
45
+ <?php _e('Loading', 'wp-pro-quiz'); ?>
46
  </div>
47
 
48
  <div id="wpProQuiz_statistics_content" style="display: none;">
55
  <th scope="col" style="width: 100px;"><?php _e('Correct', 'wp-pro-quiz'); ?></th>
56
  <th scope="col" style="width: 100px;"><?php _e('Incorrect', 'wp-pro-quiz'); ?></th>
57
  <th scope="col" style="width: 100px;"><?php _e('Hints used', 'wp-pro-quiz'); ?></th>
58
+ <th scope="col" style="width: 100px;"><?php _e('Points scored', 'wp-pro-quiz'); ?></th>
59
  <th scope="col" style="width: 60px;"><?php _e('Results', 'wp-pro-quiz'); ?></th>
60
  </tr>
61
  </thead>
73
  <th class="wpProQuiz_cCorrect" style="color: green;"></th>
74
  <th class="wpProQuiz_cIncorrect" style="color: red;"></th>
75
  <th class="wpProQuiz_cTip"></th>
76
+ <th class="wpProQuiz_cCorrectAnswerPoints"></th>
77
+ <th><span style="display: none;" class="wpProQuiz_pointsAnswer"><?php echo $question->getPointsAnswer(); ?></span></th>
78
  </tr>
79
  <?php } ?>
80
  </tbody>
86
  <th class="wpProQuiz_cCorrect" style="color: green;"></th>
87
  <th class="wpProQuiz_cIncorrect" style="color: red;"></th>
88
  <th class="wpProQuiz_cTip"></th>
89
+ <th class="wpProQuiz_cCorrectAnswerPoints"></th>
90
  <th class="wpProQuiz_cResult" style="font-weight: bold;"></th>
91
  </tr>
92
  </tfoot>
94
 
95
  <div style="margin-top: 10px;">
96
  <div style="float: left;">
97
+ <?php if(current_user_can('wpProQuiz_reset_statistics')) { ?>
98
  <a class="button-secondary" href="#" id="wpProQuiz_reset"><?php _e('Reset statistics', 'wp-pro-quiz'); ?></a>
99
+ <?php } ?>
100
+ <a class="button-secondary wpProQuiz_update" href="#"><?php _e('Refresh', 'wp-pro-quiz'); ?></a>
101
  </div>
102
  <div style="float: right;">
103
+ <?php if(current_user_can('wpProQuiz_reset_statistics')) { ?>
104
+ <a class="button-secondary wpProQuiz_resetComplete" href="#"><?php _e('Reset entire statistic', 'wp-pro-quiz'); ?></a>
105
+ <?php } ?>
106
  </div>
107
  <div style="clear: both;"></div>
108
  </div>
109
  </div>
110
+
111
+ <div id="wpProQuiz_statistics_overview">
112
+ <input type="hidden" value="<?php echo $gPoints; ?>" name="gPoints" id="wpProQuiz_gPoints">
113
+ <div id="poststuff">
114
+ <div class="postbox">
115
+ <h3 class="hndle"><?php _e('Filter', 'wp-pro-quiz'); ?></h3>
116
+ <div class="inside">
117
+ <ul>
118
+ <li>
119
+ <label>
120
+ <?php _e('Show only users, who solved the quiz:', 'wp-pro-quiz'); ?>
121
+ <input type="checkbox" value="1" id="wpProQuiz_onlyCompleted">
122
+ </label>
123
+ </li>
124
+ <li>
125
+ <label>
126
+ <?php _e('How many entries should be shown on one page:', 'wp-pro-quiz'); ?>
127
+ <select id="wpProQuiz_pageLimit">
128
+ <option>1</option>
129
+ <option>10</option>
130
+ <option>50</option>
131
+ <option selected="selected">100</option>
132
+ <option>500</option>
133
+ <option>1000</option>
134
+ </select>
135
+ </label>
136
+ </li>
137
+ </ul>
138
+ </div>
139
+ </div>
140
+ </div>
141
+
142
+ <table class="wp-list-table widefat">
143
+ <thead>
144
+ <tr>
145
+ <th scope="col"><?php _e('User', 'wp-pro-quiz'); ?></th>
146
+ <th scope="col" style="width: 100px;"><?php _e('Points', 'wp-pro-quiz'); ?></th>
147
+ <th scope="col" style="width: 100px;"><?php _e('Correct', 'wp-pro-quiz'); ?></th>
148
+ <th scope="col" style="width: 100px;"><?php _e('Incorrect', 'wp-pro-quiz'); ?></th>
149
+ <th scope="col" style="width: 100px;"><?php _e('Hints used', 'wp-pro-quiz'); ?></th>
150
+ <th scope="col" style="width: 60px;"><?php _e('Results', 'wp-pro-quiz'); ?></th>
151
+ </tr>
152
+ </thead>
153
+ <tbody id="wpProQuiz_statistics_overview_data">
154
+ <tr>
155
+ <th><a href="#"></a></th>
156
+ <th class="wpProQuiz_points"></th>
157
+ <th class="wpProQuiz_cCorrect" style="color: green;"></th>
158
+ <th class="wpProQuiz_cIncorrect" style="color: red;"></th>
159
+ <th class="wpProQuiz_cTip"></th>
160
+ <th class="wpProQuiz_cResult" style="font-weight: bold;"></th>
161
+ </tr>
162
+ </tbody>
163
+ </table>
164
+
165
+ <div style="margin-top: 10px;">
166
+ <div style="float: left;">
167
+ <input style="font-weight: bold;" class="button-secondary" value="&lt;" type="button" id="wpProQuiz_pageLeft">
168
+ <select id="wpProQuiz_currentPage"><option value="1">1</option></select>
169
+ <input style="font-weight: bold;" class="button-secondary"value="&gt;" type="button" id="wpProQuiz_pageRight">
170
+ </div>
171
+ <div style="float: right;">
172
+ <a class="button-secondary wpProQuiz_update" href="#"><?php _e('Refresh', 'wp-pro-quiz'); ?></a>
173
+ <?php if(current_user_can('wpProQuiz_reset_statistics')) { ?>
174
+ <a class="button-secondary wpProQuiz_resetComplete" href="#"><?php _e('Reset entire statistic', 'wp-pro-quiz'); ?></a>
175
+ <?php } ?>
176
+ </div>
177
+ <div style="clear: both;"></div>
178
+ </div>
179
+ </div>
180
  </div>
181
 
182
  <?php
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: xeno010
3
  Tags: quiz, test, answer, question, learning
4
  Requires at least: 3.3
5
  Tested up to: 3.5
6
- Stable tag: 0.14
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -38,16 +38,17 @@ A powerful and beautiful quiz plugin for WordPress.
38
 
39
  = Translations =
40
  * English (Thanks Alexander M.)
41
- * German / Deutsch
42
  * Arabic / عربي (Thanks Abuhassan)
 
 
43
 
44
  = Live Demo =
45
  http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "Demo")
46
 
47
- = In case of problems =
48
- If quiz doesn’t work in front-end, please try following:<br>
49
- [raw][WpProQuiz X][/raw]<br><br>
50
- Own themes changes internal order of filters, what causes the problems. With additional shortcode [raw] this is prevented.
51
 
52
  = Support =
53
  * English: http://wordpress.org/support/plugin/wp-pro-quiz
@@ -71,13 +72,6 @@ Own themes changes internal order of filters, what causes the problems. With ad
71
  9. Adminmenu - Create question
72
  10. Adminmenu - Question statistics
73
 
74
- == Frequently Asked Questions ==
75
-
76
- = In case of problems =
77
- If quiz doesn’t work in front-end, please try following:<br>
78
- [raw][WpProQuiz X][/raw]<br><br>
79
- Own themes changes internal order of filters, what causes the problems. With additional shortcode [raw] this is prevented.
80
-
81
  == Changelog ==
82
 
83
  = 0.1 =
@@ -145,4 +139,16 @@ Own themes changes internal order of filters, what causes the problems. With ad
145
  = 0.14 =
146
  * Bugfix in the statistics function
147
  * "Questions below each other" option was added
148
- * "Number answers" option was added
 
 
 
 
 
 
 
 
 
 
 
 
3
  Tags: quiz, test, answer, question, learning
4
  Requires at least: 3.3
5
  Tested up to: 3.5
6
+ Stable tag: 0.15
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
38
 
39
  = Translations =
40
  * English (Thanks Alexander M.)
41
+ * German / deutsch
42
  * Arabic / عربي (Thanks Abuhassan)
43
+ * Russian / русский (Thanks Sergei B.)
44
+ * Swedish / svenska (Thanks Martin J.)
45
 
46
  = Live Demo =
47
  http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "Demo")
48
 
49
+ = Special =
50
+ * Support for "User Role Editor" etc.
51
+ * Support for BodyPress achievements 2.x.x
 
52
 
53
  = Support =
54
  * English: http://wordpress.org/support/plugin/wp-pro-quiz
72
  9. Adminmenu - Create question
73
  10. Adminmenu - Question statistics
74
 
 
 
 
 
 
 
 
75
  == Changelog ==
76
 
77
  = 0.1 =
139
  = 0.14 =
140
  * Bugfix in the statistics function
141
  * "Questions below each other" option was added
142
+ * "Number answers" option was added
143
+
144
+ = 0.15 =
145
+ * Typo corrected
146
+ * Adjustment of admin template
147
+ * Internal changes
148
+ * Capability added
149
+ * Support for BuddyPress achievements added
150
+ * Support for "User Role Editor" etc. added
151
+ * Statistic function expanded
152
+ * Points now can be entered per correct answer instead of correct question
153
+ * Translation for Russian have been added (Thanks Sergei B.)
154
+ * Translation for Swedish have been added (Thanks Martin J.)
uninstall.php CHANGED
@@ -10,6 +10,7 @@ $db = new WpProQuiz_Helper_DbUpgrade();
10
  $db->delete();
11
 
12
  delete_option('wpProQuiz_dbVersion');
 
13
 
14
  $settings = new WpProQuiz_Model_GlobalSettingsMapper();
15
- $settings->delete();
10
  $db->delete();
11
 
12
  delete_option('wpProQuiz_dbVersion');
13
+ delete_option('wpProQuiz_version');
14
 
15
  $settings = new WpProQuiz_Model_GlobalSettingsMapper();
16
+ $settings->delete();
wp-pro-quiz.php CHANGED
@@ -3,26 +3,86 @@
3
  Plugin Name: WP-Pro-Quiz
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-pro-quiz
5
  Description: A powerful and beautiful quiz plugin for WordPress.
6
- Version: 0.14
7
  Author: Julius Fischer
8
  Author URI: http://www.it-gecko.de
9
  */
10
 
11
- define('WPPROQUIZ_VERSION', '0.14');
12
 
13
- include_once 'lib/controller/WpProQuiz_Controller_Admin.php';
14
- include_once 'lib/helper/WpProQuiz_Helper_DbUpgrade.php';
 
 
 
15
 
16
- register_activation_hook(__FILE__, array('WpProQuiz_Controller_Admin', 'install'));
17
 
18
- add_action('plugins_loaded', array('WpProQuiz_Controller_Admin', 'install'));
19
 
20
- load_plugin_textdomain('wp-pro-quiz', false, dirname(plugin_basename(__FILE__)).'/languages');
21
 
22
  if(is_admin()) {
23
- new WpProQuiz_Controller_Admin(dirname(__FILE__));
24
  } else {
25
- require_once 'lib/controller/WpProQuiz_Controller_Front.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
- new WpProQuiz_Controller_Front(dirname(__FILE__));
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  Plugin Name: WP-Pro-Quiz
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-pro-quiz
5
  Description: A powerful and beautiful quiz plugin for WordPress.
6
+ Version: 0.15
7
  Author: Julius Fischer
8
  Author URI: http://www.it-gecko.de
9
  */
10
 
11
+ define('WPPROQUIZ_VERSION', '0.15');
12
 
13
+ define('WPPROQUIZ_PATH', dirname(__FILE__));
14
+ define('WPPROQUIZ_URL', plugins_url('', __FILE__));
15
+ define('WPPROQUIZ_FILE', __FILE__);
16
+ define('WPPROQUIZ_PPATH', dirname(plugin_basename(__FILE__)));
17
+ define('WPPROQUIZ_PLUGIN_PATH', WPPROQUIZ_PATH.'/plugin');
18
 
19
+ spl_autoload_register('wpProQuiz_autoload');
20
 
21
+ register_activation_hook(__FILE__, array('WpProQuiz_Helper_Upgrade', 'upgrade'));
22
 
23
+ add_action('plugins_loaded', 'wpProQuiz_pluginLoaded');
24
 
25
  if(is_admin()) {
26
+ new WpProQuiz_Controller_Admin();
27
  } else {
28
+ new WpProQuiz_Controller_Front();
29
+ }
30
+
31
+ function wpProQuiz_autoload($class) {
32
+ $c = explode('_', $class);
33
+
34
+ if($c === false || count($c) != 3 || $c[0] !== 'WpProQuiz')
35
+ return;
36
+
37
+ $dir = '';
38
+
39
+ switch ($c[1]) {
40
+ case 'View':
41
+ $dir = 'view';
42
+ break;
43
+ case 'Model':
44
+ $dir = 'model';
45
+ break;
46
+ case 'Helper':
47
+ $dir = 'helper';
48
+ break;
49
+ case 'Controller':
50
+ $dir = 'controller';
51
+ break;
52
+ case 'Plugin':
53
+ $dir = 'plugin';
54
+ break;
55
+ default:
56
+ return;
57
+ }
58
+
59
+ if(file_exists(WPPROQUIZ_PATH.'/lib/'.$dir.'/'.$class.'.php'))
60
+ include_once WPPROQUIZ_PATH.'/lib/'.$dir.'/'.$class.'.php';
61
+ }
62
+
63
+ function wpProQuiz_pluginLoaded() {
64
 
65
+ load_plugin_textdomain('wp-pro-quiz', false, WPPROQUIZ_PPATH.'/languages');
66
+
67
+ if(get_option('wpProQuiz_version') !== WPPROQUIZ_VERSION) {
68
+ WpProQuiz_Helper_Upgrade::upgrade();
69
+ }
70
+
71
+ //ACHIEVEMENTS Version 2.x.x
72
+ if(defined('ACHIEVEMENTS_IS_INSTALLED') && ACHIEVEMENTS_IS_INSTALLED === 1 && defined('ACHIEVEMENTS_VERSION')) {
73
+ $version = ACHIEVEMENTS_VERSION;
74
+ if($version{0} == '2') {
75
+ new WpProQuiz_Plugin_BpAchievementsV2();
76
+ }
77
+ }
78
+ }
79
+
80
+
81
+ //ACHIEVEMENTS Version 2.x.x
82
+ $bpAchievementsV2_path = realpath(ABSPATH.PLUGINDIR.'/achievements/loader.php');
83
+
84
+ if($bpAchievementsV2_path !== false) {
85
+ register_deactivation_hook($bpAchievementsV2_path, array('WpProQuiz_Plugin_BpAchievementsV2', 'deinstall'));
86
+ register_activation_hook($bpAchievementsV2_path, array('WpProQuiz_Plugin_BpAchievementsV2', 'install'));
87
+ }
88
+