Wp-Pro-Quiz - Version 0.19

Version Description

  • Leaderboard added
  • Quiz requirements added
  • Different points for each answer
  • "Matrix Sort" sort elements can now be created without criteria
  • Front-End javascript completely rewritten
  • Admin javascript revised
  • Average score can now be displayed in quiz
  • Cloze: different points can be assigned for every gap
  • Very many internal changes
  • several bugfixes
Download this release

Release Info

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

Code changes from version 0.18 to 0.19

Files changed (72) hide show
  1. css/wpProQuiz_front.css +97 -12
  2. css/wpProQuiz_front.min.css +1 -1
  3. img/averagePoints.png +0 -0
  4. img/leaderboardInButton.png +0 -0
  5. img/leaderboardInResultText.png +0 -0
  6. js/wpProQuiz_admin.js +903 -275
  7. js/wpProQuiz_admin.min.js +41 -35
  8. js/wpProQuiz_front.js +617 -545
  9. js/wpProQuiz_front.min.js +22 -23
  10. js/wpProQuiz_toplist.js +62 -0
  11. js/wpProQuiz_toplist.min.js +2 -0
  12. languages/wp-pro-quiz-ar.mo +0 -0
  13. languages/wp-pro-quiz-ar.po +692 -293
  14. languages/wp-pro-quiz-de_DE.mo +0 -0
  15. languages/wp-pro-quiz-de_DE.po +916 -298
  16. languages/wp-pro-quiz-nb_NO.mo +0 -0
  17. languages/wp-pro-quiz-nb_NO.po +707 -295
  18. languages/wp-pro-quiz-nl_NL.mo +0 -0
  19. languages/wp-pro-quiz-nl_NL.po +708 -297
  20. languages/wp-pro-quiz-ru_RU.mo +0 -0
  21. languages/wp-pro-quiz-ru_RU.po +709 -297
  22. languages/wp-pro-quiz-sv_SE.mo +0 -0
  23. languages/wp-pro-quiz-sv_SE.po +694 -291
  24. languages/wp-pro-quiz.pot +1553 -0
  25. lib/controller/WpProQuiz_Controller_Admin.php +58 -4
  26. lib/controller/WpProQuiz_Controller_Front.php +72 -9
  27. lib/controller/WpProQuiz_Controller_GlobalSettings.php +14 -0
  28. lib/controller/WpProQuiz_Controller_Preview.php +6 -1
  29. lib/controller/WpProQuiz_Controller_Question.php +87 -61
  30. lib/controller/WpProQuiz_Controller_Quiz.php +191 -41
  31. lib/controller/WpProQuiz_Controller_Statistics.php +93 -21
  32. lib/controller/WpProQuiz_Controller_Toplist.php +271 -0
  33. lib/controller/WpProQuiz_Controller_WpqSupport.php +13 -0
  34. lib/helper/WpProQuiz_Helper_Captcha.php +76 -0
  35. lib/helper/WpProQuiz_Helper_DbUpgrade.php +206 -1
  36. lib/helper/WpProQuiz_Helper_Export.php +1 -1
  37. lib/helper/WpProQuiz_Helper_Import.php +11 -9
  38. lib/helper/WpProQuiz_Helper_Until.php +14 -0
  39. lib/helper/WpProQuiz_Helper_Upgrade.php +8 -0
  40. lib/model/WpProQuiz_Model_AnswerTypes.php +65 -0
  41. lib/model/WpProQuiz_Model_Mapper.php +8 -0
  42. lib/model/WpProQuiz_Model_Model.php +11 -14
  43. lib/model/WpProQuiz_Model_PrerequisiteMapper.php +52 -0
  44. lib/model/WpProQuiz_Model_Question.php +34 -58
  45. lib/model/WpProQuiz_Model_QuestionMapper.php +23 -69
  46. lib/model/WpProQuiz_Model_Quiz.php +146 -0
  47. lib/model/WpProQuiz_Model_QuizMapper.php +36 -3
  48. lib/model/WpProQuiz_Model_StatisticMapper.php +47 -3
  49. lib/model/WpProQuiz_Model_Toplist.php +93 -0
  50. lib/model/WpProQuiz_Model_ToplistMapper.php +118 -0
  51. lib/view/WpProQuiz_View_AdminToplist.php +97 -0
  52. lib/view/WpProQuiz_View_FrontQuiz.php +228 -147
  53. lib/view/WpProQuiz_View_FrontToplist.php +41 -0
  54. lib/view/WpProQuiz_View_GobalSettings.php +57 -4
  55. lib/view/WpProQuiz_View_QuestionEdit.php +195 -216
  56. lib/view/WpProQuiz_View_QuestionOverall.php +27 -13
  57. lib/view/WpProQuiz_View_QuizEdit.php +249 -1
  58. lib/view/WpProQuiz_View_QuizOverall.php +50 -21
  59. lib/view/WpProQuiz_View_Statistics.php +3 -3
  60. lib/view/WpProQuiz_View_View.php +11 -0
  61. lib/view/WpProQuiz_View_WpqSupport.php +57 -0
  62. readme.txt +27 -9
  63. screenshot-10.png +0 -0
  64. screenshot-11.png +0 -0
  65. screenshot-12.png +0 -0
  66. screenshot-2.png +0 -0
  67. screenshot-6.png +0 -0
  68. screenshot-7.png +0 -0
  69. screenshot-8.png +0 -0
  70. screenshot-9.png +0 -0
  71. uninstall.php +2 -1
  72. wp-pro-quiz.php +7 -2
css/wpProQuiz_front.css CHANGED
@@ -18,8 +18,10 @@
18
  .wpProQuiz_content h2 {
19
  margin-bottom: 10px !important;
20
  }
21
-
22
- .wpProQuiz_content input[type="button"], .wpProQuiz_content input[type="button"]:hover {
 
 
23
  margin: 0 !important;
24
  padding: 5px 10px !important;
25
  background: #13455B !important;
@@ -40,6 +42,11 @@
40
  font-weight: bold !important;
41
  }
42
 
 
 
 
 
 
43
  .wpProQuiz_questionListItem {
44
  padding: 3px !important;
45
  margin-bottom: 5px !important;
@@ -55,11 +62,6 @@
55
  width: 100%;
56
  }
57
 
58
- .wpProQuiz_questionListItem:last-child {
59
- padding: 3px !important;
60
- margin-bottom: 0 !important;
61
- }
62
-
63
  .wpProQuiz_list, .wpProQuiz_listItem, .wpProQuiz_questionList, .wpProQuiz_sortStringList, .wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion, .wpProQuiz_resultsList {
64
  list-style: none !important;
65
  padding: 0 !important;
@@ -108,7 +110,7 @@
108
  margin-top: 5px !important;
109
  margin-bottom: 5px !important;
110
  }
111
- .wpProQuiz_time_limit .progress {
112
  height: 10px !important;
113
  background-color: blue !important;
114
  margin-bottom: 5px !important;
@@ -121,13 +123,13 @@
121
  .wpProQuiz_question_text {
122
  margin-bottom: 10px !important;
123
  }
124
- .wpProQuiz_tipp {
125
  padding: 10px !important;
126
  background-color: #DDECFF !important;
127
  border: 1px dotted #363636 !important;
128
  border-radius: 10px !important;
129
  position: absolute !important;
130
- bottom: 35px !important;
131
  left: 5px !important;
132
  right: 5px !important;
133
  box-shadow: 2px 2px 5px 0px #313131 !important;
@@ -204,10 +206,93 @@
204
  padding: 0 !important;
205
  margin: 0 !important;
206
  }
207
- .wpProQuiz_lock {
208
  border: 1px dotted #FFC3C3 !important;
209
  background-color: #FFF7F7 !important;
210
  }
211
- .wpProQuiz_lock p {
212
  margin: 20px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  }
18
  .wpProQuiz_content h2 {
19
  margin-bottom: 10px !important;
20
  }
21
+ *+html .wpProQuiz_button, *+html .wpProQuiz_button:hover {
22
+ padding: 3px 0px !important;
23
+ }
24
+ .wpProQuiz_button, .wpProQuiz_button:hover {
25
  margin: 0 !important;
26
  padding: 5px 10px !important;
27
  background: #13455B !important;
42
  font-weight: bold !important;
43
  }
44
 
45
+ .wpProQuiz_questionListItem:last-child, .wpProQuiz_questionListItemLastChildIE {
46
+ padding: 3px !important;
47
+ margin-bottom: 0 !important;
48
+ }
49
+
50
  .wpProQuiz_questionListItem {
51
  padding: 3px !important;
52
  margin-bottom: 5px !important;
62
  width: 100%;
63
  }
64
 
 
 
 
 
 
65
  .wpProQuiz_list, .wpProQuiz_listItem, .wpProQuiz_questionList, .wpProQuiz_sortStringList, .wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion, .wpProQuiz_resultsList {
66
  list-style: none !important;
67
  padding: 0 !important;
110
  margin-top: 5px !important;
111
  margin-bottom: 5px !important;
112
  }
113
+ .wpProQuiz_time_limit .wpProQuiz_progress {
114
  height: 10px !important;
115
  background-color: blue !important;
116
  margin-bottom: 5px !important;
123
  .wpProQuiz_question_text {
124
  margin-bottom: 10px !important;
125
  }
126
+ .wpProQuiz_tipp > div {
127
  padding: 10px !important;
128
  background-color: #DDECFF !important;
129
  border: 1px dotted #363636 !important;
130
  border-radius: 10px !important;
131
  position: absolute !important;
132
+ bottom: 5px !important;
133
  left: 5px !important;
134
  right: 5px !important;
135
  box-shadow: 2px 2px 5px 0px #313131 !important;
206
  padding: 0 !important;
207
  margin: 0 !important;
208
  }
209
+ .wpProQuiz_lock, .wpProQuiz_prerequisite {
210
  border: 1px dotted #FFC3C3 !important;
211
  background-color: #FFF7F7 !important;
212
  }
213
+ .wpProQuiz_lock p, .wpProQuiz_prerequisite p {
214
  margin: 20px !important;
215
+ font-weight: bold !important;
216
+ }
217
+ .wpProQuiz_toplistTable {
218
+ width: 100% !important;
219
+ border: 1px solid #C3D1A3 !important;
220
+ border-collapse: collapse !important;
221
+ }
222
+ .wpProQuiz_toplistTable caption {
223
+ caption-side:top !important;
224
+ text-align: right !important;
225
+ padding-bottom: 2px !important;
226
+ color: gray !important;
227
+ margin: 0 !important;
228
+ font-size: 11px !important;
229
+ }
230
+ .wpProQuiz_toplistTable thead tr {
231
+ background-color: rgb(155,187,89) !important;
232
+ padding: 5px !important;
233
+ color: white !important;
234
+ font-weight: bold !important;
235
+ }
236
+ .wpProQuiz_toplistTable tbody td:FIRST-CHILD{
237
+ font-weight: bold !important;
238
+ }
239
+ .wpProQuiz_toplistTable td, .wpProQuiz_toplistTable th {
240
+ padding: 5px !important;
241
+ text-align: center;
242
+ }
243
+ .wpProQuiz_toplistTrOdd {
244
+ background-color: #EBF1DE !important;
245
+ }
246
+ .wpProQuiz_addToplist {
247
+ margin-top: 10px !important;
248
+ background-color: #F5FAEA !important;
249
+ padding: 10px !important;
250
+ border: 1px solid #C3D1A3 !important;
251
+ }
252
+ .wpProQuiz_addToplistMessage {
253
+ border: 1px solid rgb(160, 160, 160) !important;
254
+ background-color: #FCFFB3 !important;
255
+ margin-bottom: 5px !important;
256
+ border-radius: 5px !important;
257
+ padding: 5px !important;
258
+ font-weight: bold !important;
259
+ color: dimGray !important;
260
+ }
261
+ .wpProQuiz_toplistButton, .wpProQuiz_toplistButton:hover {
262
+ background-color: lightGrey !important;
263
+ border: 1px solid rgb(194, 194, 194) !important;
264
+ text-shadow: 1px 1px 1px white !important;
265
+ margin-top: 5px !important;
266
+ color: black !important;
267
+ }
268
+ .wpProQuiz_resultTable {
269
+ margin: 15px auto !important;
270
+ width: 400px !important;
271
+ border: 1px solid #C4C4C4 !important;
272
+ padding: 15px !important;
273
+ font-weight: bold !important;
274
+ }
275
+ .wpProQuiz_resultTable table {
276
+ width: 100% !important;
277
+ border-collapse: collapse !important;
278
+ margin: 0 !important;
279
+ }
280
+ .wpProQuiz_resultName {
281
+ width: 100px !important;
282
+ border-right: 1px solid rgb(134, 134, 134) !important;
283
+ padding: 10px 0px !important;
284
+ }
285
+ .wpProQuiz_resultValue {
286
+ padding: 0 !important;
287
+ }
288
+ .wpProQuiz_resultValue div {
289
+ color: black !important;
290
+ text-align: right !important;
291
+ box-shadow: 1px 1px 3px 1px #C4C4C4 !important;
292
+ display: inline-block !important;
293
+ height: 18px !important;
294
+ zoom: 1 !important;
295
+ *display: inline !important;
296
+ margin-right: 3px !important;
297
+ vertical-align: middle !important;
298
  }
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;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;}
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;}*+html .wpProQuiz_button,*+html .wpProQuiz_button:hover{padding:3px 0!important;}.wpProQuiz_button,.wpProQuiz_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:last-child,.wpProQuiz_questionListItemLastChildIE{padding:3px!important;margin-bottom:0!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_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 .wpProQuiz_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 > div{padding:10px!important;background-color:#DDECFF!important;border:1px dotted #363636!important;border-radius:10px!important;position:absolute!important;bottom:5px!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,.wpProQuiz_prerequisite{border:1px dotted #FFC3C3!important;background-color:#FFF7F7!important;}.wpProQuiz_lock p,.wpProQuiz_prerequisite p{margin:20px!important;font-weight:700!important;}.wpProQuiz_toplistTable{width:100%!important;border:1px solid #C3D1A3!important;border-collapse:collapse!important;}.wpProQuiz_toplistTable caption{caption-side:top!important;text-align:right!important;padding-bottom:2px!important;color:gray!important;margin:0!important;font-size:11px!important;}.wpProQuiz_toplistTable thead tr{background-color:#9bbb59!important;padding:5px!important;color:#FFF!important;font-weight:700!important;}.wpProQuiz_toplistTable tbody td:FIRST-CHILD{font-weight:700!important;}.wpProQuiz_toplistTable td,.wpProQuiz_toplistTable th{padding:5px!important;text-align:center;}.wpProQuiz_toplistTrOdd{background-color:#EBF1DE!important;}.wpProQuiz_addToplist{margin-top:10px!important;background-color:#F5FAEA!important;padding:10px!important;border:1px solid #C3D1A3!important;}.wpProQuiz_addToplistMessage{border:1px solid #a0a0a0!important;background-color:#FCFFB3!important;margin-bottom:5px!important;border-radius:5px!important;padding:5px!important;font-weight:700!important;color:#696969!important;}.wpProQuiz_toplistButton,.wpProQuiz_toplistButton:hover{background-color:#D3D3D3!important;border:1px solid #c2c2c2!important;text-shadow:1px 1px 1px #FFF!important;margin-top:5px!important;color:#000!important;}.wpProQuiz_resultTable{margin:15px auto!important;width:400px!important;border:1px solid #C4C4C4!important;padding:15px!important;font-weight:700!important;}.wpProQuiz_resultTable table{width:100%!important;border-collapse:collapse!important;margin:0!important;}.wpProQuiz_resultName{width:100px!important;border-right:1px solid #868686!important;padding:10px 0!important;}.wpProQuiz_resultValue{padding:0!important;}.wpProQuiz_resultValue div{color:#000!important;text-align:right!important;box-shadow:1px 1px 3px 1px #C4C4C4!important;display:inline-block!important;height:18px!important;zoom:1!important;*display:inline!important;margin-right:3px!important;vertical-align:middle!important;}
img/averagePoints.png ADDED
Binary file
img/leaderboardInButton.png ADDED
Binary file
img/leaderboardInResultText.png ADDED
Binary file
js/wpProQuiz_admin.js CHANGED
@@ -112,262 +112,337 @@ jQuery(document).ready(function($) {
112
  init();
113
  };
114
 
115
- $.fn.wpProQuiz_questionEdit = function() {
116
-
117
- var setup = function() {
118
- if($('input[name="answerType"][checked="checked"]').size() < 1) {
119
- $('input[name="answerType"][value="single"]').attr({'checked': 'checked'});
120
- }
121
-
122
- $('input[name="answerType"]:checked').click();
123
- $('#wpProQuiz_correctSameText').change();
124
- $('#wpProQuiz_tip').change();
125
- $('input[name="pointsPerAnswer"]').change();
126
- };
127
-
128
- var formListener = {
129
- setup: function() {
130
- $('input[name="answerType"]').click(function(e) {
131
- $('.answer_felder').children().css('display', 'none');
132
-
133
- switch (this.value) {
134
- case 'single':
135
- formListener.displaySingle('radio');
136
- break;
137
- case 'multiple':
138
- formListener.displaySingle('checkbox');
139
- break;
140
- case 'free_answer':
141
- formListener.displayFreeAnswer();
142
- break;
143
- case 'sort_answer':
144
- formListener.displaySortAnswer();
145
- break;
146
- case 'matrix_sort_answer':
147
- formListener.displayMatrixSortAnswer();
148
- break;
149
- case 'cloze_answer':
150
- formListener.displayClozeAnswer();
151
- break;
152
- }
153
- });
154
-
155
- $('.addAnswer').click(function(e) {
156
- formListener.addAnswer(this);
157
- });
158
-
159
- $('.deleteAnswer').click(function(e) {
160
- formListener.deleteAnswer(this);
161
- });
162
-
163
- $('#saveQuestion').click(function(e) {
164
- return validate();
165
- });
166
-
167
- $('.sort_answer ul, .classic_answer ul, .matrix_sort_answer ul').sortable({
168
- handle: '.wpProQuiz_move',
169
- update: function(event, ui) {
170
- formListener.setValueClassicAnswer();
171
- }
172
- });
173
-
174
- $('#wpProQuiz_correctSameText').change(function() {
175
- if(this.checked)
176
- $('#wpProQuiz_incorrectMassageBox').hide();
177
- else
178
- $('#wpProQuiz_incorrectMassageBox').show();
179
- });
180
-
181
- $('#wpProQuiz_tip').change(function(e) {
182
- if(this.checked)
183
- $('#wpProQuiz_tipBox').show();
184
- else
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
- $('.wpProQuiz_demoBox a').mouseover(function() {
197
- $(this).next().show();
198
- }).mouseout(function() {
199
- $(this).next().hide();
200
- }).click(function() {
201
- return false;
202
- });
203
-
204
- },
205
-
206
- displaySingle: function(type) {
207
- $('.classic_answer').find('input[name="answerJson[classic_answer][correct][]"]').each(function() {
208
- $("<input type=" + type + " />").attr({ name: this.name, value: this.value, checked: this.checked}).insertBefore(this);
209
- }).remove();
210
-
211
- $('.classic_answer').css('display', 'block');
212
- },
213
-
214
- displayFreeAnswer: function() {
215
- $('.free_answer').css('display', 'block');
216
- },
217
-
218
- displaySortAnswer: function() {
219
- $('.sort_answer').css('display', 'block');
220
- },
221
-
222
- displayMatrixSortAnswer: function() {
223
- $('.matrix_sort_answer').show();
224
- },
225
-
226
- displayClozeAnswer: function() {
227
- $('.cloze_answer').show();
228
- },
229
-
230
- addAnswer: function(obj) {
231
- $(obj).siblings('ul').children().first()
232
- .clone().css('display', 'block')
233
- .appendTo($(obj).siblings('ul'));
234
-
235
- formListener.setValueClassicAnswer();
236
-
237
- $('.deleteAnswer').click(function(e) {
238
- formListener.deleteAnswer(this);
239
- });
240
- },
241
-
242
- deleteAnswer: function(obj) {
243
- $(obj).parent('li').remove();
244
-
245
- formListener.setValueClassicAnswer();
246
- },
247
-
248
- setValueClassicAnswer: function() {
249
-
250
- $('.classic_answer ul, .matrix_sort_answer ul, .sort_answer ul').children().each(function() {
251
- var index = $(this).index();
252
-
253
- $(this).find( 'input[name="answerJson[classic_answer][correct][]"], '
254
- + 'input[name="answerJson[classic_answer][html][]"], '
255
- + 'input[name="answerJson[answer_matrix_sort][answer_html][]"], '
256
- + 'input[name="answerJson[answer_matrix_sort][sort_string_html][]"], '
257
- + 'input[name="answerJson[answer_sort][html][]"]').val(index);
258
- });
259
- }
260
- };
261
-
262
- var validate = function () {
263
-
264
- var question = '';
265
- var type = $('input[name="answerType"]:checked');
266
- var $points = $('input[name="points"]');
267
-
268
- if(tinymce.editors.question != undefined && !tinymce.editors.question.isHidden()) {
269
- question = tinymce.editors.question.getContent();
270
- } else {
271
- question = $('textarea[name="question"]').val();
272
- }
273
-
274
- if(isNaN($points.val()) || $points.val() < 1) {
275
- alert(wpProQuizLocalize.no_nummber_points);
276
- $points.focus();
277
- return false;
278
- }
279
-
280
- if(isEmpty(question)) {
281
- alert(wpProQuizLocalize.no_question_msg);
282
- return false;
283
- }
284
-
285
-
286
- if(type.val() == 'single' || type.val() == 'multiple') {
287
- var findChecked = true;
288
- if($('input[name="answerJson[classic_answer][correct][]"]:checked').each(function() {
289
- if($.trim($(this).parent().siblings('textarea').val()) != '')
290
- findChecked &= true;
291
- else
292
- findChecked = false;
293
- })
294
- .size() < 1) {
295
- alert(wpProQuizLocalize.no_correct_msg);
296
- return false;
297
- }
298
-
299
- if(!findChecked) {
300
- alert(wpProQuizLocalize.no_answer_msg);
301
- return false;
302
- }
303
- } else if(type.val() == 'sort_answer') {
304
- var findChecked = false;
305
- $('textarea[name="answerJson[answer_sort][answer][]"]').each(function() {
306
- if(isEmpty($(this).val())) {
307
- findChecked |= false;
308
- } else {
309
- findChecked = true;
310
- }
311
- });
312
-
313
- if(!findChecked) {
314
- alert(wpProQuizLocalize.no_answer_msg);
315
- return false;
316
- }
317
- } else if(type.val() == 'matrix_sort_answer') {
318
- var findChecked = false;
319
- $('textarea[name="answerJson[answer_matrix_sort][answer][]"]').each(function() {
320
- if(isEmpty($(this).val())) {
321
- findChecked |= false;
322
- } else {
323
-
324
- var $sortString = $(this).parent().parent().find('textarea[name="answerJson[answer_matrix_sort][sort_string][]"]');
325
-
326
- if(isEmpty($sortString.val())) {
327
- findChecked |= false;
328
- } else {
329
- findChecked = true;
330
- }
331
- }
332
- });
333
-
334
- if(!findChecked) {
335
- alert(wpProQuizLocalize.no_answer_msg);
336
- return false;
337
- }
338
- } else if(type.val() == 'cloze_answer') {
339
- var clozeText = '';
340
-
341
- if(tinymce.editors.cloze != undefined && !tinymce.editors.cloze.isHidden()) {
342
- clozeText = tinymce.editors.cloze.getContent();
343
- } else {
344
- clozeText = $('textarea[name="answerJson[answer_cloze][text]"]').val();
345
- }
346
-
347
- if(isEmpty(clozeText)) {
348
- alert(wpProQuizLocalize.no_answer_msg);
349
- return false;
350
- }
351
- } else if(type.val() == 'free_answer') {
352
- var freeText = $('textarea[name="answerJson[free_answer][correct]"]').val();
353
-
354
- if(isEmpty(freeText)) {
355
- alert(wpProQuizLocalize.no_answer_msg);
356
- return false;
357
- }
358
- }
359
-
360
- return true;
361
- };
362
-
363
- var isEmpty = function(str) {
364
- str = $.trim(str);
365
- return (!str || 0 === str.length);
366
- };
367
-
368
- formListener.setup();
369
- setup();
370
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
371
 
372
  $.fn.wpProQuiz_questionOverall = function() {
373
 
@@ -669,6 +744,8 @@ jQuery(document).ready(function($) {
669
  $('#wpProQuiz_save').click(function(e) {
670
  if(!methode.validInput())
671
  e.preventDefault();
 
 
672
  });
673
 
674
  $('input[name="quizRunOnce"]').change(function(e) {
@@ -712,6 +789,39 @@ jQuery(document).ready(function($) {
712
  }
713
  });
714
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
715
  $('#statistics_on').change();
716
  $('#wpProQuiz_resultGradeEnabled').change();
717
  $('input[name="quizRunOnce"]').change();
@@ -749,9 +859,6 @@ jQuery(document).ready(function($) {
749
  setStatistics: function(json) {
750
  var $table = $('.wpProQuiz_statistics_table');
751
  var $tbody = $table.find('tbody');
752
- var points = 0;
753
- var gPoints = 0;
754
- var cPoints = 0;
755
 
756
  if(currectTab == 'wpProQuiz_typeOverview') {
757
  return;
@@ -761,21 +868,10 @@ jQuery(document).ready(function($) {
761
  i.find('.wpProQuiz_cCorrect').text(j.cCorrect + ' (' + j.pCorrect + '%)');
762
  i.find('.wpProQuiz_cIncorrect').text(j.cIncorrect + ' (' + j.pIncorrect + '%)');
763
  i.find('.wpProQuiz_cTip').text(j.cTip);
764
- i.find('.wpProQuiz_cCorrectAnswerPoints').text(j.cCorrectAnswerPoints * i.find('.wpProQuiz_pointsAnswer').text());
765
 
766
  if(r == true) {
767
- if(gPoints > 0) {
768
- $table.find('.wpProQuiz_cResult').text(
769
- (Math.round(points / gPoints * 100 * 100) / 100)
770
- + "%");
771
- } else {
772
- $table.find('.wpProQuiz_cResult').text("0%");
773
- }
774
- i.find('.wpProQuiz_cCorrectAnswerPoints').text(cPoints);
775
- } else {
776
- points += (j.cCorrectAnswerPoints * i.find('.wpProQuiz_pointsAnswer').text());
777
- gPoints += (j.cCorrect + j.cIncorrect ) * i.find('.wpProQuiz_points').text();
778
- cPoints += j.cCorrectAnswerPoints * i.find('.wpProQuiz_pointsAnswer').text();
779
  }
780
  };
781
 
@@ -842,7 +938,7 @@ jQuery(document).ready(function($) {
842
  d.find('.wpProQuiz_cCorrect').text(v.cCorrect + ' (' + v.pCorrect + '%)');
843
  d.find('.wpProQuiz_cIncorrect').text(v.cIncorrect + ' (' + v.pIncorrect + '%)');
844
  d.find('.wpProQuiz_cTip').text(v.cTip);
845
- d.find('.wpProQuiz_cResult').text((Math.round(v.cPoints / v.totalPoints * 100 * 100) / 100) + '%');
846
  } else {
847
  d.find('th').removeAttr('style');
848
  }
@@ -1008,6 +1104,164 @@ jQuery(document).ready(function($) {
1008
  init();
1009
  };
1010
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1011
 
1012
  if($('.wpProQuiz_quizOverall').length)
1013
  $('.wpProQuiz_quizOverall').wpProQuiz_preview();
@@ -1019,12 +1273,386 @@ jQuery(document).ready(function($) {
1019
  if($('.wpProQuiz_quizEdit').length)
1020
  $('.wpProQuiz_quizEdit').wpProQuiz_quizEdit();
1021
 
1022
- if($('.wpProQuiz_questionEdit').length)
1023
- $('.wpProQuiz_questionEdit').wpProQuiz_questionEdit();
1024
 
1025
  if($('.wpProQuiz_questionOverall').length)
1026
  $('.wpProQuiz_questionOverall').wpProQuiz_questionOverall();
1027
 
1028
  if($('.wpProQuiz_statistics').length)
1029
  $('.wpProQuiz_statistics').wpProQuiz_statistics();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1030
  });
112
  init();
113
  };
114
 
115
+ // $.fn.wpProQuiz_questionEdit = function() {
116
+ //
117
+ // var setup = function() {
118
+ // if($('input[name="answerType"][checked="checked"]').size() < 1) {
119
+ // $('input[name="answerType"][value="single"]').attr({'checked': 'checked'});
120
+ // }
121
+ //
122
+ // $('input[name="answerType"]:checked').click();
123
+ // $('#wpProQuiz_correctSameText').change();
124
+ // $('#wpProQuiz_tip').change();
125
+ // $('input[name="pointsPerAnswer"]').change();
126
+ // $('input[name="answerPointsActivated"]').change();
127
+ // };
128
+ //
129
+ // var formListener = {
130
+ // setup: function() {
131
+ // $('input[name="answerType"]').click(function(e) {
132
+ // $('.answer_felder').children().css('display', 'none');
133
+ //
134
+ // switch (this.value) {
135
+ // case 'single':
136
+ // formListener.displaySingle('radio');
137
+ // break;
138
+ // case 'multiple':
139
+ // formListener.displaySingle('checkbox');
140
+ // break;
141
+ // case 'free_answer':
142
+ // formListener.displayFreeAnswer();
143
+ // break;
144
+ // case 'sort_answer':
145
+ // formListener.displaySortAnswer();
146
+ // break;
147
+ // case 'matrix_sort_answer':
148
+ // formListener.displayMatrixSortAnswer();
149
+ // break;
150
+ // case 'cloze_answer':
151
+ // formListener.displayClozeAnswer();
152
+ // break;
153
+ // }
154
+ // });
155
+ //
156
+ // $('.addAnswer').click(function(e) {
157
+ // formListener.addAnswer(this);
158
+ // });
159
+ //
160
+ // $('.deleteAnswer').click(function(e) {
161
+ // formListener.deleteAnswer(this);
162
+ // });
163
+ //
164
+ // $('#saveQuestion').click(function(e) {
165
+ // return validate();
166
+ // });
167
+ //
168
+ // $('.sort_answer ul, .classic_answer ul, .matrix_sort_answer ul').sortable({
169
+ // handle: '.wpProQuiz_move',
170
+ // update: function(event, ui) {
171
+ // formListener.setValueClassicAnswer();
172
+ // }
173
+ // });
174
+ //
175
+ // $('#wpProQuiz_correctSameText').change(function() {
176
+ // if(this.checked)
177
+ // $('#wpProQuiz_incorrectMassageBox').hide();
178
+ // else
179
+ // $('#wpProQuiz_incorrectMassageBox').show();
180
+ // });
181
+ //
182
+ // $('#wpProQuiz_tip').change(function(e) {
183
+ // if(this.checked)
184
+ // $('#wpProQuiz_tipBox').show();
185
+ // else
186
+ // $('#wpProQuiz_tipBox').hide();
187
+ // });
188
+ //
189
+ // $('input[name="pointsPerAnswer"]').change(function() {
190
+ // if(this.checked) {
191
+ // $('#wpProQuiz_showPointsBox').show();
192
+ // } else {
193
+ // $('#wpProQuiz_showPointsBox').hide();
194
+ // }
195
+ // });
196
+ //
197
+ // $('input[name="answerPointsActivated"]').change(function() {
198
+ // if(this.checked) {
199
+ // $('input[name="points"]').attr('disabled', 'disabled');
200
+ // $('.wpProQuiz_answerPoints').show();
201
+ // $('#wpProQuiz_showPointsBox').show();
202
+ // } else {
203
+ // $('input[name="points"]').removeAttr('disabled');
204
+ // $('.wpProQuiz_answerPoints').hide();
205
+ // $('#wpProQuiz_showPointsBox').hide();
206
+ // }
207
+ // });
208
+ //
209
+ // $('.wpProQuiz_demoBox a').mouseover(function() {
210
+ // $(this).next().show();
211
+ // }).mouseout(function() {
212
+ // $(this).next().hide();
213
+ // }).click(function() {
214
+ // return false;
215
+ // });
216
+ //
217
+ // },
218
+ //
219
+ // displaySingle: function(type) {
220
+ // $('.classic_answer').find('input[name="answerJson[classic_answer][correct][]"]').each(function() {
221
+ // $("<input type=" + type + " />").attr({ name: this.name, value: this.value, checked: this.checked}).insertBefore(this);
222
+ // }).remove();
223
+ //
224
+ // $('.classic_answer').css('display', 'block');
225
+ // },
226
+ //
227
+ // displayFreeAnswer: function() {
228
+ // $('.free_answer').css('display', 'block');
229
+ // },
230
+ //
231
+ // displaySortAnswer: function() {
232
+ // $('.sort_answer').css('display', 'block');
233
+ // },
234
+ //
235
+ // displayMatrixSortAnswer: function() {
236
+ // $('.matrix_sort_answer').show();
237
+ // },
238
+ //
239
+ // displayClozeAnswer: function() {
240
+ // $('.cloze_answer').show();
241
+ // },
242
+ //
243
+ // addAnswer: function(obj) {
244
+ // $(obj).siblings('ul').children().first()
245
+ // .clone().css('display', 'block')
246
+ // .appendTo($(obj).siblings('ul'));
247
+ //
248
+ // formListener.setValueClassicAnswer();
249
+ //
250
+ // $('.deleteAnswer').click(function(e) {
251
+ // formListener.deleteAnswer(this);
252
+ // });
253
+ // },
254
+ //
255
+ // deleteAnswer: function(obj) {
256
+ // $(obj).parent().parent('li').remove();
257
+ //
258
+ // formListener.setValueClassicAnswer();
259
+ // },
260
+ //
261
+ // setValueClassicAnswer: function() {
262
+ //
263
+ // $('.classic_answer ul, .matrix_sort_answer ul, .sort_answer ul').children().each(function() {
264
+ // var index = $(this).index();
265
+ //
266
+ // $(this).find( 'input[name="answerJson[classic_answer][correct][]"], '
267
+ // + 'input[name="answerJson[classic_answer][html][]"], '
268
+ // + 'input[name="answerJson[answer_matrix_sort][answer_html][]"], '
269
+ // + 'input[name="answerJson[answer_matrix_sort][sort_string_html][]"], '
270
+ // + 'input[name="answerJson[answer_sort][html][]"]').val(index);
271
+ // });
272
+ // }
273
+ // };
274
+ //
275
+ // var validate = function () {
276
+ //
277
+ // var question = '';
278
+ // var type = $('input[name="answerType"]:checked');
279
+ // var $points = $('input[name="points"]');
280
+ //
281
+ // if(tinymce.editors.question != undefined && !tinymce.editors.question.isHidden()) {
282
+ // question = tinymce.editors.question.getContent();
283
+ // } else {
284
+ // question = $('textarea[name="question"]').val();
285
+ // }
286
+ //
287
+ // if(isNaN($points.val()) || $points.val() < 1) {
288
+ // alert(wpProQuizLocalize.no_nummber_points);
289
+ // $points.focus();
290
+ // return false;
291
+ // }
292
+ //
293
+ // if(isEmpty(question)) {
294
+ // alert(wpProQuizLocalize.no_question_msg);
295
+ // return false;
296
+ // }
297
+ //
298
+ //
299
+ // if(type.val() == 'single' || type.val() == 'multiple') {
300
+ // var findChecked = true;
301
+ // var findPoints = true;
302
+ // if($('input[name="answerJson[classic_answer][correct][]"]:checked').each(function() {
303
+ // if($.trim($(this).parent().parent().parent().parent().find('textarea').val()) != '') {
304
+ // findChecked &= true;
305
+ // } else {
306
+ // findChecked = false;
307
+ // }
308
+ // })
309
+ // .size() < 1) {
310
+ // alert(wpProQuizLocalize.no_correct_msg);
311
+ // return false;
312
+ // }
313
+ //
314
+ // if($('input[name="answerPointsActivated"]:checked').length) {
315
+ // $('input[name="answerJson[classic_answer][points][]"]').each(function() {
316
+ // if($.trim($(this).parentsUntil('table').find('textarea').val()) != '') {
317
+ // var points = $.trim($(this).val());
318
+ //
319
+ // if(isNaN(points) || points == '' || points < 0) {
320
+ // findPoints = false;
321
+ // } else {
322
+ // findPoints &= true;
323
+ // }
324
+ // }
325
+ // });
326
+ //
327
+ // if(!findPoints) {
328
+ // alert(wpProQuizLocalize.no_nummber_points_new);
329
+ // return false;
330
+ // }
331
+ // }
332
+ //
333
+ // if(!findChecked) {
334
+ // alert(wpProQuizLocalize.no_answer_msg);
335
+ // return false;
336
+ // }
337
+ // } else if(type.val() == 'sort_answer') {
338
+ // var findChecked = false;
339
+ // var findPoints = true;
340
+ //
341
+ // $('textarea[name="answerJson[answer_sort][answer][]"]').each(function() {
342
+ // if(isEmpty($(this).val())) {
343
+ // findChecked |= false;
344
+ // } else {
345
+ // findChecked = true;
346
+ // }
347
+ // });
348
+ //
349
+ // if($('input[name="answerPointsActivated"]:checked').length) {
350
+ // $('input[name="answerJson[answer_sort][points][]"]').each(function() {
351
+ // if($.trim($(this).parentsUntil('table').find('textarea').val()) != '') {
352
+ // var points = $.trim($(this).val());
353
+ //
354
+ // if(isNaN(points) || points == '' || points < 0) {
355
+ // findPoints = false;
356
+ // } else {
357
+ // findPoints &= true;
358
+ // }
359
+ // }
360
+ // });
361
+ //
362
+ // if(!findPoints) {
363
+ // alert(wpProQuizLocalize.no_nummber_points_new);
364
+ // return false;
365
+ // }
366
+ // }
367
+ //
368
+ // if(!findChecked) {
369
+ // alert(wpProQuizLocalize.no_answer_msg);
370
+ // return false;
371
+ // }
372
+ // } else if(type.val() == 'matrix_sort_answer') {
373
+ // var findChecked = false;
374
+ // var findPoints = true;
375
+ // $('textarea[name="answerJson[answer_matrix_sort][answer][]"]').each(function() {
376
+ // if(isEmpty($(this).val())) {
377
+ // findChecked |= false;
378
+ // } else {
379
+ //
380
+ // var $sortString = $(this).parent().parent().find('textarea[name="answerJson[answer_matrix_sort][sort_string][]"]');
381
+ //
382
+ // if(isEmpty($sortString.val())) {
383
+ // findChecked |= false;
384
+ // } else {
385
+ // findChecked = true;
386
+ // }
387
+ // }
388
+ // });
389
+ //
390
+ // if($('input[name="answerPointsActivated"]:checked').length) {
391
+ // $('input[name="answerJson[answer_matrix_sort][points][]"]').each(function() {
392
+ // if($.trim($(this).parentsUntil('table').find('textarea').val()) != '') {
393
+ // var points = $.trim($(this).val());
394
+ //
395
+ // if(isNaN(points) || points == '' || points < 0) {
396
+ // findPoints = false;
397
+ // } else {
398
+ // findPoints &= true;
399
+ // }
400
+ // }
401
+ // });
402
+ //
403
+ // if(!findPoints) {
404
+ // alert(wpProQuizLocalize.no_nummber_points_new);
405
+ // return false;
406
+ // }
407
+ // }
408
+ //
409
+ // if(!findChecked) {
410
+ // alert(wpProQuizLocalize.no_answer_msg);
411
+ // return false;
412
+ // }
413
+ // } else if(type.val() == 'cloze_answer') {
414
+ // var clozeText = '';
415
+ //
416
+ // if(tinymce.editors.cloze != undefined && !tinymce.editors.cloze.isHidden()) {
417
+ // clozeText = tinymce.editors.cloze.getContent();
418
+ // } else {
419
+ // clozeText = $('textarea[name="answerJson[answer_cloze][text]"]').val();
420
+ // }
421
+ //
422
+ // if(isEmpty(clozeText)) {
423
+ // alert(wpProQuizLocalize.no_answer_msg);
424
+ // return false;
425
+ // }
426
+ // } else if(type.val() == 'free_answer') {
427
+ // var freeText = $('textarea[name="answerJson[free_answer][correct]"]').val();
428
+ //
429
+ // if(isEmpty(freeText)) {
430
+ // alert(wpProQuizLocalize.no_answer_msg);
431
+ // return false;
432
+ // }
433
+ // }
434
+ //
435
+ // return true;
436
+ // };
437
+ //
438
+ // var isEmpty = function(str) {
439
+ // str = $.trim(str);
440
+ // return (!str || 0 === str.length);
441
+ // };
442
+ //
443
+ // formListener.setup();
444
+ // setup();
445
+ // };
446
 
447
  $.fn.wpProQuiz_questionOverall = function() {
448
 
744
  $('#wpProQuiz_save').click(function(e) {
745
  if(!methode.validInput())
746
  e.preventDefault();
747
+
748
+ $('select[name="prerequisiteList[]"] option').attr('selected', 'selected');
749
  });
750
 
751
  $('input[name="quizRunOnce"]').change(function(e) {
789
  }
790
  });
791
 
792
+ $('#btnPrerequisiteAdd').click(function() {
793
+ $('select[name="quizList"] option:selected').removeAttr('selected').appendTo('select[name="prerequisiteList[]"]');
794
+ });
795
+
796
+ $('#btnPrerequisiteDelete').click(function() {
797
+ $('select[name="prerequisiteList[]"] option:selected').removeAttr('selected').appendTo('select[name="quizList"]');
798
+ });
799
+
800
+ $('input[name="prerequisite"]').change(function() {
801
+ if(this.checked)
802
+ $('#prerequisiteBox').show();
803
+ else
804
+ $('#prerequisiteBox').hide();
805
+
806
+
807
+ }).change();
808
+
809
+ $('input[name="toplistDataAddMultiple"]').change(function() {
810
+ if(this.checked)
811
+ $('#toplistDataAddBlockBox').show();
812
+ else
813
+ $('#toplistDataAddBlockBox').hide();
814
+
815
+ }).change();
816
+
817
+ $('input[name="toplistActivated"]').change(function() {
818
+ if(this.checked)
819
+ $('#toplistBox > tr:gt(0)').show();
820
+ else
821
+ $('#toplistBox > tr:gt(0)').hide();
822
+
823
+ }).change();
824
+
825
  $('#statistics_on').change();
826
  $('#wpProQuiz_resultGradeEnabled').change();
827
  $('input[name="quizRunOnce"]').change();
859
  setStatistics: function(json) {
860
  var $table = $('.wpProQuiz_statistics_table');
861
  var $tbody = $table.find('tbody');
 
 
 
862
 
863
  if(currectTab == 'wpProQuiz_typeOverview') {
864
  return;
868
  i.find('.wpProQuiz_cCorrect').text(j.cCorrect + ' (' + j.pCorrect + '%)');
869
  i.find('.wpProQuiz_cIncorrect').text(j.cIncorrect + ' (' + j.pIncorrect + '%)');
870
  i.find('.wpProQuiz_cTip').text(j.cTip);
871
+ i.find('.wpProQuiz_cPoints').text(j.cPoints);
872
 
873
  if(r == true) {
874
+ $table.find('.wpProQuiz_cResult').text(j.result + '%');
 
 
 
 
 
 
 
 
 
 
 
875
  }
876
  };
877
 
938
  d.find('.wpProQuiz_cCorrect').text(v.cCorrect + ' (' + v.pCorrect + '%)');
939
  d.find('.wpProQuiz_cIncorrect').text(v.cIncorrect + ' (' + v.pIncorrect + '%)');
940
  d.find('.wpProQuiz_cTip').text(v.cTip);
941
+ d.find('.wpProQuiz_cResult').text(v.result + '%');
942
  } else {
943
  d.find('th').removeAttr('style');
944
  }
1104
  init();
1105
  };
1106
 
1107
+ $.fn.wpProQuiz_toplist = function() {
1108
+ var methods = this;
1109
+ var elements = {
1110
+ sort: $('#wpProQuiz_sorting'),
1111
+ pageLimit: $('#wpProQuiz_pageLimit'),
1112
+ currentPage: $('#wpProQuiz_currentPage'),
1113
+ loadDataBox: $('#wpProQuiz_loadData'),
1114
+ pageLeft: $('#wpProQuiz_pageLeft'),
1115
+ pageRight: $('#wpProQuiz_pageRight'),
1116
+ dataBody: $('#wpProQuiz_toplistTable tbody'),
1117
+ rowClone: $('#wpProQuiz_toplistTable tbody tr:eq(0)').clone(),
1118
+ content: $('#wpProQuiz_content')
1119
+ };
1120
+
1121
+ methods = {
1122
+ loadData: function(action) {
1123
+ var location = window.location.pathname + window.location.search;
1124
+ var url = location.replace('admin.php', 'admin-ajax.php') + '&action=load_toplist';
1125
+ var data = {
1126
+ action: 'wp_pro_quiz_load_toplist',
1127
+ sort: elements.sort.val(),
1128
+ limit: elements.pageLimit.val(),
1129
+ page: elements.currentPage.val()
1130
+ };
1131
+
1132
+ if(action != undefined) {
1133
+ $.extend(data, action);
1134
+ }
1135
+
1136
+ elements.loadDataBox.show();
1137
+ elements.content.hide();
1138
+
1139
+ $.post(url, data, function(json) {
1140
+ methods.handleDataRequest(json.data);
1141
+
1142
+ if(json.nav != undefined) {
1143
+ methods.handleNav(json.nav);
1144
+ }
1145
+
1146
+ elements.loadDataBox.hide();
1147
+ elements.content.show();
1148
+ }, 'json');
1149
+ },
1150
+
1151
+ handleNav: function(nav) {
1152
+ elements.currentPage.empty();
1153
+
1154
+ for(var i = 1; i <= nav.pages; i++) {
1155
+ $(document.createElement('option'))
1156
+ .val(i).text(i)
1157
+ .appendTo(elements.currentPage);
1158
+ }
1159
+
1160
+ methods.checkNav();
1161
+ },
1162
+
1163
+ handleDataRequest: function(json) {
1164
+
1165
+ elements.dataBody.empty();
1166
+
1167
+ $.each(json, function(i, v) {
1168
+ var data = elements.rowClone.clone().children();
1169
+
1170
+ data.eq(0).children().val(v.id);
1171
+ data.eq(1).text(v.name);
1172
+ data.eq(2).text(v.email);
1173
+ data.eq(3).text(v.type);
1174
+ data.eq(4).text(v.date);
1175
+ data.eq(5).text(v.points);
1176
+ data.eq(6).text(v.result);
1177
+
1178
+ data.parent().show().appendTo(elements.dataBody);
1179
+ });
1180
+
1181
+ if(!json.length) {
1182
+ $(document.createElement('td'))
1183
+ .attr('colspan', '7')
1184
+ .text(wpProQuizLocalize.no_data_available)
1185
+ .css({'font-weight': 'bold', 'text-align': 'center', 'padding': '5px'})
1186
+ .appendTo(document.createElement('tr'))
1187
+ .appendTo(elements.dataBody);
1188
+ }
1189
+
1190
+ },
1191
+
1192
+ checkNav: function() {
1193
+ var n = elements.currentPage.val();
1194
+
1195
+ if(n == 1) {
1196
+ elements.pageLeft.hide();
1197
+ } else {
1198
+ elements.pageLeft.show();
1199
+ }
1200
+
1201
+ if(n == elements.currentPage.children().length) {
1202
+ elements.pageRight.hide();
1203
+ } else {
1204
+ elements.pageRight.show();
1205
+ }
1206
+ }
1207
+ };
1208
+
1209
+ var init = function() {
1210
+ elements.sort.change(function() {
1211
+ methods.loadData();
1212
+ });
1213
+
1214
+ elements.pageLimit.change(function() {
1215
+ methods.loadData({nav: 1});
1216
+ });
1217
+
1218
+ elements.currentPage.change(function() {
1219
+ methods.checkNav();
1220
+ methods.loadData();
1221
+ });
1222
+
1223
+ elements.pageLeft.click(function() {
1224
+ elements.currentPage.val(Number(elements.currentPage.val()) - 1);
1225
+ methods.checkNav();
1226
+ methods.loadData();
1227
+ });
1228
+
1229
+ elements.pageRight.click(function() {
1230
+ elements.currentPage.val(Number(elements.currentPage.val()) + 1);
1231
+ methods.checkNav();
1232
+ methods.loadData();
1233
+ });
1234
+
1235
+ $('#wpProQuiz_deleteAll').click(function() {
1236
+ methods.loadData({a: 'deleteAll'});
1237
+ });
1238
+
1239
+ $('#wpProQuiz_action').click(function() {
1240
+ var name = $('#wpProQuiz_actionName').val();
1241
+
1242
+ if(name != '0') {
1243
+
1244
+ var ids = $('input[name="checkedData[]"]:checked').map(function() {
1245
+ return $(this).val();
1246
+ }).get();
1247
+
1248
+ methods.loadData({a: name, toplistIds: ids});
1249
+ }
1250
+ });
1251
+
1252
+ $('#wpProQuiz_checkedAll').change(function() {
1253
+ if(this.checked)
1254
+ $('input[name="checkedData[]"]').attr('checked', 'checked');
1255
+ else
1256
+ $('input[name="checkedData[]"]').removeAttr('checked', 'checked');
1257
+ });
1258
+
1259
+ methods.loadData({nav: 1});
1260
+ };
1261
+
1262
+ init();
1263
+ };
1264
+
1265
 
1266
  if($('.wpProQuiz_quizOverall').length)
1267
  $('.wpProQuiz_quizOverall').wpProQuiz_preview();
1273
  if($('.wpProQuiz_quizEdit').length)
1274
  $('.wpProQuiz_quizEdit').wpProQuiz_quizEdit();
1275
 
1276
+ // if($('.wpProQuiz_questionEdit').length)
1277
+ // $('.wpProQuiz_questionEdit').wpProQuiz_questionEdit();
1278
 
1279
  if($('.wpProQuiz_questionOverall').length)
1280
  $('.wpProQuiz_questionOverall').wpProQuiz_questionOverall();
1281
 
1282
  if($('.wpProQuiz_statistics').length)
1283
  $('.wpProQuiz_statistics').wpProQuiz_statistics();
1284
+
1285
+ if($('.wpProQuiz_toplist').length)
1286
+ $('.wpProQuiz_toplist').wpProQuiz_toplist();
1287
+
1288
+ /**
1289
+ * NEW
1290
+ */
1291
+ function WpProQuiz_Admin() {
1292
+ var global = this;
1293
+
1294
+ global = {
1295
+ displayChecked: function(t, box, neg, disabled) {
1296
+ var c = neg ? !t.checked : t.checked;
1297
+
1298
+ if(disabled)
1299
+ c ? box.attr('disabled', 'disabled') : box.removeAttr('disabled');
1300
+ else
1301
+ c ? box.show() : box.hide();
1302
+ },
1303
+
1304
+ isEmpty: function(text) {
1305
+ text = $.trim(text);
1306
+
1307
+ return (!text || 0 === text.length);
1308
+ },
1309
+
1310
+ isNumber: function(number) {
1311
+ number = $.trim(number);
1312
+ return !global.isEmpty(number) && !isNaN(number);
1313
+ },
1314
+
1315
+ getMceContent: function(id) {
1316
+ var editor = tinymce.editors[id];
1317
+
1318
+ if(editor != undefined && !editor.isHidden()) {
1319
+ return editor.getContent();
1320
+ }
1321
+
1322
+ return $('#'+id).val();
1323
+ }
1324
+ };
1325
+
1326
+ var module = {
1327
+
1328
+ gobalSettings: function() {
1329
+ var init = function() {
1330
+ $('.wpProQuiz_tab').click(function() {
1331
+ var $this = $(this);
1332
+
1333
+ $('.wpProQuiz_tab').removeClass('button-primary').addClass('button-secondary');
1334
+ $this.removeClass('button-secondary').addClass('button-primary');
1335
+
1336
+ $('#problemInfo, #problemContent, #globalContent').hide('fast');
1337
+
1338
+ if($this.attr('id') == 'globalTab') {
1339
+ $('#globalContent').show('fast');
1340
+ } else {
1341
+ $('#problemInfo, #problemContent').show('fast');
1342
+ }
1343
+ });
1344
+ };
1345
+
1346
+ init();
1347
+ },
1348
+
1349
+ questionEdit: function() {
1350
+ var methode = this;
1351
+ var filter = $.noop();
1352
+
1353
+ var elements = {
1354
+ answerChildren: $('.answer_felder > div'),
1355
+ pointsModus: $('input[name="answerPointsActivated"]'),
1356
+ gPoints: $('input[name="points"]')
1357
+ };
1358
+
1359
+ methode = {
1360
+ generateArrayIndex: function() {
1361
+ var type = $('input[name="answerType"]:checked').val();
1362
+ type = (type == 'single' || type == 'multiple') ? 'classic_answer' : type;
1363
+
1364
+ $('.answerList').each(function() {
1365
+ var currentType = $(this).parent().attr('class');
1366
+
1367
+ $(this).children().each(function(i, v) {
1368
+ $(this).find('[name^="answerData"]').each(function() {
1369
+ var name = this.name;
1370
+ var x = name.search(/\](\[\w+\])+$/);
1371
+ var n = (type == currentType) ? i : 'none';
1372
+
1373
+ if(x > 0) {
1374
+ this.name = 'answerData[' + n + name.substring(x, name.length);
1375
+
1376
+ }
1377
+ });
1378
+ });
1379
+ });
1380
+ },
1381
+
1382
+ globalValidate: function() {
1383
+ if(global.isEmpty(global.getMceContent('question'))) {
1384
+ alert(wpProQuizLocalize.no_question_msg);
1385
+
1386
+ return false;
1387
+ }
1388
+
1389
+ if(!elements.pointsModus.is(':checked')) {
1390
+ var p = elements.gPoints.val();
1391
+
1392
+ if(!global.isNumber(p) || p < 1) {
1393
+ alert(wpProQuizLocalize.no_nummber_points);
1394
+
1395
+ return false;
1396
+ }
1397
+ } else {
1398
+ if($('input[name="answerType"]:checked').val() == 'free_answer') {
1399
+ alert(wpProQuizLocalize.dif_points);
1400
+ return false;
1401
+ }
1402
+ }
1403
+
1404
+ if(filter() === false)
1405
+ return false;
1406
+
1407
+ return true;
1408
+ },
1409
+
1410
+ answerRemove: function() {
1411
+ var li = $(this).parent();
1412
+
1413
+ if(li.parent().children().length < 2)
1414
+ return false;
1415
+
1416
+ li.remove();
1417
+
1418
+ return false;
1419
+ }
1420
+ };
1421
+
1422
+ var validate = {
1423
+ classic_answer: function() {
1424
+ var findText = 0;
1425
+ var findCorrect = 0;
1426
+ var findPoints = 0;
1427
+
1428
+ $('.classic_answer .answerList').children().each(function() {
1429
+ var t = $(this);
1430
+
1431
+ if(!global.isEmpty(t.find('textarea[name="answerData[][answer]"]').val())) {
1432
+ findText++;
1433
+
1434
+ if(t.find('input[name="answerData[][correct]"]:checked').length) {
1435
+ findCorrect++;
1436
+ }
1437
+
1438
+ var p = t.find('input[name="answerData[][points]"]').val();
1439
+
1440
+ if(global.isNumber(p) && p >= 0) {
1441
+ findPoints++;
1442
+ }
1443
+ }
1444
+ });
1445
+
1446
+ if(!findText) {
1447
+ alert(wpProQuizLocalize.no_answer_msg);
1448
+ return false;
1449
+ }
1450
+
1451
+ if(!findCorrect) {
1452
+ alert(wpProQuizLocalize.no_correct_msg);
1453
+ return false;
1454
+ }
1455
+
1456
+ if(findPoints != findText && elements.pointsModus.is(':checked')) {
1457
+ alert(wpProQuizLocalize.no_nummber_points_new);
1458
+ return false;
1459
+ }
1460
+
1461
+ return true;
1462
+ },
1463
+
1464
+ free_answer: function() {
1465
+ if(global.isEmpty($('.free_answer textarea[name="answerData[][answer]"]').val())) {
1466
+ alert(wpProQuizLocalize.no_answer_msg);
1467
+ return false;
1468
+ }
1469
+
1470
+ return true;
1471
+ },
1472
+
1473
+ cloze_answer: function() {
1474
+ if(global.isEmpty(global.getMceContent('cloze'))) {
1475
+ alert(wpProQuizLocalize.no_answer_msg);
1476
+ return false;
1477
+ }
1478
+
1479
+ return true;
1480
+ },
1481
+
1482
+ sort_answer: function() {
1483
+ var findText = 0;
1484
+ var findPoints = 0;
1485
+
1486
+ $('.sort_answer .answerList').children().each(function() {
1487
+ var t = $(this);
1488
+
1489
+ if(!global.isEmpty(t.find('textarea[name="answerData[][answer]"]').val())) {
1490
+ findText++;
1491
+
1492
+ var p = t.find('input[name="answerData[][points]"]').val();
1493
+
1494
+ if(global.isNumber(p) && p >= 0) {
1495
+ findPoints++;
1496
+ }
1497
+ }
1498
+ });
1499
+
1500
+ if(!findText) {
1501
+ alert(wpProQuizLocalize.no_answer_msg);
1502
+ return false;
1503
+ }
1504
+
1505
+ if(findPoints != findText && elements.pointsModus.is(':checked')) {
1506
+ alert(wpProQuizLocalize.no_nummber_points_new);
1507
+ return false;
1508
+ }
1509
+
1510
+ return true;
1511
+ },
1512
+
1513
+ matrix_sort_answer: function() {
1514
+ var findText = 0;
1515
+ var findPoints = 0;
1516
+ var sortString = true;
1517
+ var menge = 0;
1518
+
1519
+ $('.matrix_sort_answer .answerList').children().each(function() {
1520
+ var t = $(this);
1521
+ var p = t.find('input[name="answerData[][points]"]').val();
1522
+
1523
+ if(!global.isEmpty(t.find('textarea[name="answerData[][answer]"]').val())) {
1524
+ findText++;
1525
+ menge++;
1526
+
1527
+ if(global.isEmpty(t.find('textarea[name="answerData[][sort_string]"]').val())) {
1528
+ sortString = false;
1529
+ }
1530
+
1531
+ if(global.isNumber(p) && p >= 0) {
1532
+ findPoints++;
1533
+ }
1534
+ } else {
1535
+ if(!global.isEmpty(t.find('textarea[name="answerData[][sort_string]"]').val())) {
1536
+ menge++;
1537
+
1538
+ if(global.isNumber(p) && p >= 0) {
1539
+ findPoints++;
1540
+ }
1541
+ }
1542
+ }
1543
+ });
1544
+
1545
+ if(!findText) {
1546
+ alert(wpProQuizLocalize.no_answer_msg);
1547
+ return false;
1548
+ }
1549
+
1550
+ if(!sortString) {
1551
+ alert(wpProQuizLocalize.no_sort_element_criterion);
1552
+ return false;
1553
+ }
1554
+
1555
+ if(findPoints != menge && elements.pointsModus.is(':checked')) {
1556
+ alert(wpProQuizLocalize.no_nummber_points_new);
1557
+ return false;
1558
+ }
1559
+
1560
+ return true;
1561
+ }
1562
+ };
1563
+
1564
+ var formListener = function() {
1565
+ $('#wpProQuiz_tip').change(function() {
1566
+ global.displayChecked(this, $('#wpProQuiz_tipBox'));
1567
+ }).change();
1568
+
1569
+ $('#wpProQuiz_correctSameText').change(function() {
1570
+ global.displayChecked(this, $('#wpProQuiz_incorrectMassageBox'), true);
1571
+ }).change();
1572
+
1573
+ $('input[name="answerType"]').click(function() {
1574
+ elements.answerChildren.hide();
1575
+ var v = this.value;
1576
+
1577
+ if(v == 'single' || v == 'multiple') {
1578
+ var type = (v == 'single') ? 'radio' : 'checkbox';
1579
+ v = 'classic_answer';
1580
+
1581
+ $('.wpProQuiz_classCorrect').each(function() {
1582
+ $("<input type=" + type + " />")
1583
+ .attr({ name: this.name, value: this.value, checked: this.checked})
1584
+ .addClass('wpProQuiz_classCorrect wpProQuiz_checkbox')
1585
+ .insertBefore(this);
1586
+ }).remove();
1587
+ }
1588
+
1589
+ filter = (validate[v] != undefined) ? validate[v] : $.noop();
1590
+
1591
+ $('.' + v).show();
1592
+ });
1593
+
1594
+ $('input[name="answerType"]:checked').click();
1595
+
1596
+ $('.deleteAnswer').click(methode.answerRemove);
1597
+
1598
+ $('.addAnswer').click(function() {
1599
+ var ul = $(this).siblings('ul');
1600
+ var clone = ul.find('li:eq(0)').clone();
1601
+
1602
+ clone.find('.wpProQuiz_checkbox').removeAttr('checked');
1603
+ clone.find('.wpProQuiz_text').val('');
1604
+ clone.find('.wpProQuiz_points').val(1);
1605
+ clone.find('.deleteAnswer').click(methode.answerRemove);
1606
+
1607
+ clone.appendTo(ul);
1608
+
1609
+ return false;
1610
+ });
1611
+
1612
+ $('.sort_answer ul, .classic_answer ul, .matrix_sort_answer ul').sortable({
1613
+ handle: '.wpProQuiz_move'
1614
+ });
1615
+
1616
+ $('#saveQuestion').click(function() {
1617
+ if(!methode.globalValidate()) {
1618
+ return false;
1619
+ }
1620
+
1621
+ methode.generateArrayIndex();
1622
+
1623
+ return true;
1624
+ });
1625
+
1626
+ $(elements.pointsModus).change(function() {
1627
+ global.displayChecked(this, $('.wpProQuiz_answerPoints'));
1628
+ global.displayChecked(this, $('#wpProQuiz_showPointsBox'));
1629
+ global.displayChecked(this, elements.gPoints, false, true);
1630
+ }).change();
1631
+ };
1632
+
1633
+ var init = function() {
1634
+ elements.answerChildren.hide();
1635
+
1636
+ formListener();
1637
+ };
1638
+
1639
+ init();
1640
+ }
1641
+ };
1642
+
1643
+ var init = function() {
1644
+ var m = $.noop;
1645
+ if($('.wpProQuiz_questionEdit').length) {
1646
+ m = module.questionEdit;
1647
+ } else if($('.wpProQuiz_globalSettings').length) {
1648
+ m = module.gobalSettings;
1649
+ }
1650
+
1651
+ m();
1652
+ };
1653
+
1654
+ init();
1655
+ }
1656
+
1657
+ WpProQuiz_Admin();
1658
  });
js/wpProQuiz_admin.min.js CHANGED
@@ -1,35 +1,41 @@
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()});a(".wpProQuiz_demoBox a").mouseover(function(){a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1})},displaySingle:function(b){a(".classic_answer").find('input[name="answerJson[classic_answer][correct][]"]').each(function(){a("<input type="+
7
- 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","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"));
8
- c.setValueClassicAnswer();a(".deleteAnswer").click(function(){c.deleteAnswer(this)})},deleteAnswer:function(b){a(b).parent("li").remove();c.setValueClassicAnswer()},setValueClassicAnswer:function(){a(".classic_answer ul, .matrix_sort_answer ul, .sort_answer ul").children().each(function(){var b=a(this).index();a(this).find('input[name="answerJson[classic_answer][correct][]"], input[name="answerJson[classic_answer][html][]"], input[name="answerJson[answer_matrix_sort][answer_html][]"], input[name="answerJson[answer_matrix_sort][sort_string_html][]"], input[name="answerJson[answer_sort][html][]"]').val(b)})}},
9
- e=function(){var c="",d=a('input[name="answerType"]:checked'),e=a('input[name="points"]'),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=
10
- ""!=a.trim(a(this).parent().siblings("textarea").val())?f&1:!1}).size())return alert(wpProQuizLocalize.no_correct_msg),!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|=
11
- 0;else{var c=a(this).parent().parent().find('textarea[name="answerJson[answer_matrix_sort][sort_string][]"]');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(),
12
- b(c)))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()&&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",
13
- sort:c.parseSortArray()},b=(window.location.pathname+window.location.search).replace("admin.php","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=
14
- a("#questionCopySelect"),b=(window.location.pathname+window.location.search).replace("admin.php","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")}};
15
- 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();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"==
16
- 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");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",
17
- !1,d);b.parent().children(":visible").last().after(b);void 0!=tinymce.editors[d]&&!e&&tinyMCE.execCommand("mceAddControl",!1,d);a(this).show();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");
18
- 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(/\./)?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=
19
- !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},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")})}},
20
- 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()});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(),
21
- 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()):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():
22
- 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('input[name="showMaxQuestion"]').change(function(){this.checked?(a('input[name="statisticsOn"]').removeAttr("checked").attr("disabled","disabled").change(),a("#wpProQuiz_showMaxBox").show()):(a('input[name="statisticsOn"]').removeAttr("disabled"),
23
- a("#wpProQuiz_showMaxBox").hide())});a("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change();a('input[name="quizRunOnce"]').change();a('input[name="quizRunOnceType"]:checked').change();a('input[name="showMaxQuestion"]').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",
24
- userId:c};a("#wpProQuiz_loadData").show();a("#wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();a.post(d,c,b.setStatistics,"json")},setStatistics:function(b){var d=a(".wpProQuiz_statistics_table"),e=d.find("tbody"),f=0,h=0,i=0;if("wpProQuiz_typeOverview"!=c){var j=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*
25
- a.find(".wpProQuiz_pointsAnswer").text());!0==c?(0<h?d.find(".wpProQuiz_cResult").text(Math.round(1E4*(f/h))/100+"%"):d.find(".wpProQuiz_cResult").text("0%"),a.find(".wpProQuiz_cCorrectAnswerPoints").text(i)):(f+=b.cCorrectAnswerPoints*a.find(".wpProQuiz_pointsAnswer").text(),h+=(b.cCorrect+b.cIncorrect)*a.find(".wpProQuiz_points").text(),i+=b.cCorrectAnswerPoints*a.find(".wpProQuiz_pointsAnswer").text())};j(d,b.clear,!1);a.each(b.items,function(a,b){j(e.find("#wpProQuiz_tr_"+b.id),b,!1)});j(d.find("tfoot"),
26
- 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();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")),
27
- 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>');a.each(d.items,function(b,
28
- 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*(c.cPoints/c.totalPoints))/
29
- 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():0,k=(window.location.pathname+
30
- window.location.search).replace("admin.php","admin-ajax.php")+"&action=reset";a.post(k,{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&&a("#wpProQuiz_pageRight").show()}};
31
- 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);
32
- 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&&
33
- (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",
34
- "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();
35
- a(".wpProQuiz_statistics").length&&a(".wpProQuiz_statistics").wpProQuiz_statistics()});
 
 
 
 
 
 
1
+ jQuery(document).ready(function(a){a.fn.wpProQuiz_preview=function(){var b={openPreview:function(b){window.open(a(b).attr("href"),"wpProQuizPreview","width=900,height=900")}};a(".wpProQuiz_prview").click(function(a){b.openPreview(this);a.preventDefault()})};a.fn.wpProQuiz_quizOverall=function(){var b={changeExport:function(b){$input=a(b);$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 c=
2
+ $this.parent().parent().find(".wpProQuiz_quizName").text();a("<li>"+c+"</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(b){b.preventDefault();a(".wpProQuiz_importList").toggle("fast");a(".wpProQuiz_exportList").hide();a(".wpProQuiz_exportCheck").hide()});a(".wpProQuiz_export").click(function(b){b.preventDefault();a(".wpProQuiz_exportList").toggle("fast");a(".wpProQuiz_exportCheck").toggle("fast");a(".wpProQuiz_importList").hide()});a('input[name="exportItems"]').change(function(){b.changeExport(this)});a('input[name="exportItemsAll"]').change(function(){var b=
4
+ a('input[name="exportItems"]');this.checked?b.attr("checked",!0):b.attr("checked",!1);b.change()});a("#exportStart").click(function(a){b.startExport()||a.preventDefault()})};a.fn.wpProQuiz_questionOverall=function(){var b={saveSort:function(){var f={action:"wp_pro_quiz_update_sort",sort:b.parseSortArray()},c=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=save_sort";a.post(c,f,function(){a("#sortMsg").show(400).delay(1E3).hide(400)})},parseSortArray:function(){var b=
5
+ [];a("tbody tr").each(function(){b.push(this.id.replace("wpProQuiz_questionId_",""))});return b},sortUpdate:function(){a(".wpProQuiz_questionOverall tbody").children().each(function(){$t=a(this).children().first().text(a(this).index()+1)})},loadQuestionCopy:function(){var b=a("#questionCopySelect"),c=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_question";b.hide();b.empty();a("#loadDataImg").show();a.post(c,{action:"wp_pro_quiz_load_question",
6
+ excludeId:1},function(c){a.each(c,function(c,e){var h=a(document.createElement("optgroup"));h.attr("label",e.name);a.each(e.question,function(b,c){a(document.createElement("option")).val(c.id).text(c.name).appendTo(h)});b.append(h)});a("#loadDataImg").hide();b.show()},"json")}};a(".wp-list-table tbody").sortable({handle:".wpProQuiz_move",update:b.sortUpdate});a(".wpProQuiz_delete").click(function(a){return!confirm(wpProQuizLocalize.delete_msg)?(a.preventDefault(),!1):!0});a("#wpProQuiz_saveSort").click(function(a){a.preventDefault();
7
+ b.saveSort()});a("#wpProQuiz_questionCopy").click(function(f){var c=a(".wpProQuiz_questionCopy");c.is(":visible")?c.hide():(c.show(),b.loadQuestionCopy());f.preventDefault()})};a.fn.wpProQuiz_quizEdit=function(){var b={addResult:function(){a("#resultList").children().each(function(){if("none"==a(this).css("display")){var b=a(this),e=b.find('textarea[name="resultTextGrade[text][]"]'),d=e.attr("id"),g=!0;b.find('input[name="resultTextGrade[prozent][]"]').val("0");b.find('input[name="resultTextGrade[activ][]"]').val("1").keyup();
8
+ void 0!=tinymce.editors[d]&&!tinymce.editors[d].isHidden()&&(g=!1);void 0!=switchEditors&&!g&&(switchEditors.go(d,"toggle"),switchEditors.go(d,"toggle"));void 0!=tinymce.editors[d]?tinymce.editors[d].setContent(""):e.val("");void 0!=tinymce.editors[d]&&!g&&tinyMCE.execCommand("mceRemoveControl",!1,d);b.parent().children(":visible").last().after(b);void 0!=tinymce.editors[d]&&!g&&tinyMCE.execCommand("mceAddControl",!1,d);a(this).show();void 0!=switchEditors&&!g&&switchEditors.go(d,"toggle");return!1}})},
9
+ deleteResult:function(b){a(b).parent().parent().hide();a(b).siblings('input[name="resultTextGrade[activ][]"]').val("0")},changeResult:function(c){c=a(c);if(b.validResultInput(c.val()))return c.siblings(".resultProzent").text(c.val()),c.removeAttr("style"),!0;c.css("background-color","#FF9696");return!1},validResultInput:function(a){if(f(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(f(a("#wpProQuiz_title").val()))return alert(wpProQuizLocalize.no_title_msg),
10
+ !1;var c="",c=void 0!=tinymce.editors.text&&!tinymce.editors.text.isHidden()?tinymce.editors.text.getContent():a('textarea[name="text"]').val();if(f(c))return alert(wpProQuizLocalize.no_quiz_start_msg),!1;if(a("#wpProQuiz_resultGradeEnabled:checked").length){var e=!0;a("#resultList").children().each(function(){if(a(this).is(":visible")&&!b.validResultInput(a(this).find('input[name="resultTextGrade[prozent][]"]').val()))return e=!1});if(!e)return alert(wpProQuizLocalize.fail_grade_result),!1}return!0},
11
+ 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")})}},f=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(){b.addResult()});a(".deleteResult").click(function(){b.deleteResult(this)});
12
+ a('input[name="resultTextGrade[prozent][]"]').keyup(function(){b.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(c){b.validInput()||c.preventDefault();a('select[name="prerequisiteList[]"] option').attr("selected","selected")});a('input[name="quizRunOnce"]').change(function(){this.checked?
13
+ (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(){b.resetLock();return!1});a(".wpProQuiz_demoBox a").mouseover(function(){a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1});
14
+ a('input[name="showMaxQuestion"]').change(function(){this.checked?(a('input[name="statisticsOn"]').removeAttr("checked").attr("disabled","disabled").change(),a("#wpProQuiz_showMaxBox").show()):(a('input[name="statisticsOn"]').removeAttr("disabled"),a("#wpProQuiz_showMaxBox").hide())});a("#btnPrerequisiteAdd").click(function(){a('select[name="quizList"] option:selected').removeAttr("selected").appendTo('select[name="prerequisiteList[]"]')});a("#btnPrerequisiteDelete").click(function(){a('select[name="prerequisiteList[]"] option:selected').removeAttr("selected").appendTo('select[name="quizList"]')});
15
+ a('input[name="prerequisite"]').change(function(){this.checked?a("#prerequisiteBox").show():a("#prerequisiteBox").hide()}).change();a('input[name="toplistDataAddMultiple"]').change(function(){this.checked?a("#toplistDataAddBlockBox").show():a("#toplistDataAddBlockBox").hide()}).change();a('input[name="toplistActivated"]').change(function(){this.checked?a("#toplistBox > tr:gt(0)").show():a("#toplistBox > tr:gt(0)").hide()}).change();a("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change();
16
+ a('input[name="quizRunOnce"]').change();a('input[name="quizRunOnceType"]:checked').change();a('input[name="showMaxQuestion"]').change()};a.fn.wpProQuiz_statistics=function(){var b="wpProQuiz_typeAnonymeUser",f=!0,c={loadStatistics:function(b){var d=(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, #wpProQuiz_statistics_overview").hide();
17
+ a.post(d,b,c.setStatistics,"json")},setStatistics:function(c){var d=a(".wpProQuiz_statistics_table"),g=d.find("tbody");if("wpProQuiz_typeOverview"!=b){var h=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_cPoints").text(b.cPoints);!0==c&&d.find(".wpProQuiz_cResult").text(b.result+"%")};h(d,c.clear,!1);a.each(c.items,function(a,b){h(g.find("#wpProQuiz_tr_"+
18
+ b.id),b,!1)});h(d.find("tfoot"),c.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();a("#wpProQuiz_loadData").show();var e=(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(),
19
+ onlyCompleted:Number(a("#wpProQuiz_onlyCompleted").is(":checked")),page:a("#wpProQuiz_currentPage").val(),generatePageNav:Number(f)};a.post(e,d,function(d){a("#wpProQuiz_statistics_overview_data").empty();if("wpProQuiz_typeOverview"==b){var e=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>');
20
+ a.each(d.items,function(b,d){var c=e.clone();c.find("a").text(d.userName).data("userId",d.userId).click(function(){a("#userSelect").val(a(this).data("userId"));a("#wpProQuiz_typeRegisteredUser").click();return!1});d.completed?(c.find(".wpProQuiz_points").text(d.cPoints),c.find(".wpProQuiz_cCorrect").text(d.cCorrect+" ("+d.pCorrect+"%)"),c.find(".wpProQuiz_cIncorrect").text(d.cIncorrect+" ("+d.pIncorrect+"%)"),c.find(".wpProQuiz_cTip").text(d.cTip),c.find(".wpProQuiz_cResult").text(d.result+"%")):
21
+ c.find("th").removeAttr("style");a("#wpProQuiz_statistics_overview_data").append(c)});void 0!=d.page&&(c.setPageNav(d.page),f=!1);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_overview").show()}},"json")},changeTab:function(e){b=e;"wpProQuiz_typeRegisteredUser"==e?c.loadStatistics(a("#userSelect").val()):"wpProQuiz_typeAnonymeUser"==e?c.loadStatistics(0):c.loadOverview()},resetStatistic:function(e){var d="wpProQuiz_typeRegisteredUser"==b?a("#userSelect").val():0,g=(window.location.pathname+
22
+ window.location.search).replace("admin.php","admin-ajax.php")+"&action=reset";a.post(g,{action:"wp_pro_quiz_statistics",userId:d,complete:e},function(){c.changeTab(b)})},setPageNav:function(b){b=Math.ceil(b/a("#wpProQuiz_pageLimit").val());a("#wpProQuiz_currentPage").empty();for(var d=1;d<=b;d++)a(document.createElement("option")).val(d).text(d).appendTo(a("#wpProQuiz_currentPage"));a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();1<a("#wpProQuiz_currentPage option").length&&a("#wpProQuiz_pageRight").show()}};
23
+ 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");c.changeTab(b.attr("id"));return!1});a("#userSelect").change(function(){c.changeTab("wpProQuiz_typeRegisteredUser")});a(".wpProQuiz_update").click(function(){c.changeTab(b);
24
+ return!1});a("#wpProQuiz_reset").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&c.resetStatistic(!1);return!1});a(".wpProQuiz_resetComplete").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&c.resetStatistic(!0);return!1});a("#wpProQuiz_pageLimit, #wpProQuiz_onlyCompleted").change(function(){a("#wpProQuiz_currentPage").val(0);f=!0;c.changeTab(b);return!1});a("#wpProQuiz_currentPage").change(function(){a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();1!=a("#wpProQuiz_currentPage option").length&&
25
+ (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());c.changeTab(b)});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",
26
+ "selected");a("#wpProQuiz_currentPage").change();return!1});c.changeTab("wpProQuiz_typeAnonymeUser")};a.fn.wpProQuiz_toplist=function(){var b=this,f=a("#wpProQuiz_sorting"),c=a("#wpProQuiz_pageLimit"),e=a("#wpProQuiz_currentPage"),d=a("#wpProQuiz_loadData"),g=a("#wpProQuiz_pageLeft"),h=a("#wpProQuiz_pageRight"),i=a("#wpProQuiz_toplistTable tbody"),k=a("#wpProQuiz_toplistTable tbody tr:eq(0)").clone(),j=a("#wpProQuiz_content"),b={loadData:function(l){var m=(window.location.pathname+window.location.search).replace("admin.php",
27
+ "admin-ajax.php")+"&action=load_toplist",g={action:"wp_pro_quiz_load_toplist",sort:f.val(),limit:c.val(),page:e.val()};void 0!=l&&a.extend(g,l);d.show();j.hide();a.post(m,g,function(a){b.handleDataRequest(a.data);void 0!=a.nav&&b.handleNav(a.nav);d.hide();j.show()},"json")},handleNav:function(d){e.empty();for(var c=1;c<=d.pages;c++)a(document.createElement("option")).val(c).text(c).appendTo(e);b.checkNav()},handleDataRequest:function(b){i.empty();a.each(b,function(a,b){var d=k.clone().children();
28
+ d.eq(0).children().val(b.id);d.eq(1).text(b.name);d.eq(2).text(b.email);d.eq(3).text(b.type);d.eq(4).text(b.date);d.eq(5).text(b.points);d.eq(6).text(b.result);d.parent().show().appendTo(i)});b.length||a(document.createElement("td")).attr("colspan","7").text(wpProQuizLocalize.no_data_available).css({"font-weight":"bold","text-align":"center",padding:"5px"}).appendTo(document.createElement("tr")).appendTo(i)},checkNav:function(){var a=e.val();1==a?g.hide():g.show();a==e.children().length?h.hide():
29
+ h.show()}};f.change(function(){b.loadData()});c.change(function(){b.loadData({nav:1})});e.change(function(){b.checkNav();b.loadData()});g.click(function(){e.val(Number(e.val())-1);b.checkNav();b.loadData()});h.click(function(){e.val(Number(e.val())+1);b.checkNav();b.loadData()});a("#wpProQuiz_deleteAll").click(function(){b.loadData({a:"deleteAll"})});a("#wpProQuiz_action").click(function(){var d=a("#wpProQuiz_actionName").val();if("0"!=d){var c=a('input[name="checkedData[]"]:checked').map(function(){return a(this).val()}).get();
30
+ b.loadData({a:d,toplistIds:c})}});a("#wpProQuiz_checkedAll").change(function(){this.checked?a('input[name="checkedData[]"]').attr("checked","checked"):a('input[name="checkedData[]"]').removeAttr("checked","checked")});b.loadData({nav:1})};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_questionOverall").length&&
31
+ a(".wpProQuiz_questionOverall").wpProQuiz_questionOverall();a(".wpProQuiz_statistics").length&&a(".wpProQuiz_statistics").wpProQuiz_statistics();a(".wpProQuiz_toplist").length&&a(".wpProQuiz_toplist").wpProQuiz_toplist();(function(){var b=this,b={displayChecked:function(a,b,c,e){a=c?!a.checked:a.checked;e?a?b.attr("disabled","disabled"):b.removeAttr("disabled"):a?b.show():b.hide()},isEmpty:function(b){b=a.trim(b);return!b||0===b.length},isNumber:function(d){d=a.trim(d);return!b.isEmpty(d)&&!isNaN(d)},
32
+ getMceContent:function(b){var c=tinymce.editors[b];return void 0!=c&&!c.isHidden()?c.getContent():a("#"+b).val()}},f=function(){a(".wpProQuiz_tab").click(function(){var b=a(this);a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");b.removeClass("button-secondary").addClass("button-primary");a("#problemInfo, #problemContent, #globalContent").hide("fast");"globalTab"==b.attr("id")?a("#globalContent").show("fast"):a("#problemInfo, #problemContent").show("fast")})},c=function(){var c=
33
+ this,e=a.noop(),f=a(".answer_felder > div"),i=a('input[name="answerPointsActivated"]'),k=a('input[name="points"]'),c={generateArrayIndex:function(){var b=a('input[name="answerType"]:checked').val(),b="single"==b||"multiple"==b?"classic_answer":b;a(".answerList").each(function(){var c=a(this).parent().attr("class");a(this).children().each(function(d){a(this).find('[name^="answerData"]').each(function(){var a=this.name,e=a.search(/\](\[\w+\])+$/),f=b==c?d:"none";0<e&&(this.name="answerData["+f+a.substring(e,
34
+ a.length))})})})},globalValidate:function(){if(b.isEmpty(b.getMceContent("question")))return alert(wpProQuizLocalize.no_question_msg),!1;if(i.is(":checked")){if("free_answer"==a('input[name="answerType"]:checked').val())return alert(wpProQuizLocalize.dif_points),!1}else{var c=k.val();if(!b.isNumber(c)||1>c)return alert(wpProQuizLocalize.no_nummber_points),!1}return!1===e()?!1:!0},answerRemove:function(){var b=a(this).parent();if(2>b.parent().children().length)return!1;b.remove();return!1}},j={classic_answer:function(){var c=
35
+ 0,d=0,e=0;a(".classic_answer .answerList").children().each(function(){var f=a(this);b.isEmpty(f.find('textarea[name="answerData[][answer]"]').val())||(c++,f.find('input[name="answerData[][correct]"]:checked').length&&d++,f=f.find('input[name="answerData[][points]"]').val(),b.isNumber(f)&&0<=f&&e++)});return!c?(alert(wpProQuizLocalize.no_answer_msg),!1):!d?(alert(wpProQuizLocalize.no_correct_msg),!1):e!=c&&i.is(":checked")?(alert(wpProQuizLocalize.no_nummber_points_new),!1):!0},free_answer:function(){return b.isEmpty(a('.free_answer textarea[name="answerData[][answer]"]').val())?
36
+ (alert(wpProQuizLocalize.no_answer_msg),!1):!0},cloze_answer:function(){return b.isEmpty(b.getMceContent("cloze"))?(alert(wpProQuizLocalize.no_answer_msg),!1):!0},sort_answer:function(){var c=0,d=0;a(".sort_answer .answerList").children().each(function(){var e=a(this);b.isEmpty(e.find('textarea[name="answerData[][answer]"]').val())||(c++,e=e.find('input[name="answerData[][points]"]').val(),b.isNumber(e)&&0<=e&&d++)});return!c?(alert(wpProQuizLocalize.no_answer_msg),!1):d!=c&&i.is(":checked")?(alert(wpProQuizLocalize.no_nummber_points_new),
37
+ !1):!0},matrix_sort_answer:function(){var c=0,d=0,e=!0,f=0;a(".matrix_sort_answer .answerList").children().each(function(){var g=a(this),h=g.find('input[name="answerData[][points]"]').val();b.isEmpty(g.find('textarea[name="answerData[][answer]"]').val())?b.isEmpty(g.find('textarea[name="answerData[][sort_string]"]').val())||(f++,b.isNumber(h)&&0<=h&&d++):(c++,f++,b.isEmpty(g.find('textarea[name="answerData[][sort_string]"]').val())&&(e=!1),b.isNumber(h)&&0<=h&&d++)});return!c?(alert(wpProQuizLocalize.no_answer_msg),
38
+ !1):!e?(alert(wpProQuizLocalize.no_sort_element_criterion),!1):d!=f&&i.is(":checked")?(alert(wpProQuizLocalize.no_nummber_points_new),!1):!0}};f.hide();a("#wpProQuiz_tip").change(function(){b.displayChecked(this,a("#wpProQuiz_tipBox"))}).change();a("#wpProQuiz_correctSameText").change(function(){b.displayChecked(this,a("#wpProQuiz_incorrectMassageBox"),!0)}).change();a('input[name="answerType"]').click(function(){f.hide();var b=this.value;if("single"==b||"multiple"==b){var c="single"==b?"radio":"checkbox",
39
+ b="classic_answer";a(".wpProQuiz_classCorrect").each(function(){a("<input type="+c+" />").attr({name:this.name,value:this.value,checked:this.checked}).addClass("wpProQuiz_classCorrect wpProQuiz_checkbox").insertBefore(this)}).remove()}e=void 0!=j[b]?j[b]:a.noop();a("."+b).show()});a('input[name="answerType"]:checked').click();a(".deleteAnswer").click(c.answerRemove);a(".addAnswer").click(function(){var b=a(this).siblings("ul"),e=b.find("li:eq(0)").clone();e.find(".wpProQuiz_checkbox").removeAttr("checked");
40
+ e.find(".wpProQuiz_text").val("");e.find(".wpProQuiz_points").val(1);e.find(".deleteAnswer").click(c.answerRemove);e.appendTo(b);return!1});a(".sort_answer ul, .classic_answer ul, .matrix_sort_answer ul").sortable({handle:".wpProQuiz_move"});a("#saveQuestion").click(function(){if(!c.globalValidate())return!1;c.generateArrayIndex();return!0});a(i).change(function(){b.displayChecked(this,a(".wpProQuiz_answerPoints"));b.displayChecked(this,a("#wpProQuiz_showPointsBox"));b.displayChecked(this,k,!1,!0)}).change()},
41
+ e=a.noop;a(".wpProQuiz_questionEdit").length?e=c:a(".wpProQuiz_globalSettings").length&&(e=f);e()})()});
js/wpProQuiz_front.js CHANGED
@@ -1,521 +1,476 @@
1
  (function($) {
2
  $.wpProQuizFront = function(element, options) {
3
- var $element = $(element);
4
  var config = options;
5
  var plugin = this;
6
- var correctAnswer = 0;
7
- var countAnswer = 0;
8
- var intervalId = 0;
9
  var startTime = 0;
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;
17
- var loadLocked = false;
18
- var startQuiz = false;
 
 
19
 
20
- plugin.methode = {
21
-
22
- preStartQuiz: function() {
23
- statistics = new Object();
 
24
 
25
- if(config.questionRandom) {
26
- plugin.methode.questionRandom();
27
- }
28
-
29
- if(config.answerRandom) {
30
- plugin.methode.answerRandom('.wpProQuiz_questionList');
31
- } else {
32
- plugin.methode.answerRandom($element.find('.wpProQuiz_sortable').parent().parent());
33
- }
34
-
35
- plugin.methode.answerRandom('.wpProQuiz_sortStringList');
36
-
37
- correctAnswer = 0;
38
- points = 0;
39
-
40
- if(!config.questionOnSinglePage) {
41
- if(config.checkAnswer) {
42
- $element.find('input[name="check"]').show();
43
- } else {
44
- $element.find('input[name="next"]').show();
45
- }
46
- }
47
-
48
- if(!isLock || !loadLocked) {
49
- plugin.methode.startQuiz();
50
- } else {
51
- startQuiz = true;
52
- }
53
-
54
- if(config.numberedAnswer) {
55
- plugin.methode.numberedAnswer();
56
- }
57
- },
58
 
59
- startQuiz: function() {
60
- $element.find('.wpProQuiz_text').hide();
61
-
62
- if(locked) {
63
- $element.find('.wpProQuiz_lock').show();
64
- return;
65
  }
 
66
 
67
- startTime = new Date();
68
-
69
- if(config.timeLimit) {
70
- plugin.methode.setTimeLimit();
71
- }
72
 
73
- if(config.questionOnSinglePage) {
74
- $element.find('.wpProQuiz_listItem').show();
75
- }
76
 
77
- $element.find('.wpProQuiz_listItem').first().show();
78
- $element.find('.wpProQuiz_quiz').fadeIn(200);
79
 
80
- $element.find('.wpProQuiz_sortable').parent().parent().sortable().disableSelection();
81
 
82
- $element.find('.wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion').sortable({
83
- connectWith: '.wpProQuiz_maxtrixSortCriterion:not(:has(li)), .wpProQuiz_sortStringList',
84
- placeholder: 'wpProQuiz_placehold'
85
- }).disableSelection();
86
- },
87
-
88
- scrollTo: function(e, c) {
89
- var x = e.offset().top - 100;
90
-
91
- if(c) {
92
- if((window.pageYOffset || document.body.scrollTop) > x) {
93
- $('html,body').animate({scrollTop: x}, 300);
94
  }
95
- } else {
96
- $('html,body').animate({scrollTop: x}, 300);
97
- }
98
- },
99
-
100
- reStartQuiz: function() {
101
- $element.find('.wpProQuiz_answerCorrect').removeClass('wpProQuiz_answerCorrect');
102
- $element.find('.wpProQuiz_answerIncorrect').removeClass('wpProQuiz_answerIncorrect');
103
-
104
- $element.find('.wpProQuiz_text, input[name="tip"]').show();
105
- $element.find('.wpProQuiz_quiz, .wpProQuiz_results, .wpProQuiz_response, .wpProQuiz_correct, .wpProQuiz_incorrect')
106
- .hide();
107
- $element.find('.wpProQuiz_time_limit, .wpProQuiz_time_limit_expired, .wpProQuiz_sort_correct_answer')
108
- .hide();
109
- $element.find('.wpProQuiz_quiz').children().first().children().hide();
110
- $element.find('.wpProQuiz_sortable, .wpProQuiz_sortStringItem').removeAttr('style');
111
- $element.find('input[name="check"]').hide();
112
- $element.find('input[name="next"]').hide();
113
- $element.find('.wpProQuiz_questionInput').removeAttr('disabled').removeAttr('checked');
114
- $element.find('input.wpProQuiz_questionInput[type="text"]').removeAttr('value');
115
- $element.find('.wpProQuiz_resultsList').children().hide();
116
- $element.find('.wpProQuiz_cloze input').removeAttr('disabled').removeAttr('value').css('background-color', '');
117
- $element.find('.wpProQuiz_cloze span').hide();
118
- $element.find('input[name="checkSingle"]').show();
119
-
120
- if(!config.questionOnSinglePage) {
121
- $element.find('.wpProQuiz_question_page').show();
122
- }
123
-
124
- plugin.methode.resetMatrix();
125
-
126
- $element.find('.wpProQuiz_listItem').data('isChecked', false);
127
- },
128
-
129
- numberedAnswer: function() {
130
- $element.find('.wpProQuiz_listItem').each(function() {
131
- var $listItem = $(this);
132
- var type = $listItem.data('type');
133
- var index = 1;
134
 
135
- if(type == 'multiple' || type == 'single') {
136
- $listItem.find('.WpProQuiz_numberedAnswer').each(function() {
137
- $(this).text(index++ + '. ');
138
- });
 
139
  }
140
- });
141
- },
142
-
143
- resetMatrix: function() {
144
- $element.find('.wpProQuiz_question').each(function() {
145
- var $tq = $(this);
146
- var $list = $tq.find('.wpProQuiz_sortStringList');
147
 
148
- $tq.find('.wpProQuiz_sortStringItem').each(function() {
149
- $list.append($(this));
150
- });
151
- });
152
- },
153
 
154
- setTimeLimit: function() {
155
- var $timeLimit = $element.find('.wpProQuiz_time_limit');
156
- var $span = $timeLimit.find('span');
157
- var limit = config.timeLimit;
158
-
159
- $timeLimit.css({width: '100%', display: 'block'});
160
- $span.html(plugin.methode.parseTime(limit));
161
- $timeLimit.find('.progress').css('width', '100%').animate({width: '0%'}, config.timeLimit * 1000);
162
-
163
- intervalId = setInterval(function() {
164
- $span.html(plugin.methode.parseTime(limit--));
165
-
166
- if(limit < 0) {
167
- clearInterval(intervalId);
168
- intervalId = 0;
169
- $timeLimit.find('.progress').clearQueue().stop();
170
- $element.find('input[name="check"]').click().parent().hide();
171
- $element.find('.wpProQuiz_time_limit_expired').show();
172
- plugin.methode.showResult();
173
- }
174
- }, 1000);
175
- },
176
 
177
- parseTime: function(sec) {
178
- var seconds = parseInt(sec % 60);
179
- var minutes = parseInt((sec / 60) % 60);
180
- var hours = parseInt((sec / 3600) % 24);
181
-
182
- seconds = (seconds > 9 ? '' : '0') + seconds;
183
- minutes = (minutes > 9 ? '' : '0') + minutes;
184
- hours = (hours > 9 ? '' : '0') + hours;
185
-
186
- return hours + ':' + minutes + ':' + seconds;
187
- },
188
 
189
- setQuizTime: function() {
190
- var sec = (new Date().getTime() - startTime.getTime()) / 1000;
191
- $element.find('.wpProQuiz_quiz_time span').first().html(plugin.methode.parseTime(sec));
192
- },
193
-
194
- setData: function() {
195
- var i = 0;
196
- $element.find('.wpProQuiz_questionList').each(function() {
197
- var j = config.json[i];
198
- var ii = 0;
199
-
200
- pointsTotal += j.points;
201
-
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) {
211
- case 'single':
212
- case 'multiple':
213
- if($.inArray(this.value, j.correct) >= 0) {
214
- $(this).data('correct', '1');
215
- } else {
216
- $(this).data('correct', '0');
217
- }
218
- break;
219
- case 'free_answer':
220
- $(this).data('correct', j.correct);
221
- break;
222
- }
223
- });
224
-
225
- ii = 0;
226
- $(this).find('.wpProQuiz_sortable').each(function() {
227
- $(this).data('correct', j.correct[ii++]);
228
- });
229
-
230
- ii = 0;
231
- $(this).parent().find('.wpProQuiz_sortStringList').children().each(function() {
232
- $(this).data('correct', j.correct[ii++]);
233
- });
234
-
235
- if(j.answer_type == 'matrix_sort_answer') {
236
- $(this).children().each(function() {
237
- $(this).data('correct', $(this).index());
238
- });
239
- }
240
-
241
- i++;
242
- });
243
- },
244
-
245
- checkAnswer: function(btn) {
246
- var $question = $(btn).parent();
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
-
254
- if($question.data('isChecked')) {
255
- return;
256
- }
257
-
258
- if(type == 'multiple' || type == 'single') {
259
- var check = true;
260
-
261
- checked.each(function() {
262
- if($(this).data('correct') == '1') {
263
- plugin.methode.setAnswerMark($(this).parent().parent(), true);
264
 
265
- if(this.checked) {
266
- check &= true;
267
- correctCount++;
268
  } else {
269
- check &= false;
270
- }
 
 
271
  } else {
272
- if(this.checked) {
273
- plugin.methode.setAnswerMark($(this).parent().parent(), false);
274
- check &= false;
 
 
 
 
275
  }
276
  }
277
  });
278
-
279
- correct = check;
280
-
281
- } else if(type == 'sort_answer') {
282
- var check = true;
283
 
284
- $question.find('.wpProQuiz_sortable').each(function() {
285
- var $div = $(this);
286
- var index = $div.parent().index();
287
- var correct = $div.data('correct');
288
 
289
- if(correct == index) {
290
- plugin.methode.setAnswerMark($div.parent(), true);
291
- check &= true;
292
- correctCount++;
 
 
293
  } else {
294
- plugin.methode.setAnswerMark($div.parent(), false);
295
- check = false;
296
  }
297
-
298
- $div.css({'box-shadow': '0 0', 'cursor': 'auto'});
299
  });
300
 
301
- var list = $question.find('.wpProQuiz_sortable').parent().parent();
302
- var items = list.children('li');
303
-
304
- list.sortable("destroy");
305
-
306
- items.sort(function(a, b) {
307
- return $(a).children('div').data('correct') - $(b).children('div').data('correct');
308
- });
309
 
310
- $.each(items, function(idx, itm) { list.append(itm); });
311
 
312
- correct = check;
 
 
313
 
314
- } else if(type == 'free_answer') {
315
- var value = $.trim(checked.val()).toLowerCase();
 
 
 
 
316
 
317
- if($.inArray(value, checked.data('correct')) >= 0) {
318
- correct = true;
319
- correctCount++;
320
- plugin.methode.setAnswerMark(checked.parent().parent(), true);
321
- } else {
322
- plugin.methode.setAnswerMark(checked.parent().parent(), false);
323
- }
324
- } else if(type == 'matrix_sort_answer') {
325
- var check = true;
326
- var $qList = $question.find('.wpProQuiz_questionList').children();
327
- var matrixArray = new Object();
328
-
329
- $qList.each(function() {
330
- var index = $(this).data('correct');
331
- var $par = $(this).find('.wpProQuiz_maxtrixSortCriterion');
332
- var item = $par.children().first();
333
 
334
- if(item.data('correct') == index) {
335
- check &= true;
336
- correctCount++;
337
- plugin.methode.setAnswerMark($par, true);
 
 
338
  } else {
339
- check = false;
340
- plugin.methode.setAnswerMark($par, false);
341
  }
342
 
343
- matrixArray[index] = $(this);
344
  });
345
 
 
 
346
  $question.find('.wpProQuiz_sortStringItem').each(function() {
347
- matrixArray[$(this).data('correct')].find('.wpProQuiz_maxtrixSortCriterion').append(this);
 
 
348
  }).css({'box-shadow': '0 0', 'cursor': 'auto'});
349
 
350
  $question.find('.wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion').sortable("destroy");
 
 
 
 
 
351
 
352
- correct = check;
353
- } else if(type == 'cloze_answer') {
354
- var check = true;
355
-
356
- $question.find('.wpProQuiz_cloze').each(function() {
 
 
 
 
 
357
  var $this = $(this);
358
- var children = $this.children();
359
- var input = children.first();
360
- var iText = input.val().toLowerCase();
361
- var cloze = children.last().text().toLowerCase();
362
 
363
- cloze = $.trim(cloze.substr(1, cloze.length-2));
364
- cloze = plugin.methode.cleanupCurlyQuotes(cloze);
365
- iText = plugin.methode.cleanupCurlyQuotes($.trim(iText));
366
-
367
- if(cloze == iText) {
368
- check &= true;
369
- correctCount++;
 
 
370
 
371
- if(!config.disabledAnswerMark) {
372
  input.css('background-color', '#B0DAB0');
373
  }
374
  } else {
375
-
376
- check = false;
377
-
378
- if(!config.disabledAnswerMark) {
379
  input.css('background-color', '#FFBABA');
380
  }
381
 
382
- children.last().show();
 
 
383
  }
384
 
385
  input.attr('disabled', 'disabled');
386
 
387
  });
388
-
389
- correct = check;
390
  }
391
-
392
- $(btn).hide();
393
- checked.attr('disabled', 'disabled');
394
-
395
- if(statistics[$question.data('questionId')] == undefined) {
396
- statistics[$question.data('questionId')] = new Object();
397
- }
398
-
399
- statistics[$question.data('questionId')].correct = Number(correct);
400
-
401
- $question.find('.wpProQuiz_response').show();
402
-
403
- if($question.data('pointsPerAnswer')) {
404
- points += $question.data('pointsAnswer') * correctCount;
405
- statistics[$question.data('questionId')].correct_answer_count = correctCount;
 
 
 
 
 
 
 
 
 
 
406
  }
407
-
408
- $question.find('.wpProQuiz_responsePoints').text($question.data('pointsAnswer') * correctCount);
 
 
 
 
 
409
 
410
- if(correct) {
411
- $question.find('.wpProQuiz_correct').show();
412
- correctAnswer++;
413
 
414
- if(!$question.data('pointsPerAnswer')) {
415
- points += $question.data('points');
416
- statistics[$question.data('questionId')].correct_answer_count = 1;
417
- }
418
 
419
- } else {
420
- $question.find('.wpProQuiz_incorrect').show();
421
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
422
 
423
- $question.find('input[name="next"]').show();
 
424
 
425
- $question.data('isChecked', true);
426
  },
427
 
428
- setAnswerMark: function(obj, c) {
429
- if(!config.disabledAnswerMark) {
430
- if(c) {
431
- obj.addClass('wpProQuiz_answerCorrect');
 
 
 
 
 
 
 
 
 
 
 
432
  } else {
433
- obj.addClass('wpProQuiz_answerIncorrect');
434
  }
435
  }
436
  },
437
-
438
- nextQuestion: function(btn) {
439
- var $q = $(btn).parent();
440
- var $next = $q.next();
441
- $q.hide();
442
-
443
- if($next.length) {
444
- $next.show();
445
-
446
- if(config.backButton && !config.checkAnswer)
447
- $next.find('input[name="back"]').show();
448
 
449
- plugin.methode.scrollTo($next, true);
 
 
 
 
 
450
 
451
- } else {
 
 
 
 
 
452
 
453
- if(config.questionOnSinglePage) {
454
- $element.find('.wpProQuiz_listItem, input[name="checkSingle"]').hide();
455
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
456
 
457
- if(!config.checkAnswer || config.questionOnSinglePage)
458
- $element.find('input[name="check"]').click();
459
-
460
- plugin.methode.showResult();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
461
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
462
  },
463
 
464
- backQuestion: function(btn) {
465
- var $q = $(btn).parent();
466
- var $prev = $q.prev();
467
 
468
- $q.hide();
469
- $prev.show();
470
 
471
- plugin.methode.scrollTo($prev, true);
 
472
  },
473
-
474
- showResult: function() {
475
- clearInterval(intervalId);
476
-
477
- var $pointsSpan = $element.find('.wpProQuiz_points span');
478
 
479
- $element.find('.wpProQuiz_time_limit .progress').clearQueue().stop();
480
- $element.find('.wpProQuiz_correct_answer').html(correctAnswer);
481
- $element.find('.wpProQuiz_results').show();
482
- $element.find('.wpProQuiz_time_limit, input[name="checkSingle"]').hide();
483
- plugin.methode.setQuizTime();
484
 
485
- var pointsProzent = Math.round(points / pointsTotal * 100 * 100) / 100;
486
 
487
- $pointsSpan.eq(0).text(points);
488
- $pointsSpan.eq(1).text(pointsTotal);
489
- $pointsSpan.eq(2).text(pointsProzent);
490
 
491
- var index = plugin.methode.findResultIndex(pointsProzent);
492
 
493
- if(index > -1) {
494
- $element.find('.wpProQuiz_resultsList').children().eq(index).show();
495
  }
496
 
497
- plugin.methode.scrollTo($element.find('.wpProQuiz_results'), true);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
498
 
499
  plugin.methode.sendCompletedQuiz();
 
 
 
 
 
500
  },
501
 
502
  sendCompletedQuiz: function() {
503
- if(config.preview)
504
  return;
505
 
506
- if(cors) {
507
- jQuery.support.cors = true;
508
- }
509
-
510
- $.post(config.url, {
511
  action : 'wp_pro_quiz_completed_quiz',
512
- 'results' : statistics,
513
- 'quizId' : config.quizId
514
  });
515
-
516
- if(cors) {
517
- jQuery.support.cors = false;
518
- }
519
  },
520
 
521
  findResultIndex: function(p) {
@@ -535,187 +490,304 @@
535
  return index;
536
  },
537
 
538
- cleanupCurlyQuotes: function(str) {
 
 
 
 
539
 
540
- str = str.replace(/\u2018/, "'");
541
- str = str.replace(/\u2019/, "'");
542
-
543
- str = str.replace(/\u201C/, '"');
544
- str = str.replace(/\u201D/, '"');
545
-
546
- return str;
547
  },
548
-
549
- reShowQuestion: function() {
550
- $element.find('input[name="next"], input[name="check"], input[name="back"], input[name="checkSingle"]').hide();
551
- $element.find('.wpProQuiz_quiz').children().first().children().show();
552
- $element.find('.wpProQuiz_question_page').hide();
553
- },
554
-
555
- answerRandom: function(selector) {
556
- $element.find(selector).each(function() {
557
- var answer = $(this).children();
558
-
559
- var el = answer.sort(function() {
560
- return Math.round(Math.random())-0.5;
561
- }).slice(0, answer.length);
562
-
563
- $(el).appendTo(el[0].parentNode).show();
564
- });
565
- },
566
-
567
- questionRandom: function() {
568
- var answer = $element.find('.wpProQuiz_quiz ol').children();
569
-
570
- var el = answer.sort(function() {
571
- return Math.round(Math.random())-0.5;
572
- }).slice(0, answer.length);
573
-
574
- $(el).appendTo(el[0].parentNode);
575
-
576
- var i = 1;
577
- $(el).each(function() {
578
- $(this).find('.wpProQuiz_question_page span').eq(0).html(i);
579
- $(this).find('h3 span').html(i++);
580
  });
581
  },
582
 
583
- showTip: function(e) {
584
- $tip = $(e).siblings('.wpProQuiz_tipp');
585
- $par = $(e).parent();
 
 
586
 
587
- if(statistics[$par.data('questionId')] == undefined) {
588
- statistics[$par.data('questionId')] = new Object();
589
- }
 
 
 
 
 
 
 
 
 
590
 
591
- statistics[$par.data('questionId')].tip = 1;
592
 
593
- $tip.toggle('fast');
594
  },
595
 
596
- setClozeStyle: function() {
597
- $element.find('.wpProQuiz_cloze').each(function() {
 
 
598
  var $this = $(this);
599
- var children = $this.children();
600
- var input = children.first();
601
- var cloze = children.last();
602
- var clone = cloze.clone();
603
 
604
- clone.css('visibility', 'hidden');
 
 
605
 
606
- $('body').append(clone);
 
 
607
 
608
- var width = clone.width();
609
 
610
- clone.remove();
 
 
611
 
612
- input.width(width + 10);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
613
  });
614
  },
615
 
616
- checkLock: function() {
 
 
 
 
617
 
618
- loadLocked = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
619
 
620
- if(cors) {
621
  jQuery.support.cors = true;
622
  }
623
 
624
- $.post(config.url, {
 
 
 
 
 
 
 
 
 
 
 
625
  action: 'wp_pro_quiz_check_lock',
626
  quizId: config.quizId
627
  }, function(json) {
628
- locked = json.is;
629
- loadLocked = false;
630
 
631
- if(json.pre) {
632
- $element.find('input[name="restartQuiz"]').hide();
 
 
 
 
633
  }
634
 
635
- if(startQuiz) {
636
- startQuiz = false;
 
 
 
 
 
 
637
  plugin.methode.startQuiz();
638
  }
639
- }, 'json');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
640
 
641
- if(cors) {
642
- jQuery.support.cors = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
643
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
644
  }
645
  };
646
 
647
  plugin.init = function() {
 
 
648
 
649
- if(config.cors && jQuery.support != undefined && jQuery.support.cors != undefined && jQuery.support.cors == false) {
650
- cors = true;
651
- }
652
-
653
- correctAnswer = 0;
654
-
655
- if(config.lock && !config.preview) {
656
- isLock = true;
657
- plugin.methode.checkLock();
658
  }
659
 
660
- if(config.resultsGrade == undefined)
661
- config.resultsGrade = [0];
662
-
663
- $element.find('.wpProQuiz_quiz, .wpProQuiz_results').hide();
664
-
665
- var li = $element.find('.wpProQuiz_quiz').children().first().children();
666
-
667
- li.hide();
668
-
669
- countAnswer = li.length;
670
-
671
- plugin.methode.setData();
672
-
673
- plugin.methode.setClozeStyle();
674
-
675
- $element.find('input[name="startQuiz"]').click(function(e) {
676
- e.preventDefault();
677
- plugin.methode.preStartQuiz();
678
  });
679
-
680
- $element.find('input[name="check"]').click(function(e) {
681
- e.preventDefault();
682
- plugin.methode.checkAnswer(this);
683
- });
684
-
685
- $element.find('input[name="next"]').click(function(e) {
686
- e.preventDefault();
687
- plugin.methode.nextQuestion(this);
688
  });
689
-
690
- $element.find('input[name="restartQuiz"]').click(function(e) {
691
- e.preventDefault();
692
- plugin.methode.reStartQuiz();
693
  });
694
-
695
- $element.find('input[name="reShowQuestion"]').click(function(e) {
696
- e.preventDefault();
697
- plugin.methode.reShowQuestion(this);
698
  });
699
 
700
- $element.find('input[name="back"]').click(function(e) {
701
- plugin.methode.backQuestion(this);
702
  });
703
 
704
- $element.find('input[name="tip"]').click(function(e) {
705
- plugin.methode.showTip(this);
706
  });
707
 
708
- $element.find('input[name="checkSingle"]').click(function(e) {
709
- $element.find('input[name="next"]').last().click();
710
  });
711
 
712
- $(document).mouseup(function(e) {
713
-
714
- var $tip = $element.find('.wpProQuiz_tipp');
715
- var $btn = $element.find('input[name="tip"]');
716
-
717
- if(!$tip.is(e.target) && $tip.has(e.target).length == 0 && !$btn.is(e.target))
718
- $tip.hide('fast');
719
  });
720
  };
721
 
1
  (function($) {
2
  $.wpProQuizFront = function(element, options) {
3
+ var $e = $(element);
4
  var config = options;
5
  var plugin = this;
6
+ var results = new Object();
 
 
7
  var startTime = 0;
8
+ var currentQuestion = null;
9
+
10
+ var bitOptions = {
11
+ randomAnswer: 0,
12
+ randomQuestion: 0,
13
+ disabledAnswerMark: 0,
14
+ checkBeforeStart: 0,
15
+ preview: 0,
16
+ cors: 0
17
+ };
18
 
19
+ var quizStatus = {
20
+ isQuizStart: 0,
21
+ isLocked: 0,
22
+ loadLock: 0,
23
+ isPrerequisite: 0
24
+ };
25
 
26
+ var globalNames = {
27
+ check: 'input[name="check"]',
28
+ next: 'input[name="next"]',
29
+ questionList: '.wpProQuiz_questionList'
30
+ };
31
 
32
+ var globalElements = {
33
+ back: $e.find('input[name="back"]'),
34
+ next: $e.find(globalNames.next),
35
+ quiz: $e.find('.wpProQuiz_quiz'),
36
+ questionList: $e.find('.wpProQuiz_list'),
37
+ results: $e.find('.wpProQuiz_results'),
38
+ quizStartPage: $e.find('.wpProQuiz_text'),
39
+ timelimit: $e.find('.wpProQuiz_time_limit'),
40
+ toplistShowInButton: $e.find('.wpProQuiz_toplistShowInButton')
41
+ };
42
+
43
+ var toplistData = {
44
+ token: ''
45
+ };
46
+
47
+
48
+ var timelimit = (function() {
49
+ var _counter = config.timelimit;
50
+ var _intervalId = 0;
51
+ var instance = {};
 
 
 
 
 
 
 
 
 
 
 
 
 
52
 
53
+ instance.stop = function() {
54
+ if(_counter) {
55
+ window.clearInterval(_intervalId);
56
+ globalElements.timelimit.hide();
 
 
57
  }
58
+ };
59
 
60
+ instance.start = function() {
61
+ if(!_counter)
62
+ return;
 
 
63
 
64
+ var t = _counter;
65
+ var c = t * 100;
66
+ var g = c;
67
 
68
+ var $timeText = globalElements.timelimit.find('span');
69
+ var $timeDiv = globalElements.timelimit.find('.wpProQuiz_progress');
70
 
71
+ globalElements.timelimit.show();
72
 
73
+ _intervalId = window.setInterval(function() {
74
+ if(c % 100 == 0) {
75
+ $timeText.text(plugin.methode.parseTime(t--));
 
 
 
 
 
 
 
 
 
76
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
 
78
+ $timeDiv.css('width', (c / g * 100) + '%');
79
+
80
+ if(c-- == 0) {
81
+ instance.stop();
82
+ plugin.methode.finishQuiz(true);
83
  }
 
 
 
 
 
 
 
84
 
85
+ }, 10);
86
+ };
 
 
 
87
 
88
+ return instance;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
 
90
+ })();
91
+
92
+ var checker = function(name, data, $question, $questionList) {
93
+ var correct = true;
94
+ var points = 0;
95
+ var isDiffPoints = $.isArray(data.points);
 
 
 
 
 
96
 
97
+ var func = {
98
+ singleMulti: function() {
99
+ var input = $questionList.find('.wpProQuiz_questionInput').attr('disabled', 'disabled');
100
+
101
+ $questionList.children().each(function(i) {
102
+ var $item = $(this);
103
+ var index = $item.data('pos');
104
+ var checked = input.eq(i).is(':checked');
105
+
106
+ if(data.correct[index]) {
107
+ plugin.methode.marker($item, true);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
 
109
+ if(!checked) {
110
+ correct = false;
 
111
  } else {
112
+ if(isDiffPoints) {
113
+ points += data.points[index];
114
+ }
115
+ }
116
  } else {
117
+ if(checked) {
118
+ plugin.methode.marker($item, false);
119
+ correct = false;
120
+ } else {
121
+ if(isDiffPoints) {
122
+ points += data.points[index];
123
+ }
124
  }
125
  }
126
  });
127
+ },
128
+
129
+ sort_answer: function() {
130
+ var $items = $questionList.children();
 
131
 
132
+ $items.each(function(i, v) {
133
+ var $this = $(this);
 
 
134
 
135
+ if(i == $this.data('pos')) {
136
+ plugin.methode.marker($this, true);
137
+
138
+ if(isDiffPoints) {
139
+ points += data.points[i];
140
+ }
141
  } else {
142
+ plugin.methode.marker($this, false);
143
+ correct = false;
144
  }
 
 
145
  });
146
 
147
+ $items.children().css({'box-shadow': '0 0', 'cursor': 'auto'});
 
 
 
 
 
 
 
148
 
149
+ $questionList.sortable("destroy");
150
 
151
+ $items.sort(function(a, b) {
152
+ return $(a).data('pos') > $(b).data('pos') ? 1 : -1;
153
+ });
154
 
155
+ $questionList.append($items);
156
+ },
157
+
158
+ matrix_sort_answer: function() {
159
+ var $items = $questionList.children();
160
+ var matrix = new Array();
161
 
162
+ $items.each(function() {
163
+ var $this = $(this);
164
+ var i = $this.data('pos');
165
+ var $stringUl = $this.find('.wpProQuiz_maxtrixSortCriterion');
166
+ var $stringItem = $stringUl.children();
 
 
 
 
 
 
 
 
 
 
 
167
 
168
+ if(i == $stringItem.data('pos')) {
169
+ plugin.methode.marker($stringUl, true);
170
+
171
+ if(isDiffPoints) {
172
+ points += data.points[i];
173
+ }
174
  } else {
175
+ correct = false;
176
+ plugin.methode.marker($stringUl, false);
177
  }
178
 
179
+ matrix[i] = $stringUl;
180
  });
181
 
182
+ plugin.methode.resetMatrix($question);
183
+
184
  $question.find('.wpProQuiz_sortStringItem').each(function() {
185
+ var x = matrix[$(this).data('pos')];
186
+ if(x != undefined)
187
+ x.append(this);
188
  }).css({'box-shadow': '0 0', 'cursor': 'auto'});
189
 
190
  $question.find('.wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion').sortable("destroy");
191
+ },
192
+
193
+ free_answer: function() {
194
+ var $li = $questionList.children();
195
+ var value = $li.find('.wpProQuiz_questionInput').attr('disabled', 'disabled').val();
196
 
197
+ if($.inArray($.trim(value).toLowerCase(), data.correct) >= 0) {
198
+ plugin.methode.marker($li, true);
199
+ } else {
200
+ plugin.methode.marker($li, false);
201
+ correct = false;
202
+ }
203
+ },
204
+
205
+ cloze_answer: function() {
206
+ $questionList.find('.wpProQuiz_cloze').each(function(i, v) {
207
  var $this = $(this);
208
+ var cloze = $this.children();
209
+ var input = cloze.eq(0);
210
+ var span = cloze.eq(1);
 
211
 
212
+ var inputText = plugin.methode.cleanupCurlyQuotes(input.val());
213
+ var correctText = plugin.methode.cleanupCurlyQuotes(span.text());
214
+
215
+ correctText = $.trim(correctText.substr(1, correctText.length-2));
216
+
217
+ if(inputText == correctText) {
218
+ if(isDiffPoints) {
219
+ points += data.points[i];
220
+ }
221
 
222
+ if(!bitOptions.disabledAnswerMark) {
223
  input.css('background-color', '#B0DAB0');
224
  }
225
  } else {
226
+ if(!bitOptions.disabledAnswerMark) {
 
 
 
227
  input.css('background-color', '#FFBABA');
228
  }
229
 
230
+ correct = false;
231
+
232
+ span.show();
233
  }
234
 
235
  input.attr('disabled', 'disabled');
236
 
237
  });
 
 
238
  }
239
+ };
240
+
241
+ func[name]();
242
+
243
+ if(!isDiffPoints && correct) {
244
+ points = data.points;
245
+ }
246
+
247
+ return {c: correct, p: points};
248
+ };
249
+
250
+ plugin.methode = {
251
+ parseBitOptions: function() {
252
+ if(config.bo) {
253
+ bitOptions.randomAnswer = config.bo & (1 << 0);
254
+ bitOptions.randomQuestion = config.bo & (1 << 1);
255
+ bitOptions.disabledAnswerMark = config.bo & (1 << 2);
256
+ bitOptions.checkBeforeStart = config.bo & (1 << 3);
257
+ bitOptions.preview = config.bo & (1 << 4);
258
+
259
+ var cors = config.bo & (1 << 5);
260
+
261
+ if(cors && jQuery.support != undefined && jQuery.support.cors != undefined && jQuery.support.cors == false) {
262
+ bitOptions.cors = cors;
263
+ }
264
  }
265
+ },
266
+
267
+ setClozeStyle: function() {
268
+ $e.find('.wpProQuiz_cloze').each(function() {
269
+ var children = $(this).children();
270
+ var input = children.eq(0);
271
+ var clone = children.eq(1).clone();
272
 
273
+ clone.css('visibility', 'hidden');
 
 
274
 
275
+ $('body').append(clone);
 
 
 
276
 
277
+ var width = clone.width();
278
+
279
+ clone.remove();
280
+
281
+ input.width(width + 10);
282
+ });
283
+ },
284
+
285
+ parseTime: function(sec) {
286
+ var seconds = parseInt(sec % 60);
287
+ var minutes = parseInt((sec / 60) % 60);
288
+ var hours = parseInt((sec / 3600) % 24);
289
+
290
+ seconds = (seconds > 9 ? '' : '0') + seconds;
291
+ minutes = (minutes > 9 ? '' : '0') + minutes;
292
+ hours = (hours > 9 ? '' : '0') + hours;
293
+
294
+ return hours + ':' + minutes + ':' + seconds;
295
+ },
296
+
297
+ cleanupCurlyQuotes: function(str) {
298
+ str = str.replace(/\u2018/, "'");
299
+ str = str.replace(/\u2019/, "'");
300
 
301
+ str = str.replace(/\u201C/, '"');
302
+ str = str.replace(/\u201D/, '"');
303
 
304
+ return $.trim(str).toLowerCase();
305
  },
306
 
307
+ resetMatrix: function(selector) {
308
+ selector.each(function() {
309
+ var $this = $(this);
310
+ var $list = $this.find('.wpProQuiz_sortStringList');
311
+
312
+ $this.find('.wpProQuiz_sortStringItem').each(function() {
313
+ $list.append($(this));
314
+ });
315
+ });
316
+ },
317
+
318
+ marker: function(e, correct) {
319
+ if(!bitOptions.disabledAnswerMark) {
320
+ if(correct) {
321
+ e.addClass('wpProQuiz_answerCorrect');
322
  } else {
323
+ e.addClass('wpProQuiz_answerIncorrect');
324
  }
325
  }
326
  },
327
+
328
+ startQuiz: function() {
329
+ if(quizStatus.loadLock) {
330
+ quizStatus.isQuizStart = 1;
 
 
 
 
 
 
 
331
 
332
+ return;
333
+ }
334
+
335
+ if(quizStatus.isLocked) {
336
+ globalElements.quizStartPage.hide();
337
+ $e.find('.wpProQuiz_lock').show();
338
 
339
+ return;
340
+ }
341
+
342
+ if(quizStatus.isPrerequisite) {
343
+ globalElements.quizStartPage.hide();
344
+ $e.find('.wpProQuiz_prerequisite').show();
345
 
346
+ return;
347
+ }
348
+
349
+ plugin.methode.loadQuizData();
350
+
351
+ if(bitOptions.randomQuestion) {
352
+ plugin.methode.random(globalElements.questionList);
353
+ }
354
+
355
+ if(bitOptions.randomAnswer) {
356
+ plugin.methode.random($e.find(globalNames.questionList));
357
+ }
358
+
359
+ plugin.methode.random($e.find('.wpProQuiz_sortStringList'));
360
+ plugin.methode.random($e.find('[data-type="sort_answer"]'));
361
+
362
+ $e.find('.wpProQuiz_listItem').each(function(i, v) {
363
+ var $this = $(this);
364
+ $this.find('.wpProQuiz_question_page span:eq(0)').text(i+1);
365
+ $this.find('> h3 span').text(i+1);
366
 
367
+ $this.find('.wpProQuiz_questionListItem').each(function(i, v) {
368
+ $(this).find('> span').text(i+1 + '. ');
369
+ });
370
+ });
371
+
372
+ switch (config.mode) {
373
+ case 3:
374
+ $e.find('input[name="checkSingle"]').show();
375
+ $e.find('.wpProQuiz_question_page').hide();
376
+ break;
377
+ case 2:
378
+ $e.find(globalNames.check).show();
379
+ break;
380
+ case 1:
381
+ $e.find('input[name="back"]').slice(1).show();
382
+ case 0:
383
+ globalElements.next.show();
384
+ break;
385
  }
386
+
387
+ var $listItem = globalElements.questionList.children();
388
+
389
+ if(config.mode == 3) {
390
+ $listItem.show();
391
+ } else {
392
+ currentQuestion = $listItem.eq(0).show();
393
+ }
394
+
395
+ $e.find('.wpProQuiz_sortable').parents('ul').sortable().disableSelection();
396
+
397
+ $e.find('.wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion').sortable({
398
+ connectWith: '.wpProQuiz_maxtrixSortCriterion:not(:has(li)), .wpProQuiz_sortStringList',
399
+ placeholder: 'wpProQuiz_placehold'
400
+ }).disableSelection();
401
+
402
+
403
+ timelimit.start();
404
+
405
+ startTime = +new Date();
406
+
407
+ results = {comp: {points: 0, correctQuestions: 0}};
408
+
409
+ globalElements.quizStartPage.hide();
410
+ globalElements.quiz.show();
411
  },
412
 
413
+ nextQuestion: function() {
414
+ currentQuestion = currentQuestion.hide().next().show();
 
415
 
416
+ plugin.methode.scrollTo(globalElements.quiz);
 
417
 
418
+ if(!currentQuestion.length)
419
+ plugin.methode.finishQuiz();
420
  },
421
+
422
+ prevQuestion: function() {
423
+ currentQuestion = currentQuestion.hide().prev().show();
 
 
424
 
425
+ plugin.methode.scrollTo(globalElements.quiz);
426
+ },
427
+
428
+ finishQuiz: function(timeover) {
 
429
 
430
+ timelimit.stop();
431
 
432
+ var time = (+new Date() - startTime) / 1000;
433
+ time = (config.timelimit && time > config.timelimit) ? config.timelimit : time;
 
434
 
435
+ $e.find('.wpProQuiz_quiz_time span').text(plugin.methode.parseTime(time));
436
 
437
+ if(timeover) {
438
+ globalElements.results.find('.wpProQuiz_time_limit_expired').show();
439
  }
440
 
441
+ plugin.methode.checkQuestion(globalElements.questionList.children());
442
+
443
+ $e.find('.wpProQuiz_correct_answer').text(results.comp.correctQuestions);
444
+
445
+ var resultPercent = Math.round(results.comp.points / config.globalPoints * 100 * 100) / 100;
446
+
447
+ $pointFields = $e.find('.wpProQuiz_points span');
448
+
449
+ $pointFields.eq(0).text(results.comp.points);
450
+ $pointFields.eq(1).text(config.globalPoints);
451
+ $pointFields.eq(2).text(resultPercent + '%');
452
+
453
+ $e.find('.wpProQuiz_resultsList > li').eq(plugin.methode.findResultIndex(resultPercent)).show();
454
+
455
+ plugin.methode.setAverageResult(resultPercent, false);
456
 
457
  plugin.methode.sendCompletedQuiz();
458
+
459
+ globalElements.quiz.hide();
460
+ globalElements.results.show();
461
+
462
+ plugin.methode.scrollTo(globalElements.results);
463
  },
464
 
465
  sendCompletedQuiz: function() {
466
+ if(bitOptions.preview)
467
  return;
468
 
469
+ plugin.methode.ajax({
 
 
 
 
470
  action : 'wp_pro_quiz_completed_quiz',
471
+ quizId : config.quizId,
472
+ results : results
473
  });
 
 
 
 
474
  },
475
 
476
  findResultIndex: function(p) {
490
  return index;
491
  },
492
 
493
+ showQustionList: function() {
494
+ globalElements.toplistShowInButton.hide();
495
+ globalElements.quiz.toggle();
496
+ $e.find('.wpProQuiz_QuestionButton').hide();
497
+ globalElements.questionList.children().show();
498
 
499
+ $e.find('.wpProQuiz_question_page').hide();
 
 
 
 
 
 
500
  },
501
+
502
+ random: function(group) {
503
+ group.each(function() {
504
+ var e = $(this).children().get().sort(function() {
505
+ return Math.round(Math.random()) - 0.5;
506
+ });
507
+
508
+ $(e).appendTo(e[0].parentNode);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
509
  });
510
  },
511
 
512
+ restartQuiz: function() {
513
+ globalElements.results.hide();
514
+ globalElements.quizStartPage.show();
515
+ globalElements.questionList.children().hide();
516
+ globalElements.toplistShowInButton.hide();
517
 
518
+ $e.find('.wpProQuiz_questionInput, .wpProQuiz_cloze input').removeAttr('disabled').removeAttr('checked')
519
+ .val('').css('background-color', '');
520
+
521
+ $e.find('.wpProQuiz_answerCorrect, .wpProQuiz_answerIncorrect').removeClass('wpProQuiz_answerCorrect wpProQuiz_answerIncorrect');
522
+
523
+ $e.find('.wpProQuiz_listItem').data('check', false);
524
+
525
+ $e.find('.wpProQuiz_response').hide().children().hide();
526
+
527
+ plugin.methode.resetMatrix($e.find('.wpProQuiz_listItem'));
528
+
529
+ $e.find('.wpProQuiz_sortStringItem, .wpProQuiz_sortable').removeAttr('style');
530
 
531
+ $e.find('.wpProQuiz_clozeCorrect, .wpProQuiz_QuestionButton, .wpProQuiz_resultsList > li').hide();
532
 
533
+ $e.find('.wpProQuiz_question_page, input[name="tip"]').show();
534
  },
535
 
536
+ checkQuestion: function(list) {
537
+ list = (list == undefined) ? currentQuestion : list;
538
+
539
+ list.each(function() {
540
  var $this = $(this);
541
+ var $questionList = $this.find(globalNames.questionList);
542
+ var data = config.json[$questionList.data('question_id')];
543
+ var name = data.type;
 
544
 
545
+ if($this.data('check')) {
546
+ return true;
547
+ }
548
 
549
+ if(data.type == 'single' || data.type == 'multiple') {
550
+ name = 'singleMulti';
551
+ }
552
 
553
+ var result = checker(name, data, $this, $questionList);
554
 
555
+ $this.find('.wpProQuiz_response').show();
556
+ $this.find(globalNames.check).hide();
557
+ $this.find(globalNames.next).show();
558
 
559
+ if(results[data.id] == undefined) {
560
+ results[data.id] = new Object();
561
+ }
562
+
563
+ results[data.id].points = result.p;
564
+ results[data.id].correct = Number(result.c);
565
+ results['comp'].points += result.p;
566
+
567
+ if(result.c) {
568
+ $this.find('.wpProQuiz_correct').show();
569
+ results['comp'].correctQuestions += 1;
570
+ } else {
571
+ $this.find('.wpProQuiz_incorrect').show();
572
+ }
573
+
574
+ $this.find('.wpProQuiz_responsePoints').text(result.p);
575
+
576
+ $this.data('check', true);
577
  });
578
  },
579
 
580
+ showTip: function() {
581
+ var $this = $(this);
582
+ var id = $this.siblings('.wpProQuiz_question').find(globalNames.questionList).data('question_id');
583
+
584
+ $this.siblings('.wpProQuiz_tipp').toggle('fast');
585
 
586
+ if(results[id] == undefined) {
587
+ results[id] = new Object();
588
+ }
589
+
590
+ results[id].tip = 1;
591
+
592
+ $(document).bind('mouseup.tipEvent', function(e) {
593
+
594
+ var $tip = $e.find('.wpProQuiz_tipp');
595
+ var $btn = $e.find('input[name="tip"]');
596
+
597
+ if(!$tip.is(e.target) && $tip.has(e.target).length == 0 && !$btn.is(e.target)) {
598
+ $tip.hide('fast');
599
+ $(document).unbind('.tipEvent');
600
+ }
601
+ });
602
+ },
603
+
604
+ ajax: function(data, success, dataType) {
605
+ dataType = dataType || 'json';
606
 
607
+ if(bitOptions.cors) {
608
  jQuery.support.cors = true;
609
  }
610
 
611
+ $.post(WpProQuizGlobal.ajaxurl, data, success, dataType);
612
+
613
+ if(bitOptions.cors) {
614
+ jQuery.support.cors = false;
615
+ }
616
+ },
617
+
618
+ checkQuizLock: function() {
619
+
620
+ quizStatus.loadLock = 1;
621
+
622
+ plugin.methode.ajax({
623
  action: 'wp_pro_quiz_check_lock',
624
  quizId: config.quizId
625
  }, function(json) {
 
 
626
 
627
+ if(json.lock != undefined) {
628
+ quizStatus.isLocked = json.lock.is;
629
+
630
+ if(json.lock.pre) {
631
+ $e.find('input[name="restartQuiz"]').hide();
632
+ }
633
  }
634
 
635
+ if(json.prerequisite != undefined) {
636
+ quizStatus.isPrerequisite = 1;
637
+ $e.find('.wpProQuiz_prerequisite span').text(json.prerequisite);
638
+ }
639
+
640
+ quizStatus.loadLock = 0;
641
+
642
+ if(quizStatus.isQuizStart) {
643
  plugin.methode.startQuiz();
644
  }
645
+ });
646
+ },
647
+
648
+ loadQuizData: function() {
649
+ plugin.methode.ajax({
650
+ action: 'wp_pro_quiz_load_quiz_data',
651
+ quizId: config.quizId
652
+ }, function(json) {
653
+ if(json.toplist) {
654
+ plugin.methode.handleToplistData(json.toplist);
655
+ }
656
+
657
+ if(json.averageResult != undefined) {
658
+ plugin.methode.setAverageResult(json.averageResult, true);
659
+ }
660
+ });
661
+ },
662
+
663
+ setAverageResult: function(p, g) {
664
+ var v = $e.find('.wpProQuiz_resultValue:eq(' + (g ? 0 : 1) + ') >');
665
+
666
+ v.eq(1).text(p + '%');
667
+ v.eq(0).css('width', (240 * p / 100) + 'px');
668
+ },
669
+
670
+ handleToplistData: function(json) {
671
+ var $tp = $e.find('.wpProQuiz_addToplist');
672
+ var $addBox = $tp.find('.wpProQuiz_addBox').show().children('div');
673
 
674
+ if(json.canAdd) {
675
+ $tp.show();
676
+ $tp.find('.wpProQuiz_addToplistMessage').hide();
677
+ $tp.find('.wpProQuiz_toplistButton').show();
678
+
679
+ toplistData.token = json.token;
680
+
681
+ if(json.userId) {
682
+ $addBox.hide();
683
+ } else {
684
+ $addBox.show();
685
+
686
+ var $captcha = $addBox.children().eq(1);
687
+
688
+ if(json.captcha) {
689
+
690
+ $captcha.find('input[name="wpProQuiz_captchaPrefix"]').val(json.captcha.code);
691
+ $captcha.find('.wpProQuiz_captchaImg').attr('src', json.captcha.img);
692
+ $captcha.find('input[name="wpProQuiz_captcha"]').val('');
693
+
694
+ $captcha.show();
695
+ } else {
696
+ $captcha.hide();
697
+ }
698
+ }
699
+ } else {
700
+ $tp.hide();
701
+ }
702
+ },
703
+
704
+ scrollTo: function(e) {
705
+ var x = e.offset().top - 100;
706
+
707
+ if((window.pageYOffset || document.body.scrollTop) > x) {
708
+ $('html,body').animate({scrollTop: x}, 300);
709
  }
710
+ },
711
+
712
+ addToplist: function() {
713
+ if(bitOptions.preview)
714
+ return;
715
+
716
+ var $addToplistMessage = $e.find('.wpProQuiz_addToplistMessage').text(WpProQuizGlobal.loadData).show();
717
+ var $addBox = $e.find('.wpProQuiz_addBox').hide();
718
+
719
+ plugin.methode.ajax({
720
+ action: 'wp_pro_quiz_add_toplist',
721
+ quizId: config.quizId,
722
+ token: toplistData.token,
723
+ name: $addBox.find('input[name="wpProQuiz_toplistName"]').val(),
724
+ email: $addBox.find('input[name="wpProQuiz_toplistEmail"]').val(),
725
+ captcha: $addBox.find('input[name="wpProQuiz_captcha"]').val(),
726
+ prefix: $addBox.find('input[name="wpProQuiz_captchaPrefix"]').val(),
727
+ points: results.comp.points,
728
+ totalPoints:config.globalPoints
729
+ }, function(json) {
730
+ $addToplistMessage.text(json.text);
731
+
732
+ if(json.clear) {
733
+ $addBox.hide();
734
+ } else {
735
+ $addBox.show();
736
+ }
737
+
738
+ if(json.captcha) {
739
+ $addBox.find('.wpProQuiz_captchaImg').attr('src', json.captcha.img);
740
+ $addBox.find('input[name="wpProQuiz_captchaPrefix"]').val(json.captcha.code);
741
+ $addBox.find('input[name="wpProQuiz_captcha"]').val('');
742
+ }
743
+ });
744
  }
745
  };
746
 
747
  plugin.init = function() {
748
+ plugin.methode.parseBitOptions();
749
+ plugin.methode.setClozeStyle();
750
 
751
+ if(bitOptions.checkBeforeStart && !bitOptions.preview) {
752
+ plugin.methode.checkQuizLock();
 
 
 
 
 
 
 
753
  }
754
 
755
+ $e.find('input[name="startQuiz"]').click(function() {
756
+ plugin.methode.startQuiz();
757
+ return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
758
  });
759
+
760
+ globalElements.next.click(function() {
761
+ plugin.methode.nextQuestion();
 
 
 
 
 
 
762
  });
763
+
764
+ globalElements.back.click(function() {
765
+ plugin.methode.prevQuestion();
 
766
  });
767
+
768
+ $e.find('input[name="reShowQuestion"]').click(function() {
769
+ plugin.methode.showQustionList();
 
770
  });
771
 
772
+ $e.find('input[name="restartQuiz"]').click(function() {
773
+ plugin.methode.restartQuiz();
774
  });
775
 
776
+ $e.find(globalNames.check).click(function() {
777
+ plugin.methode.checkQuestion();
778
  });
779
 
780
+ $e.find('input[name="checkSingle"]').click(function() {
781
+ plugin.methode.finishQuiz();
782
  });
783
 
784
+ $e.find('input[name="tip"]').click(plugin.methode.showTip);
785
+
786
+ $e.find('input[name="wpProQuiz_toplistAdd"]').click(plugin.methode.addToplist);
787
+
788
+ $e.find('input[name="showToplist"]').click(function() {
789
+ globalElements.quiz.hide();
790
+ globalElements.toplistShowInButton.toggle();
791
  });
792
  };
793
 
js/wpProQuiz_front.min.js CHANGED
@@ -1,23 +1,22 @@
1
- (function(d){d.wpProQuizFront=function(r,f){var b=d(r),e=this,p=0,l=0,u=0,j={},m=0,q=0,k=!1,v=!1,w=!1,s=!1,t=!1;e.methode={preStartQuiz:function(){j={};f.questionRandom&&e.methode.questionRandom();f.answerRandom?e.methode.answerRandom(".wpProQuiz_questionList"):e.methode.answerRandom(b.find(".wpProQuiz_sortable").parent().parent());e.methode.answerRandom(".wpProQuiz_sortStringList");m=p=0;f.questionOnSinglePage||(f.checkAnswer?b.find('input[name="check"]').show():b.find('input[name="next"]').show());
2
- !v||!s?e.methode.startQuiz():t=!0;f.numberedAnswer&&e.methode.numberedAnswer()},startQuiz:function(){b.find(".wpProQuiz_text").hide();w?b.find(".wpProQuiz_lock").show():(u=new Date,f.timeLimit&&e.methode.setTimeLimit(),f.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();f.questionOnSinglePage||b.find(".wpProQuiz_question_page").show();e.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=f.timeLimit;a.css({width:"100%",display:"block"});c.html(e.methode.parseTime(d));a.find(".progress").css("width","100%").animate({width:"0%"},1E3*f.timeLimit);l=setInterval(function(){c.html(e.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(),e.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()-u.getTime())/1E3;b.find(".wpProQuiz_quiz_time span").first().html(e.methode.parseTime(a))},setData:function(){var a=
8
- 0;b.find(".wpProQuiz_questionList").each(function(){var c=f.json[a],b=0;q+=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,n=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;n.each(function(){"1"==d(this).data("correct")?(e.methode.setAnswerMark(d(this).parent().parent(),!0),this.checked?(g&=1,i++):g&=0):this.checked&&(e.methode.setAnswerMark(d(this).parent().parent(),!1),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?(e.methode.setAnswerMark(a.parent(),!0),g&=1,i++):(e.methode.setAnswerMark(a.parent(),!1),g=!1);a.css({"box-shadow":"0 0",cursor:"auto"})});
11
- 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(n.val()).toLowerCase(),0<=d.inArray(h,n.data("correct"))?(b=!0,i++,e.methode.setAnswerMark(n.parent().parent(),!0)):e.methode.setAnswerMark(n.parent().parent(),!1);else if("matrix_sort_answer"==h){var g=!0,l={};c.find(".wpProQuiz_questionList").children().each(function(){var a=
12
- d(this).data("correct"),b=d(this).find(".wpProQuiz_maxtrixSortCriterion");b.children().first().data("correct")==a?(g&=1,i++,e.methode.setAnswerMark(b,!0)):(g=!1,e.methode.setAnswerMark(b,!1));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");b=g}else"cloze_answer"==h&&(g=!0,
13
- c.find(".wpProQuiz_cloze").each(function(){var a=d(this).children(),b=a.first(),c=b.val().toLowerCase(),h=a.last().text().toLowerCase(),h=d.trim(h.substr(1,h.length-2)),h=e.methode.cleanupCurlyQuotes(h),c=e.methode.cleanupCurlyQuotes(d.trim(c));h==c?(g&=1,i++,f.disabledAnswerMark||b.css("background-color","#B0DAB0")):(g=!1,f.disabledAnswerMark||b.css("background-color","#FFBABA"),a.last().show());b.attr("disabled","disabled")}),b=g);d(a).hide();n.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(),p++,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)}},setAnswerMark:function(a,b){f.disabledAnswerMark||(b?a.addClass("wpProQuiz_answerCorrect"):a.addClass("wpProQuiz_answerIncorrect"))},nextQuestion:function(a){var a=d(a).parent(),c=a.next();a.hide();c.length?(c.show(),f.backButton&&!f.checkAnswer&&c.find('input[name="back"]').show(),e.methode.scrollTo(c,!0)):(f.questionOnSinglePage&&b.find('.wpProQuiz_listItem, input[name="checkSingle"]').hide(),(!f.checkAnswer||f.questionOnSinglePage)&&b.find('input[name="check"]').click(),e.methode.showResult())},
16
- backQuestion:function(a){var a=d(a).parent(),b=a.prev();a.hide();b.show();e.methode.scrollTo(b,!0)},showResult:function(){clearInterval(l);var a=b.find(".wpProQuiz_points span");b.find(".wpProQuiz_time_limit .progress").clearQueue().stop();b.find(".wpProQuiz_correct_answer").html(p);b.find(".wpProQuiz_results").show();b.find('.wpProQuiz_time_limit, input[name="checkSingle"]').hide();e.methode.setQuizTime();var c=Math.round(1E4*(m/q))/100;a.eq(0).text(m);a.eq(1).text(q);a.eq(2).text(c);a=e.methode.findResultIndex(c);
17
- -1<a&&b.find(".wpProQuiz_resultsList").children().eq(a).show();e.methode.scrollTo(b.find(".wpProQuiz_results"),!0);e.methode.sendCompletedQuiz()},sendCompletedQuiz:function(){f.preview||(k&&(jQuery.support.cors=!0),d.post(f.url,{action:"wp_pro_quiz_completed_quiz",results:j,quizId:f.quizId}),k&&(jQuery.support.cors=!1))},findResultIndex:function(a){for(var b=f.resultsGrade,d=-1,e=999999,h=0;h<b.length;h++){var i=b[h];a>=i&&a-i<e&&(e=a-i,d=h)}return d},cleanupCurlyQuotes:function(a){a=a.replace(/\u2018/,
18
- "'");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();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()})},
19
- 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);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")},
20
- 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(){s=!0;k&&(jQuery.support.cors=!0);d.post(f.url,{action:"wp_pro_quiz_check_lock",quizId:f.quizId},function(a){w=a.is;s=!1;a.pre&&b.find('input[name="restartQuiz"]').hide();t&&(t=!1,e.methode.startQuiz())},"json");k&&(jQuery.support.cors=!1)}};e.init=function(){f.cors&&
21
- (void 0!=jQuery.support&&void 0!=jQuery.support.cors&&!1==jQuery.support.cors)&&(k=!0);p=0;f.lock&&!f.preview&&(v=!0,e.methode.checkLock());void 0==f.resultsGrade&&(f.resultsGrade=[0]);b.find(".wpProQuiz_quiz, .wpProQuiz_results").hide();b.find(".wpProQuiz_quiz").children().first().children().hide();e.methode.setData();e.methode.setClozeStyle();b.find('input[name="startQuiz"]').click(function(a){a.preventDefault();e.methode.preStartQuiz()});b.find('input[name="check"]').click(function(a){a.preventDefault();
22
- e.methode.checkAnswer(this)});b.find('input[name="next"]').click(function(a){a.preventDefault();e.methode.nextQuestion(this)});b.find('input[name="restartQuiz"]').click(function(a){a.preventDefault();e.methode.reStartQuiz()});b.find('input[name="reShowQuestion"]').click(function(a){a.preventDefault();e.methode.reShowQuestion(this)});b.find('input[name="back"]').click(function(){e.methode.backQuestion(this)});b.find('input[name="tip"]').click(function(){e.methode.showTip(this)});b.find('input[name="checkSingle"]').click(function(){b.find('input[name="next"]').last().click()});
23
- 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")})};e.init()};d.fn.wpProQuizFront=function(r){return this.each(function(){void 0==d(this).data("wpProQuizFront")&&d(this).data("wpProQuizFront",new d.wpProQuizFront(this,r))})}})(jQuery);
1
+ (function(e){e.wpProQuizFront=function(v,f){var b=e(v),c=this,g={},B=0,i=null,C=0,D=0,q=0,E=0,r=0,w=0,F=0,G=0,x=0,H=0,L=b.find('input[name="back"]'),I=b.find('input[name="next"]'),n=b.find(".wpProQuiz_quiz"),p=b.find(".wpProQuiz_list"),s=b.find(".wpProQuiz_results"),t=b.find(".wpProQuiz_text"),u=b.find(".wpProQuiz_time_limit"),y=b.find(".wpProQuiz_toplistShowInButton"),J="",z=f.timelimit,K=0,A={stop:function(){z&&(window.clearInterval(K),u.hide())},start:function(){if(z){var a=z,d=100*a,b=d,e=u.find("span"),
2
+ f=u.find(".wpProQuiz_progress");u.show();K=window.setInterval(function(){0==d%100&&e.text(c.methode.parseTime(a--));f.css("width",100*(d/b)+"%");0==d--&&(A.stop(),c.methode.finishQuiz(!0))},10)}}};c.methode={parseBitOptions:function(){if(f.bo){C=f.bo&1;D=f.bo&2;q=f.bo&4;E=f.bo&8;r=f.bo&16;var a=f.bo&32;a&&(void 0!=jQuery.support&&void 0!=jQuery.support.cors&&!1==jQuery.support.cors)&&(w=a)}},setClozeStyle:function(){b.find(".wpProQuiz_cloze").each(function(){var a=e(this).children(),d=a.eq(0),a=a.eq(1).clone();
3
+ a.css("visibility","hidden");e("body").append(a);var b=a.width();a.remove();d.width(b+10)})},parseTime:function(a){var d=parseInt(a%60),b=parseInt(a/60%60),a=parseInt(a/3600%24);return(9<a?"":"0")+a+":"+((9<b?"":"0")+b)+":"+((9<d?"":"0")+d)},cleanupCurlyQuotes:function(a){a=a.replace(/\u2018/,"'");a=a.replace(/\u2019/,"'");a=a.replace(/\u201C/,'"');a=a.replace(/\u201D/,'"');return e.trim(a).toLowerCase()},resetMatrix:function(a){a.each(function(){var a=e(this),b=a.find(".wpProQuiz_sortStringList");
4
+ a.find(".wpProQuiz_sortStringItem").each(function(){b.append(e(this))})})},marker:function(a,d){q||(d?a.addClass("wpProQuiz_answerCorrect"):a.addClass("wpProQuiz_answerIncorrect"))},startQuiz:function(){if(x)F=1;else if(G)t.hide(),b.find(".wpProQuiz_lock").show();else if(H)t.hide(),b.find(".wpProQuiz_prerequisite").show();else{c.methode.loadQuizData();D&&c.methode.random(p);C&&c.methode.random(b.find(".wpProQuiz_questionList"));c.methode.random(b.find(".wpProQuiz_sortStringList"));c.methode.random(b.find('[data-type="sort_answer"]'));
5
+ b.find(".wpProQuiz_listItem").each(function(a){var b=e(this);b.find(".wpProQuiz_question_page span:eq(0)").text(a+1);b.find("> h3 span").text(a+1);b.find(".wpProQuiz_questionListItem").each(function(a){e(this).find("> span").text(a+1+". ")})});switch(f.mode){case 3:b.find('input[name="checkSingle"]').show();b.find(".wpProQuiz_question_page").hide();break;case 2:b.find('input[name="check"]').show();break;case 1:b.find('input[name="back"]').slice(1).show();case 0:I.show()}var a=p.children();3==f.mode?
6
+ a.show():i=a.eq(0).show();b.find(".wpProQuiz_sortable").parents("ul").sortable().disableSelection();b.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable({connectWith:".wpProQuiz_maxtrixSortCriterion:not(:has(li)), .wpProQuiz_sortStringList",placeholder:"wpProQuiz_placehold"}).disableSelection();A.start();B=+new Date;g={comp:{points:0,correctQuestions:0}};t.hide();n.show()}},nextQuestion:function(){i=i.hide().next().show();c.methode.scrollTo(n);i.length||c.methode.finishQuiz()},
7
+ prevQuestion:function(){i=i.hide().prev().show();c.methode.scrollTo(n)},finishQuiz:function(a){A.stop();var d=(+new Date-B)/1E3,d=f.timelimit&&d>f.timelimit?f.timelimit:d;b.find(".wpProQuiz_quiz_time span").text(c.methode.parseTime(d));a&&s.find(".wpProQuiz_time_limit_expired").show();c.methode.checkQuestion(p.children());b.find(".wpProQuiz_correct_answer").text(g.comp.correctQuestions);a=Math.round(1E4*(g.comp.points/f.globalPoints))/100;$pointFields=b.find(".wpProQuiz_points span");$pointFields.eq(0).text(g.comp.points);
8
+ $pointFields.eq(1).text(f.globalPoints);$pointFields.eq(2).text(a+"%");b.find(".wpProQuiz_resultsList > li").eq(c.methode.findResultIndex(a)).show();c.methode.setAverageResult(a,!1);c.methode.sendCompletedQuiz();n.hide();s.show();c.methode.scrollTo(s)},sendCompletedQuiz:function(){r||c.methode.ajax({action:"wp_pro_quiz_completed_quiz",quizId:f.quizId,results:g})},findResultIndex:function(a){for(var b=f.resultsGrade,c=-1,e=999999,g=0;g<b.length;g++){var h=b[g];a>=h&&a-h<e&&(e=a-h,c=g)}return c},showQustionList:function(){y.hide();
9
+ n.toggle();b.find(".wpProQuiz_QuestionButton").hide();p.children().show();b.find(".wpProQuiz_question_page").hide()},random:function(a){a.each(function(){var a=e(this).children().get().sort(function(){return Math.round(Math.random())-0.5});e(a).appendTo(a[0].parentNode)})},restartQuiz:function(){s.hide();t.show();p.children().hide();y.hide();b.find(".wpProQuiz_questionInput, .wpProQuiz_cloze input").removeAttr("disabled").removeAttr("checked").val("").css("background-color","");b.find(".wpProQuiz_answerCorrect, .wpProQuiz_answerIncorrect").removeClass("wpProQuiz_answerCorrect wpProQuiz_answerIncorrect");
10
+ b.find(".wpProQuiz_listItem").data("check",!1);b.find(".wpProQuiz_response").hide().children().hide();c.methode.resetMatrix(b.find(".wpProQuiz_listItem"));b.find(".wpProQuiz_sortStringItem, .wpProQuiz_sortable").removeAttr("style");b.find(".wpProQuiz_clozeCorrect, .wpProQuiz_QuestionButton, .wpProQuiz_resultsList > li").hide();b.find('.wpProQuiz_question_page, input[name="tip"]').show()},checkQuestion:function(a){a=void 0==a?i:a;a.each(function(){var a,b,j=e(this),l=j.find(".wpProQuiz_questionList"),
11
+ h=f.json[l.data("question_id")];a=h.type;if(j.data("check"))return!0;if("single"==h.type||"multiple"==h.type)a="singleMulti";var m=!0,k=0,i=e.isArray(h.points);({singleMulti:function(){var a=l.find(".wpProQuiz_questionInput").attr("disabled","disabled");l.children().each(function(b){var d=e(this),f=d.data("pos"),b=a.eq(b).is(":checked");h.correct[f]?(c.methode.marker(d,!0),b?i&&(k+=h.points[f]):m=!1):b?(c.methode.marker(d,!1),m=!1):i&&(k+=h.points[f])})},sort_answer:function(){var a=l.children();
12
+ a.each(function(a){var b=e(this);a==b.data("pos")?(c.methode.marker(b,!0),i&&(k+=h.points[a])):(c.methode.marker(b,!1),m=!1)});a.children().css({"box-shadow":"0 0",cursor:"auto"});l.sortable("destroy");a.sort(function(a,b){return e(a).data("pos")>e(b).data("pos")?1:-1});l.append(a)},matrix_sort_answer:function(){var a=[];l.children().each(function(){var b=e(this),d=b.data("pos"),b=b.find(".wpProQuiz_maxtrixSortCriterion"),f=b.children();d==f.data("pos")?(c.methode.marker(b,!0),i&&(k+=h.points[d])):
13
+ (m=!1,c.methode.marker(b,!1));a[d]=b});c.methode.resetMatrix(j);j.find(".wpProQuiz_sortStringItem").each(function(){var b=a[e(this).data("pos")];void 0!=b&&b.append(this)}).css({"box-shadow":"0 0",cursor:"auto"});j.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable("destroy")},free_answer:function(){var a=l.children(),b=a.find(".wpProQuiz_questionInput").attr("disabled","disabled").val();0<=e.inArray(e.trim(b).toLowerCase(),h.correct)?c.methode.marker(a,!0):(c.methode.marker(a,
14
+ !1),m=!1)},cloze_answer:function(){l.find(".wpProQuiz_cloze").each(function(a){var b=e(this).children(),d=b.eq(0),b=b.eq(1),f=c.methode.cleanupCurlyQuotes(d.val()),g=c.methode.cleanupCurlyQuotes(b.text()),g=e.trim(g.substr(1,g.length-2));f==g?(i&&(k+=h.points[a]),q||d.css("background-color","#B0DAB0")):(q||d.css("background-color","#FFBABA"),m=!1,b.show());d.attr("disabled","disabled")})}})[a]();!i&&m&&(k=h.points);a=m;b=k;j.find(".wpProQuiz_response").show();j.find('input[name="check"]').hide();
15
+ j.find('input[name="next"]').show();void 0==g[h.id]&&(g[h.id]={});g[h.id].points=b;g[h.id].correct=Number(a);g.comp.points+=b;a?(j.find(".wpProQuiz_correct").show(),g.comp.correctQuestions+=1):j.find(".wpProQuiz_incorrect").show();j.find(".wpProQuiz_responsePoints").text(b);j.data("check",!0)})},showTip:function(){var a=e(this),d=a.siblings(".wpProQuiz_question").find(".wpProQuiz_questionList").data("question_id");a.siblings(".wpProQuiz_tipp").toggle("fast");void 0==g[d]&&(g[d]={});g[d].tip=1;e(document).bind("mouseup.tipEvent",
16
+ function(a){var d=b.find(".wpProQuiz_tipp"),c=b.find('input[name="tip"]');!d.is(a.target)&&(0==d.has(a.target).length&&!c.is(a.target))&&(d.hide("fast"),e(document).unbind(".tipEvent"))})},ajax:function(a,b,c){w&&(jQuery.support.cors=!0);e.post(WpProQuizGlobal.ajaxurl,a,b,c||"json");w&&(jQuery.support.cors=!1)},checkQuizLock:function(){x=1;c.methode.ajax({action:"wp_pro_quiz_check_lock",quizId:f.quizId},function(a){void 0!=a.lock&&(G=a.lock.is,a.lock.pre&&b.find('input[name="restartQuiz"]').hide());
17
+ void 0!=a.prerequisite&&(H=1,b.find(".wpProQuiz_prerequisite span").text(a.prerequisite));x=0;F&&c.methode.startQuiz()})},loadQuizData:function(){c.methode.ajax({action:"wp_pro_quiz_load_quiz_data",quizId:f.quizId},function(a){a.toplist&&c.methode.handleToplistData(a.toplist);void 0!=a.averageResult&&c.methode.setAverageResult(a.averageResult,!0)})},setAverageResult:function(a,d){var c=b.find(".wpProQuiz_resultValue:eq("+(d?0:1)+") >");c.eq(1).text(a+"%");c.eq(0).css("width",240*a/100+"px")},handleToplistData:function(a){var d=
18
+ b.find(".wpProQuiz_addToplist"),c=d.find(".wpProQuiz_addBox").show().children("div");a.canAdd?(d.show(),d.find(".wpProQuiz_addToplistMessage").hide(),d.find(".wpProQuiz_toplistButton").show(),J=a.token,a.userId?c.hide():(c.show(),d=c.children().eq(1),a.captcha?(d.find('input[name="wpProQuiz_captchaPrefix"]').val(a.captcha.code),d.find(".wpProQuiz_captchaImg").attr("src",a.captcha.img),d.find('input[name="wpProQuiz_captcha"]').val(""),d.show()):d.hide())):d.hide()},scrollTo:function(a){a=a.offset().top-
19
+ 100;(window.pageYOffset||document.body.scrollTop)>a&&e("html,body").animate({scrollTop:a},300)},addToplist:function(){if(!r){var a=b.find(".wpProQuiz_addToplistMessage").text(WpProQuizGlobal.loadData).show(),d=b.find(".wpProQuiz_addBox").hide();c.methode.ajax({action:"wp_pro_quiz_add_toplist",quizId:f.quizId,token:J,name:d.find('input[name="wpProQuiz_toplistName"]').val(),email:d.find('input[name="wpProQuiz_toplistEmail"]').val(),captcha:d.find('input[name="wpProQuiz_captcha"]').val(),prefix:d.find('input[name="wpProQuiz_captchaPrefix"]').val(),
20
+ points:g.comp.points,totalPoints:f.globalPoints},function(b){a.text(b.text);b.clear?d.hide():d.show();b.captcha&&(d.find(".wpProQuiz_captchaImg").attr("src",b.captcha.img),d.find('input[name="wpProQuiz_captchaPrefix"]').val(b.captcha.code),d.find('input[name="wpProQuiz_captcha"]').val(""))})}}};c.init=function(){c.methode.parseBitOptions();c.methode.setClozeStyle();E&&!r&&c.methode.checkQuizLock();b.find('input[name="startQuiz"]').click(function(){c.methode.startQuiz();return!1});I.click(function(){c.methode.nextQuestion()});
21
+ L.click(function(){c.methode.prevQuestion()});b.find('input[name="reShowQuestion"]').click(function(){c.methode.showQustionList()});b.find('input[name="restartQuiz"]').click(function(){c.methode.restartQuiz()});b.find('input[name="check"]').click(function(){c.methode.checkQuestion()});b.find('input[name="checkSingle"]').click(function(){c.methode.finishQuiz()});b.find('input[name="tip"]').click(c.methode.showTip);b.find('input[name="wpProQuiz_toplistAdd"]').click(c.methode.addToplist);b.find('input[name="showToplist"]').click(function(){n.hide();
22
+ y.toggle()})};c.init()};e.fn.wpProQuizFront=function(v){return this.each(function(){void 0==e(this).data("wpProQuizFront")&&e(this).data("wpProQuizFront",new e.wpProQuizFront(this,v))})}})(jQuery);
 
js/wpProQuiz_toplist.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+ var plugin = this;
3
+
4
+ plugin.toplist = {
5
+ handleRequest: function(json) {
6
+ $('.wpProQuiz_toplist').each(function() {
7
+ var $tp = $(this);
8
+ var data = json[$tp.data('quiz_id')];
9
+ var clone = $tp.find('tbody tr').eq(2);
10
+
11
+ if(data == undefined) {
12
+ $tp.find('tbody tr').eq(0).hide().end().eq(1).show();
13
+ return true;
14
+ }
15
+
16
+ for(var i = 0, c = data.length; i < c; i++) {
17
+ var td = clone.clone().children();
18
+
19
+ td.eq(0).text(i+1);
20
+ td.eq(1).text(data[i].name);
21
+ td.eq(2).text(data[i].date);
22
+ td.eq(3).text(data[i].points);
23
+ td.eq(4).text(data[i].result + ' %');
24
+
25
+ if(i & 1) {
26
+ td.addClass('wpProQuiz_toplistTrOdd');
27
+ }
28
+
29
+ td.parent().show().appendTo($tp.find('tbody'));
30
+ }
31
+
32
+ $tp.find('tbody tr').eq(0).hide();
33
+ });
34
+ },
35
+
36
+ fetchIds: function() {
37
+ var ids = new Array();
38
+
39
+ $('.wpProQuiz_toplist').each(function() {
40
+ ids.push($(this).data('quiz_id'));
41
+ });
42
+
43
+ return ids;
44
+ },
45
+
46
+ init: function() {
47
+ var quizIds = plugin.toplist.fetchIds();
48
+
49
+ if(quizIds.length == 0)
50
+ return;
51
+
52
+ $.post(WpProQuizGlobal.ajaxurl, {
53
+ action: 'wp_pro_quiz_show_front_toplist',
54
+ quizIds: quizIds
55
+ }, function(json) {
56
+ plugin.toplist.handleRequest(json);
57
+ }, 'json');
58
+ }
59
+ };
60
+
61
+ plugin.toplist.init();
62
+ });
js/wpProQuiz_toplist.min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ jQuery(document).ready(function(f){var d=this;d.toplist={handleRequest:function(a){f(".wpProQuiz_toplist").each(function(){var g=f(this),e=a[g.data("quiz_id")],d=g.find("tbody tr").eq(2);if(void 0==e)return g.find("tbody tr").eq(0).hide().end().eq(1).show(),!0;for(var b=0,h=e.length;b<h;b++){var c=d.clone().children();c.eq(0).text(b+1);c.eq(1).text(e[b].name);c.eq(2).text(e[b].date);c.eq(3).text(e[b].points);c.eq(4).text(e[b].result+" %");b&1&&c.addClass("wpProQuiz_toplistTrOdd");c.parent().show().appendTo(g.find("tbody"))}g.find("tbody tr").eq(0).hide()})},
2
+ fetchIds:function(){var a=[];f(".wpProQuiz_toplist").each(function(){a.push(f(this).data("quiz_id"))});return a},init:function(){var a=d.toplist.fetchIds();0!=a.length&&f.post(WpProQuizGlobal.ajaxurl,{action:"wp_pro_quiz_show_front_toplist",quizIds:a},function(a){d.toplist.handleRequest(a)},"json")}};d.toplist.init()});
languages/wp-pro-quiz-ar.mo CHANGED
Binary file
languages/wp-pro-quiz-ar.po CHANGED
@@ -1,72 +1,102 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2013-01-15 11:34+0100\n"
5
- "PO-Revision-Date: 2013-01-15 11:34+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 "هل تريد حقاً ان تحذف هذا الاختبار/السؤال؟"
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:192
64
- #: lib/controller/WpProQuiz_Controller_Question.php:291
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
 
@@ -75,15 +105,15 @@ 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
 
@@ -95,51 +125,80 @@ msgstr ""
95
  msgid "Edit question"
96
  msgstr "تحرير السؤال"
97
 
98
- #: lib/controller/WpProQuiz_Controller_Question.php:154
99
  msgid "Question not found"
100
  msgstr "لم يتم العثور على السؤال"
101
 
102
- #: lib/controller/WpProQuiz_Controller_Question.php:167
103
- #: lib/controller/WpProQuiz_Controller_Question.php:213
104
  #, php-format
105
  msgid "Question: %d"
106
  msgstr "السؤال: %d"
107
 
108
- #: lib/controller/WpProQuiz_Controller_Question.php:177
109
  msgid "Question edited"
110
  msgstr "تم تحرير السؤال"
111
 
112
- #: lib/controller/WpProQuiz_Controller_Question.php:196
113
  msgid "New question"
114
  msgstr "سؤال جديد"
115
 
116
- #: lib/controller/WpProQuiz_Controller_Question.php:224
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 "لم يتم رفع الملف"
@@ -148,126 +207,273 @@ msgstr "لم يتم رفع الملف"
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:258
220
- #: lib/view/WpProQuiz_View_QuestionEdit.php:298
221
- #: lib/view/WpProQuiz_View_QuestionEdit.php:335
222
  msgid "Sort elements"
223
  msgstr "ترتيب العناصر"
224
 
225
- #: lib/view/WpProQuiz_View_FrontQuiz.php:241
226
- #: lib/view/WpProQuiz_View_FrontQuiz.php:248
 
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:243
233
- #: lib/view/WpProQuiz_View_FrontQuiz.php:261
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:259
243
- #: lib/view/WpProQuiz_View_FrontQuiz.php:266
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:284
250
- #: lib/view/WpProQuiz_View_FrontQuiz.php:294
251
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
252
  msgid "Hint"
253
  msgstr "تلميح"
254
 
255
- #: lib/view/WpProQuiz_View_FrontQuiz.php:291
256
  msgid "Check"
257
  msgstr "التحقق"
258
 
259
- #: lib/view/WpProQuiz_View_FrontQuiz.php:292
260
  msgid "Back"
261
  msgstr "العودة"
262
 
263
- #: lib/view/WpProQuiz_View_FrontQuiz.php:296
264
  msgid "Next exercise"
265
  msgstr "التمرين التالي"
266
 
267
- #: lib/view/WpProQuiz_View_FrontQuiz.php:309
268
  msgid "Finish quiz"
269
  msgstr ""
270
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
271
  #: lib/view/WpProQuiz_View_GobalSettings.php:7
272
  msgid "to activate"
273
  msgstr ""
@@ -277,12 +483,14 @@ 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
 
@@ -291,24 +499,32 @@ msgid ""
291
  "These settings should only be set in cases of problems with Wp-Pro-Quiz."
292
  msgstr ""
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
301
- msgid "back to overview"
302
- msgstr "العودة للرئيسية"
303
 
304
- #: lib/view/WpProQuiz_View_GobalSettings.php:31
305
- #: lib/view/WpProQuiz_View_GobalSettings.php:36
 
 
 
 
 
 
 
 
 
 
 
 
 
306
  msgid "Automatically add [raw] shortcode"
307
  msgstr ""
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
@@ -323,22 +539,27 @@ msgstr ""
323
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
324
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
325
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
326
- #: lib/view/WpProQuiz_View_QuizEdit.php:448
 
 
 
 
 
327
  msgid "Activate"
328
  msgstr ""
329
 
330
- #: lib/view/WpProQuiz_View_GobalSettings.php:40
331
  #, php-format
332
  msgid "It is recommended %s this option on your system."
333
  msgstr ""
334
 
335
- #: lib/view/WpProQuiz_View_GobalSettings.php:43
336
  msgid ""
337
  "If this option is activated, a [raw] shortcode is automatically set around "
338
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
339
  msgstr ""
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. "
@@ -347,78 +568,79 @@ msgstr ""
347
  "الثيمات الخاصة تغير النظام الداخلي للمرشحات، مما يسبب المشاكل. مع الرمز "
348
  "القصير إضافية [الخام] يتم منع هذا. MIB"
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 ""
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
 
361
- #: lib/view/WpProQuiz_View_GobalSettings.php:68
362
  msgid "In very old Wordpress themes this can lead to problems."
363
  msgstr ""
364
 
365
- #: lib/view/WpProQuiz_View_GobalSettings.php:71
366
  msgid ""
367
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
368
  "the header even if they are not needed."
369
  msgstr ""
370
 
371
- #: lib/view/WpProQuiz_View_GobalSettings.php:74
372
  #, php-format
373
  msgid ""
374
  "Anyone who wants to learn more about this topic should read through the "
375
  "following websites %s and %s."
376
  msgstr ""
377
 
378
- #: lib/view/WpProQuiz_View_GobalSettings.php:83
379
- #: lib/view/WpProQuiz_View_GobalSettings.php:88
380
  msgid "Touch Library"
381
  msgstr ""
382
 
383
- #: lib/view/WpProQuiz_View_GobalSettings.php:92
384
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
385
  msgid "Deactivate"
386
  msgstr ""
387
 
388
- #: lib/view/WpProQuiz_View_GobalSettings.php:95
389
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
390
  msgstr ""
391
 
392
- #: lib/view/WpProQuiz_View_GobalSettings.php:98
393
  msgid "If you have any problems with the Touch Library, please deactivate it."
394
  msgstr ""
395
 
396
- #: lib/view/WpProQuiz_View_GobalSettings.php:105
397
- #: lib/view/WpProQuiz_View_GobalSettings.php:110
398
  msgid "jQuery support cors"
399
  msgstr ""
400
 
401
- #: lib/view/WpProQuiz_View_GobalSettings.php:117
402
  msgid "Is required only in rare cases."
403
  msgstr ""
404
 
405
- #: lib/view/WpProQuiz_View_GobalSettings.php:120
406
  msgid "If you have problems with the front ajax, please activate it."
407
  msgstr ""
408
 
409
- #: lib/view/WpProQuiz_View_GobalSettings.php:123
410
  msgid "e.g. Domain with special characters in combination with IE"
411
  msgstr ""
412
 
413
- #: lib/view/WpProQuiz_View_GobalSettings.php:132
414
- #: lib/view/WpProQuiz_View_QuestionEdit.php:381
415
- #: lib/view/WpProQuiz_View_QuizEdit.php:542
 
416
  msgid "Save"
417
  msgstr "حفظ"
418
 
419
  #: lib/view/WpProQuiz_View_Import.php:21
420
- #: lib/view/WpProQuiz_View_QuizOverall.php:91
421
- #: lib/view/WpProQuiz_View_QuizOverall.php:108
422
  msgid "Import"
423
  msgstr "استيراد"
424
 
@@ -439,12 +661,12 @@ msgid "Quiz name"
439
  msgstr "اسم الاختبار"
440
 
441
  #: lib/view/WpProQuiz_View_Import.php:44
442
- #: lib/view/WpProQuiz_View_QuizOverall.php:71
443
  msgid "Questions"
444
  msgstr "اسئلة"
445
 
446
  #: lib/view/WpProQuiz_View_Import.php:67
447
- #: lib/view/WpProQuiz_View_QuizOverall.php:119
448
  msgid "Start import"
449
  msgstr "ابدأ الاستيراد"
450
 
@@ -453,11 +675,12 @@ msgid "Title"
453
  msgstr "العنوان"
454
 
455
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
456
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
457
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
458
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
459
- #: lib/view/WpProQuiz_View_QuizEdit.php:436
460
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
 
461
  msgid "(optional)"
462
  msgstr "(اختيار)"
463
 
@@ -470,10 +693,10 @@ msgstr ""
470
  "فارغا، سيتم إنشاء عنوان."
471
 
472
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
473
- #: lib/view/WpProQuiz_View_QuestionEdit.php:49
474
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
475
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
476
- #: lib/view/WpProQuiz_View_QuizEdit.php:463
477
  msgid "(required)"
478
  msgstr "(مطلوب)"
479
 
@@ -481,34 +704,37 @@ msgstr "(مطلوب)"
481
  msgid "Points for this question (Standard is 1 point)"
482
  msgstr "درجات هذا السؤال (عادة 1 درجة)"
483
 
484
- #: lib/view/WpProQuiz_View_QuestionEdit.php:34
485
- msgid "Points per correct answer"
 
486
  msgstr ""
487
 
488
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
 
 
 
 
489
  msgid ""
490
- "If you enable this option, for every correct answer user will receive X "
491
- "points. Otherwise he will receive points only if the question was solved "
492
- "completely."
493
  msgstr ""
494
 
495
- #: lib/view/WpProQuiz_View_QuestionEdit.php:43
496
  msgid "Show reached points in the correct- and incorrect message?"
497
  msgstr ""
498
 
499
- #: lib/view/WpProQuiz_View_QuestionEdit.php:57
500
  msgid "Message with the correct / incorrect answer"
501
  msgstr ""
502
 
503
- #: lib/view/WpProQuiz_View_QuestionEdit.php:59
504
  msgid "Deactivated in quiz settings."
505
  msgstr ""
506
 
507
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
508
  msgid "Message with the correct answer"
509
  msgstr "رسالة مع الاجابة الصحيحة"
510
 
511
- #: lib/view/WpProQuiz_View_QuestionEdit.php:67
512
  msgid ""
513
  "This text will be visible if answered correctly. It can be used as "
514
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -517,15 +743,15 @@ msgstr ""
517
  "وهذا النص مرئية إذا أجاب بشكل صحيح. ويمكن استخدامه كدليل شرح للمسائل "
518
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
519
 
520
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
521
  msgid "Same text for correct- and incorrect-message?"
522
  msgstr "نفس النص مع رسالة الاجابة الصحيحة - و الغير صحيحة؟"
523
 
524
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
525
  msgid "Message with the incorrect answer"
526
  msgstr "رسالة مع الاجابة الغير صحيحة"
527
 
528
- #: lib/view/WpProQuiz_View_QuestionEdit.php:84
529
  msgid ""
530
  "This text will be visible if answered incorrectly. It can be used as "
531
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -534,53 +760,47 @@ msgstr ""
534
  "وهذا النص مرئية إذا أجاب بشكل غير صحيح. ويمكن استخدامه كدليل شرح للمسائل "
535
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
536
 
537
- #: lib/view/WpProQuiz_View_QuestionEdit.php:96
538
  msgid "Here you can enter solution hint."
539
  msgstr "يمكنك وضع هنا تلميح للأجابة."
540
 
541
- #: lib/view/WpProQuiz_View_QuestionEdit.php:100
542
  msgid "Activate hint for this question?"
543
  msgstr "تفعيل التلميح لهذا السؤال؟"
544
 
545
- #: lib/view/WpProQuiz_View_QuestionEdit.php:112
546
  msgid "Answer type"
547
  msgstr "نوع السؤال؟"
548
 
549
- #: lib/view/WpProQuiz_View_QuestionEdit.php:120
550
  msgid "Single choice"
551
  msgstr "اختيار واحد"
552
 
553
- #: lib/view/WpProQuiz_View_QuestionEdit.php:124
554
  msgid "Multiple choice"
555
  msgstr "أختيار متعدد"
556
 
557
- #: lib/view/WpProQuiz_View_QuestionEdit.php:128
558
  msgid "\"Free\" choice"
559
  msgstr "\"حر\" اختيار"
560
 
561
- #: lib/view/WpProQuiz_View_QuestionEdit.php:132
562
  msgid "\"Sorting\" choice"
563
  msgstr "\"ترتيب\" اختيار"
564
 
565
- #: lib/view/WpProQuiz_View_QuestionEdit.php:136
566
  msgid "\"Matrix Sorting\" choice"
567
  msgstr "\"ترتيب منظمي\" اختيار"
568
 
569
- #: lib/view/WpProQuiz_View_QuestionEdit.php:140
570
  msgid "Cloze"
571
  msgstr "اكمل"
572
 
573
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
574
  msgid "Answers"
575
  msgstr "اجابات"
576
 
577
- #: lib/view/WpProQuiz_View_QuestionEdit.php:150
578
- #: lib/view/WpProQuiz_View_QuestionEdit.php:154
579
- msgid ""
580
- "correct answers (one per line) (answers will be converted to lower case)"
581
- msgstr "الإجابات الصحيحة (واحد في كل سطر) (يتم تحويل الإجابات إلى أحرف صغيرة)"
582
-
583
- #: lib/view/WpProQuiz_View_QuestionEdit.php:160
584
  msgid ""
585
  "Please sort the answers in right order with the \"Move\" - Button. The "
586
  "answers will be displayed randomly."
@@ -588,59 +808,13 @@ msgstr ""
588
  "يرجى فرز الإجابات في بالترتيب الصحيح بزر \"نقل\" - . سوف يتم عرض الإجابات "
589
  "بشكل عشوائي."
590
 
 
591
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
592
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
593
- #: lib/view/WpProQuiz_View_QuestionEdit.php:188
594
- #: lib/view/WpProQuiz_View_QuestionEdit.php:207
595
- #: lib/view/WpProQuiz_View_QuestionEdit.php:223
596
- #: lib/view/WpProQuiz_View_QuestionEdit.php:237
597
- #: lib/view/WpProQuiz_View_QuestionEdit.php:287
598
- #: lib/view/WpProQuiz_View_QuestionEdit.php:327
599
- #: lib/view/WpProQuiz_View_QuestionEdit.php:364
600
- msgid "Delete answer"
601
- msgstr "حذف الاجابة"
602
-
603
- #: lib/view/WpProQuiz_View_QuestionEdit.php:167
604
- #: lib/view/WpProQuiz_View_QuestionEdit.php:179
605
- #: lib/view/WpProQuiz_View_QuestionEdit.php:189
606
- #: lib/view/WpProQuiz_View_QuestionEdit.php:208
607
- #: lib/view/WpProQuiz_View_QuestionEdit.php:224
608
- #: lib/view/WpProQuiz_View_QuestionEdit.php:238
609
- #: lib/view/WpProQuiz_View_QuestionEdit.php:286
610
- #: lib/view/WpProQuiz_View_QuestionEdit.php:326
611
- #: lib/view/WpProQuiz_View_QuestionEdit.php:363
612
- #: lib/view/WpProQuiz_View_QuestionOverall.php:50
613
- msgid "Move"
614
- msgstr "تحريك"
615
-
616
- #: lib/view/WpProQuiz_View_QuestionEdit.php:169
617
- #: lib/view/WpProQuiz_View_QuestionEdit.php:181
618
- #: lib/view/WpProQuiz_View_QuestionEdit.php:191
619
- #: lib/view/WpProQuiz_View_QuestionEdit.php:210
620
- #: lib/view/WpProQuiz_View_QuestionEdit.php:226
621
- #: lib/view/WpProQuiz_View_QuestionEdit.php:240
622
- #: lib/view/WpProQuiz_View_QuestionEdit.php:273
623
- #: lib/view/WpProQuiz_View_QuestionEdit.php:279
624
- #: lib/view/WpProQuiz_View_QuestionEdit.php:313
625
- #: lib/view/WpProQuiz_View_QuestionEdit.php:319
626
- #: lib/view/WpProQuiz_View_QuestionEdit.php:350
627
- #: lib/view/WpProQuiz_View_QuestionEdit.php:356
628
- msgid "Allow HTML"
629
- msgstr "السماح بــ HTML"
630
-
631
- #: lib/view/WpProQuiz_View_QuestionEdit.php:197
632
- #: lib/view/WpProQuiz_View_QuestionEdit.php:246
633
- #: lib/view/WpProQuiz_View_QuestionEdit.php:368
634
  msgid "Add new answer"
635
  msgstr "اضف اجابة جديدة"
636
 
637
- #: lib/view/WpProQuiz_View_QuestionEdit.php:205
638
- #: lib/view/WpProQuiz_View_QuestionEdit.php:221
639
- #: lib/view/WpProQuiz_View_QuestionEdit.php:235
640
- msgid "correct?"
641
- msgstr "صحيح؟"
642
-
643
- #: lib/view/WpProQuiz_View_QuestionEdit.php:250
644
  msgid ""
645
  "In this mode, not a list have to be sorted, but elements must be assigned to "
646
  "matching criterion."
@@ -648,13 +822,54 @@ msgstr ""
648
  "في هذا الوضع، لا يوجد قائمة لا بد من فرزها، ولكن يجب تعيين عناصر مطابقة "
649
  "لمعيار."
650
 
651
- #: lib/view/WpProQuiz_View_QuestionEdit.php:257
652
- #: lib/view/WpProQuiz_View_QuestionEdit.php:297
653
- #: lib/view/WpProQuiz_View_QuestionEdit.php:334
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
654
  msgid "Criterion"
655
  msgstr "معيار"
656
 
657
- #: lib/view/WpProQuiz_View_QuestionEdit.php:372
 
 
 
 
 
658
  msgid ""
659
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
660
  "small letters will be ignored."
@@ -662,60 +877,52 @@ msgstr ""
662
  "لاحتوائه مع قاموس رواجا مثل {} \"{} I كرة القدم ألعاب \". يتم تجاهل الحروف "
663
  "الكبيرة والصغيرة."
664
 
 
 
 
 
 
 
 
 
 
 
 
 
665
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
666
  msgid "Questions sorted"
667
  msgstr "ترتيب الاسئلة"
668
 
669
- #: lib/view/WpProQuiz_View_QuestionOverall.php:28
670
- #: lib/view/WpProQuiz_View_QuizOverall.php:57
671
- msgid "Name"
672
- msgstr "الاسم"
673
-
674
- #: lib/view/WpProQuiz_View_QuestionOverall.php:30
675
- #: lib/view/WpProQuiz_View_QuizOverall.php:58
676
- msgid "Action"
677
- msgstr "الحدث"
678
-
679
- #: lib/view/WpProQuiz_View_QuestionOverall.php:46
680
- #: lib/view/WpProQuiz_View_QuizOverall.php:74
681
  msgid "Edit"
682
  msgstr "تحرير"
683
 
684
- #: lib/view/WpProQuiz_View_QuestionOverall.php:48
685
- #: lib/view/WpProQuiz_View_QuizOverall.php:76
686
- msgid "Delete"
687
- msgstr "حذف"
688
-
689
- #: lib/view/WpProQuiz_View_QuestionOverall.php:59
690
  #: lib/view/WpProQuiz_View_Statistics.php:84
691
  msgid "Total"
692
  msgstr "المجموع"
693
 
694
- #: lib/view/WpProQuiz_View_QuestionOverall.php:67
695
  msgid "Add question"
696
  msgstr "اضافة سؤال"
697
 
698
- #: lib/view/WpProQuiz_View_QuestionOverall.php:68
699
  msgid "Save order"
700
  msgstr "حفظ الترتيب"
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 ""
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
 
713
- #: lib/view/WpProQuiz_View_QuestionOverall.php:79
714
- #: lib/view/WpProQuiz_View_Statistics.php:45
715
- msgid "Loading"
716
- msgstr ""
717
-
718
- #: lib/view/WpProQuiz_View_QuestionOverall.php:87
719
  msgid "Copy questions"
720
  msgstr ""
721
 
@@ -723,10 +930,6 @@ msgstr ""
723
  msgid "Quiz title"
724
  msgstr "عنوان الاختبار"
725
 
726
- #: lib/view/WpProQuiz_View_QuizEdit.php:18
727
- msgid "Options"
728
- msgstr "خيارات"
729
-
730
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
731
  msgid "Hide quiz title"
732
  msgstr "اخفاء عنوان الاختبار"
@@ -801,6 +1004,9 @@ msgstr ""
801
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
802
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
803
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
 
 
 
804
  msgid "Demo"
805
  msgstr ""
806
 
@@ -822,12 +1028,11 @@ msgid "Check -> continue"
822
  msgstr "فحص->استكمال"
823
 
824
  #: lib/view/WpProQuiz_View_QuizEdit.php:212
825
- #, fuzzy
826
  msgid ""
827
  "Shows \"right or wrong\" after each question. Otherwise the solutions will "
828
  "be displayed at the end. (Option will be ignored if \"questions below each "
829
  "other\" was used)"
830
- msgstr "عرض\"صواب أو خطأ\" بعد السؤال. وإلا يتم عرض الحلول في نهاية المطاف."
831
 
832
  #: lib/view/WpProQuiz_View_QuizEdit.php:225
833
  #: lib/view/WpProQuiz_View_QuizEdit.php:230
@@ -835,17 +1040,14 @@ msgid "Back button"
835
  msgstr "زر العودة"
836
 
837
  #: lib/view/WpProQuiz_View_QuizEdit.php:237
838
- #, fuzzy
839
  msgid ""
840
  "Allows to use the back button in a question. (Option will be ignored if "
841
  "\"Check -> Continue\" or \"questions below each other\" was used)"
842
  msgstr ""
843
- "السماح لاستخدام زر العودة في سؤال. (سيتم تجاهل الخيار إذا\"تم تأشير زر -> "
844
- "متابعة \" مستخدماً)"
845
 
846
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
847
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
848
- #: lib/view/WpProQuiz_View_QuizOverall.php:80
849
  msgid "Statistics"
850
  msgstr "احصائيات"
851
 
@@ -892,14 +1094,17 @@ msgid "This option applies to:"
892
  msgstr ""
893
 
894
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
 
895
  msgid "all users"
896
  msgstr ""
897
 
898
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
 
899
  msgid "registered useres only"
900
  msgstr ""
901
 
902
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
 
903
  msgid "anonymous users only"
904
  msgstr ""
905
 
@@ -976,37 +1181,157 @@ msgstr ""
976
  msgid "in percent"
977
  msgstr ""
978
 
 
 
 
 
 
 
 
 
 
 
979
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
980
  msgid "Quiz description"
981
  msgstr "وصف الاختبار"
982
 
983
- #: lib/view/WpProQuiz_View_QuizEdit.php:466
984
  msgid "This text will be displayed before start of the quiz."
985
  msgstr "سيتم عرض هذا النص قبل بدء الاختبار."
986
 
987
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
988
  msgid "Results text"
989
  msgstr "نص النتائج"
990
 
991
- #: lib/view/WpProQuiz_View_QuizEdit.php:477
992
  msgid ""
993
  "This text will be displayed at the end of the quiz (in results). (this text "
994
  "is optional)"
995
  msgstr "سيتم عرض هذا النص في نهاية الاختبار (في النتائج). (هذا النص اختياري)"
996
 
997
- #: lib/view/WpProQuiz_View_QuizEdit.php:481
998
  msgid "Activate graduation"
999
  msgstr "تفعيل التقييم"
1000
 
1001
- #: lib/view/WpProQuiz_View_QuizEdit.php:487
1002
  msgid "Hint:"
1003
  msgstr "تلميح:"
1004
 
1005
- #: lib/view/WpProQuiz_View_QuizEdit.php:489
1006
  msgid "Maximal 15 levels"
1007
  msgstr "اقصى حد 15 مستوى"
1008
 
1009
- #: lib/view/WpProQuiz_View_QuizEdit.php:491
1010
  #, php-format
1011
  msgid ""
1012
  "Percentages refer to the total score of the quiz. (Current total %d points "
@@ -1015,26 +1340,26 @@ msgstr ""
1015
  "النسبة المئوية تشير الي الدرجة الكلية للأختبار.( المجموع الحالي %d درجة في "
1016
  "%d سؤال"
1017
 
1018
- #: lib/view/WpProQuiz_View_QuizEdit.php:494
1019
  msgid "Values can also be mixed up"
1020
  msgstr "يمكن لخبطة القيم"
1021
 
1022
- #: lib/view/WpProQuiz_View_QuizEdit.php:495
1023
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1024
  msgstr "10.15% او 10.15% مسموح به (اقصى حد هو رقمين بعد النسبة المئوية)"
1025
 
1026
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1027
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1028
  msgid "from:"
1029
  msgstr "من:"
1030
 
1031
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1032
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1033
  msgid "percent"
1034
  msgstr "النسبة المئوية"
1035
 
1036
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1037
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1038
  #, php-format
1039
  msgid ""
1040
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
@@ -1043,12 +1368,12 @@ msgstr ""
1043
  "(سوف يتم عرضه، عندما تكون نسبة النتيجة>= <span class=\"resultProzent\">%s</"
1044
  "span>%%)"
1045
 
1046
- #: lib/view/WpProQuiz_View_QuizEdit.php:512
1047
- #: lib/view/WpProQuiz_View_QuizEdit.php:523
1048
  msgid "Delete graduation"
1049
  msgstr "حذف التقييم"
1050
 
1051
- #: lib/view/WpProQuiz_View_QuizEdit.php:530
1052
  msgid "Add graduation"
1053
  msgstr "اضافة تقييم"
1054
 
@@ -1068,42 +1393,51 @@ msgstr "إذا الاختبار لا يعمل في الواجهة الأمامي
1068
  msgid "Style Manager"
1069
  msgstr ""
1070
 
1071
- #: lib/view/WpProQuiz_View_QuizOverall.php:55
 
 
 
 
 
1072
  msgid "ID"
1073
  msgstr "الرقم"
1074
 
1075
- #: lib/view/WpProQuiz_View_QuizOverall.php:56
1076
  msgid "Shortcode"
1077
  msgstr "الكود"
1078
 
1079
- #: lib/view/WpProQuiz_View_QuizOverall.php:78
 
 
 
 
1080
  msgid "Preview"
1081
  msgstr "استعراض"
1082
 
1083
- #: lib/view/WpProQuiz_View_QuizOverall.php:89
1084
  msgid "Add quiz"
1085
  msgstr "اضف اختبار"
1086
 
1087
- #: lib/view/WpProQuiz_View_QuizOverall.php:93
1088
- #: lib/view/WpProQuiz_View_QuizOverall.php:98
1089
  msgid "Export"
1090
  msgstr "تصدير"
1091
 
1092
- #: lib/view/WpProQuiz_View_QuizOverall.php:99
1093
  msgid ""
1094
  "Choose the respective question, which you would like to export and press on "
1095
  "\"Start export\""
1096
  msgstr "اختار سؤال، الذي تود أن تقوم بتصديره و اضغط على \"ابدأ التصدير\""
1097
 
1098
- #: lib/view/WpProQuiz_View_QuizOverall.php:103
1099
  msgid "Start export"
1100
  msgstr "ابدأ التصدير"
1101
 
1102
- #: lib/view/WpProQuiz_View_QuizOverall.php:109
1103
  msgid "Import only *.wpq files from known and trusted sources."
1104
  msgstr "استورد ملفات *.wpq فقط من مصدر معروف او موثوق به"
1105
 
1106
- #: lib/view/WpProQuiz_View_QuizOverall.php:117
1107
  #, php-format
1108
  msgid "Maximal %d MiB"
1109
  msgstr "الحد الاقصى من %d MIB"
@@ -1160,26 +1494,91 @@ msgstr ""
1160
  msgid "Reset entire statistic"
1161
  msgstr ""
1162
 
1163
- #: lib/view/WpProQuiz_View_Statistics.php:115
1164
- msgid "Filter"
1165
- msgstr ""
1166
-
1167
  #: lib/view/WpProQuiz_View_Statistics.php:120
1168
  msgid "Show only users, who solved the quiz:"
1169
  msgstr ""
1170
 
1171
- #: lib/view/WpProQuiz_View_Statistics.php:126
1172
- msgid "How many entries should be shown on one page:"
1173
  msgstr ""
1174
 
1175
- #: lib/view/WpProQuiz_View_Statistics.php:145
1176
- msgid "User"
1177
  msgstr ""
1178
 
1179
- #: lib/view/WpProQuiz_View_StyleManager.php:15
1180
- msgid "Front"
1181
  msgstr ""
1182
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1183
  #~ msgid "One question is one point"
1184
  #~ msgstr "سؤال واحد يعني درجة واحدة"
1185
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-02-07 20:47+0100\n"
5
+ "PO-Revision-Date: 2013-02-07 20:47+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.5\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:98
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "هل تريد حقاً ان تحذف هذا الاختبار/السؤال؟"
20
 
21
+ #: lib/controller/WpProQuiz_Controller_Admin.php:99
22
  msgid "Title is not filled!"
23
  msgstr "لم يتم تعبئة هذا!"
24
 
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:100
26
  msgid "No question deposited!"
27
  msgstr "لم يتم وضع سؤال!"
28
 
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:101
30
  msgid "Correct answer was not selected!"
31
  msgstr "لم يتم اختيار اجابة صحيحة!"
32
 
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:102
34
  msgid "No answer deposited!"
35
  msgstr "لم يتم وضع اجابة!"
36
 
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:103
38
  msgid "No quiz description filled!"
39
  msgstr "لم يتم تعبئة وصف للاختبار!"
40
 
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:104
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "النسبة المئوية في نص النتائج غير صحيحة."
44
 
45
+ #: lib/controller/WpProQuiz_Controller_Admin.php:105
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "لا يوجد رقم في حقل /\"النقاط/\" أو أقل من 1"
48
 
49
+ #: lib/controller/WpProQuiz_Controller_Admin.php:106
50
+ msgid "No number in the field \"Points\" or less than 0"
51
+ msgstr ""
52
+
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:107
54
  msgid "No quiz selected"
55
  msgstr "لم يتم اختيار اختبار"
56
 
57
+ #: lib/controller/WpProQuiz_Controller_Admin.php:108
58
  msgid "Do you really want to reset the statistic?"
59
  msgstr ""
60
 
61
+ #: lib/controller/WpProQuiz_Controller_Admin.php:109
62
+ #: lib/view/WpProQuiz_View_FrontToplist.php:26
63
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
64
+ #: lib/view/WpProQuiz_View_QuizOverall.php:111
65
+ msgid "No data available"
66
+ msgstr ""
67
+
68
+ #: lib/controller/WpProQuiz_Controller_Admin.php:110
69
+ msgid "No sort element in the criterion"
70
+ msgstr ""
71
+
72
+ #: lib/controller/WpProQuiz_Controller_Admin.php:111
73
+ msgid ""
74
+ "\"Different points for every answer\" is not possible at \"Free\" choice"
75
+ msgstr ""
76
+
77
+ #: lib/controller/WpProQuiz_Controller_Front.php:44
78
+ #: lib/controller/WpProQuiz_Controller_Preview.php:15
79
+ #: lib/view/WpProQuiz_View_AdminToplist.php:47
80
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:393
81
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:93
82
+ #: lib/view/WpProQuiz_View_Statistics.php:45
83
+ msgid "Loading"
84
+ msgstr ""
85
+
86
  #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
87
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
88
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:43
89
  #: lib/controller/WpProQuiz_Controller_Question.php:51
90
  #: lib/controller/WpProQuiz_Controller_Question.php:128
91
  #: lib/controller/WpProQuiz_Controller_Question.php:143
92
+ #: lib/controller/WpProQuiz_Controller_Question.php:196
93
+ #: lib/controller/WpProQuiz_Controller_Question.php:342
94
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:175
95
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:189
96
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:249
97
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:297
98
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:163
99
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:76
100
  msgid "You do not have sufficient permissions to access this page."
101
  msgstr ""
102
 
105
  msgstr ""
106
 
107
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
108
+ #: lib/helper/WpProQuiz_Helper_Import.php:59
109
+ #: lib/helper/WpProQuiz_Helper_Import.php:68
110
+ #: lib/helper/WpProQuiz_Helper_Import.php:75
111
  msgid "File cannot be processed"
112
  msgstr "لا يمكن استكمال الملف"
113
 
114
  #: lib/controller/WpProQuiz_Controller_Question.php:9
115
  #: lib/controller/WpProQuiz_Controller_Question.php:19
116
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:201
117
  msgid "Quiz not found"
118
  msgstr "لم يتم العثور على الاختبار"
119
 
125
  msgid "Edit question"
126
  msgstr "تحرير السؤال"
127
 
128
+ #: lib/controller/WpProQuiz_Controller_Question.php:155
129
  msgid "Question not found"
130
  msgstr "لم يتم العثور على السؤال"
131
 
132
+ #: lib/controller/WpProQuiz_Controller_Question.php:172
133
+ #: lib/controller/WpProQuiz_Controller_Question.php:224
134
  #, php-format
135
  msgid "Question: %d"
136
  msgstr "السؤال: %d"
137
 
138
+ #: lib/controller/WpProQuiz_Controller_Question.php:180
139
  msgid "Question edited"
140
  msgstr "تم تحرير السؤال"
141
 
142
+ #: lib/controller/WpProQuiz_Controller_Question.php:200
143
  msgid "New question"
144
  msgstr "سؤال جديد"
145
 
146
+ #: lib/controller/WpProQuiz_Controller_Question.php:233
147
  msgid "Question added"
148
  msgstr "تم اضافة سؤال"
149
 
150
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:196
151
  #: lib/view/WpProQuiz_View_QuestionOverall.php:21
152
  msgid "Edit quiz"
153
  msgstr "تحرير الاختبار"
154
 
155
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:216
156
  msgid "Quiz edited"
157
  msgstr "تم تحرير الاختبار"
158
 
159
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:233
160
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:281
161
  msgid "Quiz title or quiz description are not filled"
162
  msgstr "لم يتم تعبئة عنوان او وصف الاختبار"
163
 
164
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:253
165
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:267
166
  msgid "Create quiz"
167
  msgstr "انشاء اختبار"
168
 
169
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:314
170
  msgid "Quiz deleted"
171
  msgstr "تم حذف الاختبار"
172
 
173
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:136
174
+ msgid "You signing up successfully."
175
+ msgstr ""
176
+
177
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:144
178
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:148
179
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:165
180
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:169
181
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:175
182
+ msgid "An error has occurred."
183
+ msgstr ""
184
+
185
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:186
186
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:195
187
+ msgid "You can not enter again."
188
+ msgstr ""
189
+
190
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:199
191
+ msgid "No name or e-mail entered."
192
+ msgstr ""
193
+
194
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:203
195
+ msgid "Your name can not exceed 15 characters."
196
+ msgstr ""
197
+
198
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:211
199
+ msgid "You entered wrong captcha code."
200
+ msgstr ""
201
+
202
  #: lib/helper/WpProQuiz_Helper_Import.php:9
203
  msgid "File was not uploaded"
204
  msgstr "لم يتم رفع الملف"
207
  msgid "File have wrong format"
208
  msgstr "صيغة الملف خاطئة"
209
 
210
+ #: lib/helper/WpProQuiz_Helper_Import.php:45
211
+ msgid "File is not compatible with the current version"
212
+ msgstr ""
213
+
214
  #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
215
  msgid "The user completed a quiz."
216
  msgstr ""
217
 
218
+ #: lib/view/WpProQuiz_View_AdminToplist.php:7
219
+ #: lib/view/WpProQuiz_View_FrontToplist.php:8
220
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
221
+ #: lib/view/WpProQuiz_View_QuizEdit.php:534
222
+ #: lib/view/WpProQuiz_View_QuizOverall.php:96
223
+ msgid "Leaderboard"
224
+ msgstr ""
225
 
226
+ #: lib/view/WpProQuiz_View_AdminToplist.php:8
227
+ #: lib/view/WpProQuiz_View_GobalSettings.php:21
228
+ #: lib/view/WpProQuiz_View_Import.php:22
229
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
230
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
231
+ #: lib/view/WpProQuiz_View_QuizEdit.php:8
232
+ #: lib/view/WpProQuiz_View_Statistics.php:18
233
+ #: lib/view/WpProQuiz_View_StyleManager.php:11
234
+ msgid "back to overview"
235
+ msgstr "العودة للرئيسية"
236
+
237
+ #: lib/view/WpProQuiz_View_AdminToplist.php:11
238
+ #: lib/view/WpProQuiz_View_Statistics.php:115
239
+ msgid "Filter"
240
+ msgstr ""
241
+
242
+ #: lib/view/WpProQuiz_View_AdminToplist.php:16
243
+ msgid "Sort by:"
244
+ msgstr ""
245
+
246
+ #: lib/view/WpProQuiz_View_AdminToplist.php:18
247
+ #: lib/view/WpProQuiz_View_QuizEdit.php:600
248
+ msgid "best user"
249
+ msgstr ""
250
+
251
+ #: lib/view/WpProQuiz_View_AdminToplist.php:19
252
+ #: lib/view/WpProQuiz_View_QuizEdit.php:604
253
+ msgid "newest entry"
254
+ msgstr ""
255
+
256
+ #: lib/view/WpProQuiz_View_AdminToplist.php:20
257
+ #: lib/view/WpProQuiz_View_QuizEdit.php:608
258
+ msgid "oldest entry"
259
+ msgstr ""
260
+
261
+ #: lib/view/WpProQuiz_View_AdminToplist.php:26
262
+ #: lib/view/WpProQuiz_View_Statistics.php:126
263
+ msgid "How many entries should be shown on one page:"
264
+ msgstr ""
265
+
266
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
267
+ #: lib/view/WpProQuiz_View_AdminToplist.php:57
268
+ msgid "Type"
269
+ msgstr ""
270
+
271
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
272
+ msgid "UR = unregistered user, R = registered user"
273
+ msgstr ""
274
+
275
+ #: lib/view/WpProQuiz_View_AdminToplist.php:55
276
+ #: lib/view/WpProQuiz_View_Statistics.php:145
277
+ msgid "User"
278
+ msgstr ""
279
+
280
+ #: lib/view/WpProQuiz_View_AdminToplist.php:56
281
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:401
282
+ msgid "E-Mail"
283
  msgstr ""
284
 
285
+ #: lib/view/WpProQuiz_View_AdminToplist.php:58
286
+ #: lib/view/WpProQuiz_View_FrontToplist.php:16
287
+ msgid "Entered on"
288
+ msgstr ""
289
+
290
+ #: lib/view/WpProQuiz_View_AdminToplist.php:59
291
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:283
292
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:301
293
+ #: lib/view/WpProQuiz_View_FrontToplist.php:17
294
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
295
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
296
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:223
297
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:260
298
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
299
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
300
+ #: lib/view/WpProQuiz_View_Statistics.php:54
301
+ #: lib/view/WpProQuiz_View_Statistics.php:146
302
+ msgid "Points"
303
+ msgstr "درجات"
304
+
305
+ #: lib/view/WpProQuiz_View_AdminToplist.php:60
306
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:64
307
  #: lib/view/WpProQuiz_View_Statistics.php:59
308
  #: lib/view/WpProQuiz_View_Statistics.php:150
309
  msgid "Results"
310
  msgstr "النتائج"
311
 
312
+ #: lib/view/WpProQuiz_View_AdminToplist.php:79
313
+ msgid "Action"
314
+ msgstr "الحدث"
315
+
316
+ #: lib/view/WpProQuiz_View_AdminToplist.php:80
317
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:54
318
+ #: lib/view/WpProQuiz_View_QuizOverall.php:84
319
+ msgid "Delete"
320
+ msgstr "حذف"
321
+
322
+ #: lib/view/WpProQuiz_View_AdminToplist.php:82
323
+ msgid "Apply"
324
+ msgstr ""
325
+
326
+ #: lib/view/WpProQuiz_View_AdminToplist.php:83
327
+ msgid "Delete all entries"
328
+ msgstr ""
329
+
330
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:49
331
+ msgid "Start quiz"
332
+ msgstr "بدأ الاختبار"
333
+
334
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:54
335
+ msgid ""
336
+ "You have already completed the quiz before. Hence you can not start it again."
337
+ msgstr ""
338
+
339
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:59
340
+ msgid "You have to finish following quiz, to start this quiz:"
341
+ msgstr ""
342
+
343
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:66
344
  #, php-format
345
  msgid "%s of %s questions answered correctly"
346
  msgstr "تم اجابة %s من %s اسئلة بشكل صحيح"
347
 
348
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:69
349
  msgid "Your time: <span></span>"
350
  msgstr "وقتك: <span></span>"
351
 
352
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:72
353
  msgid "Time has elapsed"
354
  msgstr "مضى من الوقت"
355
 
356
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:75
357
+ #, php-format
358
+ msgid "You have reached %s of %s points, (%s)"
359
+ msgstr "لقد وصلت الي %s من %s لنقاط, (%s)"
360
 
361
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:83
362
+ msgid "Average score"
363
+ msgstr ""
364
+
365
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:90
366
+ msgid "Your score"
367
+ msgstr ""
368
+
369
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:122
370
  msgid "Restart quiz"
371
  msgstr "اعادة الاختبار"
372
 
373
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:124
374
  msgid "View questions"
375
  msgstr "استعراض الاسئلة"
376
 
377
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:127
378
+ msgid "Show leaderboard"
379
+ msgstr ""
380
+
381
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:138
382
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
383
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
384
  msgid "Time limit"
385
  msgstr "الوقت المحدد"
386
 
387
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:162
388
  #, php-format
389
  msgid "Question %s of %s"
390
  msgstr "اسئلة %s من %s "
391
 
392
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:165
393
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
394
  #: lib/view/WpProQuiz_View_Statistics.php:53
395
  msgid "Question"
396
  msgstr "اسئلة"
397
 
398
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:169
399
  #, php-format
400
  msgid "%d points"
401
  msgstr "%d درجات"
402
 
403
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:179
404
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:252
 
 
405
  msgid "Sort elements"
406
  msgstr "ترتيب العناصر"
407
 
408
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:281
409
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:288
410
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:211
411
  #: lib/view/WpProQuiz_View_Statistics.php:55
412
  #: lib/view/WpProQuiz_View_Statistics.php:147
413
  msgid "Correct"
414
  msgstr "صحيح"
415
 
416
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:299
417
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:306
 
 
 
 
 
 
 
 
 
 
418
  #: lib/view/WpProQuiz_View_Statistics.php:56
419
  #: lib/view/WpProQuiz_View_Statistics.php:148
420
  msgid "Incorrect"
421
  msgstr "خطأ"
422
 
423
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:327
424
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:336
425
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
426
  msgid "Hint"
427
  msgstr "تلميح"
428
 
429
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:333
430
  msgid "Check"
431
  msgstr "التحقق"
432
 
433
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:334
434
  msgid "Back"
435
  msgstr "العودة"
436
 
437
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:338
438
  msgid "Next exercise"
439
  msgstr "التمرين التالي"
440
 
441
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:351
442
  msgid "Finish quiz"
443
  msgstr ""
444
 
445
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:391
446
+ msgid "Your result entered into leaderboard"
447
+ msgstr ""
448
+
449
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:398
450
+ #: lib/view/WpProQuiz_View_FrontToplist.php:15
451
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
452
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
453
+ msgid "Name"
454
+ msgstr "الاسم"
455
+
456
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:406
457
+ msgid "Captcha"
458
+ msgstr ""
459
+
460
+ #: lib/view/WpProQuiz_View_FrontToplist.php:11
461
+ #, php-format
462
+ msgid "maximum of %s points"
463
+ msgstr ""
464
+
465
+ #: lib/view/WpProQuiz_View_FrontToplist.php:14
466
+ msgid "Pos."
467
+ msgstr ""
468
+
469
+ #: lib/view/WpProQuiz_View_FrontToplist.php:18
470
+ msgid "Result"
471
+ msgstr ""
472
+
473
+ #: lib/view/WpProQuiz_View_FrontToplist.php:23
474
+ msgid "Table is loading"
475
+ msgstr ""
476
+
477
  #: lib/view/WpProQuiz_View_GobalSettings.php:7
478
  msgid "to activate"
479
  msgstr ""
483
  msgstr ""
484
 
485
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
486
+ #: lib/view/WpProQuiz_View_GobalSettings.php:24
487
+ #: lib/view/WpProQuiz_View_GobalSettings.php:31
488
  #: lib/view/WpProQuiz_View_QuizOverall.php:48
489
+ msgid "Global settings"
490
  msgstr ""
491
 
492
  #: lib/view/WpProQuiz_View_GobalSettings.php:16
493
+ #: lib/view/WpProQuiz_View_WpqSupport.php:50
494
  msgid "Please note"
495
  msgstr ""
496
 
499
  "These settings should only be set in cases of problems with Wp-Pro-Quiz."
500
  msgstr ""
501
 
502
+ #: lib/view/WpProQuiz_View_GobalSettings.php:25
503
+ #: lib/view/WpProQuiz_View_GobalSettings.php:78
504
+ msgid "Settings in case of problems"
505
+ msgstr ""
 
 
 
 
 
506
 
507
+ #: lib/view/WpProQuiz_View_GobalSettings.php:37
508
+ #: lib/view/WpProQuiz_View_GobalSettings.php:42
509
+ msgid "Leaderboard time format"
510
+ msgstr ""
511
+
512
+ #: lib/view/WpProQuiz_View_GobalSettings.php:64
513
+ msgid "Custom"
514
+ msgstr ""
515
+
516
+ #: lib/view/WpProQuiz_View_GobalSettings.php:68
517
+ msgid "Documentation on date and time formatting"
518
+ msgstr ""
519
+
520
+ #: lib/view/WpProQuiz_View_GobalSettings.php:84
521
+ #: lib/view/WpProQuiz_View_GobalSettings.php:89
522
  msgid "Automatically add [raw] shortcode"
523
  msgstr ""
524
 
525
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
526
+ #: lib/view/WpProQuiz_View_GobalSettings.php:115
527
+ #: lib/view/WpProQuiz_View_GobalSettings.php:167
528
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
529
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
530
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
539
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
540
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
541
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
542
+ #: lib/view/WpProQuiz_View_QuizEdit.php:442
543
+ #: lib/view/WpProQuiz_View_QuizEdit.php:467
544
+ #: lib/view/WpProQuiz_View_QuizEdit.php:539
545
+ #: lib/view/WpProQuiz_View_QuizEdit.php:572
546
+ #: lib/view/WpProQuiz_View_QuizEdit.php:620
547
+ #: lib/view/WpProQuiz_View_QuizEdit.php:696
548
  msgid "Activate"
549
  msgstr ""
550
 
551
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
552
  #, php-format
553
  msgid "It is recommended %s this option on your system."
554
  msgstr ""
555
 
556
+ #: lib/view/WpProQuiz_View_GobalSettings.php:96
557
  msgid ""
558
  "If this option is activated, a [raw] shortcode is automatically set around "
559
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
560
  msgstr ""
561
 
562
+ #: lib/view/WpProQuiz_View_GobalSettings.php:99
563
  #: lib/view/WpProQuiz_View_QuizOverall.php:42
564
  msgid ""
565
  "Own themes changes internal order of filters, what causes the problems. "
568
  "الثيمات الخاصة تغير النظام الداخلي للمرشحات، مما يسبب المشاكل. مع الرمز "
569
  "القصير إضافية [الخام] يتم منع هذا. MIB"
570
 
571
+ #: lib/view/WpProQuiz_View_GobalSettings.php:106
572
+ #: lib/view/WpProQuiz_View_GobalSettings.php:111
573
  msgid "Do not load the Javascript-files in the footer"
574
  msgstr ""
575
 
576
+ #: lib/view/WpProQuiz_View_GobalSettings.php:118
577
  msgid ""
578
  "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
579
  "when they are really needed."
580
  msgstr ""
581
 
582
+ #: lib/view/WpProQuiz_View_GobalSettings.php:121
583
  msgid "In very old Wordpress themes this can lead to problems."
584
  msgstr ""
585
 
586
+ #: lib/view/WpProQuiz_View_GobalSettings.php:124
587
  msgid ""
588
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
589
  "the header even if they are not needed."
590
  msgstr ""
591
 
592
+ #: lib/view/WpProQuiz_View_GobalSettings.php:127
593
  #, php-format
594
  msgid ""
595
  "Anyone who wants to learn more about this topic should read through the "
596
  "following websites %s and %s."
597
  msgstr ""
598
 
599
+ #: lib/view/WpProQuiz_View_GobalSettings.php:136
600
+ #: lib/view/WpProQuiz_View_GobalSettings.php:141
601
  msgid "Touch Library"
602
  msgstr ""
603
 
604
+ #: lib/view/WpProQuiz_View_GobalSettings.php:145
605
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
606
  msgid "Deactivate"
607
  msgstr ""
608
 
609
+ #: lib/view/WpProQuiz_View_GobalSettings.php:148
610
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
611
  msgstr ""
612
 
613
+ #: lib/view/WpProQuiz_View_GobalSettings.php:151
614
  msgid "If you have any problems with the Touch Library, please deactivate it."
615
  msgstr ""
616
 
617
+ #: lib/view/WpProQuiz_View_GobalSettings.php:158
618
+ #: lib/view/WpProQuiz_View_GobalSettings.php:163
619
  msgid "jQuery support cors"
620
  msgstr ""
621
 
622
+ #: lib/view/WpProQuiz_View_GobalSettings.php:170
623
  msgid "Is required only in rare cases."
624
  msgstr ""
625
 
626
+ #: lib/view/WpProQuiz_View_GobalSettings.php:173
627
  msgid "If you have problems with the front ajax, please activate it."
628
  msgstr ""
629
 
630
+ #: lib/view/WpProQuiz_View_GobalSettings.php:176
631
  msgid "e.g. Domain with special characters in combination with IE"
632
  msgstr ""
633
 
634
+ #: lib/view/WpProQuiz_View_GobalSettings.php:185
635
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:185
636
+ #: lib/view/WpProQuiz_View_QuizEdit.php:790
637
+ #: lib/view/WpProQuiz_View_WpqSupport.php:45
638
  msgid "Save"
639
  msgstr "حفظ"
640
 
641
  #: lib/view/WpProQuiz_View_Import.php:21
642
+ #: lib/view/WpProQuiz_View_QuizOverall.php:120
643
+ #: lib/view/WpProQuiz_View_QuizOverall.php:137
644
  msgid "Import"
645
  msgstr "استيراد"
646
 
661
  msgstr "اسم الاختبار"
662
 
663
  #: lib/view/WpProQuiz_View_Import.php:44
664
+ #: lib/view/WpProQuiz_View_QuizOverall.php:75
665
  msgid "Questions"
666
  msgstr "اسئلة"
667
 
668
  #: lib/view/WpProQuiz_View_Import.php:67
669
+ #: lib/view/WpProQuiz_View_QuizOverall.php:148
670
  msgid "Start import"
671
  msgstr "ابدأ الاستيراد"
672
 
675
  msgstr "العنوان"
676
 
677
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
678
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
679
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
680
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
681
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
682
+ #: lib/view/WpProQuiz_View_QuizEdit.php:684
683
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
684
  msgid "(optional)"
685
  msgstr "(اختيار)"
686
 
693
  "فارغا، سيتم إنشاء عنوان."
694
 
695
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
696
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
697
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
698
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
699
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
700
  msgid "(required)"
701
  msgstr "(مطلوب)"
702
 
704
  msgid "Points for this question (Standard is 1 point)"
705
  msgstr "درجات هذا السؤال (عادة 1 درجة)"
706
 
707
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:31
708
+ msgid ""
709
+ "This points will be rewarded, only if the user closes the question correctly."
710
  msgstr ""
711
 
712
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
713
+ msgid "Different points for each answer"
714
+ msgstr ""
715
+
716
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:40
717
  msgid ""
718
+ "If you enable this option, you can enter different points for every answer."
 
 
719
  msgstr ""
720
 
721
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:46
722
  msgid "Show reached points in the correct- and incorrect message?"
723
  msgstr ""
724
 
725
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
726
  msgid "Message with the correct / incorrect answer"
727
  msgstr ""
728
 
729
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:62
730
  msgid "Deactivated in quiz settings."
731
  msgstr ""
732
 
733
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
734
  msgid "Message with the correct answer"
735
  msgstr "رسالة مع الاجابة الصحيحة"
736
 
737
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:70
738
  msgid ""
739
  "This text will be visible if answered correctly. It can be used as "
740
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
743
  "وهذا النص مرئية إذا أجاب بشكل صحيح. ويمكن استخدامه كدليل شرح للمسائل "
744
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
745
 
746
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
747
  msgid "Same text for correct- and incorrect-message?"
748
  msgstr "نفس النص مع رسالة الاجابة الصحيحة - و الغير صحيحة؟"
749
 
750
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
751
  msgid "Message with the incorrect answer"
752
  msgstr "رسالة مع الاجابة الغير صحيحة"
753
 
754
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:87
755
  msgid ""
756
  "This text will be visible if answered incorrectly. It can be used as "
757
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
760
  "وهذا النص مرئية إذا أجاب بشكل غير صحيح. ويمكن استخدامه كدليل شرح للمسائل "
761
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
762
 
763
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:99
764
  msgid "Here you can enter solution hint."
765
  msgstr "يمكنك وضع هنا تلميح للأجابة."
766
 
767
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:103
768
  msgid "Activate hint for this question?"
769
  msgstr "تفعيل التلميح لهذا السؤال؟"
770
 
771
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:115
772
  msgid "Answer type"
773
  msgstr "نوع السؤال؟"
774
 
775
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:123
776
  msgid "Single choice"
777
  msgstr "اختيار واحد"
778
 
779
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:127
780
  msgid "Multiple choice"
781
  msgstr "أختيار متعدد"
782
 
783
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:131
784
  msgid "\"Free\" choice"
785
  msgstr "\"حر\" اختيار"
786
 
787
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:135
788
  msgid "\"Sorting\" choice"
789
  msgstr "\"ترتيب\" اختيار"
790
 
791
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:139
792
  msgid "\"Matrix Sorting\" choice"
793
  msgstr "\"ترتيب منظمي\" اختيار"
794
 
795
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:143
796
  msgid "Cloze"
797
  msgstr "اكمل"
798
 
799
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
800
  msgid "Answers"
801
  msgstr "اجابات"
802
 
803
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:155
 
 
 
 
 
 
804
  msgid ""
805
  "Please sort the answers in right order with the \"Move\" - Button. The "
806
  "answers will be displayed randomly."
808
  "يرجى فرز الإجابات في بالترتيب الصحيح بزر \"نقل\" - . سوف يتم عرض الإجابات "
809
  "بشكل عشوائي."
810
 
811
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:160
812
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
813
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
814
  msgid "Add new answer"
815
  msgstr "اضف اجابة جديدة"
816
 
817
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
 
 
 
 
 
 
818
  msgid ""
819
  "In this mode, not a list have to be sorted, but elements must be assigned to "
820
  "matching criterion."
822
  "في هذا الوضع، لا يوجد قائمة لا بد من فرزها، ولكن يجب تعيين عناصر مطابقة "
823
  "لمعيار."
824
 
825
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
826
+ msgid ""
827
+ "You can create sort elements with empty criteria, which can't be assigned by "
828
+ "user."
829
+ msgstr ""
830
+
831
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:201
832
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
833
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:302
834
+ #: lib/view/WpProQuiz_View_QuizEdit.php:18
835
+ msgid "Options"
836
+ msgstr "خيارات"
837
+
838
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
839
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:303
840
+ msgid "Answer"
841
+ msgstr ""
842
+
843
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:217
844
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:275
845
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:281
846
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:312
847
+ msgid "Allow HTML"
848
+ msgstr "السماح بــ HTML"
849
+
850
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:234
851
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:288
852
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:329
853
+ msgid "Delete answer"
854
+ msgstr "حذف الاجابة"
855
+
856
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:235
857
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
858
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:330
859
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:58
860
+ msgid "Move"
861
+ msgstr "تحريك"
862
+
863
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:251
864
  msgid "Criterion"
865
  msgstr "معيار"
866
 
867
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:341
868
+ msgid ""
869
+ "correct answers (one per line) (answers will be converted to lower case)"
870
+ msgstr "الإجابات الصحيحة (واحد في كل سطر) (يتم تحويل الإجابات إلى أحرف صغيرة)"
871
+
872
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:354
873
  msgid ""
874
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
875
  "small letters will be ignored."
877
  "لاحتوائه مع قاموس رواجا مثل {} \"{} I كرة القدم ألعاب \". يتم تجاهل الحروف "
878
  "الكبيرة والصغيرة."
879
 
880
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:357
881
+ msgid ""
882
+ "If mode \"Different points for every answer\" is activated, you can assign "
883
+ "points with |POINTS. Otherwise 1 point will be awarded for every answer."
884
+ msgstr ""
885
+
886
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
887
+ msgid ""
888
+ "e.g. \"I {play} soccer, with a {ball|3}\" - \"play\" gives 1 point and \"ball"
889
+ "\" 3 points."
890
+ msgstr ""
891
+
892
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
893
  msgid "Questions sorted"
894
  msgstr "ترتيب الاسئلة"
895
 
896
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
897
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
 
 
 
 
 
 
 
 
 
 
898
  msgid "Edit"
899
  msgstr "تحرير"
900
 
901
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
 
 
 
 
 
902
  #: lib/view/WpProQuiz_View_Statistics.php:84
903
  msgid "Total"
904
  msgstr "المجموع"
905
 
906
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:81
907
  msgid "Add question"
908
  msgstr "اضافة سؤال"
909
 
910
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:82
911
  msgid "Save order"
912
  msgstr "حفظ الترتيب"
913
 
914
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:83
915
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:88
916
  msgid "Copy questions from another Quiz"
917
  msgstr ""
918
 
919
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:89
920
  msgid ""
921
  "Here you can copy questions from another quiz into this quiz. (Multiple "
922
  "selection enabled)"
923
  msgstr ""
924
 
925
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:101
 
 
 
 
 
926
  msgid "Copy questions"
927
  msgstr ""
928
 
930
  msgid "Quiz title"
931
  msgstr "عنوان الاختبار"
932
 
 
 
 
 
933
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
934
  msgid "Hide quiz title"
935
  msgstr "اخفاء عنوان الاختبار"
1004
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
1005
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
1006
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
1007
+ #: lib/view/WpProQuiz_View_QuizEdit.php:448
1008
+ #: lib/view/WpProQuiz_View_QuizEdit.php:661
1009
+ #: lib/view/WpProQuiz_View_QuizEdit.php:671
1010
  msgid "Demo"
1011
  msgstr ""
1012
 
1028
  msgstr "فحص->استكمال"
1029
 
1030
  #: lib/view/WpProQuiz_View_QuizEdit.php:212
 
1031
  msgid ""
1032
  "Shows \"right or wrong\" after each question. Otherwise the solutions will "
1033
  "be displayed at the end. (Option will be ignored if \"questions below each "
1034
  "other\" was used)"
1035
+ msgstr ""
1036
 
1037
  #: lib/view/WpProQuiz_View_QuizEdit.php:225
1038
  #: lib/view/WpProQuiz_View_QuizEdit.php:230
1040
  msgstr "زر العودة"
1041
 
1042
  #: lib/view/WpProQuiz_View_QuizEdit.php:237
 
1043
  msgid ""
1044
  "Allows to use the back button in a question. (Option will be ignored if "
1045
  "\"Check -> Continue\" or \"questions below each other\" was used)"
1046
  msgstr ""
 
 
1047
 
1048
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
1049
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
1050
+ #: lib/view/WpProQuiz_View_QuizOverall.php:92
1051
  msgid "Statistics"
1052
  msgstr "احصائيات"
1053
 
1094
  msgstr ""
1095
 
1096
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
1097
+ #: lib/view/WpProQuiz_View_QuizEdit.php:550
1098
  msgid "all users"
1099
  msgstr ""
1100
 
1101
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
1102
+ #: lib/view/WpProQuiz_View_QuizEdit.php:554
1103
  msgid "registered useres only"
1104
  msgstr ""
1105
 
1106
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
1107
+ #: lib/view/WpProQuiz_View_QuizEdit.php:558
1108
  msgid "anonymous users only"
1109
  msgstr ""
1110
 
1181
  msgid "in percent"
1182
  msgstr ""
1183
 
1184
+ #: lib/view/WpProQuiz_View_QuizEdit.php:433
1185
+ #: lib/view/WpProQuiz_View_QuizEdit.php:438
1186
+ msgid "Show average points"
1187
+ msgstr ""
1188
+
1189
+ #: lib/view/WpProQuiz_View_QuizEdit.php:445
1190
+ msgid "Statistics-function must be enabled."
1191
+ msgstr ""
1192
+
1193
+ #: lib/view/WpProQuiz_View_QuizEdit.php:458
1194
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
1195
+ msgid "Prerequisites"
1196
+ msgstr ""
1197
+
1198
+ #: lib/view/WpProQuiz_View_QuizEdit.php:470
1199
+ msgid ""
1200
+ "If you enable this option, you can choose quiz, which user have to finish "
1201
+ "before he can start this quiz."
1202
+ msgstr ""
1203
+
1204
+ #: lib/view/WpProQuiz_View_QuizEdit.php:473
1205
+ msgid ""
1206
+ "In all selected quizzes statistic function have to be active. If it is not "
1207
+ "it will be activated automatically."
1208
+ msgstr ""
1209
+
1210
+ #: lib/view/WpProQuiz_View_QuizEdit.php:478
1211
+ msgid "Quiz"
1212
+ msgstr ""
1213
+
1214
+ #: lib/view/WpProQuiz_View_QuizEdit.php:480
1215
+ msgid "Prerequisites (This quiz have to be finished)"
1216
+ msgstr ""
1217
+
1218
+ #: lib/view/WpProQuiz_View_QuizEdit.php:525
1219
+ msgid ""
1220
+ "The leaderboard allows users to enter results in public list and to share "
1221
+ "the result this way."
1222
+ msgstr ""
1223
+
1224
+ #: lib/view/WpProQuiz_View_QuizEdit.php:528
1225
+ msgid "The leaderboard works independent from internal statistics function."
1226
+ msgstr ""
1227
+
1228
+ #: lib/view/WpProQuiz_View_QuizEdit.php:545
1229
+ msgid "Who can sign up to the list"
1230
+ msgstr ""
1231
+
1232
+ #: lib/view/WpProQuiz_View_QuizEdit.php:561
1233
+ msgid ""
1234
+ "Not registered users have to enter name and e-mail (e-mail won't be "
1235
+ "displayed)"
1236
+ msgstr ""
1237
+
1238
+ #: lib/view/WpProQuiz_View_QuizEdit.php:567
1239
+ msgid "display captcha"
1240
+ msgstr ""
1241
+
1242
+ #: lib/view/WpProQuiz_View_QuizEdit.php:575
1243
+ msgid ""
1244
+ "If you enable this option, additional captcha will be displayed for users "
1245
+ "who are not registered."
1246
+ msgstr ""
1247
+
1248
+ #: lib/view/WpProQuiz_View_QuizEdit.php:578
1249
+ msgid "This option requires additional plugin:"
1250
+ msgstr ""
1251
+
1252
+ #: lib/view/WpProQuiz_View_QuizEdit.php:583
1253
+ msgid "Plugin has been detected."
1254
+ msgstr ""
1255
+
1256
+ #: lib/view/WpProQuiz_View_QuizEdit.php:587
1257
+ msgid "Plugin is not installed."
1258
+ msgstr ""
1259
+
1260
+ #: lib/view/WpProQuiz_View_QuizEdit.php:595
1261
+ msgid "Sort list by"
1262
+ msgstr ""
1263
+
1264
+ #: lib/view/WpProQuiz_View_QuizEdit.php:614
1265
+ msgid "Users can apply multiple times"
1266
+ msgstr ""
1267
+
1268
+ #: lib/view/WpProQuiz_View_QuizEdit.php:625
1269
+ msgid "User can apply after:"
1270
+ msgstr ""
1271
+
1272
+ #: lib/view/WpProQuiz_View_QuizEdit.php:627
1273
+ msgid "minute"
1274
+ msgstr ""
1275
+
1276
+ #: lib/view/WpProQuiz_View_QuizEdit.php:634
1277
+ msgid "How many entries should be displayed"
1278
+ msgstr ""
1279
+
1280
+ #: lib/view/WpProQuiz_View_QuizEdit.php:640
1281
+ msgid "Entries"
1282
+ msgstr ""
1283
+
1284
+ #: lib/view/WpProQuiz_View_QuizEdit.php:647
1285
+ msgid "Automatically display leaderboard in quiz result"
1286
+ msgstr ""
1287
+
1288
+ #: lib/view/WpProQuiz_View_QuizEdit.php:651
1289
+ msgid "Where should leaderboard be displayed:"
1290
+ msgstr ""
1291
+
1292
+ #: lib/view/WpProQuiz_View_QuizEdit.php:654
1293
+ msgid "don't display"
1294
+ msgstr ""
1295
+
1296
+ #: lib/view/WpProQuiz_View_QuizEdit.php:658
1297
+ msgid "below the \"result text\""
1298
+ msgstr ""
1299
+
1300
+ #: lib/view/WpProQuiz_View_QuizEdit.php:668
1301
+ msgid "in a button"
1302
+ msgstr ""
1303
+
1304
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
1305
  msgid "Quiz description"
1306
  msgstr "وصف الاختبار"
1307
 
1308
+ #: lib/view/WpProQuiz_View_QuizEdit.php:714
1309
  msgid "This text will be displayed before start of the quiz."
1310
  msgstr "سيتم عرض هذا النص قبل بدء الاختبار."
1311
 
1312
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
1313
  msgid "Results text"
1314
  msgstr "نص النتائج"
1315
 
1316
+ #: lib/view/WpProQuiz_View_QuizEdit.php:725
1317
  msgid ""
1318
  "This text will be displayed at the end of the quiz (in results). (this text "
1319
  "is optional)"
1320
  msgstr "سيتم عرض هذا النص في نهاية الاختبار (في النتائج). (هذا النص اختياري)"
1321
 
1322
+ #: lib/view/WpProQuiz_View_QuizEdit.php:729
1323
  msgid "Activate graduation"
1324
  msgstr "تفعيل التقييم"
1325
 
1326
+ #: lib/view/WpProQuiz_View_QuizEdit.php:735
1327
  msgid "Hint:"
1328
  msgstr "تلميح:"
1329
 
1330
+ #: lib/view/WpProQuiz_View_QuizEdit.php:737
1331
  msgid "Maximal 15 levels"
1332
  msgstr "اقصى حد 15 مستوى"
1333
 
1334
+ #: lib/view/WpProQuiz_View_QuizEdit.php:739
1335
  #, php-format
1336
  msgid ""
1337
  "Percentages refer to the total score of the quiz. (Current total %d points "
1340
  "النسبة المئوية تشير الي الدرجة الكلية للأختبار.( المجموع الحالي %d درجة في "
1341
  "%d سؤال"
1342
 
1343
+ #: lib/view/WpProQuiz_View_QuizEdit.php:742
1344
  msgid "Values can also be mixed up"
1345
  msgstr "يمكن لخبطة القيم"
1346
 
1347
+ #: lib/view/WpProQuiz_View_QuizEdit.php:743
1348
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1349
  msgstr "10.15% او 10.15% مسموح به (اقصى حد هو رقمين بعد النسبة المئوية)"
1350
 
1351
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1352
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1353
  msgid "from:"
1354
  msgstr "من:"
1355
 
1356
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1357
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1358
  msgid "percent"
1359
  msgstr "النسبة المئوية"
1360
 
1361
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1362
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1363
  #, php-format
1364
  msgid ""
1365
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
1368
  "(سوف يتم عرضه، عندما تكون نسبة النتيجة>= <span class=\"resultProzent\">%s</"
1369
  "span>%%)"
1370
 
1371
+ #: lib/view/WpProQuiz_View_QuizEdit.php:760
1372
+ #: lib/view/WpProQuiz_View_QuizEdit.php:771
1373
  msgid "Delete graduation"
1374
  msgstr "حذف التقييم"
1375
 
1376
+ #: lib/view/WpProQuiz_View_QuizEdit.php:778
1377
  msgid "Add graduation"
1378
  msgstr "اضافة تقييم"
1379
 
1393
  msgid "Style Manager"
1394
  msgstr ""
1395
 
1396
+ #: lib/view/WpProQuiz_View_QuizOverall.php:50
1397
+ #: lib/view/WpProQuiz_View_WpqSupport.php:8
1398
+ msgid "Support WP-Pro-Quiz"
1399
+ msgstr ""
1400
+
1401
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
1402
  msgid "ID"
1403
  msgstr "الرقم"
1404
 
1405
+ #: lib/view/WpProQuiz_View_QuizOverall.php:59
1406
  msgid "Shortcode"
1407
  msgstr "الكود"
1408
 
1409
+ #: lib/view/WpProQuiz_View_QuizOverall.php:60
1410
+ msgid "Shortcode-Leaderboard"
1411
+ msgstr ""
1412
+
1413
+ #: lib/view/WpProQuiz_View_QuizOverall.php:88
1414
  msgid "Preview"
1415
  msgstr "استعراض"
1416
 
1417
+ #: lib/view/WpProQuiz_View_QuizOverall.php:118
1418
  msgid "Add quiz"
1419
  msgstr "اضف اختبار"
1420
 
1421
+ #: lib/view/WpProQuiz_View_QuizOverall.php:122
1422
+ #: lib/view/WpProQuiz_View_QuizOverall.php:127
1423
  msgid "Export"
1424
  msgstr "تصدير"
1425
 
1426
+ #: lib/view/WpProQuiz_View_QuizOverall.php:128
1427
  msgid ""
1428
  "Choose the respective question, which you would like to export and press on "
1429
  "\"Start export\""
1430
  msgstr "اختار سؤال، الذي تود أن تقوم بتصديره و اضغط على \"ابدأ التصدير\""
1431
 
1432
+ #: lib/view/WpProQuiz_View_QuizOverall.php:132
1433
  msgid "Start export"
1434
  msgstr "ابدأ التصدير"
1435
 
1436
+ #: lib/view/WpProQuiz_View_QuizOverall.php:138
1437
  msgid "Import only *.wpq files from known and trusted sources."
1438
  msgstr "استورد ملفات *.wpq فقط من مصدر معروف او موثوق به"
1439
 
1440
+ #: lib/view/WpProQuiz_View_QuizOverall.php:146
1441
  #, php-format
1442
  msgid "Maximal %d MiB"
1443
  msgstr "الحد الاقصى من %d MIB"
1494
  msgid "Reset entire statistic"
1495
  msgstr ""
1496
 
 
 
 
 
1497
  #: lib/view/WpProQuiz_View_Statistics.php:120
1498
  msgid "Show only users, who solved the quiz:"
1499
  msgstr ""
1500
 
1501
+ #: lib/view/WpProQuiz_View_StyleManager.php:15
1502
+ msgid "Front"
1503
  msgstr ""
1504
 
1505
+ #: lib/view/WpProQuiz_View_WpqSupport.php:10
1506
+ msgid "Donate"
1507
  msgstr ""
1508
 
1509
+ #: lib/view/WpProQuiz_View_WpqSupport.php:20
1510
+ msgid "WP-Pro-Quiz is small but nice free quiz plugin for WordPress."
1511
  msgstr ""
1512
 
1513
+ #: lib/view/WpProQuiz_View_WpqSupport.php:21
1514
+ msgid ""
1515
+ "I try to implement all wishes as fast as possible and help with problems."
1516
+ msgstr ""
1517
+
1518
+ #: lib/view/WpProQuiz_View_WpqSupport.php:22
1519
+ msgid ""
1520
+ "Your donations can help to ensure that the project continues to remain free."
1521
+ msgstr ""
1522
+
1523
+ #: lib/view/WpProQuiz_View_WpqSupport.php:25
1524
+ msgid "Translate WP-Pro-Quiz"
1525
+ msgstr ""
1526
+
1527
+ #: lib/view/WpProQuiz_View_WpqSupport.php:27
1528
+ msgid "You need:"
1529
+ msgstr ""
1530
+
1531
+ #: lib/view/WpProQuiz_View_WpqSupport.php:30
1532
+ msgid "Latest POT file"
1533
+ msgstr ""
1534
+
1535
+ #: lib/view/WpProQuiz_View_WpqSupport.php:35
1536
+ msgid "Open PoEdit"
1537
+ msgstr ""
1538
+
1539
+ #: lib/view/WpProQuiz_View_WpqSupport.php:36
1540
+ msgid "File - New catalogue from POT file..."
1541
+ msgstr ""
1542
+
1543
+ #: lib/view/WpProQuiz_View_WpqSupport.php:37
1544
+ msgid "Choose wp-pro-quiz.pot"
1545
+ msgstr ""
1546
+
1547
+ #: lib/view/WpProQuiz_View_WpqSupport.php:38
1548
+ msgid "Set \"Translation properties\""
1549
+ msgstr ""
1550
+
1551
+ #: lib/view/WpProQuiz_View_WpqSupport.php:39
1552
+ msgid "Save PO file - with the name \"wp-pro-qioz-de_DE.po\""
1553
+ msgstr ""
1554
+
1555
+ #: lib/view/WpProQuiz_View_WpqSupport.php:41
1556
+ msgid "replace de_DE with your countries short code (e.g. en_US, nl_NL...)"
1557
+ msgstr ""
1558
+
1559
+ #: lib/view/WpProQuiz_View_WpqSupport.php:44
1560
+ msgid "Translate"
1561
+ msgstr ""
1562
+
1563
+ #: lib/view/WpProQuiz_View_WpqSupport.php:46
1564
+ msgid ""
1565
+ "Upload generated *.mo file to your server, to /wp-content/plugins/wp-pro-"
1566
+ "quiz/languages"
1567
+ msgstr ""
1568
+
1569
+ #: lib/view/WpProQuiz_View_WpqSupport.php:47
1570
+ msgid "Finished"
1571
+ msgstr ""
1572
+
1573
+ #: lib/view/WpProQuiz_View_WpqSupport.php:51
1574
+ msgid ""
1575
+ "You can translate WP-Pro-Quiz from existing to existing language (e.g. "
1576
+ "english to english) e.g. to rename buttons."
1577
+ msgstr ""
1578
+
1579
+ #~ msgid "correct?"
1580
+ #~ msgstr "صحيح؟"
1581
+
1582
  #~ msgid "One question is one point"
1583
  #~ msgstr "سؤال واحد يعني درجة واحدة"
1584
 
languages/wp-pro-quiz-de_DE.mo CHANGED
Binary file
languages/wp-pro-quiz-de_DE.po CHANGED
@@ -1,59 +1,90 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2013-01-15 11:33+0100\n"
5
- "PO-Revision-Date: 2013-01-15 11:34+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Julius Fischer\n"
8
  "Language: German\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 "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
@@ -61,13 +92,14 @@ msgstr "Soll die Statistik wirklich zurückgesetzt werden?"
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:192
65
- #: lib/controller/WpProQuiz_Controller_Question.php:291
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
 
@@ -76,15 +108,15 @@ 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
82
  msgid "File cannot be processed"
83
  msgstr "Datei kann nicht verarbeitet werden"
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
 
@@ -96,51 +128,80 @@ msgstr "Fragen kopiert"
96
  msgid "Edit question"
97
  msgstr "Frage bearbeiten"
98
 
99
- #: lib/controller/WpProQuiz_Controller_Question.php:154
100
  msgid "Question not found"
101
  msgstr "Frage nicht gefunden"
102
 
103
- #: lib/controller/WpProQuiz_Controller_Question.php:167
104
- #: lib/controller/WpProQuiz_Controller_Question.php:213
105
  #, php-format
106
  msgid "Question: %d"
107
  msgstr "Frage: %d"
108
 
109
- #: lib/controller/WpProQuiz_Controller_Question.php:177
110
  msgid "Question edited"
111
  msgstr "Frage geändert"
112
 
113
- #: lib/controller/WpProQuiz_Controller_Question.php:196
114
  msgid "New question"
115
  msgstr "Neue Frage"
116
 
117
- #: lib/controller/WpProQuiz_Controller_Question.php:224
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  #: lib/helper/WpProQuiz_Helper_Import.php:9
145
  msgid "File was not uploaded"
146
  msgstr "Datei wurde nicht hochgeladen"
@@ -149,129 +210,276 @@ msgstr "Datei wurde nicht hochgeladen"
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:258
224
- #: lib/view/WpProQuiz_View_QuestionEdit.php:298
225
- #: lib/view/WpProQuiz_View_QuestionEdit.php:335
226
  msgid "Sort elements"
227
  msgstr "Sortierelemente"
228
 
229
- #: lib/view/WpProQuiz_View_FrontQuiz.php:241
230
- #: lib/view/WpProQuiz_View_FrontQuiz.php:248
 
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:243
237
- #: lib/view/WpProQuiz_View_FrontQuiz.php:261
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:259
247
- #: lib/view/WpProQuiz_View_FrontQuiz.php:266
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:284
254
- #: lib/view/WpProQuiz_View_FrontQuiz.php:294
255
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
256
  msgid "Hint"
257
  msgstr "Tipp"
258
 
259
- #: lib/view/WpProQuiz_View_FrontQuiz.php:291
260
  msgid "Check"
261
  msgstr "Prüfen"
262
 
263
- #: lib/view/WpProQuiz_View_FrontQuiz.php:292
264
  msgid "Back"
265
  msgstr "Zurück"
266
 
267
- #: lib/view/WpProQuiz_View_FrontQuiz.php:296
268
  msgid "Next exercise"
269
  msgstr "Nächste Frage"
270
 
271
- #: lib/view/WpProQuiz_View_FrontQuiz.php:309
272
  msgid "Finish quiz"
273
  msgstr "Quiz abschließen"
274
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
275
  #: lib/view/WpProQuiz_View_GobalSettings.php:7
276
  msgid "to activate"
277
  msgstr "zu aktiveren"
@@ -281,12 +489,14 @@ msgid "not to activate"
281
  msgstr "nicht zu aktivieren"
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
 
289
  #: lib/view/WpProQuiz_View_GobalSettings.php:16
 
290
  msgid "Please note"
291
  msgstr "Hinweis"
292
 
@@ -297,24 +507,32 @@ msgstr ""
297
  "Diese Einstellungen sollten nur gesetzt werden, wenn es Probleme mit Wp-Pro-"
298
  "Quiz gibt."
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
307
- msgid "back to overview"
308
- msgstr "zurück zur Übersicht"
309
 
310
- #: lib/view/WpProQuiz_View_GobalSettings.php:31
311
- #: lib/view/WpProQuiz_View_GobalSettings.php:36
 
 
 
 
 
 
 
 
 
 
 
 
 
312
  msgid "Automatically add [raw] shortcode"
313
  msgstr "Automatisch [raw] Shortcode hinzufügen"
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
@@ -329,16 +547,21 @@ msgstr "Automatisch [raw] Shortcode hinzufügen"
329
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
330
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
331
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
332
- #: lib/view/WpProQuiz_View_QuizEdit.php:448
 
 
 
 
 
333
  msgid "Activate"
334
  msgstr "Aktivieren"
335
 
336
- #: lib/view/WpProQuiz_View_GobalSettings.php:40
337
  #, php-format
338
  msgid "It is recommended %s this option on your system."
339
  msgstr "Es wird auf Ihrem System empfohlen dies %s."
340
 
341
- #: lib/view/WpProQuiz_View_GobalSettings.php:43
342
  msgid ""
343
  "If this option is activated, a [raw] shortcode is automatically set around "
344
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
@@ -346,7 +569,7 @@ msgstr ""
346
  "Wenn diese Option aktivieren, wird automatisch ein [raw] Shortcode um den "
347
  "WpProQuiz Shortcode ( [WpProQuiz X] ) gesetzt ( [raw] [WpProQuiz X] [/raw] )."
348
 
349
- #: lib/view/WpProQuiz_View_GobalSettings.php:46
350
  #: lib/view/WpProQuiz_View_QuizOverall.php:42
351
  msgid ""
352
  "Own themes changes internal order of filters, what causes the problems. "
@@ -355,12 +578,12 @@ msgstr ""
355
  "Einige Themen verändern die interne Reihenfolge der Filter, wodurch es zu "
356
  "Fehlern kommt. Mit dem zusätzlichen Shortcode [raw] wird dies verhindert."
357
 
358
- #: lib/view/WpProQuiz_View_GobalSettings.php:53
359
- #: lib/view/WpProQuiz_View_GobalSettings.php:58
360
  msgid "Do not load the Javascript-files in the footer"
361
  msgstr "Javascript-Dateien nicht am Seitenende laden"
362
 
363
- #: lib/view/WpProQuiz_View_GobalSettings.php:65
364
  msgid ""
365
  "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
366
  "when they are really needed."
@@ -368,11 +591,11 @@ msgstr ""
368
  "Standardmäßig werden alle WpProQuiz-Javascript-Dateien am Seitenende geladen "
369
  "und auch nur dann wenn sie wirklich benötigt werden."
370
 
371
- #: lib/view/WpProQuiz_View_GobalSettings.php:68
372
  msgid "In very old Wordpress themes this can lead to problems."
373
  msgstr "Bei sehr alten Wordpress Themes kann dies zu Problemen führen."
374
 
375
- #: lib/view/WpProQuiz_View_GobalSettings.php:71
376
  msgid ""
377
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
378
  "the header even if they are not needed."
@@ -381,7 +604,7 @@ msgstr ""
381
  "Dateien im Header geladen, eine Unterscheidung ob die Javascript Dateien "
382
  "wirklich benötigt werden kann dann nicht mehr getroffen werden."
383
 
384
- #: lib/view/WpProQuiz_View_GobalSettings.php:74
385
  #, php-format
386
  msgid ""
387
  "Anyone who wants to learn more about this topic should read through the "
@@ -390,53 +613,54 @@ msgstr ""
390
  "Wer mehr über dieses Thema erfahren möchte, sollte sich folgende Webseiten "
391
  "durchlesen %s und %s"
392
 
393
- #: lib/view/WpProQuiz_View_GobalSettings.php:83
394
- #: lib/view/WpProQuiz_View_GobalSettings.php:88
395
  msgid "Touch Library"
396
  msgstr "Touch Library"
397
 
398
- #: lib/view/WpProQuiz_View_GobalSettings.php:92
399
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
400
  msgid "Deactivate"
401
  msgstr "Deaktivieren"
402
 
403
- #: lib/view/WpProQuiz_View_GobalSettings.php:95
404
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
405
  msgstr ""
406
  "In Version 0.13 wurde eine neue Touch Library für Mobilegeräte hinzugefügt."
407
 
408
- #: lib/view/WpProQuiz_View_GobalSettings.php:98
409
  msgid "If you have any problems with the Touch Library, please deactivate it."
410
  msgstr ""
411
  "Wenn Sie Probleme mit der Touch Library haben, können Sie dies hier "
412
  "deaktivieren."
413
 
414
- #: lib/view/WpProQuiz_View_GobalSettings.php:105
415
- #: lib/view/WpProQuiz_View_GobalSettings.php:110
416
  msgid "jQuery support cors"
417
  msgstr "jQuery support cors"
418
 
419
- #: lib/view/WpProQuiz_View_GobalSettings.php:117
420
  msgid "Is required only in rare cases."
421
  msgstr "Ist nur in seltenen Fällen erforderlich."
422
 
423
- #: lib/view/WpProQuiz_View_GobalSettings.php:120
424
  msgid "If you have problems with the front ajax, please activate it."
425
  msgstr "Wenn Sie Probleme mit dem Front AJAX haben, bitte aktivieren Sie es."
426
 
427
- #: lib/view/WpProQuiz_View_GobalSettings.php:123
428
  msgid "e.g. Domain with special characters in combination with IE"
429
  msgstr "z.B. Bei einer Domain mit Sonderzeichen in Kombination mit IE"
430
 
431
- #: lib/view/WpProQuiz_View_GobalSettings.php:132
432
- #: lib/view/WpProQuiz_View_QuestionEdit.php:381
433
- #: lib/view/WpProQuiz_View_QuizEdit.php:542
 
434
  msgid "Save"
435
  msgstr "Speichern"
436
 
437
  #: lib/view/WpProQuiz_View_Import.php:21
438
- #: lib/view/WpProQuiz_View_QuizOverall.php:91
439
- #: lib/view/WpProQuiz_View_QuizOverall.php:108
440
  msgid "Import"
441
  msgstr "Import"
442
 
@@ -457,12 +681,12 @@ msgid "Quiz name"
457
  msgstr "Quiz-Name"
458
 
459
  #: lib/view/WpProQuiz_View_Import.php:44
460
- #: lib/view/WpProQuiz_View_QuizOverall.php:71
461
  msgid "Questions"
462
  msgstr "Fragen"
463
 
464
  #: lib/view/WpProQuiz_View_Import.php:67
465
- #: lib/view/WpProQuiz_View_QuizOverall.php:119
466
  msgid "Start import"
467
  msgstr "Import starten"
468
 
@@ -471,11 +695,12 @@ msgid "Title"
471
  msgstr "Titel"
472
 
473
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
474
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
475
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
476
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
477
- #: lib/view/WpProQuiz_View_QuizEdit.php:436
478
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
 
479
  msgid "(optional)"
480
  msgstr "(Optional)"
481
 
@@ -488,10 +713,10 @@ msgstr ""
488
  "Titel leer gelassen, wird ein Titel generiert."
489
 
490
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
491
- #: lib/view/WpProQuiz_View_QuestionEdit.php:49
492
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
493
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
494
- #: lib/view/WpProQuiz_View_QuizEdit.php:463
495
  msgid "(required)"
496
  msgstr "(Pflichtfeld)"
497
 
@@ -499,37 +724,41 @@ msgstr "(Pflichtfeld)"
499
  msgid "Points for this question (Standard is 1 point)"
500
  msgstr "Punkte für diese Frage (Standard ist 1 Punkt)"
501
 
502
- #: lib/view/WpProQuiz_View_QuestionEdit.php:34
503
- msgid "Points per correct answer"
504
- msgstr "Punkte pro korrekte Antwort"
 
 
 
505
 
506
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
 
 
 
 
507
  msgid ""
508
- "If you enable this option, for every correct answer user will receive X "
509
- "points. Otherwise he will receive points only if the question was solved "
510
- "completely."
511
  msgstr ""
512
- "Wenn Sie diese Option aktivieren, werden für jede korrekte Antwort X Punkte "
513
- "vergeben. Ansonsten gibt es nur Punkte wenn die Frage vollständig korrekt "
514
- "abgeschlossen wird."
515
 
516
- #: lib/view/WpProQuiz_View_QuestionEdit.php:43
517
  msgid "Show reached points in the correct- and incorrect message?"
518
  msgstr "Erreichte Punkte in der Korrekt- und Inkorrekt-Nachricht anzeigen?"
519
 
520
- #: lib/view/WpProQuiz_View_QuestionEdit.php:57
521
  msgid "Message with the correct / incorrect answer"
522
  msgstr "Nachricht bei korrekter / inkorrekter Antwort"
523
 
524
- #: lib/view/WpProQuiz_View_QuestionEdit.php:59
525
  msgid "Deactivated in quiz settings."
526
  msgstr "In den Quiz-Einstellungen deaktiviert."
527
 
528
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
529
  msgid "Message with the correct answer"
530
  msgstr "Nachricht bei korrekter Antwort"
531
 
532
- #: lib/view/WpProQuiz_View_QuestionEdit.php:67
533
  msgid ""
534
  "This text will be visible if answered correctly. It can be used as "
535
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -539,15 +768,15 @@ msgstr ""
539
  "für komplexe Aufgaben dienen. Die Nachricht \"Richtig\" oder \"Falsch\" wird "
540
  "immer automatisch angezeigt."
541
 
542
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
543
  msgid "Same text for correct- and incorrect-message?"
544
  msgstr "Gleicher Text für Korrekt- und Inkorrekt-Nachricht?"
545
 
546
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
547
  msgid "Message with the incorrect answer"
548
  msgstr "Nachricht bei inkorrekter Antwort"
549
 
550
- #: lib/view/WpProQuiz_View_QuestionEdit.php:84
551
  msgid ""
552
  "This text will be visible if answered incorrectly. It can be used as "
553
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -557,55 +786,47 @@ msgstr ""
557
  "komplexe Aufgaben dienen. Die Nachricht \"Richtig\" oder \"Falsch\" wird "
558
  "immer automatisch angezeigt."
559
 
560
- #: lib/view/WpProQuiz_View_QuestionEdit.php:96
561
  msgid "Here you can enter solution hint."
562
  msgstr "Hier können Sie einen Lösungstipp hinterlegen."
563
 
564
- #: lib/view/WpProQuiz_View_QuestionEdit.php:100
565
  msgid "Activate hint for this question?"
566
  msgstr "Tipp für diese Frage aktivieren?"
567
 
568
- #: lib/view/WpProQuiz_View_QuestionEdit.php:112
569
  msgid "Answer type"
570
  msgstr "Antwort Typ?"
571
 
572
- #: lib/view/WpProQuiz_View_QuestionEdit.php:120
573
  msgid "Single choice"
574
  msgstr "Single choice"
575
 
576
- #: lib/view/WpProQuiz_View_QuestionEdit.php:124
577
  msgid "Multiple choice"
578
  msgstr "Multiple choice"
579
 
580
- #: lib/view/WpProQuiz_View_QuestionEdit.php:128
581
  msgid "\"Free\" choice"
582
  msgstr "\"Free\" choice"
583
 
584
- #: lib/view/WpProQuiz_View_QuestionEdit.php:132
585
  msgid "\"Sorting\" choice"
586
  msgstr "\"Sorting\" choice"
587
 
588
- #: lib/view/WpProQuiz_View_QuestionEdit.php:136
589
  msgid "\"Matrix Sorting\" choice"
590
  msgstr "\"Matrix Sorting\" choice"
591
 
592
- #: lib/view/WpProQuiz_View_QuestionEdit.php:140
593
  msgid "Cloze"
594
  msgstr "Lückentext"
595
 
596
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
597
  msgid "Answers"
598
  msgstr "Antworten"
599
 
600
- #: lib/view/WpProQuiz_View_QuestionEdit.php:150
601
- #: lib/view/WpProQuiz_View_QuestionEdit.php:154
602
- msgid ""
603
- "correct answers (one per line) (answers will be converted to lower case)"
604
- msgstr ""
605
- "Korrekte Antworten (eine pro Zeile ) (Antworten werden in Kleinbuchstaben "
606
- "umgewandelt)"
607
-
608
- #: lib/view/WpProQuiz_View_QuestionEdit.php:160
609
  msgid ""
610
  "Please sort the answers in right order with the \"Move\" - Button. The "
611
  "answers will be displayed randomly."
@@ -613,59 +834,13 @@ msgstr ""
613
  "Bitte Antworten mit dem \"Verschiebe\"-Button in die richtige Reihenfolge "
614
  "bringen. Die Antworten werden später immer zufällig ausgegeben."
615
 
 
616
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
617
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
618
- #: lib/view/WpProQuiz_View_QuestionEdit.php:188
619
- #: lib/view/WpProQuiz_View_QuestionEdit.php:207
620
- #: lib/view/WpProQuiz_View_QuestionEdit.php:223
621
- #: lib/view/WpProQuiz_View_QuestionEdit.php:237
622
- #: lib/view/WpProQuiz_View_QuestionEdit.php:287
623
- #: lib/view/WpProQuiz_View_QuestionEdit.php:327
624
- #: lib/view/WpProQuiz_View_QuestionEdit.php:364
625
- msgid "Delete answer"
626
- msgstr "Antwort löschen"
627
-
628
- #: lib/view/WpProQuiz_View_QuestionEdit.php:167
629
- #: lib/view/WpProQuiz_View_QuestionEdit.php:179
630
- #: lib/view/WpProQuiz_View_QuestionEdit.php:189
631
- #: lib/view/WpProQuiz_View_QuestionEdit.php:208
632
- #: lib/view/WpProQuiz_View_QuestionEdit.php:224
633
- #: lib/view/WpProQuiz_View_QuestionEdit.php:238
634
- #: lib/view/WpProQuiz_View_QuestionEdit.php:286
635
- #: lib/view/WpProQuiz_View_QuestionEdit.php:326
636
- #: lib/view/WpProQuiz_View_QuestionEdit.php:363
637
- #: lib/view/WpProQuiz_View_QuestionOverall.php:50
638
- msgid "Move"
639
- msgstr "Verschieben"
640
-
641
- #: lib/view/WpProQuiz_View_QuestionEdit.php:169
642
- #: lib/view/WpProQuiz_View_QuestionEdit.php:181
643
- #: lib/view/WpProQuiz_View_QuestionEdit.php:191
644
- #: lib/view/WpProQuiz_View_QuestionEdit.php:210
645
- #: lib/view/WpProQuiz_View_QuestionEdit.php:226
646
- #: lib/view/WpProQuiz_View_QuestionEdit.php:240
647
- #: lib/view/WpProQuiz_View_QuestionEdit.php:273
648
- #: lib/view/WpProQuiz_View_QuestionEdit.php:279
649
- #: lib/view/WpProQuiz_View_QuestionEdit.php:313
650
- #: lib/view/WpProQuiz_View_QuestionEdit.php:319
651
- #: lib/view/WpProQuiz_View_QuestionEdit.php:350
652
- #: lib/view/WpProQuiz_View_QuestionEdit.php:356
653
- msgid "Allow HTML"
654
- msgstr "HTML erlauben"
655
-
656
- #: lib/view/WpProQuiz_View_QuestionEdit.php:197
657
- #: lib/view/WpProQuiz_View_QuestionEdit.php:246
658
- #: lib/view/WpProQuiz_View_QuestionEdit.php:368
659
  msgid "Add new answer"
660
  msgstr "Neue Antwort hinzufügen"
661
 
662
- #: lib/view/WpProQuiz_View_QuestionEdit.php:205
663
- #: lib/view/WpProQuiz_View_QuestionEdit.php:221
664
- #: lib/view/WpProQuiz_View_QuestionEdit.php:235
665
- msgid "correct?"
666
- msgstr "Korrekt?"
667
-
668
- #: lib/view/WpProQuiz_View_QuestionEdit.php:250
669
  msgid ""
670
  "In this mode, not a list have to be sorted, but elements must be assigned to "
671
  "matching criterion."
@@ -673,13 +848,58 @@ msgstr ""
673
  "In diesem Modus muss nicht eine Liste sortiert werden, sondern die "
674
  "Sortierelemente müssen zu den passenden Kriterium zugeordnet werden."
675
 
676
- #: lib/view/WpProQuiz_View_QuestionEdit.php:257
677
- #: lib/view/WpProQuiz_View_QuestionEdit.php:297
678
- #: lib/view/WpProQuiz_View_QuestionEdit.php:334
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
679
  msgid "Criterion"
680
  msgstr "Kriterium"
681
 
682
- #: lib/view/WpProQuiz_View_QuestionEdit.php:372
 
 
 
 
 
 
 
683
  msgid ""
684
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
685
  "small letters will be ignored."
@@ -687,49 +907,51 @@ msgstr ""
687
  "Umschliessen sie die gesuchten Woerter mit { } z.B. \"Ich {spiele} Fussball"
688
  "\". Gross- und Kleinschreibung wird ignoriert."
689
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
690
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
691
  msgid "Questions sorted"
692
  msgstr "Fragen sortiert"
693
 
694
- #: lib/view/WpProQuiz_View_QuestionOverall.php:28
695
- #: lib/view/WpProQuiz_View_QuizOverall.php:57
696
- msgid "Name"
697
- msgstr "Name"
698
-
699
- #: lib/view/WpProQuiz_View_QuestionOverall.php:30
700
- #: lib/view/WpProQuiz_View_QuizOverall.php:58
701
- msgid "Action"
702
- msgstr "Aktion"
703
-
704
- #: lib/view/WpProQuiz_View_QuestionOverall.php:46
705
- #: lib/view/WpProQuiz_View_QuizOverall.php:74
706
  msgid "Edit"
707
  msgstr "Bearbeiten"
708
 
709
- #: lib/view/WpProQuiz_View_QuestionOverall.php:48
710
- #: lib/view/WpProQuiz_View_QuizOverall.php:76
711
- msgid "Delete"
712
- msgstr "Löschen"
713
-
714
- #: lib/view/WpProQuiz_View_QuestionOverall.php:59
715
  #: lib/view/WpProQuiz_View_Statistics.php:84
716
  msgid "Total"
717
  msgstr "Total"
718
 
719
- #: lib/view/WpProQuiz_View_QuestionOverall.php:67
720
  msgid "Add question"
721
  msgstr "Frage hinzufügen"
722
 
723
- #: lib/view/WpProQuiz_View_QuestionOverall.php:68
724
  msgid "Save order"
725
  msgstr "Sortierung speichern"
726
 
727
- #: lib/view/WpProQuiz_View_QuestionOverall.php:69
728
- #: lib/view/WpProQuiz_View_QuestionOverall.php:74
729
  msgid "Copy questions from another Quiz"
730
  msgstr "Fragen aus einem anderen Quiz kopieren."
731
 
732
- #: lib/view/WpProQuiz_View_QuestionOverall.php:75
733
  msgid ""
734
  "Here you can copy questions from another quiz into this quiz. (Multiple "
735
  "selection enabled)"
@@ -737,12 +959,7 @@ msgstr ""
737
  "Hier können Sie Fragen aus einem anderen Quiz in dieses Quiz kopieren. "
738
  "(Mehrfachauswahl aktiviert)"
739
 
740
- #: lib/view/WpProQuiz_View_QuestionOverall.php:79
741
- #: lib/view/WpProQuiz_View_Statistics.php:45
742
- msgid "Loading"
743
- msgstr "Daten werden geladen"
744
-
745
- #: lib/view/WpProQuiz_View_QuestionOverall.php:87
746
  msgid "Copy questions"
747
  msgstr "Fragen kopieren"
748
 
@@ -750,10 +967,6 @@ msgstr "Fragen kopieren"
750
  msgid "Quiz title"
751
  msgstr "Quiz Titel"
752
 
753
- #: lib/view/WpProQuiz_View_QuizEdit.php:18
754
- msgid "Options"
755
- msgstr "Optionen"
756
-
757
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
758
  msgid "Hide quiz title"
759
  msgstr "Quiz Titel verstecken"
@@ -830,6 +1043,9 @@ msgstr ""
830
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
831
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
832
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
 
 
 
833
  msgid "Demo"
834
  msgstr "Demo"
835
 
@@ -878,7 +1094,7 @@ msgstr ""
878
 
879
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
880
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
881
- #: lib/view/WpProQuiz_View_QuizOverall.php:80
882
  msgid "Statistics"
883
  msgstr "Statistik"
884
 
@@ -927,14 +1143,17 @@ msgid "This option applies to:"
927
  msgstr "Diese Option gilt für:"
928
 
929
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
 
930
  msgid "all users"
931
  msgstr "Alle Benutzer"
932
 
933
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
 
934
  msgid "registered useres only"
935
  msgstr "nur registriere Benutzer"
936
 
937
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
 
938
  msgid "anonymous users only"
939
  msgstr "nur anonyme Benutzer"
940
 
@@ -1022,19 +1241,150 @@ msgstr "Wie viele Fragen sollen gleichzeitig angezeigt werden:"
1022
  msgid "in percent"
1023
  msgstr "in Prozent"
1024
 
 
 
 
 
 
 
 
 
 
 
1025
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1026
  msgid "Quiz description"
1027
  msgstr "Quiz Beschreibung"
1028
 
1029
- #: lib/view/WpProQuiz_View_QuizEdit.php:466
1030
  msgid "This text will be displayed before start of the quiz."
1031
  msgstr "Dieser Text wird vor dem Starten des Quizes angezeigt."
1032
 
1033
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
1034
  msgid "Results text"
1035
  msgstr "Ergebnis Text"
1036
 
1037
- #: lib/view/WpProQuiz_View_QuizEdit.php:477
1038
  msgid ""
1039
  "This text will be displayed at the end of the quiz (in results). (this text "
1040
  "is optional)"
@@ -1042,19 +1392,19 @@ msgstr ""
1042
  "Dieser Text wird beim Beenden (im Ergebnis) des Quizes angezeigt (Dieser "
1043
  "Text ist optional)"
1044
 
1045
- #: lib/view/WpProQuiz_View_QuizEdit.php:481
1046
  msgid "Activate graduation"
1047
  msgstr "Abstufungen aktivieren"
1048
 
1049
- #: lib/view/WpProQuiz_View_QuizEdit.php:487
1050
  msgid "Hint:"
1051
  msgstr "Hinweis:"
1052
 
1053
- #: lib/view/WpProQuiz_View_QuizEdit.php:489
1054
  msgid "Maximal 15 levels"
1055
  msgstr "Maximal 15 Stufen"
1056
 
1057
- #: lib/view/WpProQuiz_View_QuizEdit.php:491
1058
  #, php-format
1059
  msgid ""
1060
  "Percentages refer to the total score of the quiz. (Current total %d points "
@@ -1063,26 +1413,26 @@ msgstr ""
1063
  "Prozente beziehen sich auf die Gesamtpunktzahl des Quiz (Aktuell: insgesamt "
1064
  "%d Punkte bei %d Fragen)"
1065
 
1066
- #: lib/view/WpProQuiz_View_QuizEdit.php:494
1067
  msgid "Values can also be mixed up"
1068
  msgstr "Werte können auch durcheinander sein"
1069
 
1070
- #: lib/view/WpProQuiz_View_QuizEdit.php:495
1071
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1072
  msgstr "10,15% oder 10.15% erlaubt (maximal 2 Stellen nach dem Komma)"
1073
 
1074
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1075
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1076
  msgid "from:"
1077
  msgstr "Ab:"
1078
 
1079
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1080
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1081
  msgid "percent"
1082
  msgstr "Prozent"
1083
 
1084
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1085
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1086
  #, php-format
1087
  msgid ""
1088
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
@@ -1091,12 +1441,12 @@ msgstr ""
1091
  "(Wird angezeigt wenn Ergebnis-Prozent >= <span class=\"resultProzent\">%s</"
1092
  "span>%% ist)"
1093
 
1094
- #: lib/view/WpProQuiz_View_QuizEdit.php:512
1095
- #: lib/view/WpProQuiz_View_QuizEdit.php:523
1096
  msgid "Delete graduation"
1097
  msgstr "Stufe löschen"
1098
 
1099
- #: lib/view/WpProQuiz_View_QuizEdit.php:530
1100
  msgid "Add graduation"
1101
  msgstr "Stufe hinzufügen"
1102
 
@@ -1117,28 +1467,37 @@ msgstr ""
1117
  msgid "Style Manager"
1118
  msgstr "Style Manager"
1119
 
1120
- #: lib/view/WpProQuiz_View_QuizOverall.php:55
 
 
 
 
 
1121
  msgid "ID"
1122
  msgstr "ID"
1123
 
1124
- #: lib/view/WpProQuiz_View_QuizOverall.php:56
1125
  msgid "Shortcode"
1126
  msgstr "Shortcode"
1127
 
1128
- #: lib/view/WpProQuiz_View_QuizOverall.php:78
 
 
 
 
1129
  msgid "Preview"
1130
  msgstr "Vorschau"
1131
 
1132
- #: lib/view/WpProQuiz_View_QuizOverall.php:89
1133
  msgid "Add quiz"
1134
  msgstr "Quiz hinzufügen"
1135
 
1136
- #: lib/view/WpProQuiz_View_QuizOverall.php:93
1137
- #: lib/view/WpProQuiz_View_QuizOverall.php:98
1138
  msgid "Export"
1139
  msgstr "Export"
1140
 
1141
- #: lib/view/WpProQuiz_View_QuizOverall.php:99
1142
  msgid ""
1143
  "Choose the respective question, which you would like to export and press on "
1144
  "\"Start export\""
@@ -1146,17 +1505,17 @@ msgstr ""
1146
  "Wählen Sie oben die entsprechen Quiz aus, die Sie exportieren möchten und "
1147
  "klicken Sie anschliessen auf \"Export starten\""
1148
 
1149
- #: lib/view/WpProQuiz_View_QuizOverall.php:103
1150
  msgid "Start export"
1151
  msgstr "Export starten"
1152
 
1153
- #: lib/view/WpProQuiz_View_QuizOverall.php:109
1154
  msgid "Import only *.wpq files from known and trusted sources."
1155
  msgstr ""
1156
  "Importieren sie nur *.wpq Dateien aus bekannten und vertrauenswürdigen "
1157
  "Quellen."
1158
 
1159
- #: lib/view/WpProQuiz_View_QuizOverall.php:117
1160
  #, php-format
1161
  msgid "Maximal %d MiB"
1162
  msgstr "Maximal %d MiB"
@@ -1213,26 +1572,285 @@ msgstr "Aktualisieren"
1213
  msgid "Reset entire statistic"
1214
  msgstr "Alle Statistiken zurücksetzten"
1215
 
1216
- #: lib/view/WpProQuiz_View_Statistics.php:115
1217
- msgid "Filter"
1218
- msgstr "Filter"
1219
-
1220
  #: lib/view/WpProQuiz_View_Statistics.php:120
1221
  msgid "Show only users, who solved the quiz:"
1222
  msgstr "Nur Benutzer anzeigen die das Quiz absolviert haben:"
1223
 
1224
- #: lib/view/WpProQuiz_View_Statistics.php:126
1225
- msgid "How many entries should be shown on one page:"
1226
- msgstr "Wie viele Benutzer sollen auf einer Seite angezeigt werden:"
1227
-
1228
- #: lib/view/WpProQuiz_View_Statistics.php:145
1229
- msgid "User"
1230
- msgstr "Benutzer"
1231
-
1232
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1233
  msgid "Front"
1234
  msgstr "Front"
1235
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1236
  #~ msgid "All"
1237
  #~ msgstr "Alle"
1238
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-02-07 20:47+0100\n"
5
+ "PO-Revision-Date: 2013-02-07 20:47+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Julius Fischer\n"
8
  "Language: German\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.5\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:98
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:99
22
  msgid "Title is not filled!"
23
  msgstr "Titel wurde nicht ausgefüllt!"
24
 
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:100
26
  msgid "No question deposited!"
27
  msgstr "Keine Frage hinterlegt!"
28
 
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:101
30
  msgid "Correct answer was not selected!"
31
  msgstr "Keine korrekte Antwort markiert!"
32
 
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:102
34
  msgid "No answer deposited!"
35
  msgstr "Keine Antwort hinterlegt!"
36
 
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:103
38
  msgid "No quiz description filled!"
39
  msgstr "Quiz-Beschreibung nicht ausgefüllt!"
40
 
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:104
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:105
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:106
50
+ msgid "No number in the field \"Points\" or less than 0"
51
+ msgstr "Keine Zahl im Feld \"Punkte\" oder kleiner 0"
52
+
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:107
54
  msgid "No quiz selected"
55
  msgstr "Kein Quiz ausgewählt"
56
 
57
+ #: lib/controller/WpProQuiz_Controller_Admin.php:108
58
  msgid "Do you really want to reset the statistic?"
59
  msgstr "Soll die Statistik wirklich zurückgesetzt werden?"
60
 
61
+ #: lib/controller/WpProQuiz_Controller_Admin.php:109
62
+ #: lib/view/WpProQuiz_View_FrontToplist.php:26
63
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
64
+ #: lib/view/WpProQuiz_View_QuizOverall.php:111
65
+ msgid "No data available"
66
+ msgstr "Keine Daten verfügbar"
67
+
68
+ #: lib/controller/WpProQuiz_Controller_Admin.php:110
69
+ msgid "No sort element in the criterion"
70
+ msgstr "Kein Sortierelement im Kriterium"
71
+
72
+ #: lib/controller/WpProQuiz_Controller_Admin.php:111
73
+ msgid ""
74
+ "\"Different points for every answer\" is not possible at \"Free\" choice"
75
+ msgstr ""
76
+ "\"Unterschiedliche Punkte für jede Antwort\" ist bei \"Free\" Choice nicht "
77
+ "möglich"
78
+
79
+ #: lib/controller/WpProQuiz_Controller_Front.php:44
80
+ #: lib/controller/WpProQuiz_Controller_Preview.php:15
81
+ #: lib/view/WpProQuiz_View_AdminToplist.php:47
82
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:393
83
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:93
84
+ #: lib/view/WpProQuiz_View_Statistics.php:45
85
+ msgid "Loading"
86
+ msgstr "Daten werden geladen"
87
+
88
  # Must not be translated
89
  #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
90
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
92
  #: lib/controller/WpProQuiz_Controller_Question.php:51
93
  #: lib/controller/WpProQuiz_Controller_Question.php:128
94
  #: lib/controller/WpProQuiz_Controller_Question.php:143
95
+ #: lib/controller/WpProQuiz_Controller_Question.php:196
96
+ #: lib/controller/WpProQuiz_Controller_Question.php:342
97
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:175
98
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:189
99
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:249
100
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:297
101
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:163
102
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:76
103
  msgid "You do not have sufficient permissions to access this page."
104
  msgstr "You do not have sufficient permissions to access this page."
105
 
108
  msgstr "Einstellungen gespeichert"
109
 
110
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
111
+ #: lib/helper/WpProQuiz_Helper_Import.php:59
112
+ #: lib/helper/WpProQuiz_Helper_Import.php:68
113
+ #: lib/helper/WpProQuiz_Helper_Import.php:75
114
  msgid "File cannot be processed"
115
  msgstr "Datei kann nicht verarbeitet werden"
116
 
117
  #: lib/controller/WpProQuiz_Controller_Question.php:9
118
  #: lib/controller/WpProQuiz_Controller_Question.php:19
119
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:201
120
  msgid "Quiz not found"
121
  msgstr "Quiz nicht gefunden"
122
 
128
  msgid "Edit question"
129
  msgstr "Frage bearbeiten"
130
 
131
+ #: lib/controller/WpProQuiz_Controller_Question.php:155
132
  msgid "Question not found"
133
  msgstr "Frage nicht gefunden"
134
 
135
+ #: lib/controller/WpProQuiz_Controller_Question.php:172
136
+ #: lib/controller/WpProQuiz_Controller_Question.php:224
137
  #, php-format
138
  msgid "Question: %d"
139
  msgstr "Frage: %d"
140
 
141
+ #: lib/controller/WpProQuiz_Controller_Question.php:180
142
  msgid "Question edited"
143
  msgstr "Frage geändert"
144
 
145
+ #: lib/controller/WpProQuiz_Controller_Question.php:200
146
  msgid "New question"
147
  msgstr "Neue Frage"
148
 
149
+ #: lib/controller/WpProQuiz_Controller_Question.php:233
150
  msgid "Question added"
151
  msgstr "Frage hinzugefügt"
152
 
153
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:196
154
  #: lib/view/WpProQuiz_View_QuestionOverall.php:21
155
  msgid "Edit quiz"
156
  msgstr "Quiz bearbeiten"
157
 
158
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:216
159
  msgid "Quiz edited"
160
  msgstr "Quiz bearbeitet"
161
 
162
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:233
163
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:281
164
  msgid "Quiz title or quiz description are not filled"
165
  msgstr "Quiz Titel oder Quiz Beschreibung nicht ausgefüllt"
166
 
167
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:253
168
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:267
169
  msgid "Create quiz"
170
  msgstr "Quiz erstellen"
171
 
172
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:314
173
  msgid "Quiz deleted"
174
  msgstr "Quiz gelöscht"
175
 
176
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:136
177
+ msgid "You signing up successfully."
178
+ msgstr "Sie haben sich erfolgreich eingetragen."
179
+
180
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:144
181
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:148
182
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:165
183
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:169
184
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:175
185
+ msgid "An error has occurred."
186
+ msgstr "Ein Fehler ist aufgetreten."
187
+
188
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:186
189
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:195
190
+ msgid "You can not enter again."
191
+ msgstr "Sie können sich nicht erneut eintragen."
192
+
193
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:199
194
+ msgid "No name or e-mail entered."
195
+ msgstr "Kein Name oder keine E-Mail angegeben."
196
+
197
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:203
198
+ msgid "Your name can not exceed 15 characters."
199
+ msgstr "Ihr Name darf maximal 15 Zeichen lang sein."
200
+
201
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:211
202
+ msgid "You entered wrong captcha code."
203
+ msgstr "Captcha code ist falsch."
204
+
205
  #: lib/helper/WpProQuiz_Helper_Import.php:9
206
  msgid "File was not uploaded"
207
  msgstr "Datei wurde nicht hochgeladen"
210
  msgid "File have wrong format"
211
  msgstr "Datei hat falsches Format"
212
 
213
+ #: lib/helper/WpProQuiz_Helper_Import.php:45
214
+ msgid "File is not compatible with the current version"
215
+ msgstr "Datei ist nicht kompatibel mit der aktuellen Version"
216
+
217
  #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
218
  msgid "The user completed a quiz."
219
  msgstr "Der Benutzer beendet ein Quiz."
220
 
221
+ #: lib/view/WpProQuiz_View_AdminToplist.php:7
222
+ #: lib/view/WpProQuiz_View_FrontToplist.php:8
223
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
224
+ #: lib/view/WpProQuiz_View_QuizEdit.php:534
225
+ #: lib/view/WpProQuiz_View_QuizOverall.php:96
226
+ msgid "Leaderboard"
227
+ msgstr "Bestenliste"
228
+
229
+ #: lib/view/WpProQuiz_View_AdminToplist.php:8
230
+ #: lib/view/WpProQuiz_View_GobalSettings.php:21
231
+ #: lib/view/WpProQuiz_View_Import.php:22
232
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
233
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
234
+ #: lib/view/WpProQuiz_View_QuizEdit.php:8
235
+ #: lib/view/WpProQuiz_View_Statistics.php:18
236
+ #: lib/view/WpProQuiz_View_StyleManager.php:11
237
+ msgid "back to overview"
238
+ msgstr "zurück zur Übersicht"
239
+
240
+ #: lib/view/WpProQuiz_View_AdminToplist.php:11
241
+ #: lib/view/WpProQuiz_View_Statistics.php:115
242
+ msgid "Filter"
243
+ msgstr "Filter"
244
+
245
+ #: lib/view/WpProQuiz_View_AdminToplist.php:16
246
+ msgid "Sort by:"
247
+ msgstr "Sortieren nach:"
248
+
249
+ #: lib/view/WpProQuiz_View_AdminToplist.php:18
250
+ #: lib/view/WpProQuiz_View_QuizEdit.php:600
251
+ msgid "best user"
252
+ msgstr "bester Benutzer"
253
+
254
+ #: lib/view/WpProQuiz_View_AdminToplist.php:19
255
+ #: lib/view/WpProQuiz_View_QuizEdit.php:604
256
+ msgid "newest entry"
257
+ msgstr "neuester Eintrag"
258
+
259
+ #: lib/view/WpProQuiz_View_AdminToplist.php:20
260
+ #: lib/view/WpProQuiz_View_QuizEdit.php:608
261
+ msgid "oldest entry"
262
+ msgstr "Ältester Eintrag"
263
+
264
+ #: lib/view/WpProQuiz_View_AdminToplist.php:26
265
+ #: lib/view/WpProQuiz_View_Statistics.php:126
266
+ msgid "How many entries should be shown on one page:"
267
+ msgstr "Wie viele Benutzer sollen auf einer Seite angezeigt werden:"
268
+
269
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
270
+ #: lib/view/WpProQuiz_View_AdminToplist.php:57
271
+ msgid "Type"
272
+ msgstr "Typ"
273
+
274
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
275
+ msgid "UR = unregistered user, R = registered user"
276
+ msgstr "UR = nicht registrierter Benutzer, R = registrierter Benutzer"
277
+
278
+ #: lib/view/WpProQuiz_View_AdminToplist.php:55
279
+ #: lib/view/WpProQuiz_View_Statistics.php:145
280
+ msgid "User"
281
+ msgstr "Benutzer"
282
+
283
+ #: lib/view/WpProQuiz_View_AdminToplist.php:56
284
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:401
285
+ msgid "E-Mail"
286
+ msgstr "E-Mail"
287
+
288
+ #: lib/view/WpProQuiz_View_AdminToplist.php:58
289
+ #: lib/view/WpProQuiz_View_FrontToplist.php:16
290
+ msgid "Entered on"
291
+ msgstr "Eingetragen am"
292
+
293
+ #: lib/view/WpProQuiz_View_AdminToplist.php:59
294
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:283
295
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:301
296
+ #: lib/view/WpProQuiz_View_FrontToplist.php:17
297
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
298
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
299
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:223
300
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:260
301
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
302
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
303
+ #: lib/view/WpProQuiz_View_Statistics.php:54
304
+ #: lib/view/WpProQuiz_View_Statistics.php:146
305
+ msgid "Points"
306
+ msgstr "Punkte"
307
+
308
+ #: lib/view/WpProQuiz_View_AdminToplist.php:60
309
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:64
310
+ #: lib/view/WpProQuiz_View_Statistics.php:59
311
+ #: lib/view/WpProQuiz_View_Statistics.php:150
312
+ msgid "Results"
313
+ msgstr "Ergebnis"
314
+
315
+ #: lib/view/WpProQuiz_View_AdminToplist.php:79
316
+ msgid "Action"
317
+ msgstr "Aktion"
318
+
319
+ #: lib/view/WpProQuiz_View_AdminToplist.php:80
320
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:54
321
+ #: lib/view/WpProQuiz_View_QuizOverall.php:84
322
+ msgid "Delete"
323
+ msgstr "Löschen"
324
+
325
+ #: lib/view/WpProQuiz_View_AdminToplist.php:82
326
+ msgid "Apply"
327
+ msgstr "Übernehmen"
328
+
329
+ #: lib/view/WpProQuiz_View_AdminToplist.php:83
330
+ msgid "Delete all entries"
331
+ msgstr "Alle Einträge löschen"
332
+
333
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:49
334
  msgid "Start quiz"
335
  msgstr "Quiz starten"
336
 
337
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:54
338
  msgid ""
339
  "You have already completed the quiz before. Hence you can not start it again."
340
  msgstr ""
341
  "Sie haben das Quiz schon einmal absolviert. Daher können sie es nicht erneut "
342
  "starten."
343
 
344
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:59
345
+ msgid "You have to finish following quiz, to start this quiz:"
346
+ msgstr ""
347
+ "Sie müssen erst folgende Quiz beenden um dieses Quiz starten zu können:"
 
348
 
349
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:66
350
  #, php-format
351
  msgid "%s of %s questions answered correctly"
352
  msgstr "%s von %s Frage korrekt beantwortet"
353
 
354
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:69
355
  msgid "Your time: <span></span>"
356
  msgstr "Ihre Zeit: <span></span>"
357
 
358
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:72
359
  msgid "Time has elapsed"
360
  msgstr "Zeit ist abgelaufen"
361
 
362
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:75
363
+ #, php-format
364
+ msgid "You have reached %s of %s points, (%s)"
365
+ msgstr "Sie haben %s von %s Punkten erreicht (%s)"
366
+
367
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:83
368
+ msgid "Average score"
369
+ msgstr "Ø Punkte"
370
 
371
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:90
372
+ msgid "Your score"
373
+ msgstr "Deine Punkte"
374
+
375
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:122
376
  msgid "Restart quiz"
377
  msgstr "Quiz erneut starten"
378
 
379
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:124
380
  msgid "View questions"
381
  msgstr "Fragen ansehen"
382
 
383
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:127
384
+ msgid "Show leaderboard"
385
+ msgstr "Zeige Bestenliste"
386
+
387
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:138
388
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
389
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
390
  msgid "Time limit"
391
  msgstr "Zeitlimit"
392
 
393
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:162
394
  #, php-format
395
  msgid "Question %s of %s"
396
  msgstr "Frage %s von %s"
397
 
398
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:165
399
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
400
  #: lib/view/WpProQuiz_View_Statistics.php:53
401
  msgid "Question"
402
  msgstr "Frage"
403
 
404
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:169
405
  #, php-format
406
  msgid "%d points"
407
  msgstr "%d Punkte"
408
 
409
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:179
410
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:252
 
 
411
  msgid "Sort elements"
412
  msgstr "Sortierelemente"
413
 
414
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:281
415
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:288
416
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:211
417
  #: lib/view/WpProQuiz_View_Statistics.php:55
418
  #: lib/view/WpProQuiz_View_Statistics.php:147
419
  msgid "Correct"
420
  msgstr "Korrekt"
421
 
422
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:299
423
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:306
 
 
 
 
 
 
 
 
 
 
424
  #: lib/view/WpProQuiz_View_Statistics.php:56
425
  #: lib/view/WpProQuiz_View_Statistics.php:148
426
  msgid "Incorrect"
427
  msgstr "Inkorrekt"
428
 
429
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:327
430
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:336
431
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
432
  msgid "Hint"
433
  msgstr "Tipp"
434
 
435
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:333
436
  msgid "Check"
437
  msgstr "Prüfen"
438
 
439
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:334
440
  msgid "Back"
441
  msgstr "Zurück"
442
 
443
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:338
444
  msgid "Next exercise"
445
  msgstr "Nächste Frage"
446
 
447
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:351
448
  msgid "Finish quiz"
449
  msgstr "Quiz abschließen"
450
 
451
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:391
452
+ msgid "Your result entered into leaderboard"
453
+ msgstr "Dein Ergebnis in die Bestenliste eintragen"
454
+
455
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:398
456
+ #: lib/view/WpProQuiz_View_FrontToplist.php:15
457
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
458
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
459
+ msgid "Name"
460
+ msgstr "Name"
461
+
462
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:406
463
+ msgid "Captcha"
464
+ msgstr "Captcha"
465
+
466
+ #: lib/view/WpProQuiz_View_FrontToplist.php:11
467
+ #, php-format
468
+ msgid "maximum of %s points"
469
+ msgstr "maximal %s Punkte"
470
+
471
+ #: lib/view/WpProQuiz_View_FrontToplist.php:14
472
+ msgid "Pos."
473
+ msgstr "Platz"
474
+
475
+ #: lib/view/WpProQuiz_View_FrontToplist.php:18
476
+ msgid "Result"
477
+ msgstr "Ergebnis"
478
+
479
+ #: lib/view/WpProQuiz_View_FrontToplist.php:23
480
+ msgid "Table is loading"
481
+ msgstr "Tabelle wird geladen"
482
+
483
  #: lib/view/WpProQuiz_View_GobalSettings.php:7
484
  msgid "to activate"
485
  msgstr "zu aktiveren"
489
  msgstr "nicht zu aktivieren"
490
 
491
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
492
+ #: lib/view/WpProQuiz_View_GobalSettings.php:24
493
+ #: lib/view/WpProQuiz_View_GobalSettings.php:31
494
  #: lib/view/WpProQuiz_View_QuizOverall.php:48
495
+ msgid "Global settings"
496
+ msgstr "Globale Einstellungen"
497
 
498
  #: lib/view/WpProQuiz_View_GobalSettings.php:16
499
+ #: lib/view/WpProQuiz_View_WpqSupport.php:50
500
  msgid "Please note"
501
  msgstr "Hinweis"
502
 
507
  "Diese Einstellungen sollten nur gesetzt werden, wenn es Probleme mit Wp-Pro-"
508
  "Quiz gibt."
509
 
510
+ #: lib/view/WpProQuiz_View_GobalSettings.php:25
511
+ #: lib/view/WpProQuiz_View_GobalSettings.php:78
512
+ msgid "Settings in case of problems"
513
+ msgstr "Einstellungen bei Problemen"
 
 
 
 
 
514
 
515
+ #: lib/view/WpProQuiz_View_GobalSettings.php:37
516
+ #: lib/view/WpProQuiz_View_GobalSettings.php:42
517
+ msgid "Leaderboard time format"
518
+ msgstr "Bestenliste Zeitformat"
519
+
520
+ #: lib/view/WpProQuiz_View_GobalSettings.php:64
521
+ msgid "Custom"
522
+ msgstr "Angepasst"
523
+
524
+ #: lib/view/WpProQuiz_View_GobalSettings.php:68
525
+ msgid "Documentation on date and time formatting"
526
+ msgstr "Dokumentation über Datum und Uhrzeit Formatierung (engl.)"
527
+
528
+ #: lib/view/WpProQuiz_View_GobalSettings.php:84
529
+ #: lib/view/WpProQuiz_View_GobalSettings.php:89
530
  msgid "Automatically add [raw] shortcode"
531
  msgstr "Automatisch [raw] Shortcode hinzufügen"
532
 
533
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
534
+ #: lib/view/WpProQuiz_View_GobalSettings.php:115
535
+ #: lib/view/WpProQuiz_View_GobalSettings.php:167
536
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
537
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
538
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
547
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
548
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
549
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
550
+ #: lib/view/WpProQuiz_View_QuizEdit.php:442
551
+ #: lib/view/WpProQuiz_View_QuizEdit.php:467
552
+ #: lib/view/WpProQuiz_View_QuizEdit.php:539
553
+ #: lib/view/WpProQuiz_View_QuizEdit.php:572
554
+ #: lib/view/WpProQuiz_View_QuizEdit.php:620
555
+ #: lib/view/WpProQuiz_View_QuizEdit.php:696
556
  msgid "Activate"
557
  msgstr "Aktivieren"
558
 
559
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
560
  #, php-format
561
  msgid "It is recommended %s this option on your system."
562
  msgstr "Es wird auf Ihrem System empfohlen dies %s."
563
 
564
+ #: lib/view/WpProQuiz_View_GobalSettings.php:96
565
  msgid ""
566
  "If this option is activated, a [raw] shortcode is automatically set around "
567
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
569
  "Wenn diese Option aktivieren, wird automatisch ein [raw] Shortcode um den "
570
  "WpProQuiz Shortcode ( [WpProQuiz X] ) gesetzt ( [raw] [WpProQuiz X] [/raw] )."
571
 
572
+ #: lib/view/WpProQuiz_View_GobalSettings.php:99
573
  #: lib/view/WpProQuiz_View_QuizOverall.php:42
574
  msgid ""
575
  "Own themes changes internal order of filters, what causes the problems. "
578
  "Einige Themen verändern die interne Reihenfolge der Filter, wodurch es zu "
579
  "Fehlern kommt. Mit dem zusätzlichen Shortcode [raw] wird dies verhindert."
580
 
581
+ #: lib/view/WpProQuiz_View_GobalSettings.php:106
582
+ #: lib/view/WpProQuiz_View_GobalSettings.php:111
583
  msgid "Do not load the Javascript-files in the footer"
584
  msgstr "Javascript-Dateien nicht am Seitenende laden"
585
 
586
+ #: lib/view/WpProQuiz_View_GobalSettings.php:118
587
  msgid ""
588
  "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
589
  "when they are really needed."
591
  "Standardmäßig werden alle WpProQuiz-Javascript-Dateien am Seitenende geladen "
592
  "und auch nur dann wenn sie wirklich benötigt werden."
593
 
594
+ #: lib/view/WpProQuiz_View_GobalSettings.php:121
595
  msgid "In very old Wordpress themes this can lead to problems."
596
  msgstr "Bei sehr alten Wordpress Themes kann dies zu Problemen führen."
597
 
598
+ #: lib/view/WpProQuiz_View_GobalSettings.php:124
599
  msgid ""
600
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
601
  "the header even if they are not needed."
604
  "Dateien im Header geladen, eine Unterscheidung ob die Javascript Dateien "
605
  "wirklich benötigt werden kann dann nicht mehr getroffen werden."
606
 
607
+ #: lib/view/WpProQuiz_View_GobalSettings.php:127
608
  #, php-format
609
  msgid ""
610
  "Anyone who wants to learn more about this topic should read through the "
613
  "Wer mehr über dieses Thema erfahren möchte, sollte sich folgende Webseiten "
614
  "durchlesen %s und %s"
615
 
616
+ #: lib/view/WpProQuiz_View_GobalSettings.php:136
617
+ #: lib/view/WpProQuiz_View_GobalSettings.php:141
618
  msgid "Touch Library"
619
  msgstr "Touch Library"
620
 
621
+ #: lib/view/WpProQuiz_View_GobalSettings.php:145
622
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
623
  msgid "Deactivate"
624
  msgstr "Deaktivieren"
625
 
626
+ #: lib/view/WpProQuiz_View_GobalSettings.php:148
627
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
628
  msgstr ""
629
  "In Version 0.13 wurde eine neue Touch Library für Mobilegeräte hinzugefügt."
630
 
631
+ #: lib/view/WpProQuiz_View_GobalSettings.php:151
632
  msgid "If you have any problems with the Touch Library, please deactivate it."
633
  msgstr ""
634
  "Wenn Sie Probleme mit der Touch Library haben, können Sie dies hier "
635
  "deaktivieren."
636
 
637
+ #: lib/view/WpProQuiz_View_GobalSettings.php:158
638
+ #: lib/view/WpProQuiz_View_GobalSettings.php:163
639
  msgid "jQuery support cors"
640
  msgstr "jQuery support cors"
641
 
642
+ #: lib/view/WpProQuiz_View_GobalSettings.php:170
643
  msgid "Is required only in rare cases."
644
  msgstr "Ist nur in seltenen Fällen erforderlich."
645
 
646
+ #: lib/view/WpProQuiz_View_GobalSettings.php:173
647
  msgid "If you have problems with the front ajax, please activate it."
648
  msgstr "Wenn Sie Probleme mit dem Front AJAX haben, bitte aktivieren Sie es."
649
 
650
+ #: lib/view/WpProQuiz_View_GobalSettings.php:176
651
  msgid "e.g. Domain with special characters in combination with IE"
652
  msgstr "z.B. Bei einer Domain mit Sonderzeichen in Kombination mit IE"
653
 
654
+ #: lib/view/WpProQuiz_View_GobalSettings.php:185
655
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:185
656
+ #: lib/view/WpProQuiz_View_QuizEdit.php:790
657
+ #: lib/view/WpProQuiz_View_WpqSupport.php:45
658
  msgid "Save"
659
  msgstr "Speichern"
660
 
661
  #: lib/view/WpProQuiz_View_Import.php:21
662
+ #: lib/view/WpProQuiz_View_QuizOverall.php:120
663
+ #: lib/view/WpProQuiz_View_QuizOverall.php:137
664
  msgid "Import"
665
  msgstr "Import"
666
 
681
  msgstr "Quiz-Name"
682
 
683
  #: lib/view/WpProQuiz_View_Import.php:44
684
+ #: lib/view/WpProQuiz_View_QuizOverall.php:75
685
  msgid "Questions"
686
  msgstr "Fragen"
687
 
688
  #: lib/view/WpProQuiz_View_Import.php:67
689
+ #: lib/view/WpProQuiz_View_QuizOverall.php:148
690
  msgid "Start import"
691
  msgstr "Import starten"
692
 
695
  msgstr "Titel"
696
 
697
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
698
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
699
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
700
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
701
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
702
+ #: lib/view/WpProQuiz_View_QuizEdit.php:684
703
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
704
  msgid "(optional)"
705
  msgstr "(Optional)"
706
 
713
  "Titel leer gelassen, wird ein Titel generiert."
714
 
715
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
716
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
717
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
718
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
719
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
720
  msgid "(required)"
721
  msgstr "(Pflichtfeld)"
722
 
724
  msgid "Points for this question (Standard is 1 point)"
725
  msgstr "Punkte für diese Frage (Standard ist 1 Punkt)"
726
 
727
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:31
728
+ msgid ""
729
+ "This points will be rewarded, only if the user closes the question correctly."
730
+ msgstr ""
731
+ "Diese Punkte werden nur dann vergeben, wenn der Benutzer die Frage korrekt "
732
+ "abschließt."
733
 
734
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
735
+ msgid "Different points for each answer"
736
+ msgstr "Unterschiedliche Punkte für jede Antwort"
737
+
738
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:40
739
  msgid ""
740
+ "If you enable this option, you can enter different points for every answer."
 
 
741
  msgstr ""
742
+ "Wenn Sie diese Option aktivieren, können Sie für jede Antwort "
743
+ "unterschiedliche Punkte vergeben."
 
744
 
745
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:46
746
  msgid "Show reached points in the correct- and incorrect message?"
747
  msgstr "Erreichte Punkte in der Korrekt- und Inkorrekt-Nachricht anzeigen?"
748
 
749
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
750
  msgid "Message with the correct / incorrect answer"
751
  msgstr "Nachricht bei korrekter / inkorrekter Antwort"
752
 
753
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:62
754
  msgid "Deactivated in quiz settings."
755
  msgstr "In den Quiz-Einstellungen deaktiviert."
756
 
757
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
758
  msgid "Message with the correct answer"
759
  msgstr "Nachricht bei korrekter Antwort"
760
 
761
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:70
762
  msgid ""
763
  "This text will be visible if answered correctly. It can be used as "
764
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
768
  "für komplexe Aufgaben dienen. Die Nachricht \"Richtig\" oder \"Falsch\" wird "
769
  "immer automatisch angezeigt."
770
 
771
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
772
  msgid "Same text for correct- and incorrect-message?"
773
  msgstr "Gleicher Text für Korrekt- und Inkorrekt-Nachricht?"
774
 
775
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
776
  msgid "Message with the incorrect answer"
777
  msgstr "Nachricht bei inkorrekter Antwort"
778
 
779
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:87
780
  msgid ""
781
  "This text will be visible if answered incorrectly. It can be used as "
782
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
786
  "komplexe Aufgaben dienen. Die Nachricht \"Richtig\" oder \"Falsch\" wird "
787
  "immer automatisch angezeigt."
788
 
789
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:99
790
  msgid "Here you can enter solution hint."
791
  msgstr "Hier können Sie einen Lösungstipp hinterlegen."
792
 
793
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:103
794
  msgid "Activate hint for this question?"
795
  msgstr "Tipp für diese Frage aktivieren?"
796
 
797
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:115
798
  msgid "Answer type"
799
  msgstr "Antwort Typ?"
800
 
801
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:123
802
  msgid "Single choice"
803
  msgstr "Single choice"
804
 
805
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:127
806
  msgid "Multiple choice"
807
  msgstr "Multiple choice"
808
 
809
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:131
810
  msgid "\"Free\" choice"
811
  msgstr "\"Free\" choice"
812
 
813
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:135
814
  msgid "\"Sorting\" choice"
815
  msgstr "\"Sorting\" choice"
816
 
817
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:139
818
  msgid "\"Matrix Sorting\" choice"
819
  msgstr "\"Matrix Sorting\" choice"
820
 
821
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:143
822
  msgid "Cloze"
823
  msgstr "Lückentext"
824
 
825
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
826
  msgid "Answers"
827
  msgstr "Antworten"
828
 
829
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:155
 
 
 
 
 
 
 
 
830
  msgid ""
831
  "Please sort the answers in right order with the \"Move\" - Button. The "
832
  "answers will be displayed randomly."
834
  "Bitte Antworten mit dem \"Verschiebe\"-Button in die richtige Reihenfolge "
835
  "bringen. Die Antworten werden später immer zufällig ausgegeben."
836
 
837
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:160
838
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
839
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
840
  msgid "Add new answer"
841
  msgstr "Neue Antwort hinzufügen"
842
 
843
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
 
 
 
 
 
 
844
  msgid ""
845
  "In this mode, not a list have to be sorted, but elements must be assigned to "
846
  "matching criterion."
848
  "In diesem Modus muss nicht eine Liste sortiert werden, sondern die "
849
  "Sortierelemente müssen zu den passenden Kriterium zugeordnet werden."
850
 
851
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
852
+ msgid ""
853
+ "You can create sort elements with empty criteria, which can't be assigned by "
854
+ "user."
855
+ msgstr ""
856
+ "Sie können auch Sortierelemente mit einem leeren Kriterium erstellen, der "
857
+ "vom Benutzer nicht zugeordnet werden darf."
858
+
859
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:201
860
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
861
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:302
862
+ #: lib/view/WpProQuiz_View_QuizEdit.php:18
863
+ msgid "Options"
864
+ msgstr "Optionen"
865
+
866
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
867
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:303
868
+ msgid "Answer"
869
+ msgstr "Antwort"
870
+
871
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:217
872
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:275
873
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:281
874
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:312
875
+ msgid "Allow HTML"
876
+ msgstr "HTML erlauben"
877
+
878
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:234
879
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:288
880
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:329
881
+ msgid "Delete answer"
882
+ msgstr "Antwort löschen"
883
+
884
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:235
885
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
886
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:330
887
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:58
888
+ msgid "Move"
889
+ msgstr "Verschieben"
890
+
891
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:251
892
  msgid "Criterion"
893
  msgstr "Kriterium"
894
 
895
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:341
896
+ msgid ""
897
+ "correct answers (one per line) (answers will be converted to lower case)"
898
+ msgstr ""
899
+ "Korrekte Antworten (eine pro Zeile ) (Antworten werden in Kleinbuchstaben "
900
+ "umgewandelt)"
901
+
902
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:354
903
  msgid ""
904
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
905
  "small letters will be ignored."
907
  "Umschliessen sie die gesuchten Woerter mit { } z.B. \"Ich {spiele} Fussball"
908
  "\". Gross- und Kleinschreibung wird ignoriert."
909
 
910
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:357
911
+ msgid ""
912
+ "If mode \"Different points for every answer\" is activated, you can assign "
913
+ "points with |POINTS. Otherwise 1 point will be awarded for every answer."
914
+ msgstr ""
915
+ "Wenn der Modus \"Unterschiedliche Punkte für jede Antwort\" aktiviert ist, "
916
+ "können sie mit |POINTS unterschiedliche Punkte vergeben. Ansonsten gibt es "
917
+ "für jede Korrekte Antwort einen Punkt."
918
+
919
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
920
+ msgid ""
921
+ "e.g. \"I {play} soccer, with a {ball|3}\" - \"play\" gives 1 point and \"ball"
922
+ "\" 3 points."
923
+ msgstr ""
924
+ "z.B. \" Ich {spiele} Fußball, mit einem {ball|3}. \" - \"Spiele\" gibt einen "
925
+ "Punkt und \"Ball\" drei Punkte."
926
+
927
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
928
  msgid "Questions sorted"
929
  msgstr "Fragen sortiert"
930
 
931
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
932
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
 
 
 
 
 
 
 
 
 
 
933
  msgid "Edit"
934
  msgstr "Bearbeiten"
935
 
936
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
 
 
 
 
 
937
  #: lib/view/WpProQuiz_View_Statistics.php:84
938
  msgid "Total"
939
  msgstr "Total"
940
 
941
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:81
942
  msgid "Add question"
943
  msgstr "Frage hinzufügen"
944
 
945
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:82
946
  msgid "Save order"
947
  msgstr "Sortierung speichern"
948
 
949
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:83
950
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:88
951
  msgid "Copy questions from another Quiz"
952
  msgstr "Fragen aus einem anderen Quiz kopieren."
953
 
954
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:89
955
  msgid ""
956
  "Here you can copy questions from another quiz into this quiz. (Multiple "
957
  "selection enabled)"
959
  "Hier können Sie Fragen aus einem anderen Quiz in dieses Quiz kopieren. "
960
  "(Mehrfachauswahl aktiviert)"
961
 
962
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:101
 
 
 
 
 
963
  msgid "Copy questions"
964
  msgstr "Fragen kopieren"
965
 
967
  msgid "Quiz title"
968
  msgstr "Quiz Titel"
969
 
 
 
 
 
970
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
971
  msgid "Hide quiz title"
972
  msgstr "Quiz Titel verstecken"
1043
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
1044
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
1045
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
1046
+ #: lib/view/WpProQuiz_View_QuizEdit.php:448
1047
+ #: lib/view/WpProQuiz_View_QuizEdit.php:661
1048
+ #: lib/view/WpProQuiz_View_QuizEdit.php:671
1049
  msgid "Demo"
1050
  msgstr "Demo"
1051
 
1094
 
1095
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
1096
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
1097
+ #: lib/view/WpProQuiz_View_QuizOverall.php:92
1098
  msgid "Statistics"
1099
  msgstr "Statistik"
1100
 
1143
  msgstr "Diese Option gilt für:"
1144
 
1145
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
1146
+ #: lib/view/WpProQuiz_View_QuizEdit.php:550
1147
  msgid "all users"
1148
  msgstr "Alle Benutzer"
1149
 
1150
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
1151
+ #: lib/view/WpProQuiz_View_QuizEdit.php:554
1152
  msgid "registered useres only"
1153
  msgstr "nur registriere Benutzer"
1154
 
1155
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
1156
+ #: lib/view/WpProQuiz_View_QuizEdit.php:558
1157
  msgid "anonymous users only"
1158
  msgstr "nur anonyme Benutzer"
1159
 
1241
  msgid "in percent"
1242
  msgstr "in Prozent"
1243
 
1244
+ #: lib/view/WpProQuiz_View_QuizEdit.php:433
1245
+ #: lib/view/WpProQuiz_View_QuizEdit.php:438
1246
+ msgid "Show average points"
1247
+ msgstr "Durchschnittspunkte anzeigen"
1248
+
1249
+ #: lib/view/WpProQuiz_View_QuizEdit.php:445
1250
+ msgid "Statistics-function must be enabled."
1251
+ msgstr "Statistik-Funktion muss aktiviert sein."
1252
+
1253
+ #: lib/view/WpProQuiz_View_QuizEdit.php:458
1254
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
1255
+ msgid "Prerequisites"
1256
+ msgstr "Voraussetzungen"
1257
+
1258
+ #: lib/view/WpProQuiz_View_QuizEdit.php:470
1259
+ msgid ""
1260
+ "If you enable this option, you can choose quiz, which user have to finish "
1261
+ "before he can start this quiz."
1262
+ msgstr ""
1263
+ "Wenn Sie diese Option aktivieren, können Sie wählen welches Quiz ein "
1264
+ "Benutzer vorher abgeschlossen habe muss, bevor er dieses Quiz starten kann."
1265
+
1266
+ #: lib/view/WpProQuiz_View_QuizEdit.php:473
1267
+ msgid ""
1268
+ "In all selected quizzes statistic function have to be active. If it is not "
1269
+ "it will be activated automatically."
1270
+ msgstr ""
1271
+ "Bei allen ausgewählten Quiz muss die Statistik-Funktion aktiviert sein, ist "
1272
+ "dies nicht der Fall wird diese automatisch aktiviert."
1273
+
1274
+ #: lib/view/WpProQuiz_View_QuizEdit.php:478
1275
+ msgid "Quiz"
1276
+ msgstr "Quiz"
1277
+
1278
+ #: lib/view/WpProQuiz_View_QuizEdit.php:480
1279
+ msgid "Prerequisites (This quiz have to be finished)"
1280
+ msgstr "Voraussetzung (Diese Quiz muss vorher abgeschlossen wurden sein.)"
1281
+
1282
+ #: lib/view/WpProQuiz_View_QuizEdit.php:525
1283
+ msgid ""
1284
+ "The leaderboard allows users to enter results in public list and to share "
1285
+ "the result this way."
1286
+ msgstr ""
1287
+ "Die Bestenliste ermöglicht es Benutzern Ihr Ergebnis in eine öffentliche "
1288
+ "Liste einzutragen und somit Ihr Ergebnis mit anderen zu Teilen."
1289
+
1290
+ #: lib/view/WpProQuiz_View_QuizEdit.php:528
1291
+ msgid "The leaderboard works independent from internal statistics function."
1292
+ msgstr ""
1293
+ "Die Bestenliste arbeitet unabhängig von der internen Statistik-Funktion."
1294
+
1295
+ #: lib/view/WpProQuiz_View_QuizEdit.php:545
1296
+ msgid "Who can sign up to the list"
1297
+ msgstr "Wer darf sich in die Liste eintragen"
1298
+
1299
+ #: lib/view/WpProQuiz_View_QuizEdit.php:561
1300
+ msgid ""
1301
+ "Not registered users have to enter name and e-mail (e-mail won't be "
1302
+ "displayed)"
1303
+ msgstr ""
1304
+ "nicht registrierte Benutzer müssen sich mit Name und E-Mail eintragen. (E-"
1305
+ "Mail wird nicht veröffentlicht)"
1306
+
1307
+ #: lib/view/WpProQuiz_View_QuizEdit.php:567
1308
+ msgid "display captcha"
1309
+ msgstr "Captcha einblenden"
1310
+
1311
+ #: lib/view/WpProQuiz_View_QuizEdit.php:575
1312
+ msgid ""
1313
+ "If you enable this option, additional captcha will be displayed for users "
1314
+ "who are not registered."
1315
+ msgstr ""
1316
+ "Wenn Sie diese Option aktivieren, wird für nicht registrierte Benutzer "
1317
+ "zusätzlich ein Captcha angezeigt."
1318
+
1319
+ #: lib/view/WpProQuiz_View_QuizEdit.php:578
1320
+ msgid "This option requires additional plugin:"
1321
+ msgstr "Diese Option benötigt ein zusätzliches Plugin:"
1322
+
1323
+ #: lib/view/WpProQuiz_View_QuizEdit.php:583
1324
+ msgid "Plugin has been detected."
1325
+ msgstr "Plugin wurde erkannt."
1326
+
1327
+ #: lib/view/WpProQuiz_View_QuizEdit.php:587
1328
+ msgid "Plugin is not installed."
1329
+ msgstr "Plugin ist nicht installiert."
1330
+
1331
+ #: lib/view/WpProQuiz_View_QuizEdit.php:595
1332
+ msgid "Sort list by"
1333
+ msgstr "Liste sortieren nach"
1334
+
1335
+ #: lib/view/WpProQuiz_View_QuizEdit.php:614
1336
+ msgid "Users can apply multiple times"
1337
+ msgstr "Benutzer dürfen sich mehrfach eintragen"
1338
+
1339
+ #: lib/view/WpProQuiz_View_QuizEdit.php:625
1340
+ msgid "User can apply after:"
1341
+ msgstr "Benutzer darf sich erneut eintragen nach:"
1342
+
1343
+ #: lib/view/WpProQuiz_View_QuizEdit.php:627
1344
+ msgid "minute"
1345
+ msgstr "Minuten"
1346
+
1347
+ #: lib/view/WpProQuiz_View_QuizEdit.php:634
1348
+ msgid "How many entries should be displayed"
1349
+ msgstr "Wie viel Einträge sollen angezeigt werden"
1350
+
1351
+ #: lib/view/WpProQuiz_View_QuizEdit.php:640
1352
+ msgid "Entries"
1353
+ msgstr "Einträge"
1354
+
1355
+ #: lib/view/WpProQuiz_View_QuizEdit.php:647
1356
+ msgid "Automatically display leaderboard in quiz result"
1357
+ msgstr "Bestenliste automatisch im Quiz Ergebnis anzeigen"
1358
+
1359
+ #: lib/view/WpProQuiz_View_QuizEdit.php:651
1360
+ msgid "Where should leaderboard be displayed:"
1361
+ msgstr "Wo soll die Bestenliste eingeblendet werden:"
1362
+
1363
+ #: lib/view/WpProQuiz_View_QuizEdit.php:654
1364
+ msgid "don't display"
1365
+ msgstr "nicht anzeigen"
1366
+
1367
+ #: lib/view/WpProQuiz_View_QuizEdit.php:658
1368
+ msgid "below the \"result text\""
1369
+ msgstr "unterhalb des \"Ergebnis Text\""
1370
+
1371
+ #: lib/view/WpProQuiz_View_QuizEdit.php:668
1372
+ msgid "in a button"
1373
+ msgstr "in einem Button"
1374
+
1375
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
1376
  msgid "Quiz description"
1377
  msgstr "Quiz Beschreibung"
1378
 
1379
+ #: lib/view/WpProQuiz_View_QuizEdit.php:714
1380
  msgid "This text will be displayed before start of the quiz."
1381
  msgstr "Dieser Text wird vor dem Starten des Quizes angezeigt."
1382
 
1383
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
1384
  msgid "Results text"
1385
  msgstr "Ergebnis Text"
1386
 
1387
+ #: lib/view/WpProQuiz_View_QuizEdit.php:725
1388
  msgid ""
1389
  "This text will be displayed at the end of the quiz (in results). (this text "
1390
  "is optional)"
1392
  "Dieser Text wird beim Beenden (im Ergebnis) des Quizes angezeigt (Dieser "
1393
  "Text ist optional)"
1394
 
1395
+ #: lib/view/WpProQuiz_View_QuizEdit.php:729
1396
  msgid "Activate graduation"
1397
  msgstr "Abstufungen aktivieren"
1398
 
1399
+ #: lib/view/WpProQuiz_View_QuizEdit.php:735
1400
  msgid "Hint:"
1401
  msgstr "Hinweis:"
1402
 
1403
+ #: lib/view/WpProQuiz_View_QuizEdit.php:737
1404
  msgid "Maximal 15 levels"
1405
  msgstr "Maximal 15 Stufen"
1406
 
1407
+ #: lib/view/WpProQuiz_View_QuizEdit.php:739
1408
  #, php-format
1409
  msgid ""
1410
  "Percentages refer to the total score of the quiz. (Current total %d points "
1413
  "Prozente beziehen sich auf die Gesamtpunktzahl des Quiz (Aktuell: insgesamt "
1414
  "%d Punkte bei %d Fragen)"
1415
 
1416
+ #: lib/view/WpProQuiz_View_QuizEdit.php:742
1417
  msgid "Values can also be mixed up"
1418
  msgstr "Werte können auch durcheinander sein"
1419
 
1420
+ #: lib/view/WpProQuiz_View_QuizEdit.php:743
1421
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1422
  msgstr "10,15% oder 10.15% erlaubt (maximal 2 Stellen nach dem Komma)"
1423
 
1424
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1425
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1426
  msgid "from:"
1427
  msgstr "Ab:"
1428
 
1429
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1430
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1431
  msgid "percent"
1432
  msgstr "Prozent"
1433
 
1434
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1435
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1436
  #, php-format
1437
  msgid ""
1438
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
1441
  "(Wird angezeigt wenn Ergebnis-Prozent >= <span class=\"resultProzent\">%s</"
1442
  "span>%% ist)"
1443
 
1444
+ #: lib/view/WpProQuiz_View_QuizEdit.php:760
1445
+ #: lib/view/WpProQuiz_View_QuizEdit.php:771
1446
  msgid "Delete graduation"
1447
  msgstr "Stufe löschen"
1448
 
1449
+ #: lib/view/WpProQuiz_View_QuizEdit.php:778
1450
  msgid "Add graduation"
1451
  msgstr "Stufe hinzufügen"
1452
 
1467
  msgid "Style Manager"
1468
  msgstr "Style Manager"
1469
 
1470
+ #: lib/view/WpProQuiz_View_QuizOverall.php:50
1471
+ #: lib/view/WpProQuiz_View_WpqSupport.php:8
1472
+ msgid "Support WP-Pro-Quiz"
1473
+ msgstr "Wp-Pro-Quiz unterstützen"
1474
+
1475
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
1476
  msgid "ID"
1477
  msgstr "ID"
1478
 
1479
+ #: lib/view/WpProQuiz_View_QuizOverall.php:59
1480
  msgid "Shortcode"
1481
  msgstr "Shortcode"
1482
 
1483
+ #: lib/view/WpProQuiz_View_QuizOverall.php:60
1484
+ msgid "Shortcode-Leaderboard"
1485
+ msgstr "Shortcode-Bestenliste"
1486
+
1487
+ #: lib/view/WpProQuiz_View_QuizOverall.php:88
1488
  msgid "Preview"
1489
  msgstr "Vorschau"
1490
 
1491
+ #: lib/view/WpProQuiz_View_QuizOverall.php:118
1492
  msgid "Add quiz"
1493
  msgstr "Quiz hinzufügen"
1494
 
1495
+ #: lib/view/WpProQuiz_View_QuizOverall.php:122
1496
+ #: lib/view/WpProQuiz_View_QuizOverall.php:127
1497
  msgid "Export"
1498
  msgstr "Export"
1499
 
1500
+ #: lib/view/WpProQuiz_View_QuizOverall.php:128
1501
  msgid ""
1502
  "Choose the respective question, which you would like to export and press on "
1503
  "\"Start export\""
1505
  "Wählen Sie oben die entsprechen Quiz aus, die Sie exportieren möchten und "
1506
  "klicken Sie anschliessen auf \"Export starten\""
1507
 
1508
+ #: lib/view/WpProQuiz_View_QuizOverall.php:132
1509
  msgid "Start export"
1510
  msgstr "Export starten"
1511
 
1512
+ #: lib/view/WpProQuiz_View_QuizOverall.php:138
1513
  msgid "Import only *.wpq files from known and trusted sources."
1514
  msgstr ""
1515
  "Importieren sie nur *.wpq Dateien aus bekannten und vertrauenswürdigen "
1516
  "Quellen."
1517
 
1518
+ #: lib/view/WpProQuiz_View_QuizOverall.php:146
1519
  #, php-format
1520
  msgid "Maximal %d MiB"
1521
  msgstr "Maximal %d MiB"
1572
  msgid "Reset entire statistic"
1573
  msgstr "Alle Statistiken zurücksetzten"
1574
 
 
 
 
 
1575
  #: lib/view/WpProQuiz_View_Statistics.php:120
1576
  msgid "Show only users, who solved the quiz:"
1577
  msgstr "Nur Benutzer anzeigen die das Quiz absolviert haben:"
1578
 
 
 
 
 
 
 
 
 
1579
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1580
  msgid "Front"
1581
  msgstr "Front"
1582
 
1583
+ #: lib/view/WpProQuiz_View_WpqSupport.php:10
1584
+ msgid "Donate"
1585
+ msgstr "Spenden"
1586
+
1587
+ #: lib/view/WpProQuiz_View_WpqSupport.php:20
1588
+ msgid "WP-Pro-Quiz is small but nice free quiz plugin for WordPress."
1589
+ msgstr ""
1590
+ "Wp-Pro-Quiz ist ein kleines aber feines kostenloses Quiz Plugin für WordPress"
1591
+
1592
+ #: lib/view/WpProQuiz_View_WpqSupport.php:21
1593
+ msgid ""
1594
+ "I try to implement all wishes as fast as possible and help with problems."
1595
+ msgstr ""
1596
+ "Ich versuche alle Wünsche so schnell wie möglich umzusetzen und bei "
1597
+ "Problemen zu helfen."
1598
+
1599
+ #: lib/view/WpProQuiz_View_WpqSupport.php:22
1600
+ msgid ""
1601
+ "Your donations can help to ensure that the project continues to remain free."
1602
+ msgstr ""
1603
+ "Eure Spenden können dabei helfen, dass das Projekt weiterhin kostenlos "
1604
+ "bleibt."
1605
+
1606
+ #: lib/view/WpProQuiz_View_WpqSupport.php:25
1607
+ msgid "Translate WP-Pro-Quiz"
1608
+ msgstr "Wp-Pro-Quiz Übersetzten"
1609
+
1610
+ #: lib/view/WpProQuiz_View_WpqSupport.php:27
1611
+ msgid "You need:"
1612
+ msgstr "Sie benötigen:"
1613
+
1614
+ #: lib/view/WpProQuiz_View_WpqSupport.php:30
1615
+ msgid "Latest POT file"
1616
+ msgstr "Neuste POT Datei"
1617
+
1618
+ #: lib/view/WpProQuiz_View_WpqSupport.php:35
1619
+ msgid "Open PoEdit"
1620
+ msgstr "PoEdit öffnen"
1621
+
1622
+ #: lib/view/WpProQuiz_View_WpqSupport.php:36
1623
+ msgid "File - New catalogue from POT file..."
1624
+ msgstr "Datei - Neuer Katalog aus POT-Datei..."
1625
+
1626
+ #: lib/view/WpProQuiz_View_WpqSupport.php:37
1627
+ msgid "Choose wp-pro-quiz.pot"
1628
+ msgstr "wp-pro-quiz.pot auswählen"
1629
+
1630
+ #: lib/view/WpProQuiz_View_WpqSupport.php:38
1631
+ msgid "Set \"Translation properties\""
1632
+ msgstr "\"Übersetzungseigenschaften\" setzten"
1633
+
1634
+ #: lib/view/WpProQuiz_View_WpqSupport.php:39
1635
+ msgid "Save PO file - with the name \"wp-pro-qioz-de_DE.po\""
1636
+ msgstr "PO Datei speichern - mit dem Namen \"wp-pro-quiz-de_DE.po\""
1637
+
1638
+ #: lib/view/WpProQuiz_View_WpqSupport.php:41
1639
+ msgid "replace de_DE with your countries short code (e.g. en_US, nl_NL...)"
1640
+ msgstr "de_DE mit Ihren Ländercode ersetzten (z.B. en_US, nl_NL ...)"
1641
+
1642
+ #: lib/view/WpProQuiz_View_WpqSupport.php:44
1643
+ msgid "Translate"
1644
+ msgstr "Übersetzten"
1645
+
1646
+ #: lib/view/WpProQuiz_View_WpqSupport.php:46
1647
+ msgid ""
1648
+ "Upload generated *.mo file to your server, to /wp-content/plugins/wp-pro-"
1649
+ "quiz/languages"
1650
+ msgstr ""
1651
+ "Die generierte *.mo Datei auf Ihren Server hochladen, in /wp-content/plugins/"
1652
+ "wp-pro-quiz/languages"
1653
+
1654
+ #: lib/view/WpProQuiz_View_WpqSupport.php:47
1655
+ msgid "Finished"
1656
+ msgstr "Fertig"
1657
+
1658
+ #: lib/view/WpProQuiz_View_WpqSupport.php:51
1659
+ msgid ""
1660
+ "You can translate WP-Pro-Quiz from existing to existing language (e.g. "
1661
+ "english to english) e.g. to rename buttons."
1662
+ msgstr ""
1663
+ "Sie können Wp-Pro-Quiz auch vom englischen ins englische übersetzten umso z."
1664
+ "B. die Buttons mit einem anderen Text zu belegen."
1665
+
1666
+ #, fuzzy
1667
+ #~ msgid "Unterschiedliche Punkte fuer jede Antwort"
1668
+ #~ msgstr "Different points for each answer"
1669
+
1670
+ #~ msgid ""
1671
+ #~ "You have reached <span></span> of <span></span> points, (<span></span>%)"
1672
+ #~ msgstr ""
1673
+ #~ "Sie haben <span></span> von <span></span> Punkten erreicht (<span></span>"
1674
+ #~ "%)"
1675
+
1676
+ #, fuzzy
1677
+ #~ msgid "Zeige Bestenliste"
1678
+ #~ msgstr "Show leaderboard"
1679
+
1680
+ #~ msgid "Captcha:"
1681
+ #~ msgstr "Captcha:"
1682
+
1683
+ #~ msgid "Points per correct answer"
1684
+ #~ msgstr "Punkte pro korrekte Antwort"
1685
+
1686
+ #~ msgid ""
1687
+ #~ "If you enable this option, for every correct answer user will receive X "
1688
+ #~ "points. Otherwise he will receive points only if the question was solved "
1689
+ #~ "completely."
1690
+ #~ msgstr ""
1691
+ #~ "Wenn Sie diese Option aktivieren, werden für jede korrekte Antwort X "
1692
+ #~ "Punkte vergeben. Ansonsten gibt es nur Punkte wenn die Frage vollständig "
1693
+ #~ "korrekt abgeschlossen wird."
1694
+
1695
+ #, fuzzy
1696
+ #~ msgid "Optionen"
1697
+ #~ msgstr "Options"
1698
+
1699
+ #, fuzzy
1700
+ #~ msgid "Bestenliste hinzugefuegt"
1701
+ #~ msgstr "Leaderboard"
1702
+
1703
+ #, fuzzy
1704
+ #~ msgid "Unterschiedliche Punkte fuer jede Antwort hinzugefuegt"
1705
+ #~ msgstr "Different points for each answer"
1706
+
1707
+ #, fuzzy
1708
+ #~ msgid "Keine Daten verfuegbar"
1709
+ #~ msgstr "No data available"
1710
+
1711
+ #, fuzzy
1712
+ #~ msgid "Please note:"
1713
+ #~ msgstr "Hinweis"
1714
+
1715
+ #, fuzzy
1716
+ #~ msgid "Aktivieren"
1717
+ #~ msgstr "Activate"
1718
+
1719
+ #, fuzzy
1720
+ #~ msgid "Ein Fehler ist aufgetreten."
1721
+ #~ msgstr "An error has occurred."
1722
+
1723
+ #, fuzzy
1724
+ #~ msgid "Kein Name oder eine E-Mail angegeben."
1725
+ #~ msgstr "No name or e-mail stated."
1726
+
1727
+ #, fuzzy
1728
+ #~ msgid "Captcha ist falsch."
1729
+ #~ msgstr "Captcha is wrong."
1730
+
1731
+ #, fuzzy
1732
+ #~ msgid "Bestenliste"
1733
+ #~ msgstr "Leaderboard"
1734
+
1735
+ #, fuzzy
1736
+ #~ msgid "Sortieren nach:"
1737
+ #~ msgstr "Sort by:"
1738
+
1739
+ #, fuzzy
1740
+ #~ msgid "neuster Eintrag"
1741
+ #~ msgstr "latest entry"
1742
+
1743
+ #, fuzzy
1744
+ #~ msgid "aeltester Eintrag"
1745
+ #~ msgstr "Oldest entry"
1746
+
1747
+ #, fuzzy
1748
+ #~ msgid "Loeschen"
1749
+ #~ msgstr "Delete"
1750
+
1751
+ #, fuzzy
1752
+ #~ msgid "Alle Eintaege loeschen"
1753
+ #~ msgstr "Delete all entries"
1754
+
1755
+ #, fuzzy
1756
+ #~ msgid "average Punkte"
1757
+ #~ msgstr "Average score"
1758
+
1759
+ #, fuzzy
1760
+ #~ msgid "Deine Punkte"
1761
+ #~ msgstr "Your score"
1762
+
1763
+ #, fuzzy
1764
+ #~ msgid "Bestenliste:"
1765
+ #~ msgstr "Leaderboard:"
1766
+
1767
+ #, fuzzy
1768
+ #~ msgid "maximal %s Punkte"
1769
+ #~ msgstr "maximum of %s points"
1770
+
1771
+ #, fuzzy
1772
+ #~ msgid "Platz"
1773
+ #~ msgstr "Pos."
1774
+
1775
+ #, fuzzy
1776
+ #~ msgid "Ergebnis"
1777
+ #~ msgstr "Result"
1778
+
1779
+ #, fuzzy
1780
+ #~ msgid "Bestenliste Zeitformat"
1781
+ #~ msgstr "Leaderboard"
1782
+
1783
+ #, fuzzy
1784
+ #~ msgid "Voraussetzungen"
1785
+ #~ msgstr "Prerequisites"
1786
+
1787
+ #, fuzzy
1788
+ #~ msgid "Plugin wurde erkannt."
1789
+ #~ msgstr "Plugin has been detected."
1790
+
1791
+ #, fuzzy
1792
+ #~ msgid "Liste sortieren nach"
1793
+ #~ msgstr "Sort by"
1794
+
1795
+ #, fuzzy
1796
+ #~ msgid "Wieviel Eintraege sollen angezeigt werden"
1797
+ #~ msgstr "How many entries are to be displayed"
1798
+
1799
+ #, fuzzy
1800
+ #~ msgid "Eintraege"
1801
+ #~ msgstr "Entries"
1802
+
1803
+ #, fuzzy
1804
+ #~ msgid "nicht anzeigen"
1805
+ #~ msgstr "not show"
1806
+
1807
+ #, fuzzy
1808
+ #~ msgid "unterhalb des \"Ergebnis Text\""
1809
+ #~ msgstr "below the \"result text \""
1810
+
1811
+ #, fuzzy
1812
+ #~ msgid "in einem Button"
1813
+ #~ msgstr "in a button"
1814
+
1815
+ #, fuzzy
1816
+ #~ msgid "Shortcode-Bestenliste"
1817
+ #~ msgstr "Shortcode-Leaderboard"
1818
+
1819
+ #, fuzzy
1820
+ #~ msgid "Spenden"
1821
+ #~ msgstr "Donate"
1822
+
1823
+ #, fuzzy
1824
+ #~ msgid "Wp-Pro-Quiz Uebersetzten"
1825
+ #~ msgstr "Wp-Pro-Quiz translate"
1826
+
1827
+ #, fuzzy
1828
+ #~ msgid "Sie benoetigen:"
1829
+ #~ msgstr "You need:"
1830
+
1831
+ #, fuzzy
1832
+ #~ msgid "Neuste POT Datei"
1833
+ #~ msgstr "Latest POT file"
1834
+
1835
+ #, fuzzy
1836
+ #~ msgid "Uebersetzten"
1837
+ #~ msgstr "translate"
1838
+
1839
+ #, fuzzy
1840
+ #~ msgid "Speichern"
1841
+ #~ msgstr "Save"
1842
+
1843
+ #, fuzzy
1844
+ #~ msgid "Fertig"
1845
+ #~ msgstr "Finished"
1846
+
1847
+ #, fuzzy
1848
+ #~ msgid "Hinweis"
1849
+ #~ msgstr "Please note:"
1850
+
1851
+ #~ msgid "correct?"
1852
+ #~ msgstr "Korrekt?"
1853
+
1854
  #~ msgid "All"
1855
  #~ msgstr "Alle"
1856
 
languages/wp-pro-quiz-nb_NO.mo CHANGED
Binary file
languages/wp-pro-quiz-nb_NO.po CHANGED
@@ -1,72 +1,102 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2013-01-19 16:11+0100\n"
5
- "PO-Revision-Date: 2013-01-19 16:11+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Stein Ivar Johnsen\n"
8
  "Language: Norwegian\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 "Vil du virkelig slette quiz / spørsmål?"
20
 
21
- #: lib/controller/WpProQuiz_Controller_Admin.php:55
22
  msgid "Title is not filled!"
23
  msgstr "Tittel er ikke skrevet!"
24
 
25
- #: lib/controller/WpProQuiz_Controller_Admin.php:56
26
  msgid "No question deposited!"
27
  msgstr "Ingen spørsmål satt inn!"
28
 
29
- #: lib/controller/WpProQuiz_Controller_Admin.php:57
30
  msgid "Correct answer was not selected!"
31
  msgstr "Riktig svar var ikke valgt!"
32
 
33
- #: lib/controller/WpProQuiz_Controller_Admin.php:58
34
  msgid "No answer deposited!"
35
  msgstr "Ingen svar satt inn!"
36
 
37
- #: lib/controller/WpProQuiz_Controller_Admin.php:59
38
  msgid "No quiz description filled!"
39
  msgstr "Ingen quiz beskrivelse er skrevet!"
40
 
41
- #: lib/controller/WpProQuiz_Controller_Admin.php:60
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "De prosentvise verdiene i resultat teksten er feil."
44
 
45
- #: lib/controller/WpProQuiz_Controller_Admin.php:61
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "Ingen nummer i feltet \"Poeng\" eller mindre enn 1"
48
 
49
- #: lib/controller/WpProQuiz_Controller_Admin.php:62
 
 
 
 
50
  msgid "No quiz selected"
51
  msgstr "Ingen quiz valgt"
52
 
53
- #: lib/controller/WpProQuiz_Controller_Admin.php:63
54
  msgid "Do you really want to reset the statistic?"
55
  msgstr "Vil du virkelig tilbakestille statistikken?"
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:192
64
- #: lib/controller/WpProQuiz_Controller_Question.php:299
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
  "Du har ikke tilstrekkelige tillatelser til å få tilgang til denne siden."
@@ -76,15 +106,15 @@ msgid "Settings saved"
76
  msgstr "Innstillingene er lagret"
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
82
  msgid "File cannot be processed"
83
  msgstr "Filen kan ikke behandles"
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 "Fant ikke quiz"
90
 
@@ -96,51 +126,80 @@ msgstr "spørsmål kopiert"
96
  msgid "Edit question"
97
  msgstr "Rediger spørsmål"
98
 
99
- #: lib/controller/WpProQuiz_Controller_Question.php:154
100
  msgid "Question not found"
101
  msgstr "Fant ikke spørsmål"
102
 
103
- #: lib/controller/WpProQuiz_Controller_Question.php:167
104
- #: lib/controller/WpProQuiz_Controller_Question.php:213
105
  #, php-format
106
  msgid "Question: %d"
107
  msgstr "Spørsmål: %d"
108
 
109
- #: lib/controller/WpProQuiz_Controller_Question.php:177
110
  msgid "Question edited"
111
  msgstr "Spørsmål redigert"
112
 
113
- #: lib/controller/WpProQuiz_Controller_Question.php:196
114
  msgid "New question"
115
  msgstr "Nytt spørsmål"
116
 
117
- #: lib/controller/WpProQuiz_Controller_Question.php:224
118
  msgid "Question added"
119
  msgstr "Spørsmål lagt til"
120
 
121
- #: lib/controller/WpProQuiz_Controller_Quiz.php:73
122
  #: lib/view/WpProQuiz_View_QuestionOverall.php:21
123
  msgid "Edit quiz"
124
  msgstr "Rediger quiz"
125
 
126
- #: lib/controller/WpProQuiz_Controller_Quiz.php:93
127
  msgid "Quiz edited"
128
  msgstr "Quiz redigert"
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 tittel eller quiz beskrivelse er ikke skrevet"
134
 
135
- #: lib/controller/WpProQuiz_Controller_Quiz.php:118
136
- #: lib/controller/WpProQuiz_Controller_Quiz.php:129
137
  msgid "Create quiz"
138
  msgstr "Lag quiz"
139
 
140
- #: lib/controller/WpProQuiz_Controller_Quiz.php:160
141
  msgid "Quiz deleted"
142
  msgstr "Quiz slettet"
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  #: lib/helper/WpProQuiz_Helper_Import.php:9
145
  msgid "File was not uploaded"
146
  msgstr "Filen ble ikke lastet opp"
@@ -149,128 +208,275 @@ msgstr "Filen ble ikke lastet opp"
149
  msgid "File have wrong format"
150
  msgstr "Fil har feil format"
151
 
 
 
 
 
152
  #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
153
  msgid "The user completed a quiz."
154
  msgstr "Brukeren fullførte en quiz."
155
 
156
- #: lib/view/WpProQuiz_View_FrontQuiz.php:86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  msgid "Start quiz"
158
  msgstr "Start quiz"
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
  "Du har allerede gjennomført quizen før. Derfor kan du ikke starte den på "
165
  "nytt."
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 "Resultat"
172
 
173
- #: lib/view/WpProQuiz_View_FrontQuiz.php:97
174
  #, php-format
175
  msgid "%s of %s questions answered correctly"
176
  msgstr "%s av %s spørsmål rett besvart"
177
 
178
- #: lib/view/WpProQuiz_View_FrontQuiz.php:100
179
  msgid "Your time: <span></span>"
180
  msgstr "Din tid: <span></span>"
181
 
182
- #: lib/view/WpProQuiz_View_FrontQuiz.php:103
183
  msgid "Time has elapsed"
184
  msgstr "Tiden har gått"
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 "Du har nådd <span></span> av <span></span> poeng, (<span></span>%)"
 
 
 
 
 
 
 
 
190
 
191
- #: lib/view/WpProQuiz_View_FrontQuiz.php:121
192
  msgid "Restart quiz"
193
  msgstr "Restart quiz"
194
 
195
- #: lib/view/WpProQuiz_View_FrontQuiz.php:123
196
  msgid "View questions"
197
  msgstr "Vis spørsmål"
198
 
199
- #: lib/view/WpProQuiz_View_FrontQuiz.php:128
 
 
 
 
200
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
201
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
202
  msgid "Time limit"
203
  msgstr "Tidsfrist"
204
 
205
- #: lib/view/WpProQuiz_View_FrontQuiz.php:141
206
  #, php-format
207
  msgid "Question %s of %s"
208
  msgstr "Spørsmål %s av %s"
209
 
210
- #: lib/view/WpProQuiz_View_FrontQuiz.php:144
211
- #: lib/view/WpProQuiz_View_QuestionEdit.php:49
212
  #: lib/view/WpProQuiz_View_Statistics.php:53
213
  msgid "Question"
214
  msgstr "Spørsmål"
215
 
216
- #: lib/view/WpProQuiz_View_FrontQuiz.php:148
217
  #, php-format
218
  msgid "%d points"
219
  msgstr "%d poeng"
220
 
221
- #: lib/view/WpProQuiz_View_FrontQuiz.php:158
222
- #: lib/view/WpProQuiz_View_QuestionEdit.php:258
223
- #: lib/view/WpProQuiz_View_QuestionEdit.php:298
224
- #: lib/view/WpProQuiz_View_QuestionEdit.php:335
225
  msgid "Sort elements"
226
  msgstr "Sorter elementer"
227
 
228
- #: lib/view/WpProQuiz_View_FrontQuiz.php:241
229
- #: lib/view/WpProQuiz_View_FrontQuiz.php:248
 
230
  #: lib/view/WpProQuiz_View_Statistics.php:55
231
  #: lib/view/WpProQuiz_View_Statistics.php:147
232
  msgid "Correct"
233
  msgstr "Riktig"
234
 
235
- #: lib/view/WpProQuiz_View_FrontQuiz.php:243
236
- #: lib/view/WpProQuiz_View_FrontQuiz.php:261
237
- #: lib/view/WpProQuiz_View_QuestionEdit.php:21
238
- #: lib/view/WpProQuiz_View_QuestionEdit.php:28
239
- #: lib/view/WpProQuiz_View_QuestionOverall.php:29
240
- #: lib/view/WpProQuiz_View_Statistics.php:54
241
- #: lib/view/WpProQuiz_View_Statistics.php:146
242
- msgid "Points"
243
- msgstr "Poeng"
244
-
245
- #: lib/view/WpProQuiz_View_FrontQuiz.php:259
246
- #: lib/view/WpProQuiz_View_FrontQuiz.php:266
247
  #: lib/view/WpProQuiz_View_Statistics.php:56
248
  #: lib/view/WpProQuiz_View_Statistics.php:148
249
  msgid "Incorrect"
250
  msgstr "Feil"
251
 
252
- #: lib/view/WpProQuiz_View_FrontQuiz.php:284
253
- #: lib/view/WpProQuiz_View_FrontQuiz.php:294
254
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
255
  msgid "Hint"
256
  msgstr "Tips"
257
 
258
- #: lib/view/WpProQuiz_View_FrontQuiz.php:291
259
  msgid "Check"
260
  msgstr "Sjekk"
261
 
262
- #: lib/view/WpProQuiz_View_FrontQuiz.php:292
263
  msgid "Back"
264
  msgstr "Tilbake"
265
 
266
- #: lib/view/WpProQuiz_View_FrontQuiz.php:296
267
  msgid "Next exercise"
268
  msgstr "Neste spørsmål"
269
 
270
- #: lib/view/WpProQuiz_View_FrontQuiz.php:309
271
  msgid "Finish quiz"
272
  msgstr "Fullfør quiz"
273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  #: lib/view/WpProQuiz_View_GobalSettings.php:7
275
  msgid "to activate"
276
  msgstr "for å aktivere"
@@ -280,12 +486,14 @@ msgid "not to activate"
280
  msgstr "for å ikke aktivere"
281
 
282
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
283
- #: lib/view/WpProQuiz_View_GobalSettings.php:25
 
284
  #: lib/view/WpProQuiz_View_QuizOverall.php:48
285
- msgid "Settings in case of problems"
286
- msgstr "Innstillinger i tilfelle problemer"
287
 
288
  #: lib/view/WpProQuiz_View_GobalSettings.php:16
 
289
  msgid "Please note"
290
  msgstr "Vær oppmerksom på"
291
 
@@ -296,24 +504,32 @@ msgstr ""
296
  "Disse innstillingene skal bare settes i tilfelle av problemer med Wp-Pro-"
297
  "Quiz."
298
 
299
- #: lib/view/WpProQuiz_View_GobalSettings.php:21
300
- #: lib/view/WpProQuiz_View_Import.php:22
301
- #: lib/view/WpProQuiz_View_QuestionEdit.php:8
302
- #: lib/view/WpProQuiz_View_QuestionOverall.php:19
303
- #: lib/view/WpProQuiz_View_QuizEdit.php:8
304
- #: lib/view/WpProQuiz_View_Statistics.php:18
305
- #: lib/view/WpProQuiz_View_StyleManager.php:11
306
- msgid "back to overview"
307
- msgstr "tilbake til oversikten"
308
 
309
- #: lib/view/WpProQuiz_View_GobalSettings.php:31
310
- #: lib/view/WpProQuiz_View_GobalSettings.php:36
 
 
 
 
 
 
 
 
 
 
 
 
 
311
  msgid "Automatically add [raw] shortcode"
312
  msgstr "Automatisk legge til [raw] kortkode"
313
 
314
- #: lib/view/WpProQuiz_View_GobalSettings.php:40
315
- #: lib/view/WpProQuiz_View_GobalSettings.php:62
316
- #: lib/view/WpProQuiz_View_GobalSettings.php:114
317
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
318
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
319
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
@@ -328,16 +544,21 @@ msgstr "Automatisk legge til [raw] kortkode"
328
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
329
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
330
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
331
- #: lib/view/WpProQuiz_View_QuizEdit.php:448
 
 
 
 
 
332
  msgid "Activate"
333
  msgstr "Aktivere"
334
 
335
- #: lib/view/WpProQuiz_View_GobalSettings.php:40
336
  #, php-format
337
  msgid "It is recommended %s this option on your system."
338
  msgstr "Det anbefales %s dette alternativet på systemet ditt."
339
 
340
- #: lib/view/WpProQuiz_View_GobalSettings.php:43
341
  msgid ""
342
  "If this option is activated, a [raw] shortcode is automatically set around "
343
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
@@ -345,7 +566,7 @@ msgstr ""
345
  "Hvis dette alternativet er aktivert, [raw] kortkode blir automatisk satt "
346
  "rundt WpProQuiz kortkode ([WpProQuiz X]) i [raw] [WpProQuiz X] [/ raw]"
347
 
348
- #: lib/view/WpProQuiz_View_GobalSettings.php:46
349
  #: lib/view/WpProQuiz_View_QuizOverall.php:42
350
  msgid ""
351
  "Own themes changes internal order of filters, what causes the problems. "
@@ -354,12 +575,12 @@ msgstr ""
354
  "Egne temaer endrer interne rekkefølgen på filtrene, noe som forårsaker "
355
  "problemer. Med ekstra kortkode [raw] blir dette forhindret."
356
 
357
- #: lib/view/WpProQuiz_View_GobalSettings.php:53
358
- #: lib/view/WpProQuiz_View_GobalSettings.php:58
359
  msgid "Do not load the Javascript-files in the footer"
360
  msgstr "Ikke last JavaScript-filer i bunnteksten"
361
 
362
- #: lib/view/WpProQuiz_View_GobalSettings.php:65
363
  msgid ""
364
  "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
365
  "when they are really needed."
@@ -367,11 +588,11 @@ msgstr ""
367
  "Vanligvis er alle WpProQuiz-Javascript filene lastet i bunnteksten og bare "
368
  "når de virkelig trengs."
369
 
370
- #: lib/view/WpProQuiz_View_GobalSettings.php:68
371
  msgid "In very old Wordpress themes this can lead to problems."
372
  msgstr "I svært gamle Wordpress temaer kan dette føre til problemer."
373
 
374
- #: lib/view/WpProQuiz_View_GobalSettings.php:71
375
  msgid ""
376
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
377
  "the header even if they are not needed."
@@ -379,7 +600,7 @@ msgstr ""
379
  "Hvis du aktiverer dette alternativet, blir alle WpProQuiz-Javascript filer "
380
  "lastes inn i toppteksten, selv om de ikke er nødvendig."
381
 
382
- #: lib/view/WpProQuiz_View_GobalSettings.php:74
383
  #, php-format
384
  msgid ""
385
  "Anyone who wants to learn more about this topic should read through the "
@@ -388,51 +609,52 @@ msgstr ""
388
  "Alle som ønsker å lære mer om dette emnet bør lese gjennom følgende "
389
  "nettsteder %s og %s."
390
 
391
- #: lib/view/WpProQuiz_View_GobalSettings.php:83
392
- #: lib/view/WpProQuiz_View_GobalSettings.php:88
393
  msgid "Touch Library"
394
  msgstr "Touch bibliotek"
395
 
396
- #: lib/view/WpProQuiz_View_GobalSettings.php:92
397
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
398
  msgid "Deactivate"
399
  msgstr "Deaktivere"
400
 
401
- #: lib/view/WpProQuiz_View_GobalSettings.php:95
402
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
403
  msgstr "I versjon 0.13 et nytt Touch bibliotek ble laget for mobile enheter."
404
 
405
- #: lib/view/WpProQuiz_View_GobalSettings.php:98
406
  msgid "If you have any problems with the Touch Library, please deactivate it."
407
  msgstr ""
408
  "Hvis du har noen problemer med Touch biblioteket, må du deaktivere det."
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 støtter cors"
414
 
415
- #: lib/view/WpProQuiz_View_GobalSettings.php:117
416
  msgid "Is required only in rare cases."
417
  msgstr "Det kreves bare i sjeldne tilfeller."
418
 
419
- #: lib/view/WpProQuiz_View_GobalSettings.php:120
420
  msgid "If you have problems with the front ajax, please activate it."
421
  msgstr "Hvis du har problemer med den ajax i front, vennligst aktiver det."
422
 
423
- #: lib/view/WpProQuiz_View_GobalSettings.php:123
424
  msgid "e.g. Domain with special characters in combination with IE"
425
  msgstr "f.eks Domene med spesialtegn i kombinasjon med IE"
426
 
427
- #: lib/view/WpProQuiz_View_GobalSettings.php:132
428
- #: lib/view/WpProQuiz_View_QuestionEdit.php:381
429
- #: lib/view/WpProQuiz_View_QuizEdit.php:542
 
430
  msgid "Save"
431
  msgstr "Lagre"
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 "Importer"
438
 
@@ -453,12 +675,12 @@ msgid "Quiz name"
453
  msgstr "Quiz navn"
454
 
455
  #: lib/view/WpProQuiz_View_Import.php:44
456
- #: lib/view/WpProQuiz_View_QuizOverall.php:71
457
  msgid "Questions"
458
  msgstr "Spørsmål"
459
 
460
  #: lib/view/WpProQuiz_View_Import.php:67
461
- #: lib/view/WpProQuiz_View_QuizOverall.php:119
462
  msgid "Start import"
463
  msgstr "Start import"
464
 
@@ -467,11 +689,12 @@ msgid "Title"
467
  msgstr "Tittel"
468
 
469
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
470
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
471
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
472
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
473
- #: lib/view/WpProQuiz_View_QuizEdit.php:436
474
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
 
475
  msgid "(optional)"
476
  msgstr "(valgfritt)"
477
 
@@ -484,10 +707,10 @@ msgstr ""
484
  "tittelen stå tom, vil en tittel bli generert."
485
 
486
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
487
- #: lib/view/WpProQuiz_View_QuestionEdit.php:49
488
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
489
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
490
- #: lib/view/WpProQuiz_View_QuizEdit.php:463
491
  msgid "(required)"
492
  msgstr "(påkrevd)"
493
 
@@ -495,36 +718,37 @@ msgstr "(påkrevd)"
495
  msgid "Points for this question (Standard is 1 point)"
496
  msgstr "Poeng for dette spørsmålet (Standard er 1 poeng)"
497
 
498
- #: lib/view/WpProQuiz_View_QuestionEdit.php:34
499
- msgid "Points per correct answer"
500
- msgstr "Poeng pr riktig svar"
 
501
 
502
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
 
 
 
 
503
  msgid ""
504
- "If you enable this option, for every correct answer user will receive X "
505
- "points. Otherwise he will receive points only if the question was solved "
506
- "completely."
507
  msgstr ""
508
- "Hvis du aktiverer dette alternativet, vil for hvert riktig svar brukeren "
509
- "motta X poeng. Ellers vil han få poeng bare hvis spørsmålet ble løst helt."
510
 
511
- #: lib/view/WpProQuiz_View_QuestionEdit.php:43
512
  msgid "Show reached points in the correct- and incorrect message?"
513
  msgstr "Vis oppnådde poeng i riktig og feil melding?"
514
 
515
- #: lib/view/WpProQuiz_View_QuestionEdit.php:57
516
  msgid "Message with the correct / incorrect answer"
517
  msgstr "Melding med riktig / feil svar"
518
 
519
- #: lib/view/WpProQuiz_View_QuestionEdit.php:59
520
  msgid "Deactivated in quiz settings."
521
  msgstr "Deaktivert i quiz innstillinger."
522
 
523
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
524
  msgid "Message with the correct answer"
525
  msgstr "Melding ved riktig svar"
526
 
527
- #: lib/view/WpProQuiz_View_QuestionEdit.php:67
528
  msgid ""
529
  "This text will be visible if answered correctly. It can be used as "
530
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -534,15 +758,15 @@ msgstr ""
534
  "forklaring for komplekse spørsmål. Meldingen \"Rett \" eller \"Feil \" "
535
  "vises alltid automatisk."
536
 
537
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
538
  msgid "Same text for correct- and incorrect-message?"
539
  msgstr "Samme tekst for korrekt og ukorrekt-melding?"
540
 
541
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
542
  msgid "Message with the incorrect answer"
543
  msgstr "Melding ved feil svar"
544
 
545
- #: lib/view/WpProQuiz_View_QuestionEdit.php:84
546
  msgid ""
547
  "This text will be visible if answered incorrectly. It can be used as "
548
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -552,54 +776,47 @@ msgstr ""
552
  "forklaring for komplekse spørsmål. Meldingen \"Right \" eller \"Feil \" "
553
  "vises alltid automatisk."
554
 
555
- #: lib/view/WpProQuiz_View_QuestionEdit.php:96
556
  msgid "Here you can enter solution hint."
557
  msgstr "Her kan du legge inn løsnings tips."
558
 
559
- #: lib/view/WpProQuiz_View_QuestionEdit.php:100
560
  msgid "Activate hint for this question?"
561
  msgstr "Aktivere tips for dette spørsmål?"
562
 
563
- #: lib/view/WpProQuiz_View_QuestionEdit.php:112
564
  msgid "Answer type"
565
  msgstr "Svar type"
566
 
567
- #: lib/view/WpProQuiz_View_QuestionEdit.php:120
568
  msgid "Single choice"
569
  msgstr "Enkelt valg"
570
 
571
- #: lib/view/WpProQuiz_View_QuestionEdit.php:124
572
  msgid "Multiple choice"
573
  msgstr "Flere valg"
574
 
575
- #: lib/view/WpProQuiz_View_QuestionEdit.php:128
576
  msgid "\"Free\" choice"
577
  msgstr "\"Fritt\" valg"
578
 
579
- #: lib/view/WpProQuiz_View_QuestionEdit.php:132
580
  msgid "\"Sorting\" choice"
581
  msgstr "\"Sorterings\" valg"
582
 
583
- #: lib/view/WpProQuiz_View_QuestionEdit.php:136
584
  msgid "\"Matrix Sorting\" choice"
585
  msgstr "\"Matrix Sorterings\" valg"
586
 
587
- #: lib/view/WpProQuiz_View_QuestionEdit.php:140
588
  msgid "Cloze"
589
  msgstr "Steng"
590
 
591
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
592
  msgid "Answers"
593
  msgstr "Svar"
594
 
595
- #: lib/view/WpProQuiz_View_QuestionEdit.php:150
596
- #: lib/view/WpProQuiz_View_QuestionEdit.php:154
597
- msgid ""
598
- "correct answers (one per line) (answers will be converted to lower case)"
599
- msgstr ""
600
- "riktige svar (én per linje) (svar vil bli konvertert til små bokstaver)"
601
-
602
- #: lib/view/WpProQuiz_View_QuestionEdit.php:160
603
  msgid ""
604
  "Please sort the answers in right order with the \"Move\" - Button. The "
605
  "answers will be displayed randomly."
@@ -607,59 +824,13 @@ msgstr ""
607
  "Vennligst sorter svarene i riktig rekkefølge med \"Flytt \" - knappen. "
608
  "Svarene vises tilfeldig."
609
 
 
610
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
611
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
612
- #: lib/view/WpProQuiz_View_QuestionEdit.php:188
613
- #: lib/view/WpProQuiz_View_QuestionEdit.php:207
614
- #: lib/view/WpProQuiz_View_QuestionEdit.php:223
615
- #: lib/view/WpProQuiz_View_QuestionEdit.php:237
616
- #: lib/view/WpProQuiz_View_QuestionEdit.php:287
617
- #: lib/view/WpProQuiz_View_QuestionEdit.php:327
618
- #: lib/view/WpProQuiz_View_QuestionEdit.php:364
619
- msgid "Delete answer"
620
- msgstr "Slett svar"
621
-
622
- #: lib/view/WpProQuiz_View_QuestionEdit.php:167
623
- #: lib/view/WpProQuiz_View_QuestionEdit.php:179
624
- #: lib/view/WpProQuiz_View_QuestionEdit.php:189
625
- #: lib/view/WpProQuiz_View_QuestionEdit.php:208
626
- #: lib/view/WpProQuiz_View_QuestionEdit.php:224
627
- #: lib/view/WpProQuiz_View_QuestionEdit.php:238
628
- #: lib/view/WpProQuiz_View_QuestionEdit.php:286
629
- #: lib/view/WpProQuiz_View_QuestionEdit.php:326
630
- #: lib/view/WpProQuiz_View_QuestionEdit.php:363
631
- #: lib/view/WpProQuiz_View_QuestionOverall.php:50
632
- msgid "Move"
633
- msgstr "Flytt"
634
-
635
- #: lib/view/WpProQuiz_View_QuestionEdit.php:169
636
- #: lib/view/WpProQuiz_View_QuestionEdit.php:181
637
- #: lib/view/WpProQuiz_View_QuestionEdit.php:191
638
- #: lib/view/WpProQuiz_View_QuestionEdit.php:210
639
- #: lib/view/WpProQuiz_View_QuestionEdit.php:226
640
- #: lib/view/WpProQuiz_View_QuestionEdit.php:240
641
- #: lib/view/WpProQuiz_View_QuestionEdit.php:273
642
- #: lib/view/WpProQuiz_View_QuestionEdit.php:279
643
- #: lib/view/WpProQuiz_View_QuestionEdit.php:313
644
- #: lib/view/WpProQuiz_View_QuestionEdit.php:319
645
- #: lib/view/WpProQuiz_View_QuestionEdit.php:350
646
- #: lib/view/WpProQuiz_View_QuestionEdit.php:356
647
- msgid "Allow HTML"
648
- msgstr "Tillat HTML"
649
-
650
- #: lib/view/WpProQuiz_View_QuestionEdit.php:197
651
- #: lib/view/WpProQuiz_View_QuestionEdit.php:246
652
- #: lib/view/WpProQuiz_View_QuestionEdit.php:368
653
  msgid "Add new answer"
654
  msgstr "Legg til nytt svar"
655
 
656
- #: lib/view/WpProQuiz_View_QuestionEdit.php:205
657
- #: lib/view/WpProQuiz_View_QuestionEdit.php:221
658
- #: lib/view/WpProQuiz_View_QuestionEdit.php:235
659
- msgid "correct?"
660
- msgstr "riktig?"
661
-
662
- #: lib/view/WpProQuiz_View_QuestionEdit.php:250
663
  msgid ""
664
  "In this mode, not a list have to be sorted, but elements must be assigned to "
665
  "matching criterion."
@@ -667,13 +838,55 @@ msgstr ""
667
  "I denne modusen, ikke en liste må sorteres, men elementer må være tilordnet "
668
  "matchende kriterium."
669
 
670
- #: lib/view/WpProQuiz_View_QuestionEdit.php:257
671
- #: lib/view/WpProQuiz_View_QuestionEdit.php:297
672
- #: lib/view/WpProQuiz_View_QuestionEdit.php:334
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
673
  msgid "Criterion"
674
  msgstr "Kriterium "
675
 
676
- #: lib/view/WpProQuiz_View_QuestionEdit.php:372
 
 
 
 
 
 
677
  msgid ""
678
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
679
  "small letters will be ignored."
@@ -681,49 +894,46 @@ msgstr ""
681
  "Omslutte søkte ord med {} f.eks \"Jeg {spiller} fotball \". Store og små "
682
  "bokstaver vil bli ignorert."
683
 
 
 
 
 
 
 
 
 
 
 
 
 
684
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
685
  msgid "Questions sorted"
686
  msgstr "Spørsmål sortert"
687
 
688
- #: lib/view/WpProQuiz_View_QuestionOverall.php:28
689
- #: lib/view/WpProQuiz_View_QuizOverall.php:57
690
- msgid "Name"
691
- msgstr "Navn"
692
-
693
- #: lib/view/WpProQuiz_View_QuestionOverall.php:30
694
- #: lib/view/WpProQuiz_View_QuizOverall.php:58
695
- msgid "Action"
696
- msgstr "Handling"
697
-
698
- #: lib/view/WpProQuiz_View_QuestionOverall.php:46
699
- #: lib/view/WpProQuiz_View_QuizOverall.php:74
700
  msgid "Edit"
701
  msgstr "Rediger"
702
 
703
- #: lib/view/WpProQuiz_View_QuestionOverall.php:48
704
- #: lib/view/WpProQuiz_View_QuizOverall.php:76
705
- msgid "Delete"
706
- msgstr "Slett"
707
-
708
- #: lib/view/WpProQuiz_View_QuestionOverall.php:59
709
  #: lib/view/WpProQuiz_View_Statistics.php:84
710
  msgid "Total"
711
  msgstr "Totalt"
712
 
713
- #: lib/view/WpProQuiz_View_QuestionOverall.php:67
714
  msgid "Add question"
715
  msgstr "Legg til spørsmål"
716
 
717
- #: lib/view/WpProQuiz_View_QuestionOverall.php:68
718
  msgid "Save order"
719
  msgstr "Lagre rekkefølge"
720
 
721
- #: lib/view/WpProQuiz_View_QuestionOverall.php:69
722
- #: lib/view/WpProQuiz_View_QuestionOverall.php:74
723
  msgid "Copy questions from another Quiz"
724
  msgstr "Kopier spørsmål fra en annen Quiz"
725
 
726
- #: lib/view/WpProQuiz_View_QuestionOverall.php:75
727
  msgid ""
728
  "Here you can copy questions from another quiz into this quiz. (Multiple "
729
  "selection enabled)"
@@ -731,12 +941,7 @@ msgstr ""
731
  "Her kan du kopiere spørsmål fra en annen quiz til denne quizen. (Flervalg "
732
  "aktivert)"
733
 
734
- #: lib/view/WpProQuiz_View_QuestionOverall.php:79
735
- #: lib/view/WpProQuiz_View_Statistics.php:45
736
- msgid "Loading"
737
- msgstr "Laster"
738
-
739
- #: lib/view/WpProQuiz_View_QuestionOverall.php:87
740
  msgid "Copy questions"
741
  msgstr "Kopier spørsmål"
742
 
@@ -744,10 +949,6 @@ msgstr "Kopier spørsmål"
744
  msgid "Quiz title"
745
  msgstr "Quiz tittel"
746
 
747
- #: lib/view/WpProQuiz_View_QuizEdit.php:18
748
- msgid "Options"
749
- msgstr "Valg"
750
-
751
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
752
  msgid "Hide quiz title"
753
  msgstr "Skjul quiz tittel"
@@ -824,6 +1025,9 @@ msgstr ""
824
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
825
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
826
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
 
 
 
827
  msgid "Demo"
828
  msgstr "Demo"
829
 
@@ -873,7 +1077,7 @@ msgstr ""
873
 
874
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
875
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
876
- #: lib/view/WpProQuiz_View_QuizOverall.php:80
877
  msgid "Statistics"
878
  msgstr "Statistikk"
879
 
@@ -922,14 +1126,17 @@ msgid "This option applies to:"
922
  msgstr "Dette alternativet gjelder for:"
923
 
924
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
 
925
  msgid "all users"
926
  msgstr "alle brukere"
927
 
928
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
 
929
  msgid "registered useres only"
930
  msgstr "kun registrerte brukere"
931
 
932
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
 
933
  msgid "anonymous users only"
934
  msgstr "kun anonyme brukere"
935
 
@@ -1017,19 +1224,139 @@ msgstr "Hvor mange spørsmål som skal vises samtidig:"
1017
  msgid "in percent"
1018
  msgstr "i prosent"
1019
 
 
 
 
 
 
 
 
 
 
 
1020
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1021
  msgid "Quiz description"
1022
  msgstr "Quiz beskrivelse"
1023
 
1024
- #: lib/view/WpProQuiz_View_QuizEdit.php:466
1025
  msgid "This text will be displayed before start of the quiz."
1026
  msgstr "Denne teksten vil bli vist før starten av quiz."
1027
 
1028
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
1029
  msgid "Results text"
1030
  msgstr "Resultat tekst"
1031
 
1032
- #: lib/view/WpProQuiz_View_QuizEdit.php:477
1033
  msgid ""
1034
  "This text will be displayed at the end of the quiz (in results). (this text "
1035
  "is optional)"
@@ -1037,19 +1364,19 @@ msgstr ""
1037
  "Denne teksten vil bli vist på slutten av quizen (i resultatene). (denne "
1038
  "teksten er valgfri)"
1039
 
1040
- #: lib/view/WpProQuiz_View_QuizEdit.php:481
1041
  msgid "Activate graduation"
1042
  msgstr "Aktivere gradering"
1043
 
1044
- #: lib/view/WpProQuiz_View_QuizEdit.php:487
1045
  msgid "Hint:"
1046
  msgstr "Tips:"
1047
 
1048
- #: lib/view/WpProQuiz_View_QuizEdit.php:489
1049
  msgid "Maximal 15 levels"
1050
  msgstr "Maksimalt 15 nivå"
1051
 
1052
- #: lib/view/WpProQuiz_View_QuizEdit.php:491
1053
  #, php-format
1054
  msgid ""
1055
  "Percentages refer to the total score of the quiz. (Current total %d points "
@@ -1058,26 +1385,26 @@ msgstr ""
1058
  "Prosenttallene gjelder den totale poengsummen for quiz. (Gjeldende total %d "
1059
  "poeng i %d spørsmål."
1060
 
1061
- #: lib/view/WpProQuiz_View_QuizEdit.php:494
1062
  msgid "Values can also be mixed up"
1063
  msgstr "Verdier kan også blandes"
1064
 
1065
- #: lib/view/WpProQuiz_View_QuizEdit.php:495
1066
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1067
  msgstr "10,15% eller 10,15% tillatt (maks. to sifre etter desimaltegnet)"
1068
 
1069
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1070
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1071
  msgid "from:"
1072
  msgstr "fra:"
1073
 
1074
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1075
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1076
  msgid "percent"
1077
  msgstr "prosent"
1078
 
1079
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1080
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1081
  #, php-format
1082
  msgid ""
1083
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
@@ -1086,12 +1413,12 @@ msgstr ""
1086
  "(Vil bli vist, når resultat-prosent er >= <span class=\"resultProzent\"> %s "
1087
  "</ span>%%)"
1088
 
1089
- #: lib/view/WpProQuiz_View_QuizEdit.php:512
1090
- #: lib/view/WpProQuiz_View_QuizEdit.php:523
1091
  msgid "Delete graduation"
1092
  msgstr "Slett gradering"
1093
 
1094
- #: lib/view/WpProQuiz_View_QuizEdit.php:530
1095
  msgid "Add graduation"
1096
  msgstr "Legg til gradering"
1097
 
@@ -1111,28 +1438,37 @@ msgstr "Hvis quiz ikke fungerer i front, prøv følgende:"
1111
  msgid "Style Manager"
1112
  msgstr "Stil Manager"
1113
 
1114
- #: lib/view/WpProQuiz_View_QuizOverall.php:55
 
 
 
 
 
1115
  msgid "ID"
1116
  msgstr "ID"
1117
 
1118
- #: lib/view/WpProQuiz_View_QuizOverall.php:56
1119
  msgid "Shortcode"
1120
  msgstr "Kortkode"
1121
 
1122
- #: lib/view/WpProQuiz_View_QuizOverall.php:78
 
 
 
 
1123
  msgid "Preview"
1124
  msgstr "Forhåndsvisning"
1125
 
1126
- #: lib/view/WpProQuiz_View_QuizOverall.php:89
1127
  msgid "Add quiz"
1128
  msgstr "Legg til quiz"
1129
 
1130
- #: lib/view/WpProQuiz_View_QuizOverall.php:93
1131
- #: lib/view/WpProQuiz_View_QuizOverall.php:98
1132
  msgid "Export"
1133
  msgstr "Eksporter"
1134
 
1135
- #: lib/view/WpProQuiz_View_QuizOverall.php:99
1136
  msgid ""
1137
  "Choose the respective question, which you would like to export and press on "
1138
  "\"Start export\""
@@ -1140,15 +1476,15 @@ msgstr ""
1140
  "Velg det aktuelle spørsmålet, som du ønsker å eksportere og trykk på \"Start "
1141
  "eksport \""
1142
 
1143
- #: lib/view/WpProQuiz_View_QuizOverall.php:103
1144
  msgid "Start export"
1145
  msgstr "Start eksport"
1146
 
1147
- #: lib/view/WpProQuiz_View_QuizOverall.php:109
1148
  msgid "Import only *.wpq files from known and trusted sources."
1149
  msgstr "Importere bare *. wpq filer fra kjente og pålitelige kilder."
1150
 
1151
- #: lib/view/WpProQuiz_View_QuizOverall.php:117
1152
  #, php-format
1153
  msgid "Maximal %d MiB"
1154
  msgstr "Maks %d MiB"
@@ -1205,26 +1541,102 @@ msgstr "Oppdater"
1205
  msgid "Reset entire statistic"
1206
  msgstr "Tilbakestille hele statistikken"
1207
 
1208
- #: lib/view/WpProQuiz_View_Statistics.php:115
1209
- msgid "Filter"
1210
- msgstr "Filtrer"
1211
-
1212
  #: lib/view/WpProQuiz_View_Statistics.php:120
1213
  msgid "Show only users, who solved the quiz:"
1214
  msgstr "Vis kun brukere som løste quizen:"
1215
 
1216
- #: lib/view/WpProQuiz_View_Statistics.php:126
1217
- msgid "How many entries should be shown on one page:"
1218
- msgstr "Hvor mange oppføringer som skal vises på én side:"
1219
-
1220
- #: lib/view/WpProQuiz_View_Statistics.php:145
1221
- msgid "User"
1222
- msgstr "Bruker"
1223
-
1224
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1225
  msgid "Front"
1226
  msgstr "Front"
1227
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1228
  #~ msgid "All"
1229
  #~ msgstr "Alle"
1230
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-02-07 20:46+0100\n"
5
+ "PO-Revision-Date: 2013-02-07 20:47+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Stein Ivar Johnsen\n"
8
  "Language: Norwegian\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.5\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:98
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "Vil du virkelig slette quiz / spørsmål?"
20
 
21
+ #: lib/controller/WpProQuiz_Controller_Admin.php:99
22
  msgid "Title is not filled!"
23
  msgstr "Tittel er ikke skrevet!"
24
 
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:100
26
  msgid "No question deposited!"
27
  msgstr "Ingen spørsmål satt inn!"
28
 
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:101
30
  msgid "Correct answer was not selected!"
31
  msgstr "Riktig svar var ikke valgt!"
32
 
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:102
34
  msgid "No answer deposited!"
35
  msgstr "Ingen svar satt inn!"
36
 
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:103
38
  msgid "No quiz description filled!"
39
  msgstr "Ingen quiz beskrivelse er skrevet!"
40
 
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:104
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "De prosentvise verdiene i resultat teksten er feil."
44
 
45
+ #: lib/controller/WpProQuiz_Controller_Admin.php:105
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "Ingen nummer i feltet \"Poeng\" eller mindre enn 1"
48
 
49
+ #: lib/controller/WpProQuiz_Controller_Admin.php:106
50
+ msgid "No number in the field \"Points\" or less than 0"
51
+ msgstr "Ingen nummer i feltet \"Poeng\" eller mindre enn 0"
52
+
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:107
54
  msgid "No quiz selected"
55
  msgstr "Ingen quiz valgt"
56
 
57
+ #: lib/controller/WpProQuiz_Controller_Admin.php:108
58
  msgid "Do you really want to reset the statistic?"
59
  msgstr "Vil du virkelig tilbakestille statistikken?"
60
 
61
+ #: lib/controller/WpProQuiz_Controller_Admin.php:109
62
+ #: lib/view/WpProQuiz_View_FrontToplist.php:26
63
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
64
+ #: lib/view/WpProQuiz_View_QuizOverall.php:111
65
+ msgid "No data available"
66
+ msgstr ""
67
+
68
+ #: lib/controller/WpProQuiz_Controller_Admin.php:110
69
+ msgid "No sort element in the criterion"
70
+ msgstr ""
71
+
72
+ #: lib/controller/WpProQuiz_Controller_Admin.php:111
73
+ msgid ""
74
+ "\"Different points for every answer\" is not possible at \"Free\" choice"
75
+ msgstr ""
76
+
77
+ #: lib/controller/WpProQuiz_Controller_Front.php:44
78
+ #: lib/controller/WpProQuiz_Controller_Preview.php:15
79
+ #: lib/view/WpProQuiz_View_AdminToplist.php:47
80
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:393
81
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:93
82
+ #: lib/view/WpProQuiz_View_Statistics.php:45
83
+ msgid "Loading"
84
+ msgstr "Laster"
85
+
86
  #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
87
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
88
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:43
89
  #: lib/controller/WpProQuiz_Controller_Question.php:51
90
  #: lib/controller/WpProQuiz_Controller_Question.php:128
91
  #: lib/controller/WpProQuiz_Controller_Question.php:143
92
+ #: lib/controller/WpProQuiz_Controller_Question.php:196
93
+ #: lib/controller/WpProQuiz_Controller_Question.php:342
94
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:175
95
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:189
96
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:249
97
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:297
98
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:163
99
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:76
100
  msgid "You do not have sufficient permissions to access this page."
101
  msgstr ""
102
  "Du har ikke tilstrekkelige tillatelser til å få tilgang til denne siden."
106
  msgstr "Innstillingene er lagret"
107
 
108
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
109
+ #: lib/helper/WpProQuiz_Helper_Import.php:59
110
+ #: lib/helper/WpProQuiz_Helper_Import.php:68
111
+ #: lib/helper/WpProQuiz_Helper_Import.php:75
112
  msgid "File cannot be processed"
113
  msgstr "Filen kan ikke behandles"
114
 
115
  #: lib/controller/WpProQuiz_Controller_Question.php:9
116
  #: lib/controller/WpProQuiz_Controller_Question.php:19
117
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:201
118
  msgid "Quiz not found"
119
  msgstr "Fant ikke quiz"
120
 
126
  msgid "Edit question"
127
  msgstr "Rediger spørsmål"
128
 
129
+ #: lib/controller/WpProQuiz_Controller_Question.php:155
130
  msgid "Question not found"
131
  msgstr "Fant ikke spørsmål"
132
 
133
+ #: lib/controller/WpProQuiz_Controller_Question.php:172
134
+ #: lib/controller/WpProQuiz_Controller_Question.php:224
135
  #, php-format
136
  msgid "Question: %d"
137
  msgstr "Spørsmål: %d"
138
 
139
+ #: lib/controller/WpProQuiz_Controller_Question.php:180
140
  msgid "Question edited"
141
  msgstr "Spørsmål redigert"
142
 
143
+ #: lib/controller/WpProQuiz_Controller_Question.php:200
144
  msgid "New question"
145
  msgstr "Nytt spørsmål"
146
 
147
+ #: lib/controller/WpProQuiz_Controller_Question.php:233
148
  msgid "Question added"
149
  msgstr "Spørsmål lagt til"
150
 
151
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:196
152
  #: lib/view/WpProQuiz_View_QuestionOverall.php:21
153
  msgid "Edit quiz"
154
  msgstr "Rediger quiz"
155
 
156
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:216
157
  msgid "Quiz edited"
158
  msgstr "Quiz redigert"
159
 
160
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:233
161
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:281
162
  msgid "Quiz title or quiz description are not filled"
163
  msgstr "Quiz tittel eller quiz beskrivelse er ikke skrevet"
164
 
165
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:253
166
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:267
167
  msgid "Create quiz"
168
  msgstr "Lag quiz"
169
 
170
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:314
171
  msgid "Quiz deleted"
172
  msgstr "Quiz slettet"
173
 
174
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:136
175
+ msgid "You signing up successfully."
176
+ msgstr ""
177
+
178
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:144
179
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:148
180
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:165
181
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:169
182
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:175
183
+ msgid "An error has occurred."
184
+ msgstr ""
185
+
186
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:186
187
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:195
188
+ msgid "You can not enter again."
189
+ msgstr ""
190
+
191
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:199
192
+ msgid "No name or e-mail entered."
193
+ msgstr ""
194
+
195
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:203
196
+ msgid "Your name can not exceed 15 characters."
197
+ msgstr ""
198
+
199
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:211
200
+ msgid "You entered wrong captcha code."
201
+ msgstr ""
202
+
203
  #: lib/helper/WpProQuiz_Helper_Import.php:9
204
  msgid "File was not uploaded"
205
  msgstr "Filen ble ikke lastet opp"
208
  msgid "File have wrong format"
209
  msgstr "Fil har feil format"
210
 
211
+ #: lib/helper/WpProQuiz_Helper_Import.php:45
212
+ msgid "File is not compatible with the current version"
213
+ msgstr ""
214
+
215
  #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
216
  msgid "The user completed a quiz."
217
  msgstr "Brukeren fullførte en quiz."
218
 
219
+ #: lib/view/WpProQuiz_View_AdminToplist.php:7
220
+ #: lib/view/WpProQuiz_View_FrontToplist.php:8
221
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
222
+ #: lib/view/WpProQuiz_View_QuizEdit.php:534
223
+ #: lib/view/WpProQuiz_View_QuizOverall.php:96
224
+ msgid "Leaderboard"
225
+ msgstr ""
226
+
227
+ #: lib/view/WpProQuiz_View_AdminToplist.php:8
228
+ #: lib/view/WpProQuiz_View_GobalSettings.php:21
229
+ #: lib/view/WpProQuiz_View_Import.php:22
230
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
231
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
232
+ #: lib/view/WpProQuiz_View_QuizEdit.php:8
233
+ #: lib/view/WpProQuiz_View_Statistics.php:18
234
+ #: lib/view/WpProQuiz_View_StyleManager.php:11
235
+ msgid "back to overview"
236
+ msgstr "tilbake til oversikten"
237
+
238
+ #: lib/view/WpProQuiz_View_AdminToplist.php:11
239
+ #: lib/view/WpProQuiz_View_Statistics.php:115
240
+ msgid "Filter"
241
+ msgstr "Filtrer"
242
+
243
+ #: lib/view/WpProQuiz_View_AdminToplist.php:16
244
+ msgid "Sort by:"
245
+ msgstr ""
246
+
247
+ #: lib/view/WpProQuiz_View_AdminToplist.php:18
248
+ #: lib/view/WpProQuiz_View_QuizEdit.php:600
249
+ msgid "best user"
250
+ msgstr ""
251
+
252
+ #: lib/view/WpProQuiz_View_AdminToplist.php:19
253
+ #: lib/view/WpProQuiz_View_QuizEdit.php:604
254
+ msgid "newest entry"
255
+ msgstr ""
256
+
257
+ #: lib/view/WpProQuiz_View_AdminToplist.php:20
258
+ #: lib/view/WpProQuiz_View_QuizEdit.php:608
259
+ msgid "oldest entry"
260
+ msgstr ""
261
+
262
+ #: lib/view/WpProQuiz_View_AdminToplist.php:26
263
+ #: lib/view/WpProQuiz_View_Statistics.php:126
264
+ msgid "How many entries should be shown on one page:"
265
+ msgstr "Hvor mange oppføringer som skal vises på én side:"
266
+
267
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
268
+ #: lib/view/WpProQuiz_View_AdminToplist.php:57
269
+ msgid "Type"
270
+ msgstr ""
271
+
272
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
273
+ msgid "UR = unregistered user, R = registered user"
274
+ msgstr ""
275
+
276
+ #: lib/view/WpProQuiz_View_AdminToplist.php:55
277
+ #: lib/view/WpProQuiz_View_Statistics.php:145
278
+ msgid "User"
279
+ msgstr "Bruker"
280
+
281
+ #: lib/view/WpProQuiz_View_AdminToplist.php:56
282
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:401
283
+ msgid "E-Mail"
284
+ msgstr ""
285
+
286
+ #: lib/view/WpProQuiz_View_AdminToplist.php:58
287
+ #: lib/view/WpProQuiz_View_FrontToplist.php:16
288
+ msgid "Entered on"
289
+ msgstr ""
290
+
291
+ #: lib/view/WpProQuiz_View_AdminToplist.php:59
292
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:283
293
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:301
294
+ #: lib/view/WpProQuiz_View_FrontToplist.php:17
295
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
296
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
297
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:223
298
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:260
299
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
300
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
301
+ #: lib/view/WpProQuiz_View_Statistics.php:54
302
+ #: lib/view/WpProQuiz_View_Statistics.php:146
303
+ msgid "Points"
304
+ msgstr "Poeng"
305
+
306
+ #: lib/view/WpProQuiz_View_AdminToplist.php:60
307
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:64
308
+ #: lib/view/WpProQuiz_View_Statistics.php:59
309
+ #: lib/view/WpProQuiz_View_Statistics.php:150
310
+ msgid "Results"
311
+ msgstr "Resultat"
312
+
313
+ #: lib/view/WpProQuiz_View_AdminToplist.php:79
314
+ msgid "Action"
315
+ msgstr "Handling"
316
+
317
+ #: lib/view/WpProQuiz_View_AdminToplist.php:80
318
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:54
319
+ #: lib/view/WpProQuiz_View_QuizOverall.php:84
320
+ msgid "Delete"
321
+ msgstr "Slett"
322
+
323
+ #: lib/view/WpProQuiz_View_AdminToplist.php:82
324
+ msgid "Apply"
325
+ msgstr ""
326
+
327
+ #: lib/view/WpProQuiz_View_AdminToplist.php:83
328
+ msgid "Delete all entries"
329
+ msgstr ""
330
+
331
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:49
332
  msgid "Start quiz"
333
  msgstr "Start quiz"
334
 
335
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:54
336
  msgid ""
337
  "You have already completed the quiz before. Hence you can not start it again."
338
  msgstr ""
339
  "Du har allerede gjennomført quizen før. Derfor kan du ikke starte den på "
340
  "nytt."
341
 
342
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:59
343
+ msgid "You have to finish following quiz, to start this quiz:"
344
+ msgstr ""
 
 
345
 
346
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:66
347
  #, php-format
348
  msgid "%s of %s questions answered correctly"
349
  msgstr "%s av %s spørsmål rett besvart"
350
 
351
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:69
352
  msgid "Your time: <span></span>"
353
  msgstr "Din tid: <span></span>"
354
 
355
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:72
356
  msgid "Time has elapsed"
357
  msgstr "Tiden har gått"
358
 
359
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:75
360
+ #, php-format
361
+ msgid "You have reached %s of %s points, (%s)"
362
+ msgstr "Du har nådd %s av %s poeng, (%s)"
363
+
364
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:83
365
+ msgid "Average score"
366
+ msgstr ""
367
+
368
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:90
369
+ msgid "Your score"
370
+ msgstr ""
371
 
372
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:122
373
  msgid "Restart quiz"
374
  msgstr "Restart quiz"
375
 
376
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:124
377
  msgid "View questions"
378
  msgstr "Vis spørsmål"
379
 
380
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:127
381
+ msgid "Show leaderboard"
382
+ msgstr ""
383
+
384
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:138
385
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
386
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
387
  msgid "Time limit"
388
  msgstr "Tidsfrist"
389
 
390
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:162
391
  #, php-format
392
  msgid "Question %s of %s"
393
  msgstr "Spørsmål %s av %s"
394
 
395
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:165
396
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
397
  #: lib/view/WpProQuiz_View_Statistics.php:53
398
  msgid "Question"
399
  msgstr "Spørsmål"
400
 
401
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:169
402
  #, php-format
403
  msgid "%d points"
404
  msgstr "%d poeng"
405
 
406
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:179
407
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:252
 
 
408
  msgid "Sort elements"
409
  msgstr "Sorter elementer"
410
 
411
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:281
412
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:288
413
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:211
414
  #: lib/view/WpProQuiz_View_Statistics.php:55
415
  #: lib/view/WpProQuiz_View_Statistics.php:147
416
  msgid "Correct"
417
  msgstr "Riktig"
418
 
419
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:299
420
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:306
 
 
 
 
 
 
 
 
 
 
421
  #: lib/view/WpProQuiz_View_Statistics.php:56
422
  #: lib/view/WpProQuiz_View_Statistics.php:148
423
  msgid "Incorrect"
424
  msgstr "Feil"
425
 
426
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:327
427
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:336
428
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
429
  msgid "Hint"
430
  msgstr "Tips"
431
 
432
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:333
433
  msgid "Check"
434
  msgstr "Sjekk"
435
 
436
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:334
437
  msgid "Back"
438
  msgstr "Tilbake"
439
 
440
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:338
441
  msgid "Next exercise"
442
  msgstr "Neste spørsmål"
443
 
444
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:351
445
  msgid "Finish quiz"
446
  msgstr "Fullfør quiz"
447
 
448
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:391
449
+ msgid "Your result entered into leaderboard"
450
+ msgstr ""
451
+
452
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:398
453
+ #: lib/view/WpProQuiz_View_FrontToplist.php:15
454
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
455
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
456
+ msgid "Name"
457
+ msgstr "Navn"
458
+
459
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:406
460
+ msgid "Captcha"
461
+ msgstr ""
462
+
463
+ #: lib/view/WpProQuiz_View_FrontToplist.php:11
464
+ #, php-format
465
+ msgid "maximum of %s points"
466
+ msgstr ""
467
+
468
+ #: lib/view/WpProQuiz_View_FrontToplist.php:14
469
+ msgid "Pos."
470
+ msgstr ""
471
+
472
+ #: lib/view/WpProQuiz_View_FrontToplist.php:18
473
+ msgid "Result"
474
+ msgstr ""
475
+
476
+ #: lib/view/WpProQuiz_View_FrontToplist.php:23
477
+ msgid "Table is loading"
478
+ msgstr ""
479
+
480
  #: lib/view/WpProQuiz_View_GobalSettings.php:7
481
  msgid "to activate"
482
  msgstr "for å aktivere"
486
  msgstr "for å ikke aktivere"
487
 
488
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
489
+ #: lib/view/WpProQuiz_View_GobalSettings.php:24
490
+ #: lib/view/WpProQuiz_View_GobalSettings.php:31
491
  #: lib/view/WpProQuiz_View_QuizOverall.php:48
492
+ msgid "Global settings"
493
+ msgstr ""
494
 
495
  #: lib/view/WpProQuiz_View_GobalSettings.php:16
496
+ #: lib/view/WpProQuiz_View_WpqSupport.php:50
497
  msgid "Please note"
498
  msgstr "Vær oppmerksom på"
499
 
504
  "Disse innstillingene skal bare settes i tilfelle av problemer med Wp-Pro-"
505
  "Quiz."
506
 
507
+ #: lib/view/WpProQuiz_View_GobalSettings.php:25
508
+ #: lib/view/WpProQuiz_View_GobalSettings.php:78
509
+ msgid "Settings in case of problems"
510
+ msgstr "Innstillinger i tilfelle problemer"
 
 
 
 
 
511
 
512
+ #: lib/view/WpProQuiz_View_GobalSettings.php:37
513
+ #: lib/view/WpProQuiz_View_GobalSettings.php:42
514
+ msgid "Leaderboard time format"
515
+ msgstr ""
516
+
517
+ #: lib/view/WpProQuiz_View_GobalSettings.php:64
518
+ msgid "Custom"
519
+ msgstr ""
520
+
521
+ #: lib/view/WpProQuiz_View_GobalSettings.php:68
522
+ msgid "Documentation on date and time formatting"
523
+ msgstr ""
524
+
525
+ #: lib/view/WpProQuiz_View_GobalSettings.php:84
526
+ #: lib/view/WpProQuiz_View_GobalSettings.php:89
527
  msgid "Automatically add [raw] shortcode"
528
  msgstr "Automatisk legge til [raw] kortkode"
529
 
530
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
531
+ #: lib/view/WpProQuiz_View_GobalSettings.php:115
532
+ #: lib/view/WpProQuiz_View_GobalSettings.php:167
533
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
534
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
535
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
544
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
545
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
546
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
547
+ #: lib/view/WpProQuiz_View_QuizEdit.php:442
548
+ #: lib/view/WpProQuiz_View_QuizEdit.php:467
549
+ #: lib/view/WpProQuiz_View_QuizEdit.php:539
550
+ #: lib/view/WpProQuiz_View_QuizEdit.php:572
551
+ #: lib/view/WpProQuiz_View_QuizEdit.php:620
552
+ #: lib/view/WpProQuiz_View_QuizEdit.php:696
553
  msgid "Activate"
554
  msgstr "Aktivere"
555
 
556
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
557
  #, php-format
558
  msgid "It is recommended %s this option on your system."
559
  msgstr "Det anbefales %s dette alternativet på systemet ditt."
560
 
561
+ #: lib/view/WpProQuiz_View_GobalSettings.php:96
562
  msgid ""
563
  "If this option is activated, a [raw] shortcode is automatically set around "
564
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
566
  "Hvis dette alternativet er aktivert, [raw] kortkode blir automatisk satt "
567
  "rundt WpProQuiz kortkode ([WpProQuiz X]) i [raw] [WpProQuiz X] [/ raw]"
568
 
569
+ #: lib/view/WpProQuiz_View_GobalSettings.php:99
570
  #: lib/view/WpProQuiz_View_QuizOverall.php:42
571
  msgid ""
572
  "Own themes changes internal order of filters, what causes the problems. "
575
  "Egne temaer endrer interne rekkefølgen på filtrene, noe som forårsaker "
576
  "problemer. Med ekstra kortkode [raw] blir dette forhindret."
577
 
578
+ #: lib/view/WpProQuiz_View_GobalSettings.php:106
579
+ #: lib/view/WpProQuiz_View_GobalSettings.php:111
580
  msgid "Do not load the Javascript-files in the footer"
581
  msgstr "Ikke last JavaScript-filer i bunnteksten"
582
 
583
+ #: lib/view/WpProQuiz_View_GobalSettings.php:118
584
  msgid ""
585
  "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
586
  "when they are really needed."
588
  "Vanligvis er alle WpProQuiz-Javascript filene lastet i bunnteksten og bare "
589
  "når de virkelig trengs."
590
 
591
+ #: lib/view/WpProQuiz_View_GobalSettings.php:121
592
  msgid "In very old Wordpress themes this can lead to problems."
593
  msgstr "I svært gamle Wordpress temaer kan dette føre til problemer."
594
 
595
+ #: lib/view/WpProQuiz_View_GobalSettings.php:124
596
  msgid ""
597
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
598
  "the header even if they are not needed."
600
  "Hvis du aktiverer dette alternativet, blir alle WpProQuiz-Javascript filer "
601
  "lastes inn i toppteksten, selv om de ikke er nødvendig."
602
 
603
+ #: lib/view/WpProQuiz_View_GobalSettings.php:127
604
  #, php-format
605
  msgid ""
606
  "Anyone who wants to learn more about this topic should read through the "
609
  "Alle som ønsker å lære mer om dette emnet bør lese gjennom følgende "
610
  "nettsteder %s og %s."
611
 
612
+ #: lib/view/WpProQuiz_View_GobalSettings.php:136
613
+ #: lib/view/WpProQuiz_View_GobalSettings.php:141
614
  msgid "Touch Library"
615
  msgstr "Touch bibliotek"
616
 
617
+ #: lib/view/WpProQuiz_View_GobalSettings.php:145
618
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
619
  msgid "Deactivate"
620
  msgstr "Deaktivere"
621
 
622
+ #: lib/view/WpProQuiz_View_GobalSettings.php:148
623
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
624
  msgstr "I versjon 0.13 et nytt Touch bibliotek ble laget for mobile enheter."
625
 
626
+ #: lib/view/WpProQuiz_View_GobalSettings.php:151
627
  msgid "If you have any problems with the Touch Library, please deactivate it."
628
  msgstr ""
629
  "Hvis du har noen problemer med Touch biblioteket, må du deaktivere det."
630
 
631
+ #: lib/view/WpProQuiz_View_GobalSettings.php:158
632
+ #: lib/view/WpProQuiz_View_GobalSettings.php:163
633
  msgid "jQuery support cors"
634
  msgstr "jQuery støtter cors"
635
 
636
+ #: lib/view/WpProQuiz_View_GobalSettings.php:170
637
  msgid "Is required only in rare cases."
638
  msgstr "Det kreves bare i sjeldne tilfeller."
639
 
640
+ #: lib/view/WpProQuiz_View_GobalSettings.php:173
641
  msgid "If you have problems with the front ajax, please activate it."
642
  msgstr "Hvis du har problemer med den ajax i front, vennligst aktiver det."
643
 
644
+ #: lib/view/WpProQuiz_View_GobalSettings.php:176
645
  msgid "e.g. Domain with special characters in combination with IE"
646
  msgstr "f.eks Domene med spesialtegn i kombinasjon med IE"
647
 
648
+ #: lib/view/WpProQuiz_View_GobalSettings.php:185
649
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:185
650
+ #: lib/view/WpProQuiz_View_QuizEdit.php:790
651
+ #: lib/view/WpProQuiz_View_WpqSupport.php:45
652
  msgid "Save"
653
  msgstr "Lagre"
654
 
655
  #: lib/view/WpProQuiz_View_Import.php:21
656
+ #: lib/view/WpProQuiz_View_QuizOverall.php:120
657
+ #: lib/view/WpProQuiz_View_QuizOverall.php:137
658
  msgid "Import"
659
  msgstr "Importer"
660
 
675
  msgstr "Quiz navn"
676
 
677
  #: lib/view/WpProQuiz_View_Import.php:44
678
+ #: lib/view/WpProQuiz_View_QuizOverall.php:75
679
  msgid "Questions"
680
  msgstr "Spørsmål"
681
 
682
  #: lib/view/WpProQuiz_View_Import.php:67
683
+ #: lib/view/WpProQuiz_View_QuizOverall.php:148
684
  msgid "Start import"
685
  msgstr "Start import"
686
 
689
  msgstr "Tittel"
690
 
691
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
692
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
693
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
694
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
695
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
696
+ #: lib/view/WpProQuiz_View_QuizEdit.php:684
697
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
698
  msgid "(optional)"
699
  msgstr "(valgfritt)"
700
 
707
  "tittelen stå tom, vil en tittel bli generert."
708
 
709
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
710
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
711
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
712
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
713
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
714
  msgid "(required)"
715
  msgstr "(påkrevd)"
716
 
718
  msgid "Points for this question (Standard is 1 point)"
719
  msgstr "Poeng for dette spørsmålet (Standard er 1 poeng)"
720
 
721
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:31
722
+ msgid ""
723
+ "This points will be rewarded, only if the user closes the question correctly."
724
+ msgstr ""
725
 
726
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
727
+ msgid "Different points for each answer"
728
+ msgstr ""
729
+
730
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:40
731
  msgid ""
732
+ "If you enable this option, you can enter different points for every answer."
 
 
733
  msgstr ""
 
 
734
 
735
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:46
736
  msgid "Show reached points in the correct- and incorrect message?"
737
  msgstr "Vis oppnådde poeng i riktig og feil melding?"
738
 
739
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
740
  msgid "Message with the correct / incorrect answer"
741
  msgstr "Melding med riktig / feil svar"
742
 
743
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:62
744
  msgid "Deactivated in quiz settings."
745
  msgstr "Deaktivert i quiz innstillinger."
746
 
747
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
748
  msgid "Message with the correct answer"
749
  msgstr "Melding ved riktig svar"
750
 
751
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:70
752
  msgid ""
753
  "This text will be visible if answered correctly. It can be used as "
754
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
758
  "forklaring for komplekse spørsmål. Meldingen \"Rett \" eller \"Feil \" "
759
  "vises alltid automatisk."
760
 
761
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
762
  msgid "Same text for correct- and incorrect-message?"
763
  msgstr "Samme tekst for korrekt og ukorrekt-melding?"
764
 
765
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
766
  msgid "Message with the incorrect answer"
767
  msgstr "Melding ved feil svar"
768
 
769
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:87
770
  msgid ""
771
  "This text will be visible if answered incorrectly. It can be used as "
772
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
776
  "forklaring for komplekse spørsmål. Meldingen \"Right \" eller \"Feil \" "
777
  "vises alltid automatisk."
778
 
779
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:99
780
  msgid "Here you can enter solution hint."
781
  msgstr "Her kan du legge inn løsnings tips."
782
 
783
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:103
784
  msgid "Activate hint for this question?"
785
  msgstr "Aktivere tips for dette spørsmål?"
786
 
787
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:115
788
  msgid "Answer type"
789
  msgstr "Svar type"
790
 
791
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:123
792
  msgid "Single choice"
793
  msgstr "Enkelt valg"
794
 
795
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:127
796
  msgid "Multiple choice"
797
  msgstr "Flere valg"
798
 
799
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:131
800
  msgid "\"Free\" choice"
801
  msgstr "\"Fritt\" valg"
802
 
803
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:135
804
  msgid "\"Sorting\" choice"
805
  msgstr "\"Sorterings\" valg"
806
 
807
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:139
808
  msgid "\"Matrix Sorting\" choice"
809
  msgstr "\"Matrix Sorterings\" valg"
810
 
811
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:143
812
  msgid "Cloze"
813
  msgstr "Steng"
814
 
815
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
816
  msgid "Answers"
817
  msgstr "Svar"
818
 
819
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:155
 
 
 
 
 
 
 
820
  msgid ""
821
  "Please sort the answers in right order with the \"Move\" - Button. The "
822
  "answers will be displayed randomly."
824
  "Vennligst sorter svarene i riktig rekkefølge med \"Flytt \" - knappen. "
825
  "Svarene vises tilfeldig."
826
 
827
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:160
828
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
829
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
830
  msgid "Add new answer"
831
  msgstr "Legg til nytt svar"
832
 
833
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
 
 
 
 
 
 
834
  msgid ""
835
  "In this mode, not a list have to be sorted, but elements must be assigned to "
836
  "matching criterion."
838
  "I denne modusen, ikke en liste må sorteres, men elementer må være tilordnet "
839
  "matchende kriterium."
840
 
841
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
842
+ msgid ""
843
+ "You can create sort elements with empty criteria, which can't be assigned by "
844
+ "user."
845
+ msgstr ""
846
+
847
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:201
848
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
849
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:302
850
+ #: lib/view/WpProQuiz_View_QuizEdit.php:18
851
+ msgid "Options"
852
+ msgstr "Valg"
853
+
854
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
855
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:303
856
+ msgid "Answer"
857
+ msgstr ""
858
+
859
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:217
860
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:275
861
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:281
862
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:312
863
+ msgid "Allow HTML"
864
+ msgstr "Tillat HTML"
865
+
866
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:234
867
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:288
868
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:329
869
+ msgid "Delete answer"
870
+ msgstr "Slett svar"
871
+
872
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:235
873
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
874
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:330
875
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:58
876
+ msgid "Move"
877
+ msgstr "Flytt"
878
+
879
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:251
880
  msgid "Criterion"
881
  msgstr "Kriterium "
882
 
883
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:341
884
+ msgid ""
885
+ "correct answers (one per line) (answers will be converted to lower case)"
886
+ msgstr ""
887
+ "riktige svar (én per linje) (svar vil bli konvertert til små bokstaver)"
888
+
889
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:354
890
  msgid ""
891
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
892
  "small letters will be ignored."
894
  "Omslutte søkte ord med {} f.eks \"Jeg {spiller} fotball \". Store og små "
895
  "bokstaver vil bli ignorert."
896
 
897
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:357
898
+ msgid ""
899
+ "If mode \"Different points for every answer\" is activated, you can assign "
900
+ "points with |POINTS. Otherwise 1 point will be awarded for every answer."
901
+ msgstr ""
902
+
903
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
904
+ msgid ""
905
+ "e.g. \"I {play} soccer, with a {ball|3}\" - \"play\" gives 1 point and \"ball"
906
+ "\" 3 points."
907
+ msgstr ""
908
+
909
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
910
  msgid "Questions sorted"
911
  msgstr "Spørsmål sortert"
912
 
913
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
914
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
 
 
 
 
 
 
 
 
 
 
915
  msgid "Edit"
916
  msgstr "Rediger"
917
 
918
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
 
 
 
 
 
919
  #: lib/view/WpProQuiz_View_Statistics.php:84
920
  msgid "Total"
921
  msgstr "Totalt"
922
 
923
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:81
924
  msgid "Add question"
925
  msgstr "Legg til spørsmål"
926
 
927
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:82
928
  msgid "Save order"
929
  msgstr "Lagre rekkefølge"
930
 
931
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:83
932
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:88
933
  msgid "Copy questions from another Quiz"
934
  msgstr "Kopier spørsmål fra en annen Quiz"
935
 
936
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:89
937
  msgid ""
938
  "Here you can copy questions from another quiz into this quiz. (Multiple "
939
  "selection enabled)"
941
  "Her kan du kopiere spørsmål fra en annen quiz til denne quizen. (Flervalg "
942
  "aktivert)"
943
 
944
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:101
 
 
 
 
 
945
  msgid "Copy questions"
946
  msgstr "Kopier spørsmål"
947
 
949
  msgid "Quiz title"
950
  msgstr "Quiz tittel"
951
 
 
 
 
 
952
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
953
  msgid "Hide quiz title"
954
  msgstr "Skjul quiz tittel"
1025
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
1026
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
1027
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
1028
+ #: lib/view/WpProQuiz_View_QuizEdit.php:448
1029
+ #: lib/view/WpProQuiz_View_QuizEdit.php:661
1030
+ #: lib/view/WpProQuiz_View_QuizEdit.php:671
1031
  msgid "Demo"
1032
  msgstr "Demo"
1033
 
1077
 
1078
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
1079
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
1080
+ #: lib/view/WpProQuiz_View_QuizOverall.php:92
1081
  msgid "Statistics"
1082
  msgstr "Statistikk"
1083
 
1126
  msgstr "Dette alternativet gjelder for:"
1127
 
1128
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
1129
+ #: lib/view/WpProQuiz_View_QuizEdit.php:550
1130
  msgid "all users"
1131
  msgstr "alle brukere"
1132
 
1133
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
1134
+ #: lib/view/WpProQuiz_View_QuizEdit.php:554
1135
  msgid "registered useres only"
1136
  msgstr "kun registrerte brukere"
1137
 
1138
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
1139
+ #: lib/view/WpProQuiz_View_QuizEdit.php:558
1140
  msgid "anonymous users only"
1141
  msgstr "kun anonyme brukere"
1142
 
1224
  msgid "in percent"
1225
  msgstr "i prosent"
1226
 
1227
+ #: lib/view/WpProQuiz_View_QuizEdit.php:433
1228
+ #: lib/view/WpProQuiz_View_QuizEdit.php:438
1229
+ msgid "Show average points"
1230
+ msgstr ""
1231
+
1232
+ #: lib/view/WpProQuiz_View_QuizEdit.php:445
1233
+ msgid "Statistics-function must be enabled."
1234
+ msgstr ""
1235
+
1236
+ #: lib/view/WpProQuiz_View_QuizEdit.php:458
1237
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
1238
+ msgid "Prerequisites"
1239
+ msgstr ""
1240
+
1241
+ #: lib/view/WpProQuiz_View_QuizEdit.php:470
1242
+ msgid ""
1243
+ "If you enable this option, you can choose quiz, which user have to finish "
1244
+ "before he can start this quiz."
1245
+ msgstr ""
1246
+
1247
+ #: lib/view/WpProQuiz_View_QuizEdit.php:473
1248
+ msgid ""
1249
+ "In all selected quizzes statistic function have to be active. If it is not "
1250
+ "it will be activated automatically."
1251
+ msgstr ""
1252
+
1253
+ #: lib/view/WpProQuiz_View_QuizEdit.php:478
1254
+ msgid "Quiz"
1255
+ msgstr ""
1256
+
1257
+ #: lib/view/WpProQuiz_View_QuizEdit.php:480
1258
+ msgid "Prerequisites (This quiz have to be finished)"
1259
+ msgstr ""
1260
+
1261
+ #: lib/view/WpProQuiz_View_QuizEdit.php:525
1262
+ msgid ""
1263
+ "The leaderboard allows users to enter results in public list and to share "
1264
+ "the result this way."
1265
+ msgstr ""
1266
+
1267
+ #: lib/view/WpProQuiz_View_QuizEdit.php:528
1268
+ msgid "The leaderboard works independent from internal statistics function."
1269
+ msgstr ""
1270
+
1271
+ #: lib/view/WpProQuiz_View_QuizEdit.php:545
1272
+ msgid "Who can sign up to the list"
1273
+ msgstr ""
1274
+
1275
+ #: lib/view/WpProQuiz_View_QuizEdit.php:561
1276
+ msgid ""
1277
+ "Not registered users have to enter name and e-mail (e-mail won't be "
1278
+ "displayed)"
1279
+ msgstr ""
1280
+
1281
+ #: lib/view/WpProQuiz_View_QuizEdit.php:567
1282
+ msgid "display captcha"
1283
+ msgstr ""
1284
+
1285
+ #: lib/view/WpProQuiz_View_QuizEdit.php:575
1286
+ msgid ""
1287
+ "If you enable this option, additional captcha will be displayed for users "
1288
+ "who are not registered."
1289
+ msgstr ""
1290
+
1291
+ #: lib/view/WpProQuiz_View_QuizEdit.php:578
1292
+ msgid "This option requires additional plugin:"
1293
+ msgstr ""
1294
+
1295
+ #: lib/view/WpProQuiz_View_QuizEdit.php:583
1296
+ msgid "Plugin has been detected."
1297
+ msgstr ""
1298
+
1299
+ #: lib/view/WpProQuiz_View_QuizEdit.php:587
1300
+ msgid "Plugin is not installed."
1301
+ msgstr ""
1302
+
1303
+ #: lib/view/WpProQuiz_View_QuizEdit.php:595
1304
+ msgid "Sort list by"
1305
+ msgstr ""
1306
+
1307
+ #: lib/view/WpProQuiz_View_QuizEdit.php:614
1308
+ msgid "Users can apply multiple times"
1309
+ msgstr ""
1310
+
1311
+ #: lib/view/WpProQuiz_View_QuizEdit.php:625
1312
+ msgid "User can apply after:"
1313
+ msgstr ""
1314
+
1315
+ #: lib/view/WpProQuiz_View_QuizEdit.php:627
1316
+ msgid "minute"
1317
+ msgstr ""
1318
+
1319
+ #: lib/view/WpProQuiz_View_QuizEdit.php:634
1320
+ msgid "How many entries should be displayed"
1321
+ msgstr ""
1322
+
1323
+ #: lib/view/WpProQuiz_View_QuizEdit.php:640
1324
+ msgid "Entries"
1325
+ msgstr ""
1326
+
1327
+ #: lib/view/WpProQuiz_View_QuizEdit.php:647
1328
+ msgid "Automatically display leaderboard in quiz result"
1329
+ msgstr ""
1330
+
1331
+ #: lib/view/WpProQuiz_View_QuizEdit.php:651
1332
+ msgid "Where should leaderboard be displayed:"
1333
+ msgstr ""
1334
+
1335
+ #: lib/view/WpProQuiz_View_QuizEdit.php:654
1336
+ msgid "don't display"
1337
+ msgstr ""
1338
+
1339
+ #: lib/view/WpProQuiz_View_QuizEdit.php:658
1340
+ msgid "below the \"result text\""
1341
+ msgstr ""
1342
+
1343
+ #: lib/view/WpProQuiz_View_QuizEdit.php:668
1344
+ msgid "in a button"
1345
+ msgstr ""
1346
+
1347
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
1348
  msgid "Quiz description"
1349
  msgstr "Quiz beskrivelse"
1350
 
1351
+ #: lib/view/WpProQuiz_View_QuizEdit.php:714
1352
  msgid "This text will be displayed before start of the quiz."
1353
  msgstr "Denne teksten vil bli vist før starten av quiz."
1354
 
1355
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
1356
  msgid "Results text"
1357
  msgstr "Resultat tekst"
1358
 
1359
+ #: lib/view/WpProQuiz_View_QuizEdit.php:725
1360
  msgid ""
1361
  "This text will be displayed at the end of the quiz (in results). (this text "
1362
  "is optional)"
1364
  "Denne teksten vil bli vist på slutten av quizen (i resultatene). (denne "
1365
  "teksten er valgfri)"
1366
 
1367
+ #: lib/view/WpProQuiz_View_QuizEdit.php:729
1368
  msgid "Activate graduation"
1369
  msgstr "Aktivere gradering"
1370
 
1371
+ #: lib/view/WpProQuiz_View_QuizEdit.php:735
1372
  msgid "Hint:"
1373
  msgstr "Tips:"
1374
 
1375
+ #: lib/view/WpProQuiz_View_QuizEdit.php:737
1376
  msgid "Maximal 15 levels"
1377
  msgstr "Maksimalt 15 nivå"
1378
 
1379
+ #: lib/view/WpProQuiz_View_QuizEdit.php:739
1380
  #, php-format
1381
  msgid ""
1382
  "Percentages refer to the total score of the quiz. (Current total %d points "
1385
  "Prosenttallene gjelder den totale poengsummen for quiz. (Gjeldende total %d "
1386
  "poeng i %d spørsmål."
1387
 
1388
+ #: lib/view/WpProQuiz_View_QuizEdit.php:742
1389
  msgid "Values can also be mixed up"
1390
  msgstr "Verdier kan også blandes"
1391
 
1392
+ #: lib/view/WpProQuiz_View_QuizEdit.php:743
1393
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1394
  msgstr "10,15% eller 10,15% tillatt (maks. to sifre etter desimaltegnet)"
1395
 
1396
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1397
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1398
  msgid "from:"
1399
  msgstr "fra:"
1400
 
1401
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1402
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1403
  msgid "percent"
1404
  msgstr "prosent"
1405
 
1406
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1407
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1408
  #, php-format
1409
  msgid ""
1410
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
1413
  "(Vil bli vist, når resultat-prosent er >= <span class=\"resultProzent\"> %s "
1414
  "</ span>%%)"
1415
 
1416
+ #: lib/view/WpProQuiz_View_QuizEdit.php:760
1417
+ #: lib/view/WpProQuiz_View_QuizEdit.php:771
1418
  msgid "Delete graduation"
1419
  msgstr "Slett gradering"
1420
 
1421
+ #: lib/view/WpProQuiz_View_QuizEdit.php:778
1422
  msgid "Add graduation"
1423
  msgstr "Legg til gradering"
1424
 
1438
  msgid "Style Manager"
1439
  msgstr "Stil Manager"
1440
 
1441
+ #: lib/view/WpProQuiz_View_QuizOverall.php:50
1442
+ #: lib/view/WpProQuiz_View_WpqSupport.php:8
1443
+ msgid "Support WP-Pro-Quiz"
1444
+ msgstr ""
1445
+
1446
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
1447
  msgid "ID"
1448
  msgstr "ID"
1449
 
1450
+ #: lib/view/WpProQuiz_View_QuizOverall.php:59
1451
  msgid "Shortcode"
1452
  msgstr "Kortkode"
1453
 
1454
+ #: lib/view/WpProQuiz_View_QuizOverall.php:60
1455
+ msgid "Shortcode-Leaderboard"
1456
+ msgstr ""
1457
+
1458
+ #: lib/view/WpProQuiz_View_QuizOverall.php:88
1459
  msgid "Preview"
1460
  msgstr "Forhåndsvisning"
1461
 
1462
+ #: lib/view/WpProQuiz_View_QuizOverall.php:118
1463
  msgid "Add quiz"
1464
  msgstr "Legg til quiz"
1465
 
1466
+ #: lib/view/WpProQuiz_View_QuizOverall.php:122
1467
+ #: lib/view/WpProQuiz_View_QuizOverall.php:127
1468
  msgid "Export"
1469
  msgstr "Eksporter"
1470
 
1471
+ #: lib/view/WpProQuiz_View_QuizOverall.php:128
1472
  msgid ""
1473
  "Choose the respective question, which you would like to export and press on "
1474
  "\"Start export\""
1476
  "Velg det aktuelle spørsmålet, som du ønsker å eksportere og trykk på \"Start "
1477
  "eksport \""
1478
 
1479
+ #: lib/view/WpProQuiz_View_QuizOverall.php:132
1480
  msgid "Start export"
1481
  msgstr "Start eksport"
1482
 
1483
+ #: lib/view/WpProQuiz_View_QuizOverall.php:138
1484
  msgid "Import only *.wpq files from known and trusted sources."
1485
  msgstr "Importere bare *. wpq filer fra kjente og pålitelige kilder."
1486
 
1487
+ #: lib/view/WpProQuiz_View_QuizOverall.php:146
1488
  #, php-format
1489
  msgid "Maximal %d MiB"
1490
  msgstr "Maks %d MiB"
1541
  msgid "Reset entire statistic"
1542
  msgstr "Tilbakestille hele statistikken"
1543
 
 
 
 
 
1544
  #: lib/view/WpProQuiz_View_Statistics.php:120
1545
  msgid "Show only users, who solved the quiz:"
1546
  msgstr "Vis kun brukere som løste quizen:"
1547
 
 
 
 
 
 
 
 
 
1548
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1549
  msgid "Front"
1550
  msgstr "Front"
1551
 
1552
+ #: lib/view/WpProQuiz_View_WpqSupport.php:10
1553
+ msgid "Donate"
1554
+ msgstr ""
1555
+
1556
+ #: lib/view/WpProQuiz_View_WpqSupport.php:20
1557
+ msgid "WP-Pro-Quiz is small but nice free quiz plugin for WordPress."
1558
+ msgstr ""
1559
+
1560
+ #: lib/view/WpProQuiz_View_WpqSupport.php:21
1561
+ msgid ""
1562
+ "I try to implement all wishes as fast as possible and help with problems."
1563
+ msgstr ""
1564
+
1565
+ #: lib/view/WpProQuiz_View_WpqSupport.php:22
1566
+ msgid ""
1567
+ "Your donations can help to ensure that the project continues to remain free."
1568
+ msgstr ""
1569
+
1570
+ #: lib/view/WpProQuiz_View_WpqSupport.php:25
1571
+ msgid "Translate WP-Pro-Quiz"
1572
+ msgstr ""
1573
+
1574
+ #: lib/view/WpProQuiz_View_WpqSupport.php:27
1575
+ msgid "You need:"
1576
+ msgstr ""
1577
+
1578
+ #: lib/view/WpProQuiz_View_WpqSupport.php:30
1579
+ msgid "Latest POT file"
1580
+ msgstr ""
1581
+
1582
+ #: lib/view/WpProQuiz_View_WpqSupport.php:35
1583
+ msgid "Open PoEdit"
1584
+ msgstr ""
1585
+
1586
+ #: lib/view/WpProQuiz_View_WpqSupport.php:36
1587
+ msgid "File - New catalogue from POT file..."
1588
+ msgstr ""
1589
+
1590
+ #: lib/view/WpProQuiz_View_WpqSupport.php:37
1591
+ msgid "Choose wp-pro-quiz.pot"
1592
+ msgstr ""
1593
+
1594
+ #: lib/view/WpProQuiz_View_WpqSupport.php:38
1595
+ msgid "Set \"Translation properties\""
1596
+ msgstr ""
1597
+
1598
+ #: lib/view/WpProQuiz_View_WpqSupport.php:39
1599
+ msgid "Save PO file - with the name \"wp-pro-qioz-de_DE.po\""
1600
+ msgstr ""
1601
+
1602
+ #: lib/view/WpProQuiz_View_WpqSupport.php:41
1603
+ msgid "replace de_DE with your countries short code (e.g. en_US, nl_NL...)"
1604
+ msgstr ""
1605
+
1606
+ #: lib/view/WpProQuiz_View_WpqSupport.php:44
1607
+ msgid "Translate"
1608
+ msgstr ""
1609
+
1610
+ #: lib/view/WpProQuiz_View_WpqSupport.php:46
1611
+ msgid ""
1612
+ "Upload generated *.mo file to your server, to /wp-content/plugins/wp-pro-"
1613
+ "quiz/languages"
1614
+ msgstr ""
1615
+
1616
+ #: lib/view/WpProQuiz_View_WpqSupport.php:47
1617
+ msgid "Finished"
1618
+ msgstr ""
1619
+
1620
+ #: lib/view/WpProQuiz_View_WpqSupport.php:51
1621
+ msgid ""
1622
+ "You can translate WP-Pro-Quiz from existing to existing language (e.g. "
1623
+ "english to english) e.g. to rename buttons."
1624
+ msgstr ""
1625
+
1626
+ #~ msgid "Points per correct answer"
1627
+ #~ msgstr "Poeng pr riktig svar"
1628
+
1629
+ #~ msgid ""
1630
+ #~ "If you enable this option, for every correct answer user will receive X "
1631
+ #~ "points. Otherwise he will receive points only if the question was solved "
1632
+ #~ "completely."
1633
+ #~ msgstr ""
1634
+ #~ "Hvis du aktiverer dette alternativet, vil for hvert riktig svar brukeren "
1635
+ #~ "motta X poeng. Ellers vil han få poeng bare hvis spørsmålet ble løst helt."
1636
+
1637
+ #~ msgid "correct?"
1638
+ #~ msgstr "riktig?"
1639
+
1640
  #~ msgid "All"
1641
  #~ msgstr "Alle"
1642
 
languages/wp-pro-quiz-nl_NL.mo CHANGED
Binary file
languages/wp-pro-quiz-nl_NL.po CHANGED
@@ -1,59 +1,88 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2013-01-15 11:34+0100\n"
5
- "PO-Revision-Date: 2013-01-15 11:34+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Julius Fischer\n"
8
  "Language: German\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 "Weet u zeker dat u de quiz/vragen wilt verwijderen?"
20
 
21
- #: lib/controller/WpProQuiz_Controller_Admin.php:55
22
  msgid "Title is not filled!"
23
  msgstr "Titel niet ingevuld!"
24
 
25
- #: lib/controller/WpProQuiz_Controller_Admin.php:56
26
  msgid "No question deposited!"
27
  msgstr "Geen vraag ingevuld!"
28
 
29
- #: lib/controller/WpProQuiz_Controller_Admin.php:57
30
  msgid "Correct answer was not selected!"
31
  msgstr "Het goede antwoord is niet geselecteerd!"
32
 
33
- #: lib/controller/WpProQuiz_Controller_Admin.php:58
34
  msgid "No answer deposited!"
35
  msgstr "Geen antwoord ingevuld!"
36
 
37
- #: lib/controller/WpProQuiz_Controller_Admin.php:59
38
  msgid "No quiz description filled!"
39
  msgstr "Quiz-beschrijving niet ingevuld!"
40
 
41
- #: lib/controller/WpProQuiz_Controller_Admin.php:60
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "De procentuele waardes in de resultaten zijn incorrect."
44
 
45
- #: lib/controller/WpProQuiz_Controller_Admin.php:61
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "Geen getal in het veld \"Punten\" of kleiner dan 1"
48
 
49
- #: lib/controller/WpProQuiz_Controller_Admin.php:62
 
 
 
 
50
  msgid "No quiz selected"
51
  msgstr "Geen quiz geselecteerd"
52
 
53
- #: lib/controller/WpProQuiz_Controller_Admin.php:63
54
  msgid "Do you really want to reset the statistic?"
55
  msgstr "Weet u zeker dat u de statistieken opnieuw wilt instellen?"
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  # Must not be translated
58
  #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
59
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
@@ -61,13 +90,14 @@ msgstr "Weet u zeker dat u de statistieken opnieuw wilt instellen?"
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:192
65
- #: lib/controller/WpProQuiz_Controller_Question.php:291
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
 
@@ -76,15 +106,15 @@ msgid "Settings saved"
76
  msgstr "Instellingen opgeslagen"
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
82
  msgid "File cannot be processed"
83
  msgstr "Het bestand kan niet worden verwerkt"
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 niet gevonden"
90
 
@@ -96,51 +126,80 @@ msgstr "Vragen gekopieërd"
96
  msgid "Edit question"
97
  msgstr "Vraag bewerken"
98
 
99
- #: lib/controller/WpProQuiz_Controller_Question.php:154
100
  msgid "Question not found"
101
  msgstr "Antwoord niet gevonden"
102
 
103
- #: lib/controller/WpProQuiz_Controller_Question.php:167
104
- #: lib/controller/WpProQuiz_Controller_Question.php:213
105
  #, php-format
106
  msgid "Question: %d"
107
  msgstr "Vraag: %d"
108
 
109
- #: lib/controller/WpProQuiz_Controller_Question.php:177
110
  msgid "Question edited"
111
  msgstr "Vraag bewerkt"
112
 
113
- #: lib/controller/WpProQuiz_Controller_Question.php:196
114
  msgid "New question"
115
  msgstr "Nieuwe vraag"
116
 
117
- #: lib/controller/WpProQuiz_Controller_Question.php:224
118
  msgid "Question added"
119
  msgstr "Vraag toegevoegd"
120
 
121
- #: lib/controller/WpProQuiz_Controller_Quiz.php:73
122
  #: lib/view/WpProQuiz_View_QuestionOverall.php:21
123
  msgid "Edit quiz"
124
  msgstr "Quiz bewerken"
125
 
126
- #: lib/controller/WpProQuiz_Controller_Quiz.php:93
127
  msgid "Quiz edited"
128
  msgstr "Quiz bewerkt"
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 of quiz beschrijving niet ingevuld"
134
 
135
- #: lib/controller/WpProQuiz_Controller_Quiz.php:118
136
- #: lib/controller/WpProQuiz_Controller_Quiz.php:129
137
  msgid "Create quiz"
138
  msgstr "Quiz aanmaken"
139
 
140
- #: lib/controller/WpProQuiz_Controller_Quiz.php:160
141
  msgid "Quiz deleted"
142
  msgstr "Quiz verwijderd"
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  #: lib/helper/WpProQuiz_Helper_Import.php:9
145
  msgid "File was not uploaded"
146
  msgstr "Bestand is niet geupload"
@@ -149,128 +208,274 @@ msgstr "Bestand is niet geupload"
149
  msgid "File have wrong format"
150
  msgstr "Bestand heeft verkeerde formaat"
151
 
 
 
 
 
152
  #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
153
  msgid "The user completed a quiz."
154
  msgstr "De gebruiker heeft de quiz afgerond"
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
  "U heeft de quiz al eerder gemaakt. Daarom kunt u de quiz niet nog eens maken."
165
 
166
- #: lib/view/WpProQuiz_View_FrontQuiz.php:95
167
- #: lib/view/WpProQuiz_View_Statistics.php:59
168
- #: lib/view/WpProQuiz_View_Statistics.php:150
169
- msgid "Results"
170
- msgstr "Resultaten"
171
 
172
- #: lib/view/WpProQuiz_View_FrontQuiz.php:97
173
  #, php-format
174
  msgid "%s of %s questions answered correctly"
175
  msgstr "%s van %s vragen correct beantwoord"
176
 
177
- #: lib/view/WpProQuiz_View_FrontQuiz.php:100
178
  msgid "Your time: <span></span>"
179
  msgstr "Uw tijd: <span></span>"
180
 
181
- #: lib/view/WpProQuiz_View_FrontQuiz.php:103
182
  msgid "Time has elapsed"
183
  msgstr "Tijd voorbij"
184
 
185
- #: lib/view/WpProQuiz_View_FrontQuiz.php:106
186
- msgid ""
187
- "You have reached <span></span> of <span></span> points, (<span></span>%)"
 
 
 
 
 
 
 
 
188
  msgstr ""
189
- "U heeft <span></span> van <span></span> punten gehaald (<span></span>%)"
190
 
191
- #: lib/view/WpProQuiz_View_FrontQuiz.php:121
192
  msgid "Restart quiz"
193
  msgstr "Quiz opnieuw starten"
194
 
195
- #: lib/view/WpProQuiz_View_FrontQuiz.php:123
196
  msgid "View questions"
197
  msgstr "Bekijk vragen"
198
 
199
- #: lib/view/WpProQuiz_View_FrontQuiz.php:128
 
 
 
 
200
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
201
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
202
  msgid "Time limit"
203
  msgstr "Tijdslimiet"
204
 
205
- #: lib/view/WpProQuiz_View_FrontQuiz.php:141
206
  #, php-format
207
  msgid "Question %s of %s"
208
  msgstr "Vraag %s van %s"
209
 
210
- #: lib/view/WpProQuiz_View_FrontQuiz.php:144
211
- #: lib/view/WpProQuiz_View_QuestionEdit.php:49
212
  #: lib/view/WpProQuiz_View_Statistics.php:53
213
  msgid "Question"
214
  msgstr "Vraag"
215
 
216
- #: lib/view/WpProQuiz_View_FrontQuiz.php:148
217
  #, php-format
218
  msgid "%d points"
219
  msgstr "%d punten"
220
 
221
- #: lib/view/WpProQuiz_View_FrontQuiz.php:158
222
- #: lib/view/WpProQuiz_View_QuestionEdit.php:258
223
- #: lib/view/WpProQuiz_View_QuestionEdit.php:298
224
- #: lib/view/WpProQuiz_View_QuestionEdit.php:335
225
  msgid "Sort elements"
226
  msgstr "Sorteer elementen"
227
 
228
- #: lib/view/WpProQuiz_View_FrontQuiz.php:241
229
- #: lib/view/WpProQuiz_View_FrontQuiz.php:248
 
230
  #: lib/view/WpProQuiz_View_Statistics.php:55
231
  #: lib/view/WpProQuiz_View_Statistics.php:147
232
  msgid "Correct"
233
  msgstr "Correct"
234
 
235
- #: lib/view/WpProQuiz_View_FrontQuiz.php:243
236
- #: lib/view/WpProQuiz_View_FrontQuiz.php:261
237
- #: lib/view/WpProQuiz_View_QuestionEdit.php:21
238
- #: lib/view/WpProQuiz_View_QuestionEdit.php:28
239
- #: lib/view/WpProQuiz_View_QuestionOverall.php:29
240
- #: lib/view/WpProQuiz_View_Statistics.php:54
241
- #: lib/view/WpProQuiz_View_Statistics.php:146
242
- msgid "Points"
243
- msgstr "Punten"
244
-
245
- #: lib/view/WpProQuiz_View_FrontQuiz.php:259
246
- #: lib/view/WpProQuiz_View_FrontQuiz.php:266
247
  #: lib/view/WpProQuiz_View_Statistics.php:56
248
  #: lib/view/WpProQuiz_View_Statistics.php:148
249
  msgid "Incorrect"
250
  msgstr "Incorrect"
251
 
252
- #: lib/view/WpProQuiz_View_FrontQuiz.php:284
253
- #: lib/view/WpProQuiz_View_FrontQuiz.php:294
254
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
255
  msgid "Hint"
256
  msgstr "Hint"
257
 
258
- #: lib/view/WpProQuiz_View_FrontQuiz.php:291
259
  msgid "Check"
260
  msgstr "Controleren"
261
 
262
- #: lib/view/WpProQuiz_View_FrontQuiz.php:292
263
  msgid "Back"
264
  msgstr "Terug"
265
 
266
- #: lib/view/WpProQuiz_View_FrontQuiz.php:296
267
  msgid "Next exercise"
268
  msgstr "Volgende vraag"
269
 
270
- #: lib/view/WpProQuiz_View_FrontQuiz.php:309
271
  msgid "Finish quiz"
272
  msgstr "Quiz beëindigen"
273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  #: lib/view/WpProQuiz_View_GobalSettings.php:7
275
  msgid "to activate"
276
  msgstr "activeren"
@@ -280,12 +485,14 @@ msgid "not to activate"
280
  msgstr "niet activeren"
281
 
282
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
283
- #: lib/view/WpProQuiz_View_GobalSettings.php:25
 
284
  #: lib/view/WpProQuiz_View_QuizOverall.php:48
285
- msgid "Settings in case of problems"
286
- msgstr "Instellingen in geval van problemen"
287
 
288
  #: lib/view/WpProQuiz_View_GobalSettings.php:16
 
289
  msgid "Please note"
290
  msgstr "Let op"
291
 
@@ -294,24 +501,32 @@ msgid ""
294
  "These settings should only be set in cases of problems with Wp-Pro-Quiz."
295
  msgstr "Deze instellingen alleen instellen bij problemen met Wp-Pro-Quiz gibt."
296
 
297
- #: lib/view/WpProQuiz_View_GobalSettings.php:21
298
- #: lib/view/WpProQuiz_View_Import.php:22
299
- #: lib/view/WpProQuiz_View_QuestionEdit.php:8
300
- #: lib/view/WpProQuiz_View_QuestionOverall.php:19
301
- #: lib/view/WpProQuiz_View_QuizEdit.php:8
302
- #: lib/view/WpProQuiz_View_Statistics.php:18
303
- #: lib/view/WpProQuiz_View_StyleManager.php:11
304
- msgid "back to overview"
305
- msgstr "terug naar overzicht"
306
 
307
- #: lib/view/WpProQuiz_View_GobalSettings.php:31
308
- #: lib/view/WpProQuiz_View_GobalSettings.php:36
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  msgid "Automatically add [raw] shortcode"
310
  msgstr "Voeg automatisch [raw] shortcode toe"
311
 
312
- #: lib/view/WpProQuiz_View_GobalSettings.php:40
313
- #: lib/view/WpProQuiz_View_GobalSettings.php:62
314
- #: lib/view/WpProQuiz_View_GobalSettings.php:114
315
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
316
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
317
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
@@ -326,16 +541,21 @@ msgstr "Voeg automatisch [raw] shortcode toe"
326
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
327
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
328
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
329
- #: lib/view/WpProQuiz_View_QuizEdit.php:448
 
 
 
 
 
330
  msgid "Activate"
331
  msgstr "Activeren"
332
 
333
- #: lib/view/WpProQuiz_View_GobalSettings.php:40
334
  #, php-format
335
  msgid "It is recommended %s this option on your system."
336
  msgstr "Het wordt aanbevolen %s deze optie op uw systeem."
337
 
338
- #: lib/view/WpProQuiz_View_GobalSettings.php:43
339
  msgid ""
340
  "If this option is activated, a [raw] shortcode is automatically set around "
341
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
@@ -344,7 +564,7 @@ msgstr ""
344
  "WpProQuiz Shortcode ( [WpProQuiz X] ) geplaatst ( [raw] [WpProQuiz X] [/"
345
  "raw] )."
346
 
347
- #: lib/view/WpProQuiz_View_GobalSettings.php:46
348
  #: lib/view/WpProQuiz_View_QuizOverall.php:42
349
  msgid ""
350
  "Own themes changes internal order of filters, what causes the problems. "
@@ -353,12 +573,12 @@ msgstr ""
353
  "Eigen thema heeft de interne orde van de filter veranderd,dit heeft het "
354
  "probleem veroorzaakt. Met de extra shortcode [raw] wordt dit verholpen."
355
 
356
- #: lib/view/WpProQuiz_View_GobalSettings.php:53
357
- #: lib/view/WpProQuiz_View_GobalSettings.php:58
358
  msgid "Do not load the Javascript-files in the footer"
359
  msgstr "Javascript-bestand is niet geladen in de footer"
360
 
361
- #: lib/view/WpProQuiz_View_GobalSettings.php:65
362
  msgid ""
363
  "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
364
  "when they are really needed."
@@ -366,11 +586,11 @@ msgstr ""
366
  "Standaard worden alle WpProQuiz-Javascript-bestanden geladen in de footer en "
367
  "alleen gebruikt wanneer ze werkelijk nodig zijn."
368
 
369
- #: lib/view/WpProQuiz_View_GobalSettings.php:68
370
  msgid "In very old Wordpress themes this can lead to problems."
371
  msgstr "Dit kan leiden tot problemen bij erg oude Wordpress thema's."
372
 
373
- #: lib/view/WpProQuiz_View_GobalSettings.php:71
374
  msgid ""
375
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
376
  "the header even if they are not needed."
@@ -378,7 +598,7 @@ msgstr ""
378
  "Wanneer u deze optie activeert, worden alle WpProQuiz-Javascript-bestanden "
379
  "geladen in de header, ook als ze niet nodig zijn."
380
 
381
- #: lib/view/WpProQuiz_View_GobalSettings.php:74
382
  #, php-format
383
  msgid ""
384
  "Anyone who wants to learn more about this topic should read through the "
@@ -387,54 +607,55 @@ msgstr ""
387
  "Wie meer wil weten over deze onderwerpen moet de volgende websites %s en %s "
388
  "raadplegen."
389
 
390
- #: lib/view/WpProQuiz_View_GobalSettings.php:83
391
- #: lib/view/WpProQuiz_View_GobalSettings.php:88
392
  msgid "Touch Library"
393
  msgstr "Touch Library"
394
 
395
- #: lib/view/WpProQuiz_View_GobalSettings.php:92
396
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
397
  msgid "Deactivate"
398
  msgstr "Deactiveren"
399
 
400
- #: lib/view/WpProQuiz_View_GobalSettings.php:95
401
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
402
  msgstr ""
403
  "In versie 0.13 is een nieuwe Touch Library voor mobiele apparaten toegevoegd."
404
 
405
- #: lib/view/WpProQuiz_View_GobalSettings.php:98
406
  msgid "If you have any problems with the Touch Library, please deactivate it."
407
  msgstr ""
408
  "Wanneer u problemen ondervindt met Touch Library, kunt u die hier "
409
  "deactiveren."
410
 
411
- #: lib/view/WpProQuiz_View_GobalSettings.php:105
412
- #: lib/view/WpProQuiz_View_GobalSettings.php:110
413
  msgid "jQuery support cors"
414
  msgstr "jQuery support cors"
415
 
416
- #: lib/view/WpProQuiz_View_GobalSettings.php:117
417
  msgid "Is required only in rare cases."
418
  msgstr "Nodig in zeldzame gevallen."
419
 
420
- #: lib/view/WpProQuiz_View_GobalSettings.php:120
421
  msgid "If you have problems with the front ajax, please activate it."
422
  msgstr ""
423
  "Wanneer u problemen ondervindt met front AJAX, activeer het alstublieft."
424
 
425
- #: lib/view/WpProQuiz_View_GobalSettings.php:123
426
  msgid "e.g. Domain with special characters in combination with IE"
427
  msgstr "bv. Domein met speciale tekens in combinatie met IE."
428
 
429
- #: lib/view/WpProQuiz_View_GobalSettings.php:132
430
- #: lib/view/WpProQuiz_View_QuestionEdit.php:381
431
- #: lib/view/WpProQuiz_View_QuizEdit.php:542
 
432
  msgid "Save"
433
  msgstr "Opslaan"
434
 
435
  #: lib/view/WpProQuiz_View_Import.php:21
436
- #: lib/view/WpProQuiz_View_QuizOverall.php:91
437
- #: lib/view/WpProQuiz_View_QuizOverall.php:108
438
  msgid "Import"
439
  msgstr "Importeren"
440
 
@@ -455,12 +676,12 @@ msgid "Quiz name"
455
  msgstr "Quiz naam"
456
 
457
  #: lib/view/WpProQuiz_View_Import.php:44
458
- #: lib/view/WpProQuiz_View_QuizOverall.php:71
459
  msgid "Questions"
460
  msgstr "Vragen"
461
 
462
  #: lib/view/WpProQuiz_View_Import.php:67
463
- #: lib/view/WpProQuiz_View_QuizOverall.php:119
464
  msgid "Start import"
465
  msgstr "Importeren starten"
466
 
@@ -469,11 +690,12 @@ msgid "Title"
469
  msgstr "Titel"
470
 
471
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
472
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
473
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
474
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
475
- #: lib/view/WpProQuiz_View_QuizEdit.php:436
476
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
 
477
  msgid "(optional)"
478
  msgstr "(optioneel)"
479
 
@@ -486,10 +708,10 @@ msgstr ""
486
  "Een titel wordt gegenereerd wanneer u het titelveld leeg laat."
487
 
488
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
489
- #: lib/view/WpProQuiz_View_QuestionEdit.php:49
490
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
491
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
492
- #: lib/view/WpProQuiz_View_QuizEdit.php:463
493
  msgid "(required)"
494
  msgstr "(verplicht)"
495
 
@@ -497,37 +719,37 @@ msgstr "(verplicht)"
497
  msgid "Points for this question (Standard is 1 point)"
498
  msgstr "Punten voor deze vraag (Standaard is 1 punt)"
499
 
500
- #: lib/view/WpProQuiz_View_QuestionEdit.php:34
501
- msgid "Points per correct answer"
502
- msgstr "Punten per correct antwoord"
 
503
 
504
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
 
 
 
 
505
  msgid ""
506
- "If you enable this option, for every correct answer user will receive X "
507
- "points. Otherwise he will receive points only if the question was solved "
508
- "completely."
509
  msgstr ""
510
- "Wanneer u deze optie activeerd ontvangt de gebruiker voor ieder correct "
511
- "antwoord X points. Anders ontvangt de gebruiker alleen punten wanneer de "
512
- "vraag compleet is opgelost."
513
 
514
- #: lib/view/WpProQuiz_View_QuestionEdit.php:43
515
  msgid "Show reached points in the correct- and incorrect message?"
516
  msgstr "Het aantal punten weergeven in het correct- en incorrect bericht?"
517
 
518
- #: lib/view/WpProQuiz_View_QuestionEdit.php:57
519
  msgid "Message with the correct / incorrect answer"
520
  msgstr ""
521
 
522
- #: lib/view/WpProQuiz_View_QuestionEdit.php:59
523
  msgid "Deactivated in quiz settings."
524
  msgstr ""
525
 
526
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
527
  msgid "Message with the correct answer"
528
  msgstr "Melding bij het juiste antwoord"
529
 
530
- #: lib/view/WpProQuiz_View_QuestionEdit.php:67
531
  msgid ""
532
  "This text will be visible if answered correctly. It can be used as "
533
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -537,15 +759,15 @@ msgstr ""
537
  "als uitleg bij complexe vragen. Het bericht \"Goed\" or \"Fout\" wordt "
538
  "altijd automatisch weergegeven."
539
 
540
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
541
  msgid "Same text for correct- and incorrect-message?"
542
  msgstr "Dezelfde tekst bij correct- en incorrecte-melding?"
543
 
544
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
545
  msgid "Message with the incorrect answer"
546
  msgstr "Melding bij het foute antwoord"
547
 
548
- #: lib/view/WpProQuiz_View_QuestionEdit.php:84
549
  msgid ""
550
  "This text will be visible if answered incorrectly. It can be used as "
551
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -555,55 +777,47 @@ msgstr ""
555
  "worden als uitleg bij complexe vragen. Het bericht \"Goed\" or \"Fout\" "
556
  "wordt altijd automatisch weergegeven."
557
 
558
- #: lib/view/WpProQuiz_View_QuestionEdit.php:96
559
  msgid "Here you can enter solution hint."
560
  msgstr "Hier kunt u een hint plaatsen."
561
 
562
- #: lib/view/WpProQuiz_View_QuestionEdit.php:100
563
  msgid "Activate hint for this question?"
564
  msgstr "Een hint voor deze vraag activeren?"
565
 
566
- #: lib/view/WpProQuiz_View_QuestionEdit.php:112
567
  msgid "Answer type"
568
  msgstr "Type antwoord?"
569
 
570
- #: lib/view/WpProQuiz_View_QuestionEdit.php:120
571
  msgid "Single choice"
572
  msgstr "Enkele keuze"
573
 
574
- #: lib/view/WpProQuiz_View_QuestionEdit.php:124
575
  msgid "Multiple choice"
576
  msgstr "Meerkeuze"
577
 
578
- #: lib/view/WpProQuiz_View_QuestionEdit.php:128
579
  msgid "\"Free\" choice"
580
  msgstr "\"Open\" vraag"
581
 
582
- #: lib/view/WpProQuiz_View_QuestionEdit.php:132
583
  msgid "\"Sorting\" choice"
584
  msgstr "\"Sorteer\" antwoorden"
585
 
586
- #: lib/view/WpProQuiz_View_QuestionEdit.php:136
587
  msgid "\"Matrix Sorting\" choice"
588
  msgstr "\"Matrix Sorting\" choice"
589
 
590
- #: lib/view/WpProQuiz_View_QuestionEdit.php:140
591
  msgid "Cloze"
592
  msgstr "Cloze"
593
 
594
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
595
  msgid "Answers"
596
  msgstr "Antwoorden"
597
 
598
- #: lib/view/WpProQuiz_View_QuestionEdit.php:150
599
- #: lib/view/WpProQuiz_View_QuestionEdit.php:154
600
- msgid ""
601
- "correct answers (one per line) (answers will be converted to lower case)"
602
- msgstr ""
603
- "Correcte antwoorden (een per regel) (antwoorden worden omgezet naar kleine "
604
- "letters)"
605
-
606
- #: lib/view/WpProQuiz_View_QuestionEdit.php:160
607
  msgid ""
608
  "Please sort the answers in right order with the \"Move\" - Button. The "
609
  "answers will be displayed randomly."
@@ -611,59 +825,13 @@ msgstr ""
611
  "Alstublieft de antwoorden in de juiste volgorde plaatsen met de \"Move\" - "
612
  "knop. De antwoorden worden willekeurig weergegeven."
613
 
 
614
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
615
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
616
- #: lib/view/WpProQuiz_View_QuestionEdit.php:188
617
- #: lib/view/WpProQuiz_View_QuestionEdit.php:207
618
- #: lib/view/WpProQuiz_View_QuestionEdit.php:223
619
- #: lib/view/WpProQuiz_View_QuestionEdit.php:237
620
- #: lib/view/WpProQuiz_View_QuestionEdit.php:287
621
- #: lib/view/WpProQuiz_View_QuestionEdit.php:327
622
- #: lib/view/WpProQuiz_View_QuestionEdit.php:364
623
- msgid "Delete answer"
624
- msgstr "Antwoord verwijderen"
625
-
626
- #: lib/view/WpProQuiz_View_QuestionEdit.php:167
627
- #: lib/view/WpProQuiz_View_QuestionEdit.php:179
628
- #: lib/view/WpProQuiz_View_QuestionEdit.php:189
629
- #: lib/view/WpProQuiz_View_QuestionEdit.php:208
630
- #: lib/view/WpProQuiz_View_QuestionEdit.php:224
631
- #: lib/view/WpProQuiz_View_QuestionEdit.php:238
632
- #: lib/view/WpProQuiz_View_QuestionEdit.php:286
633
- #: lib/view/WpProQuiz_View_QuestionEdit.php:326
634
- #: lib/view/WpProQuiz_View_QuestionEdit.php:363
635
- #: lib/view/WpProQuiz_View_QuestionOverall.php:50
636
- msgid "Move"
637
- msgstr "Verplaatsen"
638
-
639
- #: lib/view/WpProQuiz_View_QuestionEdit.php:169
640
- #: lib/view/WpProQuiz_View_QuestionEdit.php:181
641
- #: lib/view/WpProQuiz_View_QuestionEdit.php:191
642
- #: lib/view/WpProQuiz_View_QuestionEdit.php:210
643
- #: lib/view/WpProQuiz_View_QuestionEdit.php:226
644
- #: lib/view/WpProQuiz_View_QuestionEdit.php:240
645
- #: lib/view/WpProQuiz_View_QuestionEdit.php:273
646
- #: lib/view/WpProQuiz_View_QuestionEdit.php:279
647
- #: lib/view/WpProQuiz_View_QuestionEdit.php:313
648
- #: lib/view/WpProQuiz_View_QuestionEdit.php:319
649
- #: lib/view/WpProQuiz_View_QuestionEdit.php:350
650
- #: lib/view/WpProQuiz_View_QuestionEdit.php:356
651
- msgid "Allow HTML"
652
- msgstr "HTML toestaan"
653
-
654
- #: lib/view/WpProQuiz_View_QuestionEdit.php:197
655
- #: lib/view/WpProQuiz_View_QuestionEdit.php:246
656
- #: lib/view/WpProQuiz_View_QuestionEdit.php:368
657
  msgid "Add new answer"
658
  msgstr "Nieuw antwoord toevoegen"
659
 
660
- #: lib/view/WpProQuiz_View_QuestionEdit.php:205
661
- #: lib/view/WpProQuiz_View_QuestionEdit.php:221
662
- #: lib/view/WpProQuiz_View_QuestionEdit.php:235
663
- msgid "correct?"
664
- msgstr "correct?"
665
-
666
- #: lib/view/WpProQuiz_View_QuestionEdit.php:250
667
  msgid ""
668
  "In this mode, not a list have to be sorted, but elements must be assigned to "
669
  "matching criterion."
@@ -671,13 +839,56 @@ msgstr ""
671
  "In deze modus moet een lijst niet gesorteerd worden maar moeten de elementen "
672
  "bij het juiste criterium gevonden worden."
673
 
674
- #: lib/view/WpProQuiz_View_QuestionEdit.php:257
675
- #: lib/view/WpProQuiz_View_QuestionEdit.php:297
676
- #: lib/view/WpProQuiz_View_QuestionEdit.php:334
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
677
  msgid "Criterion"
678
  msgstr "Criterium"
679
 
680
- #: lib/view/WpProQuiz_View_QuestionEdit.php:372
 
 
 
 
 
 
 
681
  msgid ""
682
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
683
  "small letters will be ignored."
@@ -685,49 +896,46 @@ msgstr ""
685
  "Omsluit de gezochte woorden met { } bv. \"Ik {speel} voetbal\". Hoofdletters "
686
  "en kleine letters worden genegeerd."
687
 
 
 
 
 
 
 
 
 
 
 
 
 
688
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
689
  msgid "Questions sorted"
690
  msgstr "Vragen gesorteerd"
691
 
692
- #: lib/view/WpProQuiz_View_QuestionOverall.php:28
693
- #: lib/view/WpProQuiz_View_QuizOverall.php:57
694
- msgid "Name"
695
- msgstr "Naam"
696
-
697
- #: lib/view/WpProQuiz_View_QuestionOverall.php:30
698
- #: lib/view/WpProQuiz_View_QuizOverall.php:58
699
- msgid "Action"
700
- msgstr "Actie"
701
-
702
- #: lib/view/WpProQuiz_View_QuestionOverall.php:46
703
- #: lib/view/WpProQuiz_View_QuizOverall.php:74
704
  msgid "Edit"
705
  msgstr "Bewerken"
706
 
707
- #: lib/view/WpProQuiz_View_QuestionOverall.php:48
708
- #: lib/view/WpProQuiz_View_QuizOverall.php:76
709
- msgid "Delete"
710
- msgstr "Verwijderen"
711
-
712
- #: lib/view/WpProQuiz_View_QuestionOverall.php:59
713
  #: lib/view/WpProQuiz_View_Statistics.php:84
714
  msgid "Total"
715
  msgstr "Totaal"
716
 
717
- #: lib/view/WpProQuiz_View_QuestionOverall.php:67
718
  msgid "Add question"
719
  msgstr "Vraag toevoegen"
720
 
721
- #: lib/view/WpProQuiz_View_QuestionOverall.php:68
722
  msgid "Save order"
723
  msgstr "Ordening opslaan"
724
 
725
- #: lib/view/WpProQuiz_View_QuestionOverall.php:69
726
- #: lib/view/WpProQuiz_View_QuestionOverall.php:74
727
  msgid "Copy questions from another Quiz"
728
  msgstr "Kopiëer vragen uit een andere Quiz"
729
 
730
- #: lib/view/WpProQuiz_View_QuestionOverall.php:75
731
  msgid ""
732
  "Here you can copy questions from another quiz into this quiz. (Multiple "
733
  "selection enabled)"
@@ -735,12 +943,7 @@ msgstr ""
735
  "Hier kunt u vragen uit een andere quiz kopiëren naar deze quiz. (Meervoudige "
736
  "selectie ingeschakeld)"
737
 
738
- #: lib/view/WpProQuiz_View_QuestionOverall.php:79
739
- #: lib/view/WpProQuiz_View_Statistics.php:45
740
- msgid "Loading"
741
- msgstr "Laden"
742
-
743
- #: lib/view/WpProQuiz_View_QuestionOverall.php:87
744
  msgid "Copy questions"
745
  msgstr "Vragen kopieëren"
746
 
@@ -748,10 +951,6 @@ msgstr "Vragen kopieëren"
748
  msgid "Quiz title"
749
  msgstr "Quiz titel"
750
 
751
- #: lib/view/WpProQuiz_View_QuizEdit.php:18
752
- msgid "Options"
753
- msgstr "Opties"
754
-
755
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
756
  msgid "Hide quiz title"
757
  msgstr "Quiz titel verbergen"
@@ -830,6 +1029,9 @@ msgstr ""
830
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
831
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
832
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
 
 
 
833
  msgid "Demo"
834
  msgstr "Demo"
835
 
@@ -879,7 +1081,7 @@ msgstr ""
879
 
880
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
881
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
882
- #: lib/view/WpProQuiz_View_QuizOverall.php:80
883
  msgid "Statistics"
884
  msgstr "Statistieken"
885
 
@@ -928,14 +1130,17 @@ msgid "This option applies to:"
928
  msgstr "Deze optie is geldig voor:"
929
 
930
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
 
931
  msgid "all users"
932
  msgstr "Alle gebruikers"
933
 
934
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
 
935
  msgid "registered useres only"
936
  msgstr "alleen geregistreerde gebruikers"
937
 
938
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
 
939
  msgid "anonymous users only"
940
  msgstr "alleen anonieme gebruikers"
941
 
@@ -1015,19 +1220,139 @@ msgstr ""
1015
  msgid "in percent"
1016
  msgstr ""
1017
 
 
 
 
 
 
 
 
 
 
 
1018
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1019
  msgid "Quiz description"
1020
  msgstr "Quiz beschrijving"
1021
 
1022
- #: lib/view/WpProQuiz_View_QuizEdit.php:466
1023
  msgid "This text will be displayed before start of the quiz."
1024
  msgstr "Deze tekst wordt weergegeven voordat de quiz begint."
1025
 
1026
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
1027
  msgid "Results text"
1028
  msgstr "Resultaten tekst"
1029
 
1030
- #: lib/view/WpProQuiz_View_QuizEdit.php:477
1031
  msgid ""
1032
  "This text will be displayed at the end of the quiz (in results). (this text "
1033
  "is optional)"
@@ -1035,19 +1360,19 @@ msgstr ""
1035
  "Deze tekst wordt weergegeven nadat de quiz is afgelopen (in resultaten). "
1036
  "(deze tekst is optioneel)"
1037
 
1038
- #: lib/view/WpProQuiz_View_QuizEdit.php:481
1039
  msgid "Activate graduation"
1040
  msgstr "Gradatie instellen"
1041
 
1042
- #: lib/view/WpProQuiz_View_QuizEdit.php:487
1043
  msgid "Hint:"
1044
  msgstr "Hint:"
1045
 
1046
- #: lib/view/WpProQuiz_View_QuizEdit.php:489
1047
  msgid "Maximal 15 levels"
1048
  msgstr "Maximaal 15 niveaus"
1049
 
1050
- #: lib/view/WpProQuiz_View_QuizEdit.php:491
1051
  #, php-format
1052
  msgid ""
1053
  "Percentages refer to the total score of the quiz. (Current total %d points "
@@ -1056,26 +1381,26 @@ msgstr ""
1056
  "Procenten verwijzen naar de totale score van de quiz. (Huidige aantal %d "
1057
  "punten in %d vragen)"
1058
 
1059
- #: lib/view/WpProQuiz_View_QuizEdit.php:494
1060
  msgid "Values can also be mixed up"
1061
  msgstr "Waarden kunnen ook worden gemengd"
1062
 
1063
- #: lib/view/WpProQuiz_View_QuizEdit.php:495
1064
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1065
  msgstr "10,15% of 10.15% toegestaan (maximaal twee cijfers achter de komma)"
1066
 
1067
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1068
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1069
  msgid "from:"
1070
  msgstr "van:"
1071
 
1072
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1073
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1074
  msgid "percent"
1075
  msgstr "procent"
1076
 
1077
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1078
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1079
  #, php-format
1080
  msgid ""
1081
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
@@ -1084,12 +1409,12 @@ msgstr ""
1084
  "(wordt weergegeven wanneer resultaat-procenten is >= <span class="
1085
  "\"resultProzent\">%s</span>%%)"
1086
 
1087
- #: lib/view/WpProQuiz_View_QuizEdit.php:512
1088
- #: lib/view/WpProQuiz_View_QuizEdit.php:523
1089
  msgid "Delete graduation"
1090
  msgstr "Verwijderer gradatie"
1091
 
1092
- #: lib/view/WpProQuiz_View_QuizEdit.php:530
1093
  msgid "Add graduation"
1094
  msgstr "Gradatie toevoegen"
1095
 
@@ -1111,43 +1436,52 @@ msgstr ""
1111
  msgid "Style Manager"
1112
  msgstr "Style Manager"
1113
 
1114
- #: lib/view/WpProQuiz_View_QuizOverall.php:55
 
 
 
 
 
1115
  msgid "ID"
1116
  msgstr "ID"
1117
 
1118
- #: lib/view/WpProQuiz_View_QuizOverall.php:56
1119
  msgid "Shortcode"
1120
  msgstr "Shortcode"
1121
 
1122
- #: lib/view/WpProQuiz_View_QuizOverall.php:78
 
 
 
 
1123
  msgid "Preview"
1124
  msgstr "Voorbeeld"
1125
 
1126
- #: lib/view/WpProQuiz_View_QuizOverall.php:89
1127
  msgid "Add quiz"
1128
  msgstr "Quiz toevoegen"
1129
 
1130
- #: lib/view/WpProQuiz_View_QuizOverall.php:93
1131
- #: lib/view/WpProQuiz_View_QuizOverall.php:98
1132
  msgid "Export"
1133
  msgstr "Exporteren"
1134
 
1135
- #: lib/view/WpProQuiz_View_QuizOverall.php:99
1136
  msgid ""
1137
  "Choose the respective question, which you would like to export and press on "
1138
  "\"Start export\""
1139
  msgstr ""
1140
  "Kies de vragen die u wilt exporteren en klik op, \"Exporteren starten\""
1141
 
1142
- #: lib/view/WpProQuiz_View_QuizOverall.php:103
1143
  msgid "Start export"
1144
  msgstr "Exporteren starten"
1145
 
1146
- #: lib/view/WpProQuiz_View_QuizOverall.php:109
1147
  msgid "Import only *.wpq files from known and trusted sources."
1148
  msgstr "Importeer alleen *.wpq bestanden van bekende en vertrouwde bronnen."
1149
 
1150
- #: lib/view/WpProQuiz_View_QuizOverall.php:117
1151
  #, php-format
1152
  msgid "Maximal %d MiB"
1153
  msgstr "Maximaal %d MiB"
@@ -1204,26 +1538,103 @@ msgstr "Vernieuwen"
1204
  msgid "Reset entire statistic"
1205
  msgstr "Reset alle statistieken"
1206
 
1207
- #: lib/view/WpProQuiz_View_Statistics.php:115
1208
- msgid "Filter"
1209
- msgstr "Filter"
1210
-
1211
  #: lib/view/WpProQuiz_View_Statistics.php:120
1212
  msgid "Show only users, who solved the quiz:"
1213
  msgstr "Geef alleen de gebruikers weer die de quiz voltooid hebben:"
1214
 
1215
- #: lib/view/WpProQuiz_View_Statistics.php:126
1216
- msgid "How many entries should be shown on one page:"
1217
- msgstr "Hoeveel gebruikers wilt u weergeven op één pagina:"
1218
-
1219
- #: lib/view/WpProQuiz_View_Statistics.php:145
1220
- msgid "User"
1221
- msgstr "Gebruiker"
1222
-
1223
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1224
  msgid "Front"
1225
  msgstr "Voorkant"
1226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1227
  #~ msgid "All"
1228
  #~ msgstr "Alle"
1229
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-02-07 20:46+0100\n"
5
+ "PO-Revision-Date: 2013-02-07 20:46+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Julius Fischer\n"
8
  "Language: German\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.5\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:98
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "Weet u zeker dat u de quiz/vragen wilt verwijderen?"
20
 
21
+ #: lib/controller/WpProQuiz_Controller_Admin.php:99
22
  msgid "Title is not filled!"
23
  msgstr "Titel niet ingevuld!"
24
 
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:100
26
  msgid "No question deposited!"
27
  msgstr "Geen vraag ingevuld!"
28
 
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:101
30
  msgid "Correct answer was not selected!"
31
  msgstr "Het goede antwoord is niet geselecteerd!"
32
 
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:102
34
  msgid "No answer deposited!"
35
  msgstr "Geen antwoord ingevuld!"
36
 
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:103
38
  msgid "No quiz description filled!"
39
  msgstr "Quiz-beschrijving niet ingevuld!"
40
 
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:104
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "De procentuele waardes in de resultaten zijn incorrect."
44
 
45
+ #: lib/controller/WpProQuiz_Controller_Admin.php:105
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "Geen getal in het veld \"Punten\" of kleiner dan 1"
48
 
49
+ #: lib/controller/WpProQuiz_Controller_Admin.php:106
50
+ msgid "No number in the field \"Points\" or less than 0"
51
+ msgstr ""
52
+
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:107
54
  msgid "No quiz selected"
55
  msgstr "Geen quiz geselecteerd"
56
 
57
+ #: lib/controller/WpProQuiz_Controller_Admin.php:108
58
  msgid "Do you really want to reset the statistic?"
59
  msgstr "Weet u zeker dat u de statistieken opnieuw wilt instellen?"
60
 
61
+ #: lib/controller/WpProQuiz_Controller_Admin.php:109
62
+ #: lib/view/WpProQuiz_View_FrontToplist.php:26
63
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
64
+ #: lib/view/WpProQuiz_View_QuizOverall.php:111
65
+ msgid "No data available"
66
+ msgstr ""
67
+
68
+ #: lib/controller/WpProQuiz_Controller_Admin.php:110
69
+ msgid "No sort element in the criterion"
70
+ msgstr ""
71
+
72
+ #: lib/controller/WpProQuiz_Controller_Admin.php:111
73
+ msgid ""
74
+ "\"Different points for every answer\" is not possible at \"Free\" choice"
75
+ msgstr ""
76
+
77
+ #: lib/controller/WpProQuiz_Controller_Front.php:44
78
+ #: lib/controller/WpProQuiz_Controller_Preview.php:15
79
+ #: lib/view/WpProQuiz_View_AdminToplist.php:47
80
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:393
81
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:93
82
+ #: lib/view/WpProQuiz_View_Statistics.php:45
83
+ msgid "Loading"
84
+ msgstr "Laden"
85
+
86
  # Must not be translated
87
  #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
88
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
90
  #: lib/controller/WpProQuiz_Controller_Question.php:51
91
  #: lib/controller/WpProQuiz_Controller_Question.php:128
92
  #: lib/controller/WpProQuiz_Controller_Question.php:143
93
+ #: lib/controller/WpProQuiz_Controller_Question.php:196
94
+ #: lib/controller/WpProQuiz_Controller_Question.php:342
95
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:175
96
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:189
97
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:249
98
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:297
99
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:163
100
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:76
101
  msgid "You do not have sufficient permissions to access this page."
102
  msgstr "You do not have sufficient permissions to access this page."
103
 
106
  msgstr "Instellingen opgeslagen"
107
 
108
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
109
+ #: lib/helper/WpProQuiz_Helper_Import.php:59
110
+ #: lib/helper/WpProQuiz_Helper_Import.php:68
111
+ #: lib/helper/WpProQuiz_Helper_Import.php:75
112
  msgid "File cannot be processed"
113
  msgstr "Het bestand kan niet worden verwerkt"
114
 
115
  #: lib/controller/WpProQuiz_Controller_Question.php:9
116
  #: lib/controller/WpProQuiz_Controller_Question.php:19
117
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:201
118
  msgid "Quiz not found"
119
  msgstr "Quiz niet gevonden"
120
 
126
  msgid "Edit question"
127
  msgstr "Vraag bewerken"
128
 
129
+ #: lib/controller/WpProQuiz_Controller_Question.php:155
130
  msgid "Question not found"
131
  msgstr "Antwoord niet gevonden"
132
 
133
+ #: lib/controller/WpProQuiz_Controller_Question.php:172
134
+ #: lib/controller/WpProQuiz_Controller_Question.php:224
135
  #, php-format
136
  msgid "Question: %d"
137
  msgstr "Vraag: %d"
138
 
139
+ #: lib/controller/WpProQuiz_Controller_Question.php:180
140
  msgid "Question edited"
141
  msgstr "Vraag bewerkt"
142
 
143
+ #: lib/controller/WpProQuiz_Controller_Question.php:200
144
  msgid "New question"
145
  msgstr "Nieuwe vraag"
146
 
147
+ #: lib/controller/WpProQuiz_Controller_Question.php:233
148
  msgid "Question added"
149
  msgstr "Vraag toegevoegd"
150
 
151
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:196
152
  #: lib/view/WpProQuiz_View_QuestionOverall.php:21
153
  msgid "Edit quiz"
154
  msgstr "Quiz bewerken"
155
 
156
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:216
157
  msgid "Quiz edited"
158
  msgstr "Quiz bewerkt"
159
 
160
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:233
161
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:281
162
  msgid "Quiz title or quiz description are not filled"
163
  msgstr "Quiz titel of quiz beschrijving niet ingevuld"
164
 
165
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:253
166
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:267
167
  msgid "Create quiz"
168
  msgstr "Quiz aanmaken"
169
 
170
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:314
171
  msgid "Quiz deleted"
172
  msgstr "Quiz verwijderd"
173
 
174
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:136
175
+ msgid "You signing up successfully."
176
+ msgstr ""
177
+
178
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:144
179
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:148
180
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:165
181
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:169
182
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:175
183
+ msgid "An error has occurred."
184
+ msgstr ""
185
+
186
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:186
187
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:195
188
+ msgid "You can not enter again."
189
+ msgstr ""
190
+
191
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:199
192
+ msgid "No name or e-mail entered."
193
+ msgstr ""
194
+
195
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:203
196
+ msgid "Your name can not exceed 15 characters."
197
+ msgstr ""
198
+
199
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:211
200
+ msgid "You entered wrong captcha code."
201
+ msgstr ""
202
+
203
  #: lib/helper/WpProQuiz_Helper_Import.php:9
204
  msgid "File was not uploaded"
205
  msgstr "Bestand is niet geupload"
208
  msgid "File have wrong format"
209
  msgstr "Bestand heeft verkeerde formaat"
210
 
211
+ #: lib/helper/WpProQuiz_Helper_Import.php:45
212
+ msgid "File is not compatible with the current version"
213
+ msgstr ""
214
+
215
  #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
216
  msgid "The user completed a quiz."
217
  msgstr "De gebruiker heeft de quiz afgerond"
218
 
219
+ #: lib/view/WpProQuiz_View_AdminToplist.php:7
220
+ #: lib/view/WpProQuiz_View_FrontToplist.php:8
221
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
222
+ #: lib/view/WpProQuiz_View_QuizEdit.php:534
223
+ #: lib/view/WpProQuiz_View_QuizOverall.php:96
224
+ msgid "Leaderboard"
225
+ msgstr ""
226
+
227
+ #: lib/view/WpProQuiz_View_AdminToplist.php:8
228
+ #: lib/view/WpProQuiz_View_GobalSettings.php:21
229
+ #: lib/view/WpProQuiz_View_Import.php:22
230
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
231
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
232
+ #: lib/view/WpProQuiz_View_QuizEdit.php:8
233
+ #: lib/view/WpProQuiz_View_Statistics.php:18
234
+ #: lib/view/WpProQuiz_View_StyleManager.php:11
235
+ msgid "back to overview"
236
+ msgstr "terug naar overzicht"
237
+
238
+ #: lib/view/WpProQuiz_View_AdminToplist.php:11
239
+ #: lib/view/WpProQuiz_View_Statistics.php:115
240
+ msgid "Filter"
241
+ msgstr "Filter"
242
+
243
+ #: lib/view/WpProQuiz_View_AdminToplist.php:16
244
+ msgid "Sort by:"
245
+ msgstr ""
246
+
247
+ #: lib/view/WpProQuiz_View_AdminToplist.php:18
248
+ #: lib/view/WpProQuiz_View_QuizEdit.php:600
249
+ msgid "best user"
250
+ msgstr ""
251
+
252
+ #: lib/view/WpProQuiz_View_AdminToplist.php:19
253
+ #: lib/view/WpProQuiz_View_QuizEdit.php:604
254
+ msgid "newest entry"
255
+ msgstr ""
256
+
257
+ #: lib/view/WpProQuiz_View_AdminToplist.php:20
258
+ #: lib/view/WpProQuiz_View_QuizEdit.php:608
259
+ msgid "oldest entry"
260
+ msgstr ""
261
+
262
+ #: lib/view/WpProQuiz_View_AdminToplist.php:26
263
+ #: lib/view/WpProQuiz_View_Statistics.php:126
264
+ msgid "How many entries should be shown on one page:"
265
+ msgstr "Hoeveel gebruikers wilt u weergeven op één pagina:"
266
+
267
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
268
+ #: lib/view/WpProQuiz_View_AdminToplist.php:57
269
+ msgid "Type"
270
+ msgstr ""
271
+
272
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
273
+ msgid "UR = unregistered user, R = registered user"
274
+ msgstr ""
275
+
276
+ #: lib/view/WpProQuiz_View_AdminToplist.php:55
277
+ #: lib/view/WpProQuiz_View_Statistics.php:145
278
+ msgid "User"
279
+ msgstr "Gebruiker"
280
+
281
+ #: lib/view/WpProQuiz_View_AdminToplist.php:56
282
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:401
283
+ msgid "E-Mail"
284
+ msgstr ""
285
+
286
+ #: lib/view/WpProQuiz_View_AdminToplist.php:58
287
+ #: lib/view/WpProQuiz_View_FrontToplist.php:16
288
+ msgid "Entered on"
289
+ msgstr ""
290
+
291
+ #: lib/view/WpProQuiz_View_AdminToplist.php:59
292
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:283
293
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:301
294
+ #: lib/view/WpProQuiz_View_FrontToplist.php:17
295
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
296
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
297
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:223
298
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:260
299
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
300
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
301
+ #: lib/view/WpProQuiz_View_Statistics.php:54
302
+ #: lib/view/WpProQuiz_View_Statistics.php:146
303
+ msgid "Points"
304
+ msgstr "Punten"
305
+
306
+ #: lib/view/WpProQuiz_View_AdminToplist.php:60
307
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:64
308
+ #: lib/view/WpProQuiz_View_Statistics.php:59
309
+ #: lib/view/WpProQuiz_View_Statistics.php:150
310
+ msgid "Results"
311
+ msgstr "Resultaten"
312
+
313
+ #: lib/view/WpProQuiz_View_AdminToplist.php:79
314
+ msgid "Action"
315
+ msgstr "Actie"
316
+
317
+ #: lib/view/WpProQuiz_View_AdminToplist.php:80
318
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:54
319
+ #: lib/view/WpProQuiz_View_QuizOverall.php:84
320
+ msgid "Delete"
321
+ msgstr "Verwijderen"
322
+
323
+ #: lib/view/WpProQuiz_View_AdminToplist.php:82
324
+ msgid "Apply"
325
+ msgstr ""
326
+
327
+ #: lib/view/WpProQuiz_View_AdminToplist.php:83
328
+ msgid "Delete all entries"
329
+ msgstr ""
330
+
331
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:49
332
  msgid "Start quiz"
333
  msgstr "Quiz starten"
334
 
335
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:54
336
  msgid ""
337
  "You have already completed the quiz before. Hence you can not start it again."
338
  msgstr ""
339
  "U heeft de quiz al eerder gemaakt. Daarom kunt u de quiz niet nog eens maken."
340
 
341
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:59
342
+ msgid "You have to finish following quiz, to start this quiz:"
343
+ msgstr ""
 
 
344
 
345
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:66
346
  #, php-format
347
  msgid "%s of %s questions answered correctly"
348
  msgstr "%s van %s vragen correct beantwoord"
349
 
350
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:69
351
  msgid "Your time: <span></span>"
352
  msgstr "Uw tijd: <span></span>"
353
 
354
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:72
355
  msgid "Time has elapsed"
356
  msgstr "Tijd voorbij"
357
 
358
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:75
359
+ #, php-format
360
+ msgid "You have reached %s of %s points, (%s)"
361
+ msgstr "U heeft %s van %s punten gehaald (%s)"
362
+
363
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:83
364
+ msgid "Average score"
365
+ msgstr ""
366
+
367
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:90
368
+ msgid "Your score"
369
  msgstr ""
 
370
 
371
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:122
372
  msgid "Restart quiz"
373
  msgstr "Quiz opnieuw starten"
374
 
375
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:124
376
  msgid "View questions"
377
  msgstr "Bekijk vragen"
378
 
379
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:127
380
+ msgid "Show leaderboard"
381
+ msgstr ""
382
+
383
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:138
384
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
385
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
386
  msgid "Time limit"
387
  msgstr "Tijdslimiet"
388
 
389
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:162
390
  #, php-format
391
  msgid "Question %s of %s"
392
  msgstr "Vraag %s van %s"
393
 
394
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:165
395
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
396
  #: lib/view/WpProQuiz_View_Statistics.php:53
397
  msgid "Question"
398
  msgstr "Vraag"
399
 
400
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:169
401
  #, php-format
402
  msgid "%d points"
403
  msgstr "%d punten"
404
 
405
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:179
406
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:252
 
 
407
  msgid "Sort elements"
408
  msgstr "Sorteer elementen"
409
 
410
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:281
411
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:288
412
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:211
413
  #: lib/view/WpProQuiz_View_Statistics.php:55
414
  #: lib/view/WpProQuiz_View_Statistics.php:147
415
  msgid "Correct"
416
  msgstr "Correct"
417
 
418
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:299
419
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:306
 
 
 
 
 
 
 
 
 
 
420
  #: lib/view/WpProQuiz_View_Statistics.php:56
421
  #: lib/view/WpProQuiz_View_Statistics.php:148
422
  msgid "Incorrect"
423
  msgstr "Incorrect"
424
 
425
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:327
426
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:336
427
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
428
  msgid "Hint"
429
  msgstr "Hint"
430
 
431
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:333
432
  msgid "Check"
433
  msgstr "Controleren"
434
 
435
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:334
436
  msgid "Back"
437
  msgstr "Terug"
438
 
439
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:338
440
  msgid "Next exercise"
441
  msgstr "Volgende vraag"
442
 
443
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:351
444
  msgid "Finish quiz"
445
  msgstr "Quiz beëindigen"
446
 
447
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:391
448
+ msgid "Your result entered into leaderboard"
449
+ msgstr ""
450
+
451
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:398
452
+ #: lib/view/WpProQuiz_View_FrontToplist.php:15
453
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
454
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
455
+ msgid "Name"
456
+ msgstr "Naam"
457
+
458
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:406
459
+ msgid "Captcha"
460
+ msgstr ""
461
+
462
+ #: lib/view/WpProQuiz_View_FrontToplist.php:11
463
+ #, php-format
464
+ msgid "maximum of %s points"
465
+ msgstr ""
466
+
467
+ #: lib/view/WpProQuiz_View_FrontToplist.php:14
468
+ msgid "Pos."
469
+ msgstr ""
470
+
471
+ #: lib/view/WpProQuiz_View_FrontToplist.php:18
472
+ msgid "Result"
473
+ msgstr ""
474
+
475
+ #: lib/view/WpProQuiz_View_FrontToplist.php:23
476
+ msgid "Table is loading"
477
+ msgstr ""
478
+
479
  #: lib/view/WpProQuiz_View_GobalSettings.php:7
480
  msgid "to activate"
481
  msgstr "activeren"
485
  msgstr "niet activeren"
486
 
487
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
488
+ #: lib/view/WpProQuiz_View_GobalSettings.php:24
489
+ #: lib/view/WpProQuiz_View_GobalSettings.php:31
490
  #: lib/view/WpProQuiz_View_QuizOverall.php:48
491
+ msgid "Global settings"
492
+ msgstr ""
493
 
494
  #: lib/view/WpProQuiz_View_GobalSettings.php:16
495
+ #: lib/view/WpProQuiz_View_WpqSupport.php:50
496
  msgid "Please note"
497
  msgstr "Let op"
498
 
501
  "These settings should only be set in cases of problems with Wp-Pro-Quiz."
502
  msgstr "Deze instellingen alleen instellen bij problemen met Wp-Pro-Quiz gibt."
503
 
504
+ #: lib/view/WpProQuiz_View_GobalSettings.php:25
505
+ #: lib/view/WpProQuiz_View_GobalSettings.php:78
506
+ msgid "Settings in case of problems"
507
+ msgstr "Instellingen in geval van problemen"
 
 
 
 
 
508
 
509
+ #: lib/view/WpProQuiz_View_GobalSettings.php:37
510
+ #: lib/view/WpProQuiz_View_GobalSettings.php:42
511
+ msgid "Leaderboard time format"
512
+ msgstr ""
513
+
514
+ #: lib/view/WpProQuiz_View_GobalSettings.php:64
515
+ msgid "Custom"
516
+ msgstr ""
517
+
518
+ #: lib/view/WpProQuiz_View_GobalSettings.php:68
519
+ msgid "Documentation on date and time formatting"
520
+ msgstr ""
521
+
522
+ #: lib/view/WpProQuiz_View_GobalSettings.php:84
523
+ #: lib/view/WpProQuiz_View_GobalSettings.php:89
524
  msgid "Automatically add [raw] shortcode"
525
  msgstr "Voeg automatisch [raw] shortcode toe"
526
 
527
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
528
+ #: lib/view/WpProQuiz_View_GobalSettings.php:115
529
+ #: lib/view/WpProQuiz_View_GobalSettings.php:167
530
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
531
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
532
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
541
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
542
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
543
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
544
+ #: lib/view/WpProQuiz_View_QuizEdit.php:442
545
+ #: lib/view/WpProQuiz_View_QuizEdit.php:467
546
+ #: lib/view/WpProQuiz_View_QuizEdit.php:539
547
+ #: lib/view/WpProQuiz_View_QuizEdit.php:572
548
+ #: lib/view/WpProQuiz_View_QuizEdit.php:620
549
+ #: lib/view/WpProQuiz_View_QuizEdit.php:696
550
  msgid "Activate"
551
  msgstr "Activeren"
552
 
553
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
554
  #, php-format
555
  msgid "It is recommended %s this option on your system."
556
  msgstr "Het wordt aanbevolen %s deze optie op uw systeem."
557
 
558
+ #: lib/view/WpProQuiz_View_GobalSettings.php:96
559
  msgid ""
560
  "If this option is activated, a [raw] shortcode is automatically set around "
561
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
564
  "WpProQuiz Shortcode ( [WpProQuiz X] ) geplaatst ( [raw] [WpProQuiz X] [/"
565
  "raw] )."
566
 
567
+ #: lib/view/WpProQuiz_View_GobalSettings.php:99
568
  #: lib/view/WpProQuiz_View_QuizOverall.php:42
569
  msgid ""
570
  "Own themes changes internal order of filters, what causes the problems. "
573
  "Eigen thema heeft de interne orde van de filter veranderd,dit heeft het "
574
  "probleem veroorzaakt. Met de extra shortcode [raw] wordt dit verholpen."
575
 
576
+ #: lib/view/WpProQuiz_View_GobalSettings.php:106
577
+ #: lib/view/WpProQuiz_View_GobalSettings.php:111
578
  msgid "Do not load the Javascript-files in the footer"
579
  msgstr "Javascript-bestand is niet geladen in de footer"
580
 
581
+ #: lib/view/WpProQuiz_View_GobalSettings.php:118
582
  msgid ""
583
  "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
584
  "when they are really needed."
586
  "Standaard worden alle WpProQuiz-Javascript-bestanden geladen in de footer en "
587
  "alleen gebruikt wanneer ze werkelijk nodig zijn."
588
 
589
+ #: lib/view/WpProQuiz_View_GobalSettings.php:121
590
  msgid "In very old Wordpress themes this can lead to problems."
591
  msgstr "Dit kan leiden tot problemen bij erg oude Wordpress thema's."
592
 
593
+ #: lib/view/WpProQuiz_View_GobalSettings.php:124
594
  msgid ""
595
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
596
  "the header even if they are not needed."
598
  "Wanneer u deze optie activeert, worden alle WpProQuiz-Javascript-bestanden "
599
  "geladen in de header, ook als ze niet nodig zijn."
600
 
601
+ #: lib/view/WpProQuiz_View_GobalSettings.php:127
602
  #, php-format
603
  msgid ""
604
  "Anyone who wants to learn more about this topic should read through the "
607
  "Wie meer wil weten over deze onderwerpen moet de volgende websites %s en %s "
608
  "raadplegen."
609
 
610
+ #: lib/view/WpProQuiz_View_GobalSettings.php:136
611
+ #: lib/view/WpProQuiz_View_GobalSettings.php:141
612
  msgid "Touch Library"
613
  msgstr "Touch Library"
614
 
615
+ #: lib/view/WpProQuiz_View_GobalSettings.php:145
616
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
617
  msgid "Deactivate"
618
  msgstr "Deactiveren"
619
 
620
+ #: lib/view/WpProQuiz_View_GobalSettings.php:148
621
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
622
  msgstr ""
623
  "In versie 0.13 is een nieuwe Touch Library voor mobiele apparaten toegevoegd."
624
 
625
+ #: lib/view/WpProQuiz_View_GobalSettings.php:151
626
  msgid "If you have any problems with the Touch Library, please deactivate it."
627
  msgstr ""
628
  "Wanneer u problemen ondervindt met Touch Library, kunt u die hier "
629
  "deactiveren."
630
 
631
+ #: lib/view/WpProQuiz_View_GobalSettings.php:158
632
+ #: lib/view/WpProQuiz_View_GobalSettings.php:163
633
  msgid "jQuery support cors"
634
  msgstr "jQuery support cors"
635
 
636
+ #: lib/view/WpProQuiz_View_GobalSettings.php:170
637
  msgid "Is required only in rare cases."
638
  msgstr "Nodig in zeldzame gevallen."
639
 
640
+ #: lib/view/WpProQuiz_View_GobalSettings.php:173
641
  msgid "If you have problems with the front ajax, please activate it."
642
  msgstr ""
643
  "Wanneer u problemen ondervindt met front AJAX, activeer het alstublieft."
644
 
645
+ #: lib/view/WpProQuiz_View_GobalSettings.php:176
646
  msgid "e.g. Domain with special characters in combination with IE"
647
  msgstr "bv. Domein met speciale tekens in combinatie met IE."
648
 
649
+ #: lib/view/WpProQuiz_View_GobalSettings.php:185
650
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:185
651
+ #: lib/view/WpProQuiz_View_QuizEdit.php:790
652
+ #: lib/view/WpProQuiz_View_WpqSupport.php:45
653
  msgid "Save"
654
  msgstr "Opslaan"
655
 
656
  #: lib/view/WpProQuiz_View_Import.php:21
657
+ #: lib/view/WpProQuiz_View_QuizOverall.php:120
658
+ #: lib/view/WpProQuiz_View_QuizOverall.php:137
659
  msgid "Import"
660
  msgstr "Importeren"
661
 
676
  msgstr "Quiz naam"
677
 
678
  #: lib/view/WpProQuiz_View_Import.php:44
679
+ #: lib/view/WpProQuiz_View_QuizOverall.php:75
680
  msgid "Questions"
681
  msgstr "Vragen"
682
 
683
  #: lib/view/WpProQuiz_View_Import.php:67
684
+ #: lib/view/WpProQuiz_View_QuizOverall.php:148
685
  msgid "Start import"
686
  msgstr "Importeren starten"
687
 
690
  msgstr "Titel"
691
 
692
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
693
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
694
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
695
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
696
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
697
+ #: lib/view/WpProQuiz_View_QuizEdit.php:684
698
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
699
  msgid "(optional)"
700
  msgstr "(optioneel)"
701
 
708
  "Een titel wordt gegenereerd wanneer u het titelveld leeg laat."
709
 
710
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
711
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
712
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
713
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
714
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
715
  msgid "(required)"
716
  msgstr "(verplicht)"
717
 
719
  msgid "Points for this question (Standard is 1 point)"
720
  msgstr "Punten voor deze vraag (Standaard is 1 punt)"
721
 
722
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:31
723
+ msgid ""
724
+ "This points will be rewarded, only if the user closes the question correctly."
725
+ msgstr ""
726
 
727
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
728
+ msgid "Different points for each answer"
729
+ msgstr ""
730
+
731
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:40
732
  msgid ""
733
+ "If you enable this option, you can enter different points for every answer."
 
 
734
  msgstr ""
 
 
 
735
 
736
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:46
737
  msgid "Show reached points in the correct- and incorrect message?"
738
  msgstr "Het aantal punten weergeven in het correct- en incorrect bericht?"
739
 
740
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
741
  msgid "Message with the correct / incorrect answer"
742
  msgstr ""
743
 
744
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:62
745
  msgid "Deactivated in quiz settings."
746
  msgstr ""
747
 
748
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
749
  msgid "Message with the correct answer"
750
  msgstr "Melding bij het juiste antwoord"
751
 
752
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:70
753
  msgid ""
754
  "This text will be visible if answered correctly. It can be used as "
755
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
759
  "als uitleg bij complexe vragen. Het bericht \"Goed\" or \"Fout\" wordt "
760
  "altijd automatisch weergegeven."
761
 
762
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
763
  msgid "Same text for correct- and incorrect-message?"
764
  msgstr "Dezelfde tekst bij correct- en incorrecte-melding?"
765
 
766
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
767
  msgid "Message with the incorrect answer"
768
  msgstr "Melding bij het foute antwoord"
769
 
770
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:87
771
  msgid ""
772
  "This text will be visible if answered incorrectly. It can be used as "
773
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
777
  "worden als uitleg bij complexe vragen. Het bericht \"Goed\" or \"Fout\" "
778
  "wordt altijd automatisch weergegeven."
779
 
780
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:99
781
  msgid "Here you can enter solution hint."
782
  msgstr "Hier kunt u een hint plaatsen."
783
 
784
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:103
785
  msgid "Activate hint for this question?"
786
  msgstr "Een hint voor deze vraag activeren?"
787
 
788
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:115
789
  msgid "Answer type"
790
  msgstr "Type antwoord?"
791
 
792
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:123
793
  msgid "Single choice"
794
  msgstr "Enkele keuze"
795
 
796
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:127
797
  msgid "Multiple choice"
798
  msgstr "Meerkeuze"
799
 
800
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:131
801
  msgid "\"Free\" choice"
802
  msgstr "\"Open\" vraag"
803
 
804
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:135
805
  msgid "\"Sorting\" choice"
806
  msgstr "\"Sorteer\" antwoorden"
807
 
808
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:139
809
  msgid "\"Matrix Sorting\" choice"
810
  msgstr "\"Matrix Sorting\" choice"
811
 
812
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:143
813
  msgid "Cloze"
814
  msgstr "Cloze"
815
 
816
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
817
  msgid "Answers"
818
  msgstr "Antwoorden"
819
 
820
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:155
 
 
 
 
 
 
 
 
821
  msgid ""
822
  "Please sort the answers in right order with the \"Move\" - Button. The "
823
  "answers will be displayed randomly."
825
  "Alstublieft de antwoorden in de juiste volgorde plaatsen met de \"Move\" - "
826
  "knop. De antwoorden worden willekeurig weergegeven."
827
 
828
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:160
829
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
830
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
831
  msgid "Add new answer"
832
  msgstr "Nieuw antwoord toevoegen"
833
 
834
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
 
 
 
 
 
 
835
  msgid ""
836
  "In this mode, not a list have to be sorted, but elements must be assigned to "
837
  "matching criterion."
839
  "In deze modus moet een lijst niet gesorteerd worden maar moeten de elementen "
840
  "bij het juiste criterium gevonden worden."
841
 
842
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
843
+ msgid ""
844
+ "You can create sort elements with empty criteria, which can't be assigned by "
845
+ "user."
846
+ msgstr ""
847
+
848
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:201
849
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
850
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:302
851
+ #: lib/view/WpProQuiz_View_QuizEdit.php:18
852
+ msgid "Options"
853
+ msgstr "Opties"
854
+
855
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
856
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:303
857
+ msgid "Answer"
858
+ msgstr ""
859
+
860
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:217
861
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:275
862
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:281
863
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:312
864
+ msgid "Allow HTML"
865
+ msgstr "HTML toestaan"
866
+
867
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:234
868
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:288
869
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:329
870
+ msgid "Delete answer"
871
+ msgstr "Antwoord verwijderen"
872
+
873
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:235
874
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
875
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:330
876
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:58
877
+ msgid "Move"
878
+ msgstr "Verplaatsen"
879
+
880
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:251
881
  msgid "Criterion"
882
  msgstr "Criterium"
883
 
884
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:341
885
+ msgid ""
886
+ "correct answers (one per line) (answers will be converted to lower case)"
887
+ msgstr ""
888
+ "Correcte antwoorden (een per regel) (antwoorden worden omgezet naar kleine "
889
+ "letters)"
890
+
891
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:354
892
  msgid ""
893
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
894
  "small letters will be ignored."
896
  "Omsluit de gezochte woorden met { } bv. \"Ik {speel} voetbal\". Hoofdletters "
897
  "en kleine letters worden genegeerd."
898
 
899
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:357
900
+ msgid ""
901
+ "If mode \"Different points for every answer\" is activated, you can assign "
902
+ "points with |POINTS. Otherwise 1 point will be awarded for every answer."
903
+ msgstr ""
904
+
905
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
906
+ msgid ""
907
+ "e.g. \"I {play} soccer, with a {ball|3}\" - \"play\" gives 1 point and \"ball"
908
+ "\" 3 points."
909
+ msgstr ""
910
+
911
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
912
  msgid "Questions sorted"
913
  msgstr "Vragen gesorteerd"
914
 
915
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
916
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
 
 
 
 
 
 
 
 
 
 
917
  msgid "Edit"
918
  msgstr "Bewerken"
919
 
920
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
 
 
 
 
 
921
  #: lib/view/WpProQuiz_View_Statistics.php:84
922
  msgid "Total"
923
  msgstr "Totaal"
924
 
925
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:81
926
  msgid "Add question"
927
  msgstr "Vraag toevoegen"
928
 
929
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:82
930
  msgid "Save order"
931
  msgstr "Ordening opslaan"
932
 
933
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:83
934
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:88
935
  msgid "Copy questions from another Quiz"
936
  msgstr "Kopiëer vragen uit een andere Quiz"
937
 
938
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:89
939
  msgid ""
940
  "Here you can copy questions from another quiz into this quiz. (Multiple "
941
  "selection enabled)"
943
  "Hier kunt u vragen uit een andere quiz kopiëren naar deze quiz. (Meervoudige "
944
  "selectie ingeschakeld)"
945
 
946
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:101
 
 
 
 
 
947
  msgid "Copy questions"
948
  msgstr "Vragen kopieëren"
949
 
951
  msgid "Quiz title"
952
  msgstr "Quiz titel"
953
 
 
 
 
 
954
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
955
  msgid "Hide quiz title"
956
  msgstr "Quiz titel verbergen"
1029
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
1030
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
1031
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
1032
+ #: lib/view/WpProQuiz_View_QuizEdit.php:448
1033
+ #: lib/view/WpProQuiz_View_QuizEdit.php:661
1034
+ #: lib/view/WpProQuiz_View_QuizEdit.php:671
1035
  msgid "Demo"
1036
  msgstr "Demo"
1037
 
1081
 
1082
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
1083
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
1084
+ #: lib/view/WpProQuiz_View_QuizOverall.php:92
1085
  msgid "Statistics"
1086
  msgstr "Statistieken"
1087
 
1130
  msgstr "Deze optie is geldig voor:"
1131
 
1132
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
1133
+ #: lib/view/WpProQuiz_View_QuizEdit.php:550
1134
  msgid "all users"
1135
  msgstr "Alle gebruikers"
1136
 
1137
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
1138
+ #: lib/view/WpProQuiz_View_QuizEdit.php:554
1139
  msgid "registered useres only"
1140
  msgstr "alleen geregistreerde gebruikers"
1141
 
1142
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
1143
+ #: lib/view/WpProQuiz_View_QuizEdit.php:558
1144
  msgid "anonymous users only"
1145
  msgstr "alleen anonieme gebruikers"
1146
 
1220
  msgid "in percent"
1221
  msgstr ""
1222
 
1223
+ #: lib/view/WpProQuiz_View_QuizEdit.php:433
1224
+ #: lib/view/WpProQuiz_View_QuizEdit.php:438
1225
+ msgid "Show average points"
1226
+ msgstr ""
1227
+
1228
+ #: lib/view/WpProQuiz_View_QuizEdit.php:445
1229
+ msgid "Statistics-function must be enabled."
1230
+ msgstr ""
1231
+
1232
+ #: lib/view/WpProQuiz_View_QuizEdit.php:458
1233
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
1234
+ msgid "Prerequisites"
1235
+ msgstr ""
1236
+
1237
+ #: lib/view/WpProQuiz_View_QuizEdit.php:470
1238
+ msgid ""
1239
+ "If you enable this option, you can choose quiz, which user have to finish "
1240
+ "before he can start this quiz."
1241
+ msgstr ""
1242
+
1243
+ #: lib/view/WpProQuiz_View_QuizEdit.php:473
1244
+ msgid ""
1245
+ "In all selected quizzes statistic function have to be active. If it is not "
1246
+ "it will be activated automatically."
1247
+ msgstr ""
1248
+
1249
+ #: lib/view/WpProQuiz_View_QuizEdit.php:478
1250
+ msgid "Quiz"
1251
+ msgstr ""
1252
+
1253
+ #: lib/view/WpProQuiz_View_QuizEdit.php:480
1254
+ msgid "Prerequisites (This quiz have to be finished)"
1255
+ msgstr ""
1256
+
1257
+ #: lib/view/WpProQuiz_View_QuizEdit.php:525
1258
+ msgid ""
1259
+ "The leaderboard allows users to enter results in public list and to share "
1260
+ "the result this way."
1261
+ msgstr ""
1262
+
1263
+ #: lib/view/WpProQuiz_View_QuizEdit.php:528
1264
+ msgid "The leaderboard works independent from internal statistics function."
1265
+ msgstr ""
1266
+
1267
+ #: lib/view/WpProQuiz_View_QuizEdit.php:545
1268
+ msgid "Who can sign up to the list"
1269
+ msgstr ""
1270
+
1271
+ #: lib/view/WpProQuiz_View_QuizEdit.php:561
1272
+ msgid ""
1273
+ "Not registered users have to enter name and e-mail (e-mail won't be "
1274
+ "displayed)"
1275
+ msgstr ""
1276
+
1277
+ #: lib/view/WpProQuiz_View_QuizEdit.php:567
1278
+ msgid "display captcha"
1279
+ msgstr ""
1280
+
1281
+ #: lib/view/WpProQuiz_View_QuizEdit.php:575
1282
+ msgid ""
1283
+ "If you enable this option, additional captcha will be displayed for users "
1284
+ "who are not registered."
1285
+ msgstr ""
1286
+
1287
+ #: lib/view/WpProQuiz_View_QuizEdit.php:578
1288
+ msgid "This option requires additional plugin:"
1289
+ msgstr ""
1290
+
1291
+ #: lib/view/WpProQuiz_View_QuizEdit.php:583
1292
+ msgid "Plugin has been detected."
1293
+ msgstr ""
1294
+
1295
+ #: lib/view/WpProQuiz_View_QuizEdit.php:587
1296
+ msgid "Plugin is not installed."
1297
+ msgstr ""
1298
+
1299
+ #: lib/view/WpProQuiz_View_QuizEdit.php:595
1300
+ msgid "Sort list by"
1301
+ msgstr ""
1302
+
1303
+ #: lib/view/WpProQuiz_View_QuizEdit.php:614
1304
+ msgid "Users can apply multiple times"
1305
+ msgstr ""
1306
+
1307
+ #: lib/view/WpProQuiz_View_QuizEdit.php:625
1308
+ msgid "User can apply after:"
1309
+ msgstr ""
1310
+
1311
+ #: lib/view/WpProQuiz_View_QuizEdit.php:627
1312
+ msgid "minute"
1313
+ msgstr ""
1314
+
1315
+ #: lib/view/WpProQuiz_View_QuizEdit.php:634
1316
+ msgid "How many entries should be displayed"
1317
+ msgstr ""
1318
+
1319
+ #: lib/view/WpProQuiz_View_QuizEdit.php:640
1320
+ msgid "Entries"
1321
+ msgstr ""
1322
+
1323
+ #: lib/view/WpProQuiz_View_QuizEdit.php:647
1324
+ msgid "Automatically display leaderboard in quiz result"
1325
+ msgstr ""
1326
+
1327
+ #: lib/view/WpProQuiz_View_QuizEdit.php:651
1328
+ msgid "Where should leaderboard be displayed:"
1329
+ msgstr ""
1330
+
1331
+ #: lib/view/WpProQuiz_View_QuizEdit.php:654
1332
+ msgid "don't display"
1333
+ msgstr ""
1334
+
1335
+ #: lib/view/WpProQuiz_View_QuizEdit.php:658
1336
+ msgid "below the \"result text\""
1337
+ msgstr ""
1338
+
1339
+ #: lib/view/WpProQuiz_View_QuizEdit.php:668
1340
+ msgid "in a button"
1341
+ msgstr ""
1342
+
1343
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
1344
  msgid "Quiz description"
1345
  msgstr "Quiz beschrijving"
1346
 
1347
+ #: lib/view/WpProQuiz_View_QuizEdit.php:714
1348
  msgid "This text will be displayed before start of the quiz."
1349
  msgstr "Deze tekst wordt weergegeven voordat de quiz begint."
1350
 
1351
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
1352
  msgid "Results text"
1353
  msgstr "Resultaten tekst"
1354
 
1355
+ #: lib/view/WpProQuiz_View_QuizEdit.php:725
1356
  msgid ""
1357
  "This text will be displayed at the end of the quiz (in results). (this text "
1358
  "is optional)"
1360
  "Deze tekst wordt weergegeven nadat de quiz is afgelopen (in resultaten). "
1361
  "(deze tekst is optioneel)"
1362
 
1363
+ #: lib/view/WpProQuiz_View_QuizEdit.php:729
1364
  msgid "Activate graduation"
1365
  msgstr "Gradatie instellen"
1366
 
1367
+ #: lib/view/WpProQuiz_View_QuizEdit.php:735
1368
  msgid "Hint:"
1369
  msgstr "Hint:"
1370
 
1371
+ #: lib/view/WpProQuiz_View_QuizEdit.php:737
1372
  msgid "Maximal 15 levels"
1373
  msgstr "Maximaal 15 niveaus"
1374
 
1375
+ #: lib/view/WpProQuiz_View_QuizEdit.php:739
1376
  #, php-format
1377
  msgid ""
1378
  "Percentages refer to the total score of the quiz. (Current total %d points "
1381
  "Procenten verwijzen naar de totale score van de quiz. (Huidige aantal %d "
1382
  "punten in %d vragen)"
1383
 
1384
+ #: lib/view/WpProQuiz_View_QuizEdit.php:742
1385
  msgid "Values can also be mixed up"
1386
  msgstr "Waarden kunnen ook worden gemengd"
1387
 
1388
+ #: lib/view/WpProQuiz_View_QuizEdit.php:743
1389
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1390
  msgstr "10,15% of 10.15% toegestaan (maximaal twee cijfers achter de komma)"
1391
 
1392
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1393
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1394
  msgid "from:"
1395
  msgstr "van:"
1396
 
1397
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1398
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1399
  msgid "percent"
1400
  msgstr "procent"
1401
 
1402
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1403
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1404
  #, php-format
1405
  msgid ""
1406
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
1409
  "(wordt weergegeven wanneer resultaat-procenten is >= <span class="
1410
  "\"resultProzent\">%s</span>%%)"
1411
 
1412
+ #: lib/view/WpProQuiz_View_QuizEdit.php:760
1413
+ #: lib/view/WpProQuiz_View_QuizEdit.php:771
1414
  msgid "Delete graduation"
1415
  msgstr "Verwijderer gradatie"
1416
 
1417
+ #: lib/view/WpProQuiz_View_QuizEdit.php:778
1418
  msgid "Add graduation"
1419
  msgstr "Gradatie toevoegen"
1420
 
1436
  msgid "Style Manager"
1437
  msgstr "Style Manager"
1438
 
1439
+ #: lib/view/WpProQuiz_View_QuizOverall.php:50
1440
+ #: lib/view/WpProQuiz_View_WpqSupport.php:8
1441
+ msgid "Support WP-Pro-Quiz"
1442
+ msgstr ""
1443
+
1444
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
1445
  msgid "ID"
1446
  msgstr "ID"
1447
 
1448
+ #: lib/view/WpProQuiz_View_QuizOverall.php:59
1449
  msgid "Shortcode"
1450
  msgstr "Shortcode"
1451
 
1452
+ #: lib/view/WpProQuiz_View_QuizOverall.php:60
1453
+ msgid "Shortcode-Leaderboard"
1454
+ msgstr ""
1455
+
1456
+ #: lib/view/WpProQuiz_View_QuizOverall.php:88
1457
  msgid "Preview"
1458
  msgstr "Voorbeeld"
1459
 
1460
+ #: lib/view/WpProQuiz_View_QuizOverall.php:118
1461
  msgid "Add quiz"
1462
  msgstr "Quiz toevoegen"
1463
 
1464
+ #: lib/view/WpProQuiz_View_QuizOverall.php:122
1465
+ #: lib/view/WpProQuiz_View_QuizOverall.php:127
1466
  msgid "Export"
1467
  msgstr "Exporteren"
1468
 
1469
+ #: lib/view/WpProQuiz_View_QuizOverall.php:128
1470
  msgid ""
1471
  "Choose the respective question, which you would like to export and press on "
1472
  "\"Start export\""
1473
  msgstr ""
1474
  "Kies de vragen die u wilt exporteren en klik op, \"Exporteren starten\""
1475
 
1476
+ #: lib/view/WpProQuiz_View_QuizOverall.php:132
1477
  msgid "Start export"
1478
  msgstr "Exporteren starten"
1479
 
1480
+ #: lib/view/WpProQuiz_View_QuizOverall.php:138
1481
  msgid "Import only *.wpq files from known and trusted sources."
1482
  msgstr "Importeer alleen *.wpq bestanden van bekende en vertrouwde bronnen."
1483
 
1484
+ #: lib/view/WpProQuiz_View_QuizOverall.php:146
1485
  #, php-format
1486
  msgid "Maximal %d MiB"
1487
  msgstr "Maximaal %d MiB"
1538
  msgid "Reset entire statistic"
1539
  msgstr "Reset alle statistieken"
1540
 
 
 
 
 
1541
  #: lib/view/WpProQuiz_View_Statistics.php:120
1542
  msgid "Show only users, who solved the quiz:"
1543
  msgstr "Geef alleen de gebruikers weer die de quiz voltooid hebben:"
1544
 
 
 
 
 
 
 
 
 
1545
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1546
  msgid "Front"
1547
  msgstr "Voorkant"
1548
 
1549
+ #: lib/view/WpProQuiz_View_WpqSupport.php:10
1550
+ msgid "Donate"
1551
+ msgstr ""
1552
+
1553
+ #: lib/view/WpProQuiz_View_WpqSupport.php:20
1554
+ msgid "WP-Pro-Quiz is small but nice free quiz plugin for WordPress."
1555
+ msgstr ""
1556
+
1557
+ #: lib/view/WpProQuiz_View_WpqSupport.php:21
1558
+ msgid ""
1559
+ "I try to implement all wishes as fast as possible and help with problems."
1560
+ msgstr ""
1561
+
1562
+ #: lib/view/WpProQuiz_View_WpqSupport.php:22
1563
+ msgid ""
1564
+ "Your donations can help to ensure that the project continues to remain free."
1565
+ msgstr ""
1566
+
1567
+ #: lib/view/WpProQuiz_View_WpqSupport.php:25
1568
+ msgid "Translate WP-Pro-Quiz"
1569
+ msgstr ""
1570
+
1571
+ #: lib/view/WpProQuiz_View_WpqSupport.php:27
1572
+ msgid "You need:"
1573
+ msgstr ""
1574
+
1575
+ #: lib/view/WpProQuiz_View_WpqSupport.php:30
1576
+ msgid "Latest POT file"
1577
+ msgstr ""
1578
+
1579
+ #: lib/view/WpProQuiz_View_WpqSupport.php:35
1580
+ msgid "Open PoEdit"
1581
+ msgstr ""
1582
+
1583
+ #: lib/view/WpProQuiz_View_WpqSupport.php:36
1584
+ msgid "File - New catalogue from POT file..."
1585
+ msgstr ""
1586
+
1587
+ #: lib/view/WpProQuiz_View_WpqSupport.php:37
1588
+ msgid "Choose wp-pro-quiz.pot"
1589
+ msgstr ""
1590
+
1591
+ #: lib/view/WpProQuiz_View_WpqSupport.php:38
1592
+ msgid "Set \"Translation properties\""
1593
+ msgstr ""
1594
+
1595
+ #: lib/view/WpProQuiz_View_WpqSupport.php:39
1596
+ msgid "Save PO file - with the name \"wp-pro-qioz-de_DE.po\""
1597
+ msgstr ""
1598
+
1599
+ #: lib/view/WpProQuiz_View_WpqSupport.php:41
1600
+ msgid "replace de_DE with your countries short code (e.g. en_US, nl_NL...)"
1601
+ msgstr ""
1602
+
1603
+ #: lib/view/WpProQuiz_View_WpqSupport.php:44
1604
+ msgid "Translate"
1605
+ msgstr ""
1606
+
1607
+ #: lib/view/WpProQuiz_View_WpqSupport.php:46
1608
+ msgid ""
1609
+ "Upload generated *.mo file to your server, to /wp-content/plugins/wp-pro-"
1610
+ "quiz/languages"
1611
+ msgstr ""
1612
+
1613
+ #: lib/view/WpProQuiz_View_WpqSupport.php:47
1614
+ msgid "Finished"
1615
+ msgstr ""
1616
+
1617
+ #: lib/view/WpProQuiz_View_WpqSupport.php:51
1618
+ msgid ""
1619
+ "You can translate WP-Pro-Quiz from existing to existing language (e.g. "
1620
+ "english to english) e.g. to rename buttons."
1621
+ msgstr ""
1622
+
1623
+ #~ msgid "Points per correct answer"
1624
+ #~ msgstr "Punten per correct antwoord"
1625
+
1626
+ #~ msgid ""
1627
+ #~ "If you enable this option, for every correct answer user will receive X "
1628
+ #~ "points. Otherwise he will receive points only if the question was solved "
1629
+ #~ "completely."
1630
+ #~ msgstr ""
1631
+ #~ "Wanneer u deze optie activeerd ontvangt de gebruiker voor ieder correct "
1632
+ #~ "antwoord X points. Anders ontvangt de gebruiker alleen punten wanneer de "
1633
+ #~ "vraag compleet is opgelost."
1634
+
1635
+ #~ msgid "correct?"
1636
+ #~ msgstr "correct?"
1637
+
1638
  #~ msgid "All"
1639
  #~ msgstr "Alle"
1640
 
languages/wp-pro-quiz-ru_RU.mo CHANGED
Binary file
languages/wp-pro-quiz-ru_RU.po CHANGED
@@ -1,72 +1,102 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2013-01-16 15:30+0100\n"
5
- "PO-Revision-Date: 2013-01-16 15:30+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:192
64
- #: lib/controller/WpProQuiz_Controller_Question.php:299
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
 
@@ -75,15 +105,15 @@ 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
 
@@ -95,51 +125,80 @@ msgstr "вопросы скопированы"
95
  msgid "Edit question"
96
  msgstr "Редактирование вопроса"
97
 
98
- #: lib/controller/WpProQuiz_Controller_Question.php:154
99
  msgid "Question not found"
100
  msgstr "Вопрос не найден"
101
 
102
- #: lib/controller/WpProQuiz_Controller_Question.php:167
103
- #: lib/controller/WpProQuiz_Controller_Question.php:213
104
  #, php-format
105
  msgid "Question: %d"
106
  msgstr "Вопрос %d"
107
 
108
- #: lib/controller/WpProQuiz_Controller_Question.php:177
109
  msgid "Question edited"
110
  msgstr "Вопрос отредактирован"
111
 
112
- #: lib/controller/WpProQuiz_Controller_Question.php:196
113
  msgid "New question"
114
  msgstr "Новый вопрос"
115
 
116
- #: lib/controller/WpProQuiz_Controller_Question.php:224
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 "Файл не загружен"
@@ -148,126 +207,273 @@ msgstr "Файл не загружен"
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:258
220
- #: lib/view/WpProQuiz_View_QuestionEdit.php:298
221
- #: lib/view/WpProQuiz_View_QuestionEdit.php:335
222
  msgid "Sort elements"
223
  msgstr "Элементы сортировки"
224
 
225
- #: lib/view/WpProQuiz_View_FrontQuiz.php:241
226
- #: lib/view/WpProQuiz_View_FrontQuiz.php:248
 
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:243
233
- #: lib/view/WpProQuiz_View_FrontQuiz.php:261
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:259
243
- #: lib/view/WpProQuiz_View_FrontQuiz.php:266
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:284
250
- #: lib/view/WpProQuiz_View_FrontQuiz.php:294
251
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
252
  msgid "Hint"
253
  msgstr "Подсказка"
254
 
255
- #: lib/view/WpProQuiz_View_FrontQuiz.php:291
256
  msgid "Check"
257
  msgstr "Проверить"
258
 
259
- #: lib/view/WpProQuiz_View_FrontQuiz.php:292
260
  msgid "Back"
261
  msgstr "Назад"
262
 
263
- #: lib/view/WpProQuiz_View_FrontQuiz.php:296
264
  msgid "Next exercise"
265
  msgstr "Далее"
266
 
267
- #: lib/view/WpProQuiz_View_FrontQuiz.php:309
268
  msgid "Finish quiz"
269
  msgstr "Завершить тест"
270
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
271
  #: lib/view/WpProQuiz_View_GobalSettings.php:7
272
  msgid "to activate"
273
  msgstr "включить"
@@ -277,12 +483,14 @@ 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
 
@@ -292,24 +500,32 @@ msgid ""
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
@@ -324,16 +540,21 @@ msgstr "Автоматически добавлять шорткод [raw]"
324
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
325
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
326
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
327
- #: lib/view/WpProQuiz_View_QuizEdit.php:448
 
 
 
 
 
328
  msgid "Activate"
329
  msgstr "Активно"
330
 
331
- #: lib/view/WpProQuiz_View_GobalSettings.php:40
332
  #, php-format
333
  msgid "It is recommended %s this option on your system."
334
  msgstr "Рекомендуется %s эту опцию в вашей системе."
335
 
336
- #: lib/view/WpProQuiz_View_GobalSettings.php:43
337
  msgid ""
338
  "If this option is activated, a [raw] shortcode is automatically set around "
339
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
@@ -341,7 +562,7 @@ msgstr ""
341
  "Если этот параметр активен, шорткод [raw] будет автоматически обрамлять "
342
  "WpProQuiz шорткод ( [WpProQuiz X] в [raw] [WpProQuiz X] [/raw])."
343
 
344
- #: lib/view/WpProQuiz_View_GobalSettings.php:46
345
  #: lib/view/WpProQuiz_View_QuizOverall.php:42
346
  msgid ""
347
  "Own themes changes internal order of filters, what causes the problems. "
@@ -350,12 +571,12 @@ msgstr ""
350
  "Некоторые темы меняют внутренний порядок фильтра, что приводит к ошибкам. "
351
  "Шорткод [raw] препятствует этому."
352
 
353
- #: lib/view/WpProQuiz_View_GobalSettings.php:53
354
- #: lib/view/WpProQuiz_View_GobalSettings.php:58
355
  msgid "Do not load the Javascript-files in the footer"
356
  msgstr "Не загружать Javascript-файлы в нижнюю часть страницы (подвал)"
357
 
358
- #: lib/view/WpProQuiz_View_GobalSettings.php:65
359
  msgid ""
360
  "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
361
  "when they are really needed."
@@ -363,11 +584,11 @@ msgstr ""
363
  "По умолчанию все WpProQuiz-Javascript файлы грузятся в нижнюю часть страницы "
364
  "(подвал) и только если они действительно нужны."
365
 
366
- #: lib/view/WpProQuiz_View_GobalSettings.php:68
367
  msgid "In very old Wordpress themes this can lead to problems."
368
  msgstr "Может вызывать проблемы в старых темах Wordpress."
369
 
370
- #: lib/view/WpProQuiz_View_GobalSettings.php:71
371
  msgid ""
372
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
373
  "the header even if they are not needed."
@@ -375,7 +596,7 @@ msgstr ""
375
  "Если Вы включите эту опцию, все WpProQuiz-Javascript файлы будут загружены в "
376
  "заголовок страницы, даже если они не нужны."
377
 
378
- #: lib/view/WpProQuiz_View_GobalSettings.php:74
379
  #, php-format
380
  msgid ""
381
  "Anyone who wants to learn more about this topic should read through the "
@@ -384,51 +605,52 @@ msgstr ""
384
  "Если Вам нужна дополнительная информация по данной теме, посетите следующие "
385
  "вебсайты: %s и %s"
386
 
387
- #: lib/view/WpProQuiz_View_GobalSettings.php:83
388
- #: lib/view/WpProQuiz_View_GobalSettings.php:88
389
  msgid "Touch Library"
390
  msgstr "Сеснсорная библиотека"
391
 
392
- #: lib/view/WpProQuiz_View_GobalSettings.php:92
393
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
394
  msgid "Deactivate"
395
  msgstr "Неактивно"
396
 
397
- #: lib/view/WpProQuiz_View_GobalSettings.php:95
398
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
399
  msgstr ""
400
  "В версии 0.13 добавлена новая сенсорная библиотека для мобильных устройств."
401
 
402
- #: lib/view/WpProQuiz_View_GobalSettings.php:98
403
  msgid "If you have any problems with the Touch Library, please deactivate it."
404
  msgstr "Если у Вас проблемы с сенсорной библиотекой, пожалуйста отключите ее."
405
 
406
- #: lib/view/WpProQuiz_View_GobalSettings.php:105
407
- #: lib/view/WpProQuiz_View_GobalSettings.php:110
408
  msgid "jQuery support cors"
409
  msgstr "Поддержка jQuery cors"
410
 
411
- #: lib/view/WpProQuiz_View_GobalSettings.php:117
412
  msgid "Is required only in rare cases."
413
  msgstr "Требуется только в редких случаях."
414
 
415
- #: lib/view/WpProQuiz_View_GobalSettings.php:120
416
  msgid "If you have problems with the front ajax, please activate it."
417
  msgstr "Пожалуйста, активируйте при проблеммах с ajax."
418
 
419
- #: lib/view/WpProQuiz_View_GobalSettings.php:123
420
  msgid "e.g. Domain with special characters in combination with IE"
421
  msgstr "Например домен со специальными символами в сочетании с IE"
422
 
423
- #: lib/view/WpProQuiz_View_GobalSettings.php:132
424
- #: lib/view/WpProQuiz_View_QuestionEdit.php:381
425
- #: lib/view/WpProQuiz_View_QuizEdit.php:542
 
426
  msgid "Save"
427
  msgstr "Сохранить"
428
 
429
  #: lib/view/WpProQuiz_View_Import.php:21
430
- #: lib/view/WpProQuiz_View_QuizOverall.php:91
431
- #: lib/view/WpProQuiz_View_QuizOverall.php:108
432
  msgid "Import"
433
  msgstr "Импорт"
434
 
@@ -449,12 +671,12 @@ msgid "Quiz name"
449
  msgstr "Название теста"
450
 
451
  #: lib/view/WpProQuiz_View_Import.php:44
452
- #: lib/view/WpProQuiz_View_QuizOverall.php:71
453
  msgid "Questions"
454
  msgstr "Вопросы"
455
 
456
  #: lib/view/WpProQuiz_View_Import.php:67
457
- #: lib/view/WpProQuiz_View_QuizOverall.php:119
458
  msgid "Start import"
459
  msgstr "Начать импорт"
460
 
@@ -463,11 +685,12 @@ msgid "Title"
463
  msgstr "Заголовок"
464
 
465
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
466
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
467
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
468
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
469
- #: lib/view/WpProQuiz_View_QuizEdit.php:436
470
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
 
471
  msgid "(optional)"
472
  msgstr "(необязательное поле)"
473
 
@@ -480,10 +703,10 @@ msgstr ""
480
  "оставить пустым, название сгенерируется автоматически."
481
 
482
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
483
- #: lib/view/WpProQuiz_View_QuestionEdit.php:49
484
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
485
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
486
- #: lib/view/WpProQuiz_View_QuizEdit.php:463
487
  msgid "(required)"
488
  msgstr "(обязательное поле)"
489
 
@@ -491,39 +714,39 @@ msgstr "(обязательное поле)"
491
  msgid "Points for this question (Standard is 1 point)"
492
  msgstr "Количество баллов для этого вопроса (по-умолчанию 1 балл)"
493
 
494
- #: lib/view/WpProQuiz_View_QuestionEdit.php:34
495
- msgid "Points per correct answer"
496
- msgstr "Баллы за правильное соответствие"
 
497
 
498
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
 
 
 
 
499
  msgid ""
500
- "If you enable this option, for every correct answer user will receive X "
501
- "points. Otherwise he will receive points only if the question was solved "
502
- "completely."
503
  msgstr ""
504
- "Если Вы включите эту опцию, то пользователь получит X баллов за каждое "
505
- "правильное соответствие. В противном случае он получит баллы только тогда, "
506
- "когда задание выполнено полностью."
507
 
508
- #: lib/view/WpProQuiz_View_QuestionEdit.php:43
509
  msgid "Show reached points in the correct- and incorrect message?"
510
  msgstr ""
511
  "Показывать набранные баллы в сообщениях к правильному и неправильному "
512
  "ответам?"
513
 
514
- #: lib/view/WpProQuiz_View_QuestionEdit.php:57
515
  msgid "Message with the correct / incorrect answer"
516
  msgstr "Сообщение для правильного / неправильного ответа"
517
 
518
- #: lib/view/WpProQuiz_View_QuestionEdit.php:59
519
  msgid "Deactivated in quiz settings."
520
  msgstr "Отключено в настройках теста."
521
 
522
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
523
  msgid "Message with the correct answer"
524
  msgstr "Сообщение для правильного ответа"
525
 
526
- #: lib/view/WpProQuiz_View_QuestionEdit.php:67
527
  msgid ""
528
  "This text will be visible if answered correctly. It can be used as "
529
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -533,15 +756,15 @@ msgstr ""
533
  "качестве объяснения сложных вопросов. Сообщение \"Правильно \" или "
534
  "\"Неправильно\" всегда отображается автоматически."
535
 
536
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
537
  msgid "Same text for correct- and incorrect-message?"
538
  msgstr "Одинаковый текст для сообщений с правильным и неправильным ответом?"
539
 
540
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
541
  msgid "Message with the incorrect answer"
542
  msgstr "Сообщение для неправильного ответа"
543
 
544
- #: lib/view/WpProQuiz_View_QuestionEdit.php:84
545
  msgid ""
546
  "This text will be visible if answered incorrectly. It can be used as "
547
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -551,56 +774,48 @@ msgstr ""
551
  "в качестве объяснения сложных вопросов. Сообщение \"Правильно \" или "
552
  "\"Неправильно\" всегда отображается автоматически."
553
 
554
- #: lib/view/WpProQuiz_View_QuestionEdit.php:96
555
  msgid "Here you can enter solution hint."
556
  msgstr "Сюда можно ввести подсказку."
557
 
558
- #: lib/view/WpProQuiz_View_QuestionEdit.php:100
559
  msgid "Activate hint for this question?"
560
  msgstr "Активировать подсказку для этого вопроса?"
561
 
562
- #: lib/view/WpProQuiz_View_QuestionEdit.php:112
563
  msgid "Answer type"
564
  msgstr "Тип ответа"
565
 
566
- #: lib/view/WpProQuiz_View_QuestionEdit.php:120
567
  msgid "Single choice"
568
  msgstr "Одиночный выбор"
569
 
570
- #: lib/view/WpProQuiz_View_QuestionEdit.php:124
571
  msgid "Multiple choice"
572
  msgstr "Множественный выбор"
573
 
574
- #: lib/view/WpProQuiz_View_QuestionEdit.php:128
575
  msgid "\"Free\" choice"
576
  msgstr "\"Открытый\""
577
 
578
- #: lib/view/WpProQuiz_View_QuestionEdit.php:132
579
  msgid "\"Sorting\" choice"
580
  msgstr "\"Сортировка\""
581
 
582
- #: lib/view/WpProQuiz_View_QuestionEdit.php:136
583
  msgid "\"Matrix Sorting\" choice"
584
  msgstr "\"Матричная сортировка\""
585
 
586
- #: lib/view/WpProQuiz_View_QuestionEdit.php:140
587
  #, fuzzy
588
  msgid "Cloze"
589
  msgstr "\"Заключенный текст\""
590
 
591
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
592
  msgid "Answers"
593
  msgstr "Ответы"
594
 
595
- #: lib/view/WpProQuiz_View_QuestionEdit.php:150
596
- #: lib/view/WpProQuiz_View_QuestionEdit.php:154
597
- msgid ""
598
- "correct answers (one per line) (answers will be converted to lower case)"
599
- msgstr ""
600
- "правильных ответов (по одному на строку) (ответы будут преобразованы в "
601
- "нижний регистр)"
602
-
603
- #: lib/view/WpProQuiz_View_QuestionEdit.php:160
604
  msgid ""
605
  "Please sort the answers in right order with the \"Move\" - Button. The "
606
  "answers will be displayed randomly."
@@ -608,59 +823,13 @@ msgstr ""
608
  "Пожалуйста, отсортируйте ответы в правильном порядке при помощи кнопки "
609
  "\"Переместить \". Ответы будут отображаться в случайном порядке."
610
 
 
611
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
612
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
613
- #: lib/view/WpProQuiz_View_QuestionEdit.php:188
614
- #: lib/view/WpProQuiz_View_QuestionEdit.php:207
615
- #: lib/view/WpProQuiz_View_QuestionEdit.php:223
616
- #: lib/view/WpProQuiz_View_QuestionEdit.php:237
617
- #: lib/view/WpProQuiz_View_QuestionEdit.php:287
618
- #: lib/view/WpProQuiz_View_QuestionEdit.php:327
619
- #: lib/view/WpProQuiz_View_QuestionEdit.php:364
620
- msgid "Delete answer"
621
- msgstr "Удалить ответ"
622
-
623
- #: lib/view/WpProQuiz_View_QuestionEdit.php:167
624
- #: lib/view/WpProQuiz_View_QuestionEdit.php:179
625
- #: lib/view/WpProQuiz_View_QuestionEdit.php:189
626
- #: lib/view/WpProQuiz_View_QuestionEdit.php:208
627
- #: lib/view/WpProQuiz_View_QuestionEdit.php:224
628
- #: lib/view/WpProQuiz_View_QuestionEdit.php:238
629
- #: lib/view/WpProQuiz_View_QuestionEdit.php:286
630
- #: lib/view/WpProQuiz_View_QuestionEdit.php:326
631
- #: lib/view/WpProQuiz_View_QuestionEdit.php:363
632
- #: lib/view/WpProQuiz_View_QuestionOverall.php:50
633
- msgid "Move"
634
- msgstr "Переместить"
635
-
636
- #: lib/view/WpProQuiz_View_QuestionEdit.php:169
637
- #: lib/view/WpProQuiz_View_QuestionEdit.php:181
638
- #: lib/view/WpProQuiz_View_QuestionEdit.php:191
639
- #: lib/view/WpProQuiz_View_QuestionEdit.php:210
640
- #: lib/view/WpProQuiz_View_QuestionEdit.php:226
641
- #: lib/view/WpProQuiz_View_QuestionEdit.php:240
642
- #: lib/view/WpProQuiz_View_QuestionEdit.php:273
643
- #: lib/view/WpProQuiz_View_QuestionEdit.php:279
644
- #: lib/view/WpProQuiz_View_QuestionEdit.php:313
645
- #: lib/view/WpProQuiz_View_QuestionEdit.php:319
646
- #: lib/view/WpProQuiz_View_QuestionEdit.php:350
647
- #: lib/view/WpProQuiz_View_QuestionEdit.php:356
648
- msgid "Allow HTML"
649
- msgstr "Разрешить HTML"
650
-
651
- #: lib/view/WpProQuiz_View_QuestionEdit.php:197
652
- #: lib/view/WpProQuiz_View_QuestionEdit.php:246
653
- #: lib/view/WpProQuiz_View_QuestionEdit.php:368
654
  msgid "Add new answer"
655
  msgstr "Добавить новый ответ"
656
 
657
- #: lib/view/WpProQuiz_View_QuestionEdit.php:205
658
- #: lib/view/WpProQuiz_View_QuestionEdit.php:221
659
- #: lib/view/WpProQuiz_View_QuestionEdit.php:235
660
- msgid "correct?"
661
- msgstr "правильно?"
662
-
663
- #: lib/view/WpProQuiz_View_QuestionEdit.php:250
664
  msgid ""
665
  "In this mode, not a list have to be sorted, but elements must be assigned to "
666
  "matching criterion."
@@ -668,13 +837,56 @@ msgstr ""
668
  "В этом режиме не нужно сортировать список. Элементы сортировки должны быть "
669
  "отнесены к соответствующему критерию."
670
 
671
- #: lib/view/WpProQuiz_View_QuestionEdit.php:257
672
- #: lib/view/WpProQuiz_View_QuestionEdit.php:297
673
- #: lib/view/WpProQuiz_View_QuestionEdit.php:334
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
674
  msgid "Criterion"
675
  msgstr "Критерий"
676
 
677
- #: lib/view/WpProQuiz_View_QuestionEdit.php:372
 
 
 
 
 
 
 
678
  msgid ""
679
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
680
  "small letters will be ignored."
@@ -682,49 +894,46 @@ msgstr ""
682
  "Заключите поиск слов в { } , например, \"I {играть} в футбол\". Прописные и "
683
  "строчные буквы будут игнорироваться."
684
 
 
 
 
 
 
 
 
 
 
 
 
 
685
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
686
  msgid "Questions sorted"
687
  msgstr "Вопросы отсортированы"
688
 
689
- #: lib/view/WpProQuiz_View_QuestionOverall.php:28
690
- #: lib/view/WpProQuiz_View_QuizOverall.php:57
691
- msgid "Name"
692
- msgstr "Название"
693
-
694
- #: lib/view/WpProQuiz_View_QuestionOverall.php:30
695
- #: lib/view/WpProQuiz_View_QuizOverall.php:58
696
- msgid "Action"
697
- msgstr "Действие"
698
-
699
- #: lib/view/WpProQuiz_View_QuestionOverall.php:46
700
- #: lib/view/WpProQuiz_View_QuizOverall.php:74
701
  msgid "Edit"
702
  msgstr "Редактировать"
703
 
704
- #: lib/view/WpProQuiz_View_QuestionOverall.php:48
705
- #: lib/view/WpProQuiz_View_QuizOverall.php:76
706
- msgid "Delete"
707
- msgstr "Удалить"
708
-
709
- #: lib/view/WpProQuiz_View_QuestionOverall.php:59
710
  #: lib/view/WpProQuiz_View_Statistics.php:84
711
  msgid "Total"
712
  msgstr "Всего"
713
 
714
- #: lib/view/WpProQuiz_View_QuestionOverall.php:67
715
  msgid "Add question"
716
  msgstr "Добавить вопрос"
717
 
718
- #: lib/view/WpProQuiz_View_QuestionOverall.php:68
719
  msgid "Save order"
720
  msgstr "сохранить сортировку"
721
 
722
- #: lib/view/WpProQuiz_View_QuestionOverall.php:69
723
- #: lib/view/WpProQuiz_View_QuestionOverall.php:74
724
  msgid "Copy questions from another Quiz"
725
  msgstr "Копировать вопросы из другого теста."
726
 
727
- #: lib/view/WpProQuiz_View_QuestionOverall.php:75
728
  msgid ""
729
  "Here you can copy questions from another quiz into this quiz. (Multiple "
730
  "selection enabled)"
@@ -732,12 +941,7 @@ msgstr ""
732
  "Здесь Вы можете скопировать вопросы из другого теста в этот тест. "
733
  "(Множественный выбор включен)"
734
 
735
- #: lib/view/WpProQuiz_View_QuestionOverall.php:79
736
- #: lib/view/WpProQuiz_View_Statistics.php:45
737
- msgid "Loading"
738
- msgstr "Загрузка"
739
-
740
- #: lib/view/WpProQuiz_View_QuestionOverall.php:87
741
  msgid "Copy questions"
742
  msgstr "Вопросы скопированы"
743
 
@@ -745,10 +949,6 @@ msgstr "Вопросы скопированы"
745
  msgid "Quiz title"
746
  msgstr "Заголовок теста"
747
 
748
- #: lib/view/WpProQuiz_View_QuizEdit.php:18
749
- msgid "Options"
750
- msgstr "Настройки"
751
-
752
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
753
  msgid "Hide quiz title"
754
  msgstr "Спрятать заголовок теста"
@@ -826,6 +1026,9 @@ msgstr ""
826
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
827
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
828
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
 
 
 
829
  msgid "Demo"
830
  msgstr "Демо"
831
 
@@ -874,7 +1077,7 @@ msgstr ""
874
 
875
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
876
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
877
- #: lib/view/WpProQuiz_View_QuizOverall.php:80
878
  msgid "Statistics"
879
  msgstr "Статистика"
880
 
@@ -923,14 +1126,17 @@ msgid "This option applies to:"
923
  msgstr "Этот параметр применяется к:"
924
 
925
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
 
926
  msgid "all users"
927
  msgstr "все пользователи"
928
 
929
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
 
930
  msgid "registered useres only"
931
  msgstr "только зарегистрированные пользователи"
932
 
933
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
 
934
  msgid "anonymous users only"
935
  msgstr "только анонимные пользователи"
936
 
@@ -1016,19 +1222,139 @@ msgstr "Сколько вопросов должно быть показано:"
1016
  msgid "in percent"
1017
  msgstr "в процентах"
1018
 
 
 
 
 
 
 
 
 
 
 
1019
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1020
  msgid "Quiz description"
1021
  msgstr "Описание теста"
1022
 
1023
- #: lib/view/WpProQuiz_View_QuizEdit.php:466
1024
  msgid "This text will be displayed before start of the quiz."
1025
  msgstr "Этот текст будет отображаться перед началом теста."
1026
 
1027
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
1028
  msgid "Results text"
1029
  msgstr "Текст для результата"
1030
 
1031
- #: lib/view/WpProQuiz_View_QuizEdit.php:477
1032
  msgid ""
1033
  "This text will be displayed at the end of the quiz (in results). (this text "
1034
  "is optional)"
@@ -1036,19 +1362,19 @@ msgstr ""
1036
  "Этот текст будет отображаться в конце теста (в результатах). (не является "
1037
  "обязательным)"
1038
 
1039
- #: lib/view/WpProQuiz_View_QuizEdit.php:481
1040
  msgid "Activate graduation"
1041
  msgstr "Активировать окончания"
1042
 
1043
- #: lib/view/WpProQuiz_View_QuizEdit.php:487
1044
  msgid "Hint:"
1045
  msgstr "Подсказка:"
1046
 
1047
- #: lib/view/WpProQuiz_View_QuizEdit.php:489
1048
  msgid "Maximal 15 levels"
1049
  msgstr "Максимум 15 уровней"
1050
 
1051
- #: lib/view/WpProQuiz_View_QuizEdit.php:491
1052
  #, php-format
1053
  msgid ""
1054
  "Percentages refer to the total score of the quiz. (Current total %d points "
@@ -1056,26 +1382,26 @@ msgid ""
1056
  msgstr ""
1057
  "Проценты относятся к общему баллу теста (Всего %d баллов в %d вопросах)"
1058
 
1059
- #: lib/view/WpProQuiz_View_QuizEdit.php:494
1060
  msgid "Values can also be mixed up"
1061
  msgstr "значения могут быть перепутаны"
1062
 
1063
- #: lib/view/WpProQuiz_View_QuizEdit.php:495
1064
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1065
  msgstr "Допускается 10,15% или 10.15% (макс. до двух знаков после запятой)"
1066
 
1067
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1068
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1069
  msgid "from:"
1070
  msgstr "от:"
1071
 
1072
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1073
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1074
  msgid "percent"
1075
  msgstr "процент"
1076
 
1077
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1078
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1079
  #, php-format
1080
  msgid ""
1081
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
@@ -1084,12 +1410,12 @@ msgstr ""
1084
  "(Будет отображаться, если процентный результат >= <span class=\"resultProzent"
1085
  "\">%s</span>%%)"
1086
 
1087
- #: lib/view/WpProQuiz_View_QuizEdit.php:512
1088
- #: lib/view/WpProQuiz_View_QuizEdit.php:523
1089
  msgid "Delete graduation"
1090
  msgstr "Удалить окончания"
1091
 
1092
- #: lib/view/WpProQuiz_View_QuizEdit.php:530
1093
  msgid "Add graduation"
1094
  msgstr "Добавить окончания"
1095
 
@@ -1109,43 +1435,52 @@ msgstr "Если тест не работает в интерфейсе, поп
1109
  msgid "Style Manager"
1110
  msgstr "Менеджер стилей"
1111
 
1112
- #: lib/view/WpProQuiz_View_QuizOverall.php:55
 
 
 
 
 
1113
  msgid "ID"
1114
  msgstr "ID"
1115
 
1116
- #: lib/view/WpProQuiz_View_QuizOverall.php:56
1117
  msgid "Shortcode"
1118
  msgstr "Шорткод"
1119
 
1120
- #: lib/view/WpProQuiz_View_QuizOverall.php:78
 
 
 
 
1121
  msgid "Preview"
1122
  msgstr "Предварительный просмотр"
1123
 
1124
- #: lib/view/WpProQuiz_View_QuizOverall.php:89
1125
  msgid "Add quiz"
1126
  msgstr "Добавить тест"
1127
 
1128
- #: lib/view/WpProQuiz_View_QuizOverall.php:93
1129
- #: lib/view/WpProQuiz_View_QuizOverall.php:98
1130
  msgid "Export"
1131
  msgstr "Экспорт"
1132
 
1133
- #: lib/view/WpProQuiz_View_QuizOverall.php:99
1134
  msgid ""
1135
  "Choose the respective question, which you would like to export and press on "
1136
  "\"Start export\""
1137
  msgstr ""
1138
  "Выберите вопрос, который хотите экспортировать и нажмите \"Экспортировать\""
1139
 
1140
- #: lib/view/WpProQuiz_View_QuizOverall.php:103
1141
  msgid "Start export"
1142
  msgstr "Экспортировать"
1143
 
1144
- #: lib/view/WpProQuiz_View_QuizOverall.php:109
1145
  msgid "Import only *.wpq files from known and trusted sources."
1146
  msgstr "Импортировать только *.wpq файлы из известных и надежных источников."
1147
 
1148
- #: lib/view/WpProQuiz_View_QuizOverall.php:117
1149
  #, php-format
1150
  msgid "Maximal %d MiB"
1151
  msgstr "Максимально %d MiB"
@@ -1202,27 +1537,104 @@ msgstr "Обновить"
1202
  msgid "Reset entire statistic"
1203
  msgstr "Сброс всей статистики"
1204
 
1205
- #: lib/view/WpProQuiz_View_Statistics.php:115
1206
- msgid "Filter"
1207
- msgstr "Фильтр"
1208
-
1209
  #: lib/view/WpProQuiz_View_Statistics.php:120
1210
  msgid "Show only users, who solved the quiz:"
1211
  msgstr "Показывать только тех пользователей, которые прошли тест:"
1212
 
1213
- #: lib/view/WpProQuiz_View_Statistics.php:126
1214
- msgid "How many entries should be shown on one page:"
1215
- msgstr "Количество записей на странице:"
1216
-
1217
- #: lib/view/WpProQuiz_View_Statistics.php:145
1218
- msgid "User"
1219
- msgstr "Пользователь"
1220
-
1221
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1222
  #, fuzzy
1223
  msgid "Front"
1224
  msgstr "Фронт"
1225
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1226
  #~ msgid "All"
1227
  #~ msgstr "Alle"
1228
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-02-07 20:46+0100\n"
5
+ "PO-Revision-Date: 2013-02-07 20:46+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.5\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:98
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "Вы действительно хотите удалить тест/вопрос?"
20
 
21
+ #: lib/controller/WpProQuiz_Controller_Admin.php:99
22
  msgid "Title is not filled!"
23
  msgstr "Заголовок не заполнен!"
24
 
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:100
26
  msgid "No question deposited!"
27
  msgstr "Нет сохраненных вопросов!"
28
 
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:101
30
  msgid "Correct answer was not selected!"
31
  msgstr "Правильный ответ не выбран!"
32
 
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:102
34
  msgid "No answer deposited!"
35
  msgstr "Ответ не сохранен!!"
36
 
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:103
38
  msgid "No quiz description filled!"
39
  msgstr "Не заполнено описание к тесту!"
40
 
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:104
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "Процентное значение в тексте результатов неверно."
44
 
45
+ #: lib/controller/WpProQuiz_Controller_Admin.php:105
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "Нет числа в поле \"Баллы\" или оно меньше 1"
48
 
49
+ #: lib/controller/WpProQuiz_Controller_Admin.php:106
50
+ msgid "No number in the field \"Points\" or less than 0"
51
+ msgstr "Нет числа в поле \"Баллы\" или оно меньше 0"
52
+
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:107
54
  msgid "No quiz selected"
55
  msgstr "Тест не выбран"
56
 
57
+ #: lib/controller/WpProQuiz_Controller_Admin.php:108
58
  msgid "Do you really want to reset the statistic?"
59
  msgstr "Вы действительно хотите сбросить статистику?"
60
 
61
+ #: lib/controller/WpProQuiz_Controller_Admin.php:109
62
+ #: lib/view/WpProQuiz_View_FrontToplist.php:26
63
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
64
+ #: lib/view/WpProQuiz_View_QuizOverall.php:111
65
+ msgid "No data available"
66
+ msgstr ""
67
+
68
+ #: lib/controller/WpProQuiz_Controller_Admin.php:110
69
+ msgid "No sort element in the criterion"
70
+ msgstr ""
71
+
72
+ #: lib/controller/WpProQuiz_Controller_Admin.php:111
73
+ msgid ""
74
+ "\"Different points for every answer\" is not possible at \"Free\" choice"
75
+ msgstr ""
76
+
77
+ #: lib/controller/WpProQuiz_Controller_Front.php:44
78
+ #: lib/controller/WpProQuiz_Controller_Preview.php:15
79
+ #: lib/view/WpProQuiz_View_AdminToplist.php:47
80
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:393
81
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:93
82
+ #: lib/view/WpProQuiz_View_Statistics.php:45
83
+ msgid "Loading"
84
+ msgstr "Загрузка"
85
+
86
  #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
87
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
88
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:43
89
  #: lib/controller/WpProQuiz_Controller_Question.php:51
90
  #: lib/controller/WpProQuiz_Controller_Question.php:128
91
  #: lib/controller/WpProQuiz_Controller_Question.php:143
92
+ #: lib/controller/WpProQuiz_Controller_Question.php:196
93
+ #: lib/controller/WpProQuiz_Controller_Question.php:342
94
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:175
95
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:189
96
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:249
97
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:297
98
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:163
99
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:76
100
  msgid "You do not have sufficient permissions to access this page."
101
  msgstr "У Вас недостаточно прав для просмотра этой страницы"
102
 
105
  msgstr "Настройки сохранены"
106
 
107
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
108
+ #: lib/helper/WpProQuiz_Helper_Import.php:59
109
+ #: lib/helper/WpProQuiz_Helper_Import.php:68
110
+ #: lib/helper/WpProQuiz_Helper_Import.php:75
111
  msgid "File cannot be processed"
112
  msgstr "Файл не может быть обработан"
113
 
114
  #: lib/controller/WpProQuiz_Controller_Question.php:9
115
  #: lib/controller/WpProQuiz_Controller_Question.php:19
116
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:201
117
  msgid "Quiz not found"
118
  msgstr "Тест не найден"
119
 
125
  msgid "Edit question"
126
  msgstr "Редактирование вопроса"
127
 
128
+ #: lib/controller/WpProQuiz_Controller_Question.php:155
129
  msgid "Question not found"
130
  msgstr "Вопрос не найден"
131
 
132
+ #: lib/controller/WpProQuiz_Controller_Question.php:172
133
+ #: lib/controller/WpProQuiz_Controller_Question.php:224
134
  #, php-format
135
  msgid "Question: %d"
136
  msgstr "Вопрос %d"
137
 
138
+ #: lib/controller/WpProQuiz_Controller_Question.php:180
139
  msgid "Question edited"
140
  msgstr "Вопрос отредактирован"
141
 
142
+ #: lib/controller/WpProQuiz_Controller_Question.php:200
143
  msgid "New question"
144
  msgstr "Новый вопрос"
145
 
146
+ #: lib/controller/WpProQuiz_Controller_Question.php:233
147
  msgid "Question added"
148
  msgstr "Вопрос добавлен"
149
 
150
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:196
151
  #: lib/view/WpProQuiz_View_QuestionOverall.php:21
152
  msgid "Edit quiz"
153
  msgstr "Редактирование теста"
154
 
155
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:216
156
  msgid "Quiz edited"
157
  msgstr "Тест отредактирован"
158
 
159
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:233
160
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:281
161
  msgid "Quiz title or quiz description are not filled"
162
  msgstr "Не заполнены заголовок или описание теста"
163
 
164
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:253
165
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:267
166
  msgid "Create quiz"
167
  msgstr "Создать тест"
168
 
169
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:314
170
  msgid "Quiz deleted"
171
  msgstr "Тест удален"
172
 
173
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:136
174
+ msgid "You signing up successfully."
175
+ msgstr ""
176
+
177
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:144
178
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:148
179
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:165
180
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:169
181
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:175
182
+ msgid "An error has occurred."
183
+ msgstr ""
184
+
185
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:186
186
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:195
187
+ msgid "You can not enter again."
188
+ msgstr ""
189
+
190
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:199
191
+ msgid "No name or e-mail entered."
192
+ msgstr ""
193
+
194
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:203
195
+ msgid "Your name can not exceed 15 characters."
196
+ msgstr ""
197
+
198
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:211
199
+ msgid "You entered wrong captcha code."
200
+ msgstr ""
201
+
202
  #: lib/helper/WpProQuiz_Helper_Import.php:9
203
  msgid "File was not uploaded"
204
  msgstr "Файл не загружен"
207
  msgid "File have wrong format"
208
  msgstr "Неверный формат файла"
209
 
210
+ #: lib/helper/WpProQuiz_Helper_Import.php:45
211
+ msgid "File is not compatible with the current version"
212
+ msgstr ""
213
+
214
  #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
215
  msgid "The user completed a quiz."
216
  msgstr "Пользователь завершил тест."
217
 
218
+ #: lib/view/WpProQuiz_View_AdminToplist.php:7
219
+ #: lib/view/WpProQuiz_View_FrontToplist.php:8
220
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
221
+ #: lib/view/WpProQuiz_View_QuizEdit.php:534
222
+ #: lib/view/WpProQuiz_View_QuizOverall.php:96
223
+ msgid "Leaderboard"
224
+ msgstr ""
225
+
226
+ #: lib/view/WpProQuiz_View_AdminToplist.php:8
227
+ #: lib/view/WpProQuiz_View_GobalSettings.php:21
228
+ #: lib/view/WpProQuiz_View_Import.php:22
229
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
230
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
231
+ #: lib/view/WpProQuiz_View_QuizEdit.php:8
232
+ #: lib/view/WpProQuiz_View_Statistics.php:18
233
+ #: lib/view/WpProQuiz_View_StyleManager.php:11
234
+ msgid "back to overview"
235
+ msgstr "Назад к списку"
236
+
237
+ #: lib/view/WpProQuiz_View_AdminToplist.php:11
238
+ #: lib/view/WpProQuiz_View_Statistics.php:115
239
+ msgid "Filter"
240
+ msgstr "Фильтр"
241
+
242
+ #: lib/view/WpProQuiz_View_AdminToplist.php:16
243
+ msgid "Sort by:"
244
+ msgstr ""
245
+
246
+ #: lib/view/WpProQuiz_View_AdminToplist.php:18
247
+ #: lib/view/WpProQuiz_View_QuizEdit.php:600
248
+ msgid "best user"
249
+ msgstr ""
250
+
251
+ #: lib/view/WpProQuiz_View_AdminToplist.php:19
252
+ #: lib/view/WpProQuiz_View_QuizEdit.php:604
253
+ msgid "newest entry"
254
+ msgstr ""
255
+
256
+ #: lib/view/WpProQuiz_View_AdminToplist.php:20
257
+ #: lib/view/WpProQuiz_View_QuizEdit.php:608
258
+ msgid "oldest entry"
259
+ msgstr ""
260
+
261
+ #: lib/view/WpProQuiz_View_AdminToplist.php:26
262
+ #: lib/view/WpProQuiz_View_Statistics.php:126
263
+ msgid "How many entries should be shown on one page:"
264
+ msgstr "Количество записей на странице:"
265
+
266
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
267
+ #: lib/view/WpProQuiz_View_AdminToplist.php:57
268
+ msgid "Type"
269
+ msgstr ""
270
+
271
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
272
+ msgid "UR = unregistered user, R = registered user"
273
+ msgstr ""
274
+
275
+ #: lib/view/WpProQuiz_View_AdminToplist.php:55
276
+ #: lib/view/WpProQuiz_View_Statistics.php:145
277
+ msgid "User"
278
+ msgstr "Пользователь"
279
+
280
+ #: lib/view/WpProQuiz_View_AdminToplist.php:56
281
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:401
282
+ msgid "E-Mail"
283
+ msgstr ""
284
+
285
+ #: lib/view/WpProQuiz_View_AdminToplist.php:58
286
+ #: lib/view/WpProQuiz_View_FrontToplist.php:16
287
+ msgid "Entered on"
288
+ msgstr ""
289
+
290
+ #: lib/view/WpProQuiz_View_AdminToplist.php:59
291
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:283
292
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:301
293
+ #: lib/view/WpProQuiz_View_FrontToplist.php:17
294
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
295
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
296
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:223
297
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:260
298
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
299
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
300
+ #: lib/view/WpProQuiz_View_Statistics.php:54
301
+ #: lib/view/WpProQuiz_View_Statistics.php:146
302
+ msgid "Points"
303
+ msgstr "Баллы"
304
+
305
+ #: lib/view/WpProQuiz_View_AdminToplist.php:60
306
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:64
307
+ #: lib/view/WpProQuiz_View_Statistics.php:59
308
+ #: lib/view/WpProQuiz_View_Statistics.php:150
309
+ msgid "Results"
310
+ msgstr "Результаты"
311
+
312
+ #: lib/view/WpProQuiz_View_AdminToplist.php:79
313
+ msgid "Action"
314
+ msgstr "Действие"
315
+
316
+ #: lib/view/WpProQuiz_View_AdminToplist.php:80
317
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:54
318
+ #: lib/view/WpProQuiz_View_QuizOverall.php:84
319
+ msgid "Delete"
320
+ msgstr "Удалить"
321
+
322
+ #: lib/view/WpProQuiz_View_AdminToplist.php:82
323
+ msgid "Apply"
324
+ msgstr ""
325
+
326
+ #: lib/view/WpProQuiz_View_AdminToplist.php:83
327
+ msgid "Delete all entries"
328
+ msgstr ""
329
+
330
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:49
331
  msgid "Start quiz"
332
  msgstr "Начать тест"
333
 
334
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:54
335
  msgid ""
336
  "You have already completed the quiz before. Hence you can not start it again."
337
  msgstr "Вы уже проходили тест ранее. Вы не можете запустить его снова."
338
 
339
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:59
340
+ msgid "You have to finish following quiz, to start this quiz:"
341
+ msgstr ""
 
 
342
 
343
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:66
344
  #, php-format
345
  msgid "%s of %s questions answered correctly"
346
  msgstr "Правильных ответов: %s из %s"
347
 
348
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:69
349
  msgid "Your time: <span></span>"
350
  msgstr "Ваше время: <span></span>"
351
 
352
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:72
353
  msgid "Time has elapsed"
354
  msgstr "Время вышло"
355
 
356
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:75
357
+ #, php-format
358
+ msgid "You have reached %s of %s points, (%s)"
359
+ msgstr "Вы набрали %s из %s баллов (%s)"
360
+
361
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:83
362
+ msgid "Average score"
363
+ msgstr ""
364
+
365
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:90
366
+ msgid "Your score"
367
+ msgstr ""
368
 
369
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:122
370
  msgid "Restart quiz"
371
  msgstr "Начать тест заново"
372
 
373
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:124
374
  msgid "View questions"
375
  msgstr "Показать вопросы"
376
 
377
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:127
378
+ msgid "Show leaderboard"
379
+ msgstr ""
380
+
381
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:138
382
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
383
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
384
  msgid "Time limit"
385
  msgstr "Лимит времени"
386
 
387
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:162
388
  #, php-format
389
  msgid "Question %s of %s"
390
  msgstr "Вопрос %s из %s"
391
 
392
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:165
393
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
394
  #: lib/view/WpProQuiz_View_Statistics.php:53
395
  msgid "Question"
396
  msgstr "Вопрос"
397
 
398
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:169
399
  #, php-format
400
  msgid "%d points"
401
  msgstr "Количество баллов: %d"
402
 
403
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:179
404
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:252
 
 
405
  msgid "Sort elements"
406
  msgstr "Элементы сортировки"
407
 
408
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:281
409
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:288
410
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:211
411
  #: lib/view/WpProQuiz_View_Statistics.php:55
412
  #: lib/view/WpProQuiz_View_Statistics.php:147
413
  msgid "Correct"
414
  msgstr "Правильно"
415
 
416
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:299
417
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:306
 
 
 
 
 
 
 
 
 
 
418
  #: lib/view/WpProQuiz_View_Statistics.php:56
419
  #: lib/view/WpProQuiz_View_Statistics.php:148
420
  msgid "Incorrect"
421
  msgstr "Неправильно"
422
 
423
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:327
424
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:336
425
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
426
  msgid "Hint"
427
  msgstr "Подсказка"
428
 
429
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:333
430
  msgid "Check"
431
  msgstr "Проверить"
432
 
433
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:334
434
  msgid "Back"
435
  msgstr "Назад"
436
 
437
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:338
438
  msgid "Next exercise"
439
  msgstr "Далее"
440
 
441
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:351
442
  msgid "Finish quiz"
443
  msgstr "Завершить тест"
444
 
445
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:391
446
+ msgid "Your result entered into leaderboard"
447
+ msgstr ""
448
+
449
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:398
450
+ #: lib/view/WpProQuiz_View_FrontToplist.php:15
451
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
452
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
453
+ msgid "Name"
454
+ msgstr "Название"
455
+
456
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:406
457
+ msgid "Captcha"
458
+ msgstr ""
459
+
460
+ #: lib/view/WpProQuiz_View_FrontToplist.php:11
461
+ #, php-format
462
+ msgid "maximum of %s points"
463
+ msgstr ""
464
+
465
+ #: lib/view/WpProQuiz_View_FrontToplist.php:14
466
+ msgid "Pos."
467
+ msgstr ""
468
+
469
+ #: lib/view/WpProQuiz_View_FrontToplist.php:18
470
+ msgid "Result"
471
+ msgstr ""
472
+
473
+ #: lib/view/WpProQuiz_View_FrontToplist.php:23
474
+ msgid "Table is loading"
475
+ msgstr ""
476
+
477
  #: lib/view/WpProQuiz_View_GobalSettings.php:7
478
  msgid "to activate"
479
  msgstr "включить"
483
  msgstr "отключить"
484
 
485
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
486
+ #: lib/view/WpProQuiz_View_GobalSettings.php:24
487
+ #: lib/view/WpProQuiz_View_GobalSettings.php:31
488
  #: lib/view/WpProQuiz_View_QuizOverall.php:48
489
+ msgid "Global settings"
490
+ msgstr ""
491
 
492
  #: lib/view/WpProQuiz_View_GobalSettings.php:16
493
+ #: lib/view/WpProQuiz_View_WpqSupport.php:50
494
  msgid "Please note"
495
  msgstr "Пожалуйста, обратите внимание"
496
 
500
  msgstr ""
501
  "Эти параметры должны быть установлены только в случае проблем с Wp-Pro-Quiz."
502
 
503
+ #: lib/view/WpProQuiz_View_GobalSettings.php:25
504
+ #: lib/view/WpProQuiz_View_GobalSettings.php:78
505
+ msgid "Settings in case of problems"
506
+ msgstr "Настройки в случае возникновения проблем"
 
 
 
 
 
507
 
508
+ #: lib/view/WpProQuiz_View_GobalSettings.php:37
509
+ #: lib/view/WpProQuiz_View_GobalSettings.php:42
510
+ msgid "Leaderboard time format"
511
+ msgstr ""
512
+
513
+ #: lib/view/WpProQuiz_View_GobalSettings.php:64
514
+ msgid "Custom"
515
+ msgstr ""
516
+
517
+ #: lib/view/WpProQuiz_View_GobalSettings.php:68
518
+ msgid "Documentation on date and time formatting"
519
+ msgstr ""
520
+
521
+ #: lib/view/WpProQuiz_View_GobalSettings.php:84
522
+ #: lib/view/WpProQuiz_View_GobalSettings.php:89
523
  msgid "Automatically add [raw] shortcode"
524
  msgstr "Автоматически добавлять шорткод [raw]"
525
 
526
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
527
+ #: lib/view/WpProQuiz_View_GobalSettings.php:115
528
+ #: lib/view/WpProQuiz_View_GobalSettings.php:167
529
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
530
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
531
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
540
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
541
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
542
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
543
+ #: lib/view/WpProQuiz_View_QuizEdit.php:442
544
+ #: lib/view/WpProQuiz_View_QuizEdit.php:467
545
+ #: lib/view/WpProQuiz_View_QuizEdit.php:539
546
+ #: lib/view/WpProQuiz_View_QuizEdit.php:572
547
+ #: lib/view/WpProQuiz_View_QuizEdit.php:620
548
+ #: lib/view/WpProQuiz_View_QuizEdit.php:696
549
  msgid "Activate"
550
  msgstr "Активно"
551
 
552
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
553
  #, php-format
554
  msgid "It is recommended %s this option on your system."
555
  msgstr "Рекомендуется %s эту опцию в вашей системе."
556
 
557
+ #: lib/view/WpProQuiz_View_GobalSettings.php:96
558
  msgid ""
559
  "If this option is activated, a [raw] shortcode is automatically set around "
560
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
562
  "Если этот параметр активен, шорткод [raw] будет автоматически обрамлять "
563
  "WpProQuiz шорткод ( [WpProQuiz X] в [raw] [WpProQuiz X] [/raw])."
564
 
565
+ #: lib/view/WpProQuiz_View_GobalSettings.php:99
566
  #: lib/view/WpProQuiz_View_QuizOverall.php:42
567
  msgid ""
568
  "Own themes changes internal order of filters, what causes the problems. "
571
  "Некоторые темы меняют внутренний порядок фильтра, что приводит к ошибкам. "
572
  "Шорткод [raw] препятствует этому."
573
 
574
+ #: lib/view/WpProQuiz_View_GobalSettings.php:106
575
+ #: lib/view/WpProQuiz_View_GobalSettings.php:111
576
  msgid "Do not load the Javascript-files in the footer"
577
  msgstr "Не загружать Javascript-файлы в нижнюю часть страницы (подвал)"
578
 
579
+ #: lib/view/WpProQuiz_View_GobalSettings.php:118
580
  msgid ""
581
  "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
582
  "when they are really needed."
584
  "По умолчанию все WpProQuiz-Javascript файлы грузятся в нижнюю часть страницы "
585
  "(подвал) и только если они действительно нужны."
586
 
587
+ #: lib/view/WpProQuiz_View_GobalSettings.php:121
588
  msgid "In very old Wordpress themes this can lead to problems."
589
  msgstr "Может вызывать проблемы в старых темах Wordpress."
590
 
591
+ #: lib/view/WpProQuiz_View_GobalSettings.php:124
592
  msgid ""
593
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
594
  "the header even if they are not needed."
596
  "Если Вы включите эту опцию, все WpProQuiz-Javascript файлы будут загружены в "
597
  "заголовок страницы, даже если они не нужны."
598
 
599
+ #: lib/view/WpProQuiz_View_GobalSettings.php:127
600
  #, php-format
601
  msgid ""
602
  "Anyone who wants to learn more about this topic should read through the "
605
  "Если Вам нужна дополнительная информация по данной теме, посетите следующие "
606
  "вебсайты: %s и %s"
607
 
608
+ #: lib/view/WpProQuiz_View_GobalSettings.php:136
609
+ #: lib/view/WpProQuiz_View_GobalSettings.php:141
610
  msgid "Touch Library"
611
  msgstr "Сеснсорная библиотека"
612
 
613
+ #: lib/view/WpProQuiz_View_GobalSettings.php:145
614
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
615
  msgid "Deactivate"
616
  msgstr "Неактивно"
617
 
618
+ #: lib/view/WpProQuiz_View_GobalSettings.php:148
619
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
620
  msgstr ""
621
  "В версии 0.13 добавлена новая сенсорная библиотека для мобильных устройств."
622
 
623
+ #: lib/view/WpProQuiz_View_GobalSettings.php:151
624
  msgid "If you have any problems with the Touch Library, please deactivate it."
625
  msgstr "Если у Вас проблемы с сенсорной библиотекой, пожалуйста отключите ее."
626
 
627
+ #: lib/view/WpProQuiz_View_GobalSettings.php:158
628
+ #: lib/view/WpProQuiz_View_GobalSettings.php:163
629
  msgid "jQuery support cors"
630
  msgstr "Поддержка jQuery cors"
631
 
632
+ #: lib/view/WpProQuiz_View_GobalSettings.php:170
633
  msgid "Is required only in rare cases."
634
  msgstr "Требуется только в редких случаях."
635
 
636
+ #: lib/view/WpProQuiz_View_GobalSettings.php:173
637
  msgid "If you have problems with the front ajax, please activate it."
638
  msgstr "Пожалуйста, активируйте при проблеммах с ajax."
639
 
640
+ #: lib/view/WpProQuiz_View_GobalSettings.php:176
641
  msgid "e.g. Domain with special characters in combination with IE"
642
  msgstr "Например домен со специальными символами в сочетании с IE"
643
 
644
+ #: lib/view/WpProQuiz_View_GobalSettings.php:185
645
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:185
646
+ #: lib/view/WpProQuiz_View_QuizEdit.php:790
647
+ #: lib/view/WpProQuiz_View_WpqSupport.php:45
648
  msgid "Save"
649
  msgstr "Сохранить"
650
 
651
  #: lib/view/WpProQuiz_View_Import.php:21
652
+ #: lib/view/WpProQuiz_View_QuizOverall.php:120
653
+ #: lib/view/WpProQuiz_View_QuizOverall.php:137
654
  msgid "Import"
655
  msgstr "Импорт"
656
 
671
  msgstr "Название теста"
672
 
673
  #: lib/view/WpProQuiz_View_Import.php:44
674
+ #: lib/view/WpProQuiz_View_QuizOverall.php:75
675
  msgid "Questions"
676
  msgstr "Вопросы"
677
 
678
  #: lib/view/WpProQuiz_View_Import.php:67
679
+ #: lib/view/WpProQuiz_View_QuizOverall.php:148
680
  msgid "Start import"
681
  msgstr "Начать импорт"
682
 
685
  msgstr "Заголовок"
686
 
687
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
688
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
689
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
690
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
691
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
692
+ #: lib/view/WpProQuiz_View_QuizEdit.php:684
693
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
694
  msgid "(optional)"
695
  msgstr "(необязательное поле)"
696
 
703
  "оставить пустым, название сгенерируется автоматически."
704
 
705
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
706
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
707
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
708
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
709
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
710
  msgid "(required)"
711
  msgstr "(обязательное поле)"
712
 
714
  msgid "Points for this question (Standard is 1 point)"
715
  msgstr "Количество баллов для этого вопроса (по-умолчанию 1 балл)"
716
 
717
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:31
718
+ msgid ""
719
+ "This points will be rewarded, only if the user closes the question correctly."
720
+ msgstr ""
721
 
722
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
723
+ msgid "Different points for each answer"
724
+ msgstr ""
725
+
726
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:40
727
  msgid ""
728
+ "If you enable this option, you can enter different points for every answer."
 
 
729
  msgstr ""
 
 
 
730
 
731
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:46
732
  msgid "Show reached points in the correct- and incorrect message?"
733
  msgstr ""
734
  "Показывать набранные баллы в сообщениях к правильному и неправильному "
735
  "ответам?"
736
 
737
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
738
  msgid "Message with the correct / incorrect answer"
739
  msgstr "Сообщение для правильного / неправильного ответа"
740
 
741
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:62
742
  msgid "Deactivated in quiz settings."
743
  msgstr "Отключено в настройках теста."
744
 
745
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
746
  msgid "Message with the correct answer"
747
  msgstr "Сообщение для правильного ответа"
748
 
749
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:70
750
  msgid ""
751
  "This text will be visible if answered correctly. It can be used as "
752
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
756
  "качестве объяснения сложных вопросов. Сообщение \"Правильно \" или "
757
  "\"Неправильно\" всегда отображается автоматически."
758
 
759
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
760
  msgid "Same text for correct- and incorrect-message?"
761
  msgstr "Одинаковый текст для сообщений с правильным и неправильным ответом?"
762
 
763
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
764
  msgid "Message with the incorrect answer"
765
  msgstr "Сообщение для неправильного ответа"
766
 
767
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:87
768
  msgid ""
769
  "This text will be visible if answered incorrectly. It can be used as "
770
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
774
  "в качестве объяснения сложных вопросов. Сообщение \"Правильно \" или "
775
  "\"Неправильно\" всегда отображается автоматически."
776
 
777
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:99
778
  msgid "Here you can enter solution hint."
779
  msgstr "Сюда можно ввести подсказку."
780
 
781
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:103
782
  msgid "Activate hint for this question?"
783
  msgstr "Активировать подсказку для этого вопроса?"
784
 
785
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:115
786
  msgid "Answer type"
787
  msgstr "Тип ответа"
788
 
789
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:123
790
  msgid "Single choice"
791
  msgstr "Одиночный выбор"
792
 
793
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:127
794
  msgid "Multiple choice"
795
  msgstr "Множественный выбор"
796
 
797
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:131
798
  msgid "\"Free\" choice"
799
  msgstr "\"Открытый\""
800
 
801
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:135
802
  msgid "\"Sorting\" choice"
803
  msgstr "\"Сортировка\""
804
 
805
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:139
806
  msgid "\"Matrix Sorting\" choice"
807
  msgstr "\"Матричная сортировка\""
808
 
809
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:143
810
  #, fuzzy
811
  msgid "Cloze"
812
  msgstr "\"Заключенный текст\""
813
 
814
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
815
  msgid "Answers"
816
  msgstr "Ответы"
817
 
818
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:155
 
 
 
 
 
 
 
 
819
  msgid ""
820
  "Please sort the answers in right order with the \"Move\" - Button. The "
821
  "answers will be displayed randomly."
823
  "Пожалуйста, отсортируйте ответы в правильном порядке при помощи кнопки "
824
  "\"Переместить \". Ответы будут отображаться в случайном порядке."
825
 
826
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:160
827
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
828
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
829
  msgid "Add new answer"
830
  msgstr "Добавить новый ответ"
831
 
832
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
 
 
 
 
 
 
833
  msgid ""
834
  "In this mode, not a list have to be sorted, but elements must be assigned to "
835
  "matching criterion."
837
  "В этом режиме не нужно сортировать список. Элементы сортировки должны быть "
838
  "отнесены к соответствующему критерию."
839
 
840
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
841
+ msgid ""
842
+ "You can create sort elements with empty criteria, which can't be assigned by "
843
+ "user."
844
+ msgstr ""
845
+
846
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:201
847
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
848
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:302
849
+ #: lib/view/WpProQuiz_View_QuizEdit.php:18
850
+ msgid "Options"
851
+ msgstr "Настройки"
852
+
853
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
854
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:303
855
+ msgid "Answer"
856
+ msgstr ""
857
+
858
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:217
859
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:275
860
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:281
861
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:312
862
+ msgid "Allow HTML"
863
+ msgstr "Разрешить HTML"
864
+
865
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:234
866
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:288
867
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:329
868
+ msgid "Delete answer"
869
+ msgstr "Удалить ответ"
870
+
871
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:235
872
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
873
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:330
874
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:58
875
+ msgid "Move"
876
+ msgstr "Переместить"
877
+
878
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:251
879
  msgid "Criterion"
880
  msgstr "Критерий"
881
 
882
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:341
883
+ msgid ""
884
+ "correct answers (one per line) (answers will be converted to lower case)"
885
+ msgstr ""
886
+ "правильных ответов (по одному на строку) (ответы будут преобразованы в "
887
+ "нижний регистр)"
888
+
889
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:354
890
  msgid ""
891
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
892
  "small letters will be ignored."
894
  "Заключите поиск слов в { } , например, \"I {играть} в футбол\". Прописные и "
895
  "строчные буквы будут игнорироваться."
896
 
897
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:357
898
+ msgid ""
899
+ "If mode \"Different points for every answer\" is activated, you can assign "
900
+ "points with |POINTS. Otherwise 1 point will be awarded for every answer."
901
+ msgstr ""
902
+
903
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
904
+ msgid ""
905
+ "e.g. \"I {play} soccer, with a {ball|3}\" - \"play\" gives 1 point and \"ball"
906
+ "\" 3 points."
907
+ msgstr ""
908
+
909
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
910
  msgid "Questions sorted"
911
  msgstr "Вопросы отсортированы"
912
 
913
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
914
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
 
 
 
 
 
 
 
 
 
 
915
  msgid "Edit"
916
  msgstr "Редактировать"
917
 
918
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
 
 
 
 
 
919
  #: lib/view/WpProQuiz_View_Statistics.php:84
920
  msgid "Total"
921
  msgstr "Всего"
922
 
923
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:81
924
  msgid "Add question"
925
  msgstr "Добавить вопрос"
926
 
927
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:82
928
  msgid "Save order"
929
  msgstr "сохранить сортировку"
930
 
931
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:83
932
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:88
933
  msgid "Copy questions from another Quiz"
934
  msgstr "Копировать вопросы из другого теста."
935
 
936
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:89
937
  msgid ""
938
  "Here you can copy questions from another quiz into this quiz. (Multiple "
939
  "selection enabled)"
941
  "Здесь Вы можете скопировать вопросы из другого теста в этот тест. "
942
  "(Множественный выбор включен)"
943
 
944
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:101
 
 
 
 
 
945
  msgid "Copy questions"
946
  msgstr "Вопросы скопированы"
947
 
949
  msgid "Quiz title"
950
  msgstr "Заголовок теста"
951
 
 
 
 
 
952
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
953
  msgid "Hide quiz title"
954
  msgstr "Спрятать заголовок теста"
1026
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
1027
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
1028
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
1029
+ #: lib/view/WpProQuiz_View_QuizEdit.php:448
1030
+ #: lib/view/WpProQuiz_View_QuizEdit.php:661
1031
+ #: lib/view/WpProQuiz_View_QuizEdit.php:671
1032
  msgid "Demo"
1033
  msgstr "Демо"
1034
 
1077
 
1078
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
1079
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
1080
+ #: lib/view/WpProQuiz_View_QuizOverall.php:92
1081
  msgid "Statistics"
1082
  msgstr "Статистика"
1083
 
1126
  msgstr "Этот параметр применяется к:"
1127
 
1128
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
1129
+ #: lib/view/WpProQuiz_View_QuizEdit.php:550
1130
  msgid "all users"
1131
  msgstr "все пользователи"
1132
 
1133
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
1134
+ #: lib/view/WpProQuiz_View_QuizEdit.php:554
1135
  msgid "registered useres only"
1136
  msgstr "только зарегистрированные пользователи"
1137
 
1138
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
1139
+ #: lib/view/WpProQuiz_View_QuizEdit.php:558
1140
  msgid "anonymous users only"
1141
  msgstr "только анонимные пользователи"
1142
 
1222
  msgid "in percent"
1223
  msgstr "в процентах"
1224
 
1225
+ #: lib/view/WpProQuiz_View_QuizEdit.php:433
1226
+ #: lib/view/WpProQuiz_View_QuizEdit.php:438
1227
+ msgid "Show average points"
1228
+ msgstr ""
1229
+
1230
+ #: lib/view/WpProQuiz_View_QuizEdit.php:445
1231
+ msgid "Statistics-function must be enabled."
1232
+ msgstr ""
1233
+
1234
+ #: lib/view/WpProQuiz_View_QuizEdit.php:458
1235
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
1236
+ msgid "Prerequisites"
1237
+ msgstr ""
1238
+
1239
+ #: lib/view/WpProQuiz_View_QuizEdit.php:470
1240
+ msgid ""
1241
+ "If you enable this option, you can choose quiz, which user have to finish "
1242
+ "before he can start this quiz."
1243
+ msgstr ""
1244
+
1245
+ #: lib/view/WpProQuiz_View_QuizEdit.php:473
1246
+ msgid ""
1247
+ "In all selected quizzes statistic function have to be active. If it is not "
1248
+ "it will be activated automatically."
1249
+ msgstr ""
1250
+
1251
+ #: lib/view/WpProQuiz_View_QuizEdit.php:478
1252
+ msgid "Quiz"
1253
+ msgstr ""
1254
+
1255
+ #: lib/view/WpProQuiz_View_QuizEdit.php:480
1256
+ msgid "Prerequisites (This quiz have to be finished)"
1257
+ msgstr ""
1258
+
1259
+ #: lib/view/WpProQuiz_View_QuizEdit.php:525
1260
+ msgid ""
1261
+ "The leaderboard allows users to enter results in public list and to share "
1262
+ "the result this way."
1263
+ msgstr ""
1264
+
1265
+ #: lib/view/WpProQuiz_View_QuizEdit.php:528
1266
+ msgid "The leaderboard works independent from internal statistics function."
1267
+ msgstr ""
1268
+
1269
+ #: lib/view/WpProQuiz_View_QuizEdit.php:545
1270
+ msgid "Who can sign up to the list"
1271
+ msgstr ""
1272
+
1273
+ #: lib/view/WpProQuiz_View_QuizEdit.php:561
1274
+ msgid ""
1275
+ "Not registered users have to enter name and e-mail (e-mail won't be "
1276
+ "displayed)"
1277
+ msgstr ""
1278
+
1279
+ #: lib/view/WpProQuiz_View_QuizEdit.php:567
1280
+ msgid "display captcha"
1281
+ msgstr ""
1282
+
1283
+ #: lib/view/WpProQuiz_View_QuizEdit.php:575
1284
+ msgid ""
1285
+ "If you enable this option, additional captcha will be displayed for users "
1286
+ "who are not registered."
1287
+ msgstr ""
1288
+
1289
+ #: lib/view/WpProQuiz_View_QuizEdit.php:578
1290
+ msgid "This option requires additional plugin:"
1291
+ msgstr ""
1292
+
1293
+ #: lib/view/WpProQuiz_View_QuizEdit.php:583
1294
+ msgid "Plugin has been detected."
1295
+ msgstr ""
1296
+
1297
+ #: lib/view/WpProQuiz_View_QuizEdit.php:587
1298
+ msgid "Plugin is not installed."
1299
+ msgstr ""
1300
+
1301
+ #: lib/view/WpProQuiz_View_QuizEdit.php:595
1302
+ msgid "Sort list by"
1303
+ msgstr ""
1304
+
1305
+ #: lib/view/WpProQuiz_View_QuizEdit.php:614
1306
+ msgid "Users can apply multiple times"
1307
+ msgstr ""
1308
+
1309
+ #: lib/view/WpProQuiz_View_QuizEdit.php:625
1310
+ msgid "User can apply after:"
1311
+ msgstr ""
1312
+
1313
+ #: lib/view/WpProQuiz_View_QuizEdit.php:627
1314
+ msgid "minute"
1315
+ msgstr ""
1316
+
1317
+ #: lib/view/WpProQuiz_View_QuizEdit.php:634
1318
+ msgid "How many entries should be displayed"
1319
+ msgstr ""
1320
+
1321
+ #: lib/view/WpProQuiz_View_QuizEdit.php:640
1322
+ msgid "Entries"
1323
+ msgstr ""
1324
+
1325
+ #: lib/view/WpProQuiz_View_QuizEdit.php:647
1326
+ msgid "Automatically display leaderboard in quiz result"
1327
+ msgstr ""
1328
+
1329
+ #: lib/view/WpProQuiz_View_QuizEdit.php:651
1330
+ msgid "Where should leaderboard be displayed:"
1331
+ msgstr ""
1332
+
1333
+ #: lib/view/WpProQuiz_View_QuizEdit.php:654
1334
+ msgid "don't display"
1335
+ msgstr ""
1336
+
1337
+ #: lib/view/WpProQuiz_View_QuizEdit.php:658
1338
+ msgid "below the \"result text\""
1339
+ msgstr ""
1340
+
1341
+ #: lib/view/WpProQuiz_View_QuizEdit.php:668
1342
+ msgid "in a button"
1343
+ msgstr ""
1344
+
1345
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
1346
  msgid "Quiz description"
1347
  msgstr "Описание теста"
1348
 
1349
+ #: lib/view/WpProQuiz_View_QuizEdit.php:714
1350
  msgid "This text will be displayed before start of the quiz."
1351
  msgstr "Этот текст будет отображаться перед началом теста."
1352
 
1353
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
1354
  msgid "Results text"
1355
  msgstr "Текст для результата"
1356
 
1357
+ #: lib/view/WpProQuiz_View_QuizEdit.php:725
1358
  msgid ""
1359
  "This text will be displayed at the end of the quiz (in results). (this text "
1360
  "is optional)"
1362
  "Этот текст будет отображаться в конце теста (в результатах). (не является "
1363
  "обязательным)"
1364
 
1365
+ #: lib/view/WpProQuiz_View_QuizEdit.php:729
1366
  msgid "Activate graduation"
1367
  msgstr "Активировать окончания"
1368
 
1369
+ #: lib/view/WpProQuiz_View_QuizEdit.php:735
1370
  msgid "Hint:"
1371
  msgstr "Подсказка:"
1372
 
1373
+ #: lib/view/WpProQuiz_View_QuizEdit.php:737
1374
  msgid "Maximal 15 levels"
1375
  msgstr "Максимум 15 уровней"
1376
 
1377
+ #: lib/view/WpProQuiz_View_QuizEdit.php:739
1378
  #, php-format
1379
  msgid ""
1380
  "Percentages refer to the total score of the quiz. (Current total %d points "
1382
  msgstr ""
1383
  "Проценты относятся к общему баллу теста (Всего %d баллов в %d вопросах)"
1384
 
1385
+ #: lib/view/WpProQuiz_View_QuizEdit.php:742
1386
  msgid "Values can also be mixed up"
1387
  msgstr "значения могут быть перепутаны"
1388
 
1389
+ #: lib/view/WpProQuiz_View_QuizEdit.php:743
1390
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1391
  msgstr "Допускается 10,15% или 10.15% (макс. до двух знаков после запятой)"
1392
 
1393
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1394
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1395
  msgid "from:"
1396
  msgstr "от:"
1397
 
1398
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1399
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1400
  msgid "percent"
1401
  msgstr "процент"
1402
 
1403
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1404
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1405
  #, php-format
1406
  msgid ""
1407
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
1410
  "(Будет отображаться, если процентный результат >= <span class=\"resultProzent"
1411
  "\">%s</span>%%)"
1412
 
1413
+ #: lib/view/WpProQuiz_View_QuizEdit.php:760
1414
+ #: lib/view/WpProQuiz_View_QuizEdit.php:771
1415
  msgid "Delete graduation"
1416
  msgstr "Удалить окончания"
1417
 
1418
+ #: lib/view/WpProQuiz_View_QuizEdit.php:778
1419
  msgid "Add graduation"
1420
  msgstr "Добавить окончания"
1421
 
1435
  msgid "Style Manager"
1436
  msgstr "Менеджер стилей"
1437
 
1438
+ #: lib/view/WpProQuiz_View_QuizOverall.php:50
1439
+ #: lib/view/WpProQuiz_View_WpqSupport.php:8
1440
+ msgid "Support WP-Pro-Quiz"
1441
+ msgstr ""
1442
+
1443
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
1444
  msgid "ID"
1445
  msgstr "ID"
1446
 
1447
+ #: lib/view/WpProQuiz_View_QuizOverall.php:59
1448
  msgid "Shortcode"
1449
  msgstr "Шорткод"
1450
 
1451
+ #: lib/view/WpProQuiz_View_QuizOverall.php:60
1452
+ msgid "Shortcode-Leaderboard"
1453
+ msgstr ""
1454
+
1455
+ #: lib/view/WpProQuiz_View_QuizOverall.php:88
1456
  msgid "Preview"
1457
  msgstr "Предварительный просмотр"
1458
 
1459
+ #: lib/view/WpProQuiz_View_QuizOverall.php:118
1460
  msgid "Add quiz"
1461
  msgstr "Добавить тест"
1462
 
1463
+ #: lib/view/WpProQuiz_View_QuizOverall.php:122
1464
+ #: lib/view/WpProQuiz_View_QuizOverall.php:127
1465
  msgid "Export"
1466
  msgstr "Экспорт"
1467
 
1468
+ #: lib/view/WpProQuiz_View_QuizOverall.php:128
1469
  msgid ""
1470
  "Choose the respective question, which you would like to export and press on "
1471
  "\"Start export\""
1472
  msgstr ""
1473
  "Выберите вопрос, который хотите экспортировать и нажмите \"Экспортировать\""
1474
 
1475
+ #: lib/view/WpProQuiz_View_QuizOverall.php:132
1476
  msgid "Start export"
1477
  msgstr "Экспортировать"
1478
 
1479
+ #: lib/view/WpProQuiz_View_QuizOverall.php:138
1480
  msgid "Import only *.wpq files from known and trusted sources."
1481
  msgstr "Импортировать только *.wpq файлы из известных и надежных источников."
1482
 
1483
+ #: lib/view/WpProQuiz_View_QuizOverall.php:146
1484
  #, php-format
1485
  msgid "Maximal %d MiB"
1486
  msgstr "Максимально %d MiB"
1537
  msgid "Reset entire statistic"
1538
  msgstr "Сброс всей статистики"
1539
 
 
 
 
 
1540
  #: lib/view/WpProQuiz_View_Statistics.php:120
1541
  msgid "Show only users, who solved the quiz:"
1542
  msgstr "Показывать только тех пользователей, которые прошли тест:"
1543
 
 
 
 
 
 
 
 
 
1544
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1545
  #, fuzzy
1546
  msgid "Front"
1547
  msgstr "Фронт"
1548
 
1549
+ #: lib/view/WpProQuiz_View_WpqSupport.php:10
1550
+ msgid "Donate"
1551
+ msgstr ""
1552
+
1553
+ #: lib/view/WpProQuiz_View_WpqSupport.php:20
1554
+ msgid "WP-Pro-Quiz is small but nice free quiz plugin for WordPress."
1555
+ msgstr ""
1556
+
1557
+ #: lib/view/WpProQuiz_View_WpqSupport.php:21
1558
+ msgid ""
1559
+ "I try to implement all wishes as fast as possible and help with problems."
1560
+ msgstr ""
1561
+
1562
+ #: lib/view/WpProQuiz_View_WpqSupport.php:22
1563
+ msgid ""
1564
+ "Your donations can help to ensure that the project continues to remain free."
1565
+ msgstr ""
1566
+
1567
+ #: lib/view/WpProQuiz_View_WpqSupport.php:25
1568
+ msgid "Translate WP-Pro-Quiz"
1569
+ msgstr ""
1570
+
1571
+ #: lib/view/WpProQuiz_View_WpqSupport.php:27
1572
+ msgid "You need:"
1573
+ msgstr ""
1574
+
1575
+ #: lib/view/WpProQuiz_View_WpqSupport.php:30
1576
+ msgid "Latest POT file"
1577
+ msgstr ""
1578
+
1579
+ #: lib/view/WpProQuiz_View_WpqSupport.php:35
1580
+ msgid "Open PoEdit"
1581
+ msgstr ""
1582
+
1583
+ #: lib/view/WpProQuiz_View_WpqSupport.php:36
1584
+ msgid "File - New catalogue from POT file..."
1585
+ msgstr ""
1586
+
1587
+ #: lib/view/WpProQuiz_View_WpqSupport.php:37
1588
+ msgid "Choose wp-pro-quiz.pot"
1589
+ msgstr ""
1590
+
1591
+ #: lib/view/WpProQuiz_View_WpqSupport.php:38
1592
+ msgid "Set \"Translation properties\""
1593
+ msgstr ""
1594
+
1595
+ #: lib/view/WpProQuiz_View_WpqSupport.php:39
1596
+ msgid "Save PO file - with the name \"wp-pro-qioz-de_DE.po\""
1597
+ msgstr ""
1598
+
1599
+ #: lib/view/WpProQuiz_View_WpqSupport.php:41
1600
+ msgid "replace de_DE with your countries short code (e.g. en_US, nl_NL...)"
1601
+ msgstr ""
1602
+
1603
+ #: lib/view/WpProQuiz_View_WpqSupport.php:44
1604
+ msgid "Translate"
1605
+ msgstr ""
1606
+
1607
+ #: lib/view/WpProQuiz_View_WpqSupport.php:46
1608
+ msgid ""
1609
+ "Upload generated *.mo file to your server, to /wp-content/plugins/wp-pro-"
1610
+ "quiz/languages"
1611
+ msgstr ""
1612
+
1613
+ #: lib/view/WpProQuiz_View_WpqSupport.php:47
1614
+ msgid "Finished"
1615
+ msgstr ""
1616
+
1617
+ #: lib/view/WpProQuiz_View_WpqSupport.php:51
1618
+ msgid ""
1619
+ "You can translate WP-Pro-Quiz from existing to existing language (e.g. "
1620
+ "english to english) e.g. to rename buttons."
1621
+ msgstr ""
1622
+
1623
+ #~ msgid "Points per correct answer"
1624
+ #~ msgstr "Баллы за правильное соответствие"
1625
+
1626
+ #~ msgid ""
1627
+ #~ "If you enable this option, for every correct answer user will receive X "
1628
+ #~ "points. Otherwise he will receive points only if the question was solved "
1629
+ #~ "completely."
1630
+ #~ msgstr ""
1631
+ #~ "Если Вы включите эту опцию, то пользователь получит X баллов за каждое "
1632
+ #~ "правильное соответствие. В противном случае он получит баллы только "
1633
+ #~ "тогда, когда задание выполнено полностью."
1634
+
1635
+ #~ msgid "correct?"
1636
+ #~ msgstr "правильно?"
1637
+
1638
  #~ msgid "All"
1639
  #~ msgstr "Alle"
1640
 
languages/wp-pro-quiz-sv_SE.mo CHANGED
Binary file
languages/wp-pro-quiz-sv_SE.po CHANGED
@@ -1,72 +1,102 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2013-01-15 11:34+0100\n"
5
- "PO-Revision-Date: 2013-01-15 11:35+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:192
64
- #: lib/controller/WpProQuiz_Controller_Question.php:291
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
 
@@ -75,15 +105,15 @@ 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
 
@@ -95,51 +125,80 @@ msgstr "Frågor kopierade"
95
  msgid "Edit question"
96
  msgstr "Ändra fråga"
97
 
98
- #: lib/controller/WpProQuiz_Controller_Question.php:154
99
  msgid "Question not found"
100
  msgstr "Fråga ej funnen"
101
 
102
- #: lib/controller/WpProQuiz_Controller_Question.php:167
103
- #: lib/controller/WpProQuiz_Controller_Question.php:213
104
  #, php-format
105
  msgid "Question: %d"
106
  msgstr "Fråga: %d"
107
 
108
- #: lib/controller/WpProQuiz_Controller_Question.php:177
109
  msgid "Question edited"
110
  msgstr "Fråga ändrad"
111
 
112
- #: lib/controller/WpProQuiz_Controller_Question.php:196
113
  msgid "New question"
114
  msgstr "Ny fråga"
115
 
116
- #: lib/controller/WpProQuiz_Controller_Question.php:224
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"
@@ -148,127 +207,274 @@ msgstr "Fil laddades ej upp"
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:258
221
- #: lib/view/WpProQuiz_View_QuestionEdit.php:298
222
- #: lib/view/WpProQuiz_View_QuestionEdit.php:335
223
  msgid "Sort elements"
224
  msgstr "sortera element"
225
 
226
- #: lib/view/WpProQuiz_View_FrontQuiz.php:241
227
- #: lib/view/WpProQuiz_View_FrontQuiz.php:248
 
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:243
234
- #: lib/view/WpProQuiz_View_FrontQuiz.php:261
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:259
244
- #: lib/view/WpProQuiz_View_FrontQuiz.php:266
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:284
251
- #: lib/view/WpProQuiz_View_FrontQuiz.php:294
252
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
253
  msgid "Hint"
254
  msgstr "Tips"
255
 
256
- #: lib/view/WpProQuiz_View_FrontQuiz.php:291
257
  msgid "Check"
258
  msgstr "Svara"
259
 
260
- #: lib/view/WpProQuiz_View_FrontQuiz.php:292
261
  msgid "Back"
262
  msgstr "Tillbaka"
263
 
264
- #: lib/view/WpProQuiz_View_FrontQuiz.php:296
265
  msgid "Next exercise"
266
  msgstr "Nästa fråga >>"
267
 
268
- #: lib/view/WpProQuiz_View_FrontQuiz.php:309
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"
@@ -278,12 +484,14 @@ 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
 
@@ -293,24 +501,32 @@ msgid ""
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
@@ -325,16 +541,21 @@ msgstr "Lägger automatiskt till [raw]-kortkoden"
325
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
326
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
327
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
328
- #: lib/view/WpProQuiz_View_QuizEdit.php:448
 
 
 
 
 
329
  msgid "Activate"
330
  msgstr "Aktivera"
331
 
332
- #: lib/view/WpProQuiz_View_GobalSettings.php:40
333
  #, php-format
334
  msgid "It is recommended %s this option on your system."
335
  msgstr "Det är rekommenderat att %s detta val på ditt system"
336
 
337
- #: lib/view/WpProQuiz_View_GobalSettings.php:43
338
  msgid ""
339
  "If this option is activated, a [raw] shortcode is automatically set around "
340
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
@@ -342,7 +563,7 @@ msgstr ""
342
  "Om det här valet är aktiverat, en [raw]-kortkod sätts automatiskt runt "
343
  "WpProQuiz-kortkodet ([WpProQuiz X] ) blir [raw] [WpProQuiz X] [/raw]"
344
 
345
- #: lib/view/WpProQuiz_View_GobalSettings.php:46
346
  #: lib/view/WpProQuiz_View_QuizOverall.php:42
347
  msgid ""
348
  "Own themes changes internal order of filters, what causes the problems. "
@@ -351,12 +572,12 @@ msgstr ""
351
  "Egna tema-ändringar ändrar på filterna, vilket kan orsaka problem. Med "
352
  "tillägg av kortkoden [raw] kan detta förhindras."
353
 
354
- #: lib/view/WpProQuiz_View_GobalSettings.php:53
355
- #: lib/view/WpProQuiz_View_GobalSettings.php:58
356
  msgid "Do not load the Javascript-files in the footer"
357
  msgstr "Ladda inte Javascript-filerna i footer"
358
 
359
- #: lib/view/WpProQuiz_View_GobalSettings.php:65
360
  msgid ""
361
  "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
362
  "when they are really needed."
@@ -364,11 +585,11 @@ msgstr ""
364
  "Generellt laddas alla WpProQuiz-javascriptfiler i footern och endast när de "
365
  "behövs."
366
 
367
- #: lib/view/WpProQuiz_View_GobalSettings.php:68
368
  msgid "In very old Wordpress themes this can lead to problems."
369
  msgstr "I väldigt gamla Wordpress-tema kan detta leda till problem."
370
 
371
- #: lib/view/WpProQuiz_View_GobalSettings.php:71
372
  msgid ""
373
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
374
  "the header even if they are not needed."
@@ -376,7 +597,7 @@ msgstr ""
376
  "Om du aktiverar detta val, så kommer alla WpProQuiz-javascriptfiler att "
377
  "laddas i headern även om det inte behövs."
378
 
379
- #: lib/view/WpProQuiz_View_GobalSettings.php:74
380
  #, php-format
381
  msgid ""
382
  "Anyone who wants to learn more about this topic should read through the "
@@ -385,50 +606,51 @@ msgstr ""
385
  "Alla som vill lära sig mer om detta ämne bör läsa igenom de följande "
386
  "webbsidorna %s och %s."
387
 
388
- #: lib/view/WpProQuiz_View_GobalSettings.php:83
389
- #: lib/view/WpProQuiz_View_GobalSettings.php:88
390
  msgid "Touch Library"
391
  msgstr "Touch Library"
392
 
393
- #: lib/view/WpProQuiz_View_GobalSettings.php:92
394
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
395
  msgid "Deactivate"
396
  msgstr "Deaktivera"
397
 
398
- #: lib/view/WpProQuiz_View_GobalSettings.php:95
399
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
400
  msgstr "I version 0.13 lades ett nytt Touch Library till för mobila enheter."
401
 
402
- #: lib/view/WpProQuiz_View_GobalSettings.php:98
403
  msgid "If you have any problems with the Touch Library, please deactivate it."
404
  msgstr "Om du har några problem med Touch Library, vänligen deaktivera det."
405
 
406
- #: lib/view/WpProQuiz_View_GobalSettings.php:105
407
- #: lib/view/WpProQuiz_View_GobalSettings.php:110
408
  msgid "jQuery support cors"
409
  msgstr ""
410
 
411
- #: lib/view/WpProQuiz_View_GobalSettings.php:117
412
  msgid "Is required only in rare cases."
413
  msgstr ""
414
 
415
- #: lib/view/WpProQuiz_View_GobalSettings.php:120
416
  msgid "If you have problems with the front ajax, please activate it."
417
  msgstr ""
418
 
419
- #: lib/view/WpProQuiz_View_GobalSettings.php:123
420
  msgid "e.g. Domain with special characters in combination with IE"
421
  msgstr ""
422
 
423
- #: lib/view/WpProQuiz_View_GobalSettings.php:132
424
- #: lib/view/WpProQuiz_View_QuestionEdit.php:381
425
- #: lib/view/WpProQuiz_View_QuizEdit.php:542
 
426
  msgid "Save"
427
  msgstr "Spara"
428
 
429
  #: lib/view/WpProQuiz_View_Import.php:21
430
- #: lib/view/WpProQuiz_View_QuizOverall.php:91
431
- #: lib/view/WpProQuiz_View_QuizOverall.php:108
432
  msgid "Import"
433
  msgstr "Importera"
434
 
@@ -449,12 +671,12 @@ msgid "Quiz name"
449
  msgstr "Quiz-namn"
450
 
451
  #: lib/view/WpProQuiz_View_Import.php:44
452
- #: lib/view/WpProQuiz_View_QuizOverall.php:71
453
  msgid "Questions"
454
  msgstr "Frågor"
455
 
456
  #: lib/view/WpProQuiz_View_Import.php:67
457
- #: lib/view/WpProQuiz_View_QuizOverall.php:119
458
  msgid "Start import"
459
  msgstr "Börja importera"
460
 
@@ -463,11 +685,12 @@ msgid "Title"
463
  msgstr "Titel"
464
 
465
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
466
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
467
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
468
- #: lib/view/WpProQuiz_View_QuestionEdit.php:93
469
- #: lib/view/WpProQuiz_View_QuizEdit.php:436
470
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
 
471
  msgid "(optional)"
472
  msgstr "(valfritt)"
473
 
@@ -480,10 +703,10 @@ msgstr ""
480
  "quizzet. Om du lämnar överskriften tom kommer en överskrift att genereras."
481
 
482
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
483
- #: lib/view/WpProQuiz_View_QuestionEdit.php:49
484
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
485
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
486
- #: lib/view/WpProQuiz_View_QuizEdit.php:463
487
  msgid "(required)"
488
  msgstr "(krav)"
489
 
@@ -491,34 +714,37 @@ msgstr "(krav)"
491
  msgid "Points for this question (Standard is 1 point)"
492
  msgstr "Poäng för denna fråga (standard är 1 poäng)"
493
 
494
- #: lib/view/WpProQuiz_View_QuestionEdit.php:34
495
- msgid "Points per correct answer"
 
496
  msgstr ""
497
 
498
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
 
 
 
 
499
  msgid ""
500
- "If you enable this option, for every correct answer user will receive X "
501
- "points. Otherwise he will receive points only if the question was solved "
502
- "completely."
503
  msgstr ""
504
 
505
- #: lib/view/WpProQuiz_View_QuestionEdit.php:43
506
  msgid "Show reached points in the correct- and incorrect message?"
507
  msgstr ""
508
 
509
- #: lib/view/WpProQuiz_View_QuestionEdit.php:57
510
  msgid "Message with the correct / incorrect answer"
511
  msgstr ""
512
 
513
- #: lib/view/WpProQuiz_View_QuestionEdit.php:59
514
  msgid "Deactivated in quiz settings."
515
  msgstr ""
516
 
517
- #: lib/view/WpProQuiz_View_QuestionEdit.php:64
518
  msgid "Message with the correct answer"
519
  msgstr "Meddelande till det rätta svaret"
520
 
521
- #: lib/view/WpProQuiz_View_QuestionEdit.php:67
522
  msgid ""
523
  "This text will be visible if answered correctly. It can be used as "
524
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -528,15 +754,15 @@ msgstr ""
528
  "förklaring vid en komplicerad fråga. Meddelandet \"Rätt\" eller \"Fel\" "
529
  "kommer alltid att visas automatiskt."
530
 
531
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
532
  msgid "Same text for correct- and incorrect-message?"
533
  msgstr "Samma text för rätt och fel svar?"
534
 
535
- #: lib/view/WpProQuiz_View_QuestionEdit.php:81
536
  msgid "Message with the incorrect answer"
537
  msgstr "Meddelande för felaktigt svar"
538
 
539
- #: lib/view/WpProQuiz_View_QuestionEdit.php:84
540
  msgid ""
541
  "This text will be visible if answered incorrectly. It can be used as "
542
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -546,54 +772,47 @@ msgstr ""
546
  "användas som förklaring vid en komplicerad fråga. Meddelandet \"Rätt\" eller "
547
  "\"Fel\" kommer alltid att visas automatiskt."
548
 
549
- #: lib/view/WpProQuiz_View_QuestionEdit.php:96
550
  msgid "Here you can enter solution hint."
551
  msgstr "Här kan du skriva in ett tips."
552
 
553
- #: lib/view/WpProQuiz_View_QuestionEdit.php:100
554
  msgid "Activate hint for this question?"
555
  msgstr "Aktivera tips för denna fråga"
556
 
557
- #: lib/view/WpProQuiz_View_QuestionEdit.php:112
558
  msgid "Answer type"
559
  msgstr "Svarstyp"
560
 
561
- #: lib/view/WpProQuiz_View_QuestionEdit.php:120
562
  msgid "Single choice"
563
  msgstr "Ett svar"
564
 
565
- #: lib/view/WpProQuiz_View_QuestionEdit.php:124
566
  msgid "Multiple choice"
567
  msgstr "Flera svar"
568
 
569
- #: lib/view/WpProQuiz_View_QuestionEdit.php:128
570
  msgid "\"Free\" choice"
571
  msgstr "\"Fritt\" svar"
572
 
573
- #: lib/view/WpProQuiz_View_QuestionEdit.php:132
574
  msgid "\"Sorting\" choice"
575
  msgstr "\"Sorteringssvar\""
576
 
577
- #: lib/view/WpProQuiz_View_QuestionEdit.php:136
578
  msgid "\"Matrix Sorting\" choice"
579
  msgstr "\"Matrix Sorting\"-svar"
580
 
581
- #: lib/view/WpProQuiz_View_QuestionEdit.php:140
582
  msgid "Cloze"
583
  msgstr "Cloze"
584
 
585
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
586
  msgid "Answers"
587
  msgstr "Svar"
588
 
589
- #: lib/view/WpProQuiz_View_QuestionEdit.php:150
590
- #: lib/view/WpProQuiz_View_QuestionEdit.php:154
591
- msgid ""
592
- "correct answers (one per line) (answers will be converted to lower case)"
593
- msgstr ""
594
- "Korrekt svar (en per rad) (svar kommer att konverteras till små bokstäver)"
595
-
596
- #: lib/view/WpProQuiz_View_QuestionEdit.php:160
597
  msgid ""
598
  "Please sort the answers in right order with the \"Move\" - Button. The "
599
  "answers will be displayed randomly."
@@ -601,59 +820,13 @@ msgstr ""
601
  "Vänligen sortera svaren i rätt ordning med \"flytta\"-knappen. Svaren kommer "
602
  "att visas i blandad ordning."
603
 
 
604
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
605
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
606
- #: lib/view/WpProQuiz_View_QuestionEdit.php:188
607
- #: lib/view/WpProQuiz_View_QuestionEdit.php:207
608
- #: lib/view/WpProQuiz_View_QuestionEdit.php:223
609
- #: lib/view/WpProQuiz_View_QuestionEdit.php:237
610
- #: lib/view/WpProQuiz_View_QuestionEdit.php:287
611
- #: lib/view/WpProQuiz_View_QuestionEdit.php:327
612
- #: lib/view/WpProQuiz_View_QuestionEdit.php:364
613
- msgid "Delete answer"
614
- msgstr "Radera svar"
615
-
616
- #: lib/view/WpProQuiz_View_QuestionEdit.php:167
617
- #: lib/view/WpProQuiz_View_QuestionEdit.php:179
618
- #: lib/view/WpProQuiz_View_QuestionEdit.php:189
619
- #: lib/view/WpProQuiz_View_QuestionEdit.php:208
620
- #: lib/view/WpProQuiz_View_QuestionEdit.php:224
621
- #: lib/view/WpProQuiz_View_QuestionEdit.php:238
622
- #: lib/view/WpProQuiz_View_QuestionEdit.php:286
623
- #: lib/view/WpProQuiz_View_QuestionEdit.php:326
624
- #: lib/view/WpProQuiz_View_QuestionEdit.php:363
625
- #: lib/view/WpProQuiz_View_QuestionOverall.php:50
626
- msgid "Move"
627
- msgstr "Flytta"
628
-
629
- #: lib/view/WpProQuiz_View_QuestionEdit.php:169
630
- #: lib/view/WpProQuiz_View_QuestionEdit.php:181
631
- #: lib/view/WpProQuiz_View_QuestionEdit.php:191
632
- #: lib/view/WpProQuiz_View_QuestionEdit.php:210
633
- #: lib/view/WpProQuiz_View_QuestionEdit.php:226
634
- #: lib/view/WpProQuiz_View_QuestionEdit.php:240
635
- #: lib/view/WpProQuiz_View_QuestionEdit.php:273
636
- #: lib/view/WpProQuiz_View_QuestionEdit.php:279
637
- #: lib/view/WpProQuiz_View_QuestionEdit.php:313
638
- #: lib/view/WpProQuiz_View_QuestionEdit.php:319
639
- #: lib/view/WpProQuiz_View_QuestionEdit.php:350
640
- #: lib/view/WpProQuiz_View_QuestionEdit.php:356
641
- msgid "Allow HTML"
642
- msgstr "Tillåt HTML"
643
-
644
- #: lib/view/WpProQuiz_View_QuestionEdit.php:197
645
- #: lib/view/WpProQuiz_View_QuestionEdit.php:246
646
- #: lib/view/WpProQuiz_View_QuestionEdit.php:368
647
  msgid "Add new answer"
648
  msgstr "Lägg till nytt svar"
649
 
650
- #: lib/view/WpProQuiz_View_QuestionEdit.php:205
651
- #: lib/view/WpProQuiz_View_QuestionEdit.php:221
652
- #: lib/view/WpProQuiz_View_QuestionEdit.php:235
653
- msgid "correct?"
654
- msgstr "Korrekt svar"
655
-
656
- #: lib/view/WpProQuiz_View_QuestionEdit.php:250
657
  msgid ""
658
  "In this mode, not a list have to be sorted, but elements must be assigned to "
659
  "matching criterion."
@@ -661,13 +834,55 @@ msgstr ""
661
  "I denna metod så har vi inte en lista som måste sorteras, utan element som "
662
  "måste matchas till kriterier."
663
 
664
- #: lib/view/WpProQuiz_View_QuestionEdit.php:257
665
- #: lib/view/WpProQuiz_View_QuestionEdit.php:297
666
- #: lib/view/WpProQuiz_View_QuestionEdit.php:334
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
667
  msgid "Criterion"
668
  msgstr "Kriterie"
669
 
670
- #: lib/view/WpProQuiz_View_QuestionEdit.php:372
 
 
 
 
 
 
671
  msgid ""
672
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
673
  "small letters will be ignored."
@@ -675,49 +890,46 @@ msgstr ""
675
  "Inkapsla det sökta ordet med {} t.ex \"Jag {spelar} fotboll\". Stora och små "
676
  "bokstäver ignoreras."
677
 
 
 
 
 
 
 
 
 
 
 
 
 
678
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
679
  msgid "Questions sorted"
680
  msgstr "Frågor sorterade"
681
 
682
- #: lib/view/WpProQuiz_View_QuestionOverall.php:28
683
- #: lib/view/WpProQuiz_View_QuizOverall.php:57
684
- msgid "Name"
685
- msgstr "Namn"
686
-
687
- #: lib/view/WpProQuiz_View_QuestionOverall.php:30
688
- #: lib/view/WpProQuiz_View_QuizOverall.php:58
689
- msgid "Action"
690
- msgstr "Aktion"
691
-
692
- #: lib/view/WpProQuiz_View_QuestionOverall.php:46
693
- #: lib/view/WpProQuiz_View_QuizOverall.php:74
694
  msgid "Edit"
695
  msgstr "Ändra"
696
 
697
- #: lib/view/WpProQuiz_View_QuestionOverall.php:48
698
- #: lib/view/WpProQuiz_View_QuizOverall.php:76
699
- msgid "Delete"
700
- msgstr "Ta bort"
701
-
702
- #: lib/view/WpProQuiz_View_QuestionOverall.php:59
703
  #: lib/view/WpProQuiz_View_Statistics.php:84
704
  msgid "Total"
705
  msgstr "Totalt"
706
 
707
- #: lib/view/WpProQuiz_View_QuestionOverall.php:67
708
  msgid "Add question"
709
  msgstr "Lägg till fråga"
710
 
711
- #: lib/view/WpProQuiz_View_QuestionOverall.php:68
712
  msgid "Save order"
713
  msgstr "Spara sortering"
714
 
715
- #: lib/view/WpProQuiz_View_QuestionOverall.php:69
716
- #: lib/view/WpProQuiz_View_QuestionOverall.php:74
717
  msgid "Copy questions from another Quiz"
718
  msgstr "Kopiera frågor från ett annat quiz"
719
 
720
- #: lib/view/WpProQuiz_View_QuestionOverall.php:75
721
  msgid ""
722
  "Here you can copy questions from another quiz into this quiz. (Multiple "
723
  "selection enabled)"
@@ -725,12 +937,7 @@ msgstr ""
725
  "Här kan du kopiera frågor från ett annat quiz till detta quiz (man kan "
726
  "merkera flera samtidigt)"
727
 
728
- #: lib/view/WpProQuiz_View_QuestionOverall.php:79
729
- #: lib/view/WpProQuiz_View_Statistics.php:45
730
- msgid "Loading"
731
- msgstr "Laddar"
732
-
733
- #: lib/view/WpProQuiz_View_QuestionOverall.php:87
734
  msgid "Copy questions"
735
  msgstr "Kopiera frågor"
736
 
@@ -738,10 +945,6 @@ msgstr "Kopiera frågor"
738
  msgid "Quiz title"
739
  msgstr "Quiz-överskrift"
740
 
741
- #: lib/view/WpProQuiz_View_QuizEdit.php:18
742
- msgid "Options"
743
- msgstr "Alternativ"
744
-
745
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
746
  msgid "Hide quiz title"
747
  msgstr "Göm quiz-överskrift"
@@ -818,6 +1021,9 @@ msgstr ""
818
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
819
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
820
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
 
 
 
821
  msgid "Demo"
822
  msgstr "Demo"
823
 
@@ -867,7 +1073,7 @@ msgstr ""
867
 
868
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
869
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
870
- #: lib/view/WpProQuiz_View_QuizOverall.php:80
871
  msgid "Statistics"
872
  msgstr "Statistik"
873
 
@@ -916,14 +1122,17 @@ msgid "This option applies to:"
916
  msgstr "Detta val gäller:"
917
 
918
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
 
919
  msgid "all users"
920
  msgstr "alla användare"
921
 
922
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
 
923
  msgid "registered useres only"
924
  msgstr "endast registrerade användare"
925
 
926
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
 
927
  msgid "anonymous users only"
928
  msgstr "endast anonyma användare"
929
 
@@ -1003,19 +1212,139 @@ msgstr ""
1003
  msgid "in percent"
1004
  msgstr ""
1005
 
 
 
 
 
 
 
 
 
 
 
1006
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1007
  msgid "Quiz description"
1008
  msgstr "Quiz-beskrivning"
1009
 
1010
- #: lib/view/WpProQuiz_View_QuizEdit.php:466
1011
  msgid "This text will be displayed before start of the quiz."
1012
  msgstr "Denna text kommer att visas innan quiz startas."
1013
 
1014
- #: lib/view/WpProQuiz_View_QuizEdit.php:474
1015
  msgid "Results text"
1016
  msgstr "Resultattext"
1017
 
1018
- #: lib/view/WpProQuiz_View_QuizEdit.php:477
1019
  msgid ""
1020
  "This text will be displayed at the end of the quiz (in results). (this text "
1021
  "is optional)"
@@ -1023,19 +1352,19 @@ msgstr ""
1023
  "Denna text kommer att visas i slutet av varje quiz (i resultatetn). (Denna "
1024
  "text är frivillig)"
1025
 
1026
- #: lib/view/WpProQuiz_View_QuizEdit.php:481
1027
  msgid "Activate graduation"
1028
  msgstr "Aktivera graduering"
1029
 
1030
- #: lib/view/WpProQuiz_View_QuizEdit.php:487
1031
  msgid "Hint:"
1032
  msgstr "Tips:"
1033
 
1034
- #: lib/view/WpProQuiz_View_QuizEdit.php:489
1035
  msgid "Maximal 15 levels"
1036
  msgstr "Maximum 15 nivåer"
1037
 
1038
- #: lib/view/WpProQuiz_View_QuizEdit.php:491
1039
  #, php-format
1040
  msgid ""
1041
  "Percentages refer to the total score of the quiz. (Current total %d points "
@@ -1044,26 +1373,26 @@ msgstr ""
1044
  "Procenten representerar totalprocenten för quizzet. (För närvarande totalt "
1045
  "%d poäng av %d frågor)"
1046
 
1047
- #: lib/view/WpProQuiz_View_QuizEdit.php:494
1048
  msgid "Values can also be mixed up"
1049
  msgstr "Värden kan också mixas in"
1050
 
1051
- #: lib/view/WpProQuiz_View_QuizEdit.php:495
1052
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1053
  msgstr "10,15% och 10.15% tillåtet (max två siffror efter decimalen)"
1054
 
1055
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1056
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1057
  msgid "from:"
1058
  msgstr "från:"
1059
 
1060
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1061
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1062
  msgid "percent"
1063
  msgstr "procent"
1064
 
1065
- #: lib/view/WpProQuiz_View_QuizEdit.php:511
1066
- #: lib/view/WpProQuiz_View_QuizEdit.php:522
1067
  #, php-format
1068
  msgid ""
1069
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
@@ -1072,12 +1401,12 @@ msgstr ""
1072
  "(Kommer att visas när resultat-procenten är >= <span class=\"resultprozent\">"
1073
  "%s</span>%%)"
1074
 
1075
- #: lib/view/WpProQuiz_View_QuizEdit.php:512
1076
- #: lib/view/WpProQuiz_View_QuizEdit.php:523
1077
  msgid "Delete graduation"
1078
  msgstr "Ta bort graduering"
1079
 
1080
- #: lib/view/WpProQuiz_View_QuizEdit.php:530
1081
  msgid "Add graduation"
1082
  msgstr "Lägg till graduering"
1083
 
@@ -1097,28 +1426,37 @@ msgstr "Om ditt quiz inte fungerar för användarna, vänligen prova följande:"
1097
  msgid "Style Manager"
1098
  msgstr "Stil-manager"
1099
 
1100
- #: lib/view/WpProQuiz_View_QuizOverall.php:55
 
 
 
 
 
1101
  msgid "ID"
1102
  msgstr "ID"
1103
 
1104
- #: lib/view/WpProQuiz_View_QuizOverall.php:56
1105
  msgid "Shortcode"
1106
  msgstr "Kortkod"
1107
 
1108
- #: lib/view/WpProQuiz_View_QuizOverall.php:78
 
 
 
 
1109
  msgid "Preview"
1110
  msgstr "Förhandsgranskning"
1111
 
1112
- #: lib/view/WpProQuiz_View_QuizOverall.php:89
1113
  msgid "Add quiz"
1114
  msgstr "Lägg till quiz"
1115
 
1116
- #: lib/view/WpProQuiz_View_QuizOverall.php:93
1117
- #: lib/view/WpProQuiz_View_QuizOverall.php:98
1118
  msgid "Export"
1119
  msgstr "Exportera"
1120
 
1121
- #: lib/view/WpProQuiz_View_QuizOverall.php:99
1122
  msgid ""
1123
  "Choose the respective question, which you would like to export and press on "
1124
  "\"Start export\""
@@ -1126,15 +1464,15 @@ msgstr ""
1126
  "Välj respektive fråga som du vill exportera och klicka på \"Starta "
1127
  "exportering\""
1128
 
1129
- #: lib/view/WpProQuiz_View_QuizOverall.php:103
1130
  msgid "Start export"
1131
  msgstr "Starta expotering"
1132
 
1133
- #: lib/view/WpProQuiz_View_QuizOverall.php:109
1134
  msgid "Import only *.wpq files from known and trusted sources."
1135
  msgstr "Impoertera endast *.wpq-filer från kända källor."
1136
 
1137
- #: lib/view/WpProQuiz_View_QuizOverall.php:117
1138
  #, php-format
1139
  msgid "Maximal %d MiB"
1140
  msgstr "Maximalt %d MiB"
@@ -1191,25 +1529,90 @@ msgstr "Uppdatera"
1191
  msgid "Reset entire statistic"
1192
  msgstr "Nolltäll all statistik"
1193
 
1194
- #: lib/view/WpProQuiz_View_Statistics.php:115
1195
- msgid "Filter"
1196
- msgstr ""
1197
-
1198
  #: lib/view/WpProQuiz_View_Statistics.php:120
1199
  msgid "Show only users, who solved the quiz:"
1200
  msgstr ""
1201
 
1202
- #: lib/view/WpProQuiz_View_Statistics.php:126
1203
- msgid "How many entries should be shown on one page:"
 
 
 
 
1204
  msgstr ""
1205
 
1206
- #: lib/view/WpProQuiz_View_Statistics.php:145
1207
- msgid "User"
1208
  msgstr ""
1209
 
1210
- #: lib/view/WpProQuiz_View_StyleManager.php:15
1211
- msgid "Front"
1212
- msgstr "Front"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1213
 
1214
  #~ msgid "One question is one point"
1215
  #~ msgstr "سؤال واحد يعني درجة واحدة"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-02-07 20:46+0100\n"
5
+ "PO-Revision-Date: 2013-02-07 20:46+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.5\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:98
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:99
22
  msgid "Title is not filled!"
23
  msgstr "Överskriften är tom!"
24
 
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:100
26
  msgid "No question deposited!"
27
  msgstr "Ingen fråga inlagd!"
28
 
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:101
30
  msgid "Correct answer was not selected!"
31
  msgstr "Rätt svar var inte markerat!"
32
 
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:102
34
  msgid "No answer deposited!"
35
  msgstr "Inget svar inskrivet!"
36
 
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:103
38
  msgid "No quiz description filled!"
39
  msgstr "Ingen quiz-beskrivning iskriven!"
40
 
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:104
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:105
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:106
50
+ msgid "No number in the field \"Points\" or less than 0"
51
+ msgstr "Inget nummer i fältet \"Poäng\" är mindre än 0"
52
+
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:107
54
  msgid "No quiz selected"
55
  msgstr "Inget quiz markerat"
56
 
57
+ #: lib/controller/WpProQuiz_Controller_Admin.php:108
58
  msgid "Do you really want to reset the statistic?"
59
  msgstr "Vill du verkligen nollställa statistiken?"
60
 
61
+ #: lib/controller/WpProQuiz_Controller_Admin.php:109
62
+ #: lib/view/WpProQuiz_View_FrontToplist.php:26
63
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
64
+ #: lib/view/WpProQuiz_View_QuizOverall.php:111
65
+ msgid "No data available"
66
+ msgstr ""
67
+
68
+ #: lib/controller/WpProQuiz_Controller_Admin.php:110
69
+ msgid "No sort element in the criterion"
70
+ msgstr ""
71
+
72
+ #: lib/controller/WpProQuiz_Controller_Admin.php:111
73
+ msgid ""
74
+ "\"Different points for every answer\" is not possible at \"Free\" choice"
75
+ msgstr ""
76
+
77
+ #: lib/controller/WpProQuiz_Controller_Front.php:44
78
+ #: lib/controller/WpProQuiz_Controller_Preview.php:15
79
+ #: lib/view/WpProQuiz_View_AdminToplist.php:47
80
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:393
81
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:93
82
+ #: lib/view/WpProQuiz_View_Statistics.php:45
83
+ msgid "Loading"
84
+ msgstr "Laddar"
85
+
86
  #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
87
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
88
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:43
89
  #: lib/controller/WpProQuiz_Controller_Question.php:51
90
  #: lib/controller/WpProQuiz_Controller_Question.php:128
91
  #: lib/controller/WpProQuiz_Controller_Question.php:143
92
+ #: lib/controller/WpProQuiz_Controller_Question.php:196
93
+ #: lib/controller/WpProQuiz_Controller_Question.php:342
94
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:175
95
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:189
96
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:249
97
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:297
98
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:163
99
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:76
100
  msgid "You do not have sufficient permissions to access this page."
101
  msgstr ""
102
 
105
  msgstr "Inställningar sparade"
106
 
107
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
108
+ #: lib/helper/WpProQuiz_Helper_Import.php:59
109
+ #: lib/helper/WpProQuiz_Helper_Import.php:68
110
+ #: lib/helper/WpProQuiz_Helper_Import.php:75
111
  msgid "File cannot be processed"
112
  msgstr "Filen kan inte processeras"
113
 
114
  #: lib/controller/WpProQuiz_Controller_Question.php:9
115
  #: lib/controller/WpProQuiz_Controller_Question.php:19
116
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:201
117
  msgid "Quiz not found"
118
  msgstr "Quiz hittades ej"
119
 
125
  msgid "Edit question"
126
  msgstr "Ändra fråga"
127
 
128
+ #: lib/controller/WpProQuiz_Controller_Question.php:155
129
  msgid "Question not found"
130
  msgstr "Fråga ej funnen"
131
 
132
+ #: lib/controller/WpProQuiz_Controller_Question.php:172
133
+ #: lib/controller/WpProQuiz_Controller_Question.php:224
134
  #, php-format
135
  msgid "Question: %d"
136
  msgstr "Fråga: %d"
137
 
138
+ #: lib/controller/WpProQuiz_Controller_Question.php:180
139
  msgid "Question edited"
140
  msgstr "Fråga ändrad"
141
 
142
+ #: lib/controller/WpProQuiz_Controller_Question.php:200
143
  msgid "New question"
144
  msgstr "Ny fråga"
145
 
146
+ #: lib/controller/WpProQuiz_Controller_Question.php:233
147
  msgid "Question added"
148
  msgstr "Fråga tillagd"
149
 
150
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:196
151
  #: lib/view/WpProQuiz_View_QuestionOverall.php:21
152
  msgid "Edit quiz"
153
  msgstr "Ändra quiz"
154
 
155
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:216
156
  msgid "Quiz edited"
157
  msgstr "Quiz ändrat"
158
 
159
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:233
160
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:281
161
  msgid "Quiz title or quiz description are not filled"
162
  msgstr "Quiz-överskriften eller quiz-beskrivningen är inte ifylld"
163
 
164
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:253
165
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:267
166
  msgid "Create quiz"
167
  msgstr "Skapa quiz"
168
 
169
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:314
170
  msgid "Quiz deleted"
171
  msgstr "Quiz borttaget"
172
 
173
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:136
174
+ msgid "You signing up successfully."
175
+ msgstr ""
176
+
177
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:144
178
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:148
179
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:165
180
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:169
181
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:175
182
+ msgid "An error has occurred."
183
+ msgstr ""
184
+
185
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:186
186
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:195
187
+ msgid "You can not enter again."
188
+ msgstr ""
189
+
190
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:199
191
+ msgid "No name or e-mail entered."
192
+ msgstr ""
193
+
194
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:203
195
+ msgid "Your name can not exceed 15 characters."
196
+ msgstr ""
197
+
198
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:211
199
+ msgid "You entered wrong captcha code."
200
+ msgstr ""
201
+
202
  #: lib/helper/WpProQuiz_Helper_Import.php:9
203
  msgid "File was not uploaded"
204
  msgstr "Fil laddades ej upp"
207
  msgid "File have wrong format"
208
  msgstr "Filen har fel format"
209
 
210
+ #: lib/helper/WpProQuiz_Helper_Import.php:45
211
+ msgid "File is not compatible with the current version"
212
+ msgstr ""
213
+
214
  #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
215
  msgid "The user completed a quiz."
216
  msgstr ""
217
 
218
+ #: lib/view/WpProQuiz_View_AdminToplist.php:7
219
+ #: lib/view/WpProQuiz_View_FrontToplist.php:8
220
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
221
+ #: lib/view/WpProQuiz_View_QuizEdit.php:534
222
+ #: lib/view/WpProQuiz_View_QuizOverall.php:96
223
+ msgid "Leaderboard"
224
+ msgstr ""
225
+
226
+ #: lib/view/WpProQuiz_View_AdminToplist.php:8
227
+ #: lib/view/WpProQuiz_View_GobalSettings.php:21
228
+ #: lib/view/WpProQuiz_View_Import.php:22
229
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
230
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
231
+ #: lib/view/WpProQuiz_View_QuizEdit.php:8
232
+ #: lib/view/WpProQuiz_View_Statistics.php:18
233
+ #: lib/view/WpProQuiz_View_StyleManager.php:11
234
+ msgid "back to overview"
235
+ msgstr "Tillbaka till översikten"
236
+
237
+ #: lib/view/WpProQuiz_View_AdminToplist.php:11
238
+ #: lib/view/WpProQuiz_View_Statistics.php:115
239
+ msgid "Filter"
240
+ msgstr ""
241
+
242
+ #: lib/view/WpProQuiz_View_AdminToplist.php:16
243
+ msgid "Sort by:"
244
+ msgstr ""
245
+
246
+ #: lib/view/WpProQuiz_View_AdminToplist.php:18
247
+ #: lib/view/WpProQuiz_View_QuizEdit.php:600
248
+ msgid "best user"
249
+ msgstr ""
250
+
251
+ #: lib/view/WpProQuiz_View_AdminToplist.php:19
252
+ #: lib/view/WpProQuiz_View_QuizEdit.php:604
253
+ msgid "newest entry"
254
+ msgstr ""
255
+
256
+ #: lib/view/WpProQuiz_View_AdminToplist.php:20
257
+ #: lib/view/WpProQuiz_View_QuizEdit.php:608
258
+ msgid "oldest entry"
259
+ msgstr ""
260
+
261
+ #: lib/view/WpProQuiz_View_AdminToplist.php:26
262
+ #: lib/view/WpProQuiz_View_Statistics.php:126
263
+ msgid "How many entries should be shown on one page:"
264
+ msgstr ""
265
+
266
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
267
+ #: lib/view/WpProQuiz_View_AdminToplist.php:57
268
+ msgid "Type"
269
+ msgstr ""
270
+
271
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
272
+ msgid "UR = unregistered user, R = registered user"
273
+ msgstr ""
274
+
275
+ #: lib/view/WpProQuiz_View_AdminToplist.php:55
276
+ #: lib/view/WpProQuiz_View_Statistics.php:145
277
+ msgid "User"
278
+ msgstr ""
279
+
280
+ #: lib/view/WpProQuiz_View_AdminToplist.php:56
281
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:401
282
+ msgid "E-Mail"
283
+ msgstr ""
284
+
285
+ #: lib/view/WpProQuiz_View_AdminToplist.php:58
286
+ #: lib/view/WpProQuiz_View_FrontToplist.php:16
287
+ msgid "Entered on"
288
+ msgstr ""
289
+
290
+ #: lib/view/WpProQuiz_View_AdminToplist.php:59
291
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:283
292
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:301
293
+ #: lib/view/WpProQuiz_View_FrontToplist.php:17
294
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
295
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
296
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:223
297
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:260
298
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
299
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
300
+ #: lib/view/WpProQuiz_View_Statistics.php:54
301
+ #: lib/view/WpProQuiz_View_Statistics.php:146
302
+ msgid "Points"
303
+ msgstr "Poäng"
304
+
305
+ #: lib/view/WpProQuiz_View_AdminToplist.php:60
306
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:64
307
+ #: lib/view/WpProQuiz_View_Statistics.php:59
308
+ #: lib/view/WpProQuiz_View_Statistics.php:150
309
+ msgid "Results"
310
+ msgstr "Resultat"
311
+
312
+ #: lib/view/WpProQuiz_View_AdminToplist.php:79
313
+ msgid "Action"
314
+ msgstr "Aktion"
315
+
316
+ #: lib/view/WpProQuiz_View_AdminToplist.php:80
317
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:54
318
+ #: lib/view/WpProQuiz_View_QuizOverall.php:84
319
+ msgid "Delete"
320
+ msgstr "Ta bort"
321
+
322
+ #: lib/view/WpProQuiz_View_AdminToplist.php:82
323
+ msgid "Apply"
324
+ msgstr ""
325
+
326
+ #: lib/view/WpProQuiz_View_AdminToplist.php:83
327
+ msgid "Delete all entries"
328
+ msgstr ""
329
+
330
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:49
331
  msgid "Start quiz"
332
  msgstr "Starta quiz"
333
 
334
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:54
335
  msgid ""
336
  "You have already completed the quiz before. Hence you can not start it again."
337
  msgstr ""
338
  "Du har redan färdigställt detta quiz, därför får du inte starta det igen."
339
 
340
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:59
341
+ msgid "You have to finish following quiz, to start this quiz:"
342
+ msgstr ""
 
 
343
 
344
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:66
345
  #, php-format
346
  msgid "%s of %s questions answered correctly"
347
  msgstr "%s av %s är frågor korrekt svarade"
348
 
349
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:69
350
  msgid "Your time: <span></span>"
351
  msgstr "Din tid: <span></span>"
352
 
353
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:72
354
  msgid "Time has elapsed"
355
  msgstr "Tid har gått ut!"
356
 
357
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:75
358
+ #, php-format
359
+ msgid "You have reached %s of %s points, (%s)"
360
+ msgstr "Du fick %s av %s möjliga poäng, (%s)"
361
+
362
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:83
363
+ msgid "Average score"
364
+ msgstr ""
365
 
366
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:90
367
+ msgid "Your score"
368
+ msgstr ""
369
+
370
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:122
371
  msgid "Restart quiz"
372
  msgstr "Starta om quiz"
373
 
374
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:124
375
  msgid "View questions"
376
  msgstr "Visa svar"
377
 
378
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:127
379
+ msgid "Show leaderboard"
380
+ msgstr ""
381
+
382
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:138
383
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
384
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
385
  msgid "Time limit"
386
  msgstr "Tid"
387
 
388
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:162
389
  #, php-format
390
  msgid "Question %s of %s"
391
  msgstr "Fråga %s av %s"
392
 
393
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:165
394
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
395
  #: lib/view/WpProQuiz_View_Statistics.php:53
396
  msgid "Question"
397
  msgstr "Fråga"
398
 
399
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:169
400
  #, php-format
401
  msgid "%d points"
402
  msgstr "%d poäng"
403
 
404
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:179
405
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:252
 
 
406
  msgid "Sort elements"
407
  msgstr "sortera element"
408
 
409
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:281
410
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:288
411
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:211
412
  #: lib/view/WpProQuiz_View_Statistics.php:55
413
  #: lib/view/WpProQuiz_View_Statistics.php:147
414
  msgid "Correct"
415
  msgstr "Rätt svar!"
416
 
417
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:299
418
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:306
 
 
 
 
 
 
 
 
 
 
419
  #: lib/view/WpProQuiz_View_Statistics.php:56
420
  #: lib/view/WpProQuiz_View_Statistics.php:148
421
  msgid "Incorrect"
422
  msgstr "Fel svar!"
423
 
424
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:327
425
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:336
426
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
427
  msgid "Hint"
428
  msgstr "Tips"
429
 
430
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:333
431
  msgid "Check"
432
  msgstr "Svara"
433
 
434
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:334
435
  msgid "Back"
436
  msgstr "Tillbaka"
437
 
438
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:338
439
  msgid "Next exercise"
440
  msgstr "Nästa fråga >>"
441
 
442
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:351
443
  msgid "Finish quiz"
444
  msgstr "Avsluta quiz"
445
 
446
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:391
447
+ msgid "Your result entered into leaderboard"
448
+ msgstr ""
449
+
450
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:398
451
+ #: lib/view/WpProQuiz_View_FrontToplist.php:15
452
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
453
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
454
+ msgid "Name"
455
+ msgstr "Namn"
456
+
457
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:406
458
+ msgid "Captcha"
459
+ msgstr ""
460
+
461
+ #: lib/view/WpProQuiz_View_FrontToplist.php:11
462
+ #, php-format
463
+ msgid "maximum of %s points"
464
+ msgstr ""
465
+
466
+ #: lib/view/WpProQuiz_View_FrontToplist.php:14
467
+ msgid "Pos."
468
+ msgstr ""
469
+
470
+ #: lib/view/WpProQuiz_View_FrontToplist.php:18
471
+ msgid "Result"
472
+ msgstr ""
473
+
474
+ #: lib/view/WpProQuiz_View_FrontToplist.php:23
475
+ msgid "Table is loading"
476
+ msgstr ""
477
+
478
  #: lib/view/WpProQuiz_View_GobalSettings.php:7
479
  msgid "to activate"
480
  msgstr "att aktivera"
484
  msgstr "inte att aktivera"
485
 
486
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
487
+ #: lib/view/WpProQuiz_View_GobalSettings.php:24
488
+ #: lib/view/WpProQuiz_View_GobalSettings.php:31
489
  #: lib/view/WpProQuiz_View_QuizOverall.php:48
490
+ msgid "Global settings"
491
+ msgstr ""
492
 
493
  #: lib/view/WpProQuiz_View_GobalSettings.php:16
494
+ #: lib/view/WpProQuiz_View_WpqSupport.php:50
495
  msgid "Please note"
496
  msgstr "Vänligen notera"
497
 
501
  msgstr ""
502
  "Dessa inställningar skall endast användas vid problemet med Wp-Pro-Quiz"
503
 
504
+ #: lib/view/WpProQuiz_View_GobalSettings.php:25
505
+ #: lib/view/WpProQuiz_View_GobalSettings.php:78
506
+ msgid "Settings in case of problems"
507
+ msgstr "Inställningar i fall det blir problem"
 
 
 
 
 
508
 
509
+ #: lib/view/WpProQuiz_View_GobalSettings.php:37
510
+ #: lib/view/WpProQuiz_View_GobalSettings.php:42
511
+ msgid "Leaderboard time format"
512
+ msgstr ""
513
+
514
+ #: lib/view/WpProQuiz_View_GobalSettings.php:64
515
+ msgid "Custom"
516
+ msgstr ""
517
+
518
+ #: lib/view/WpProQuiz_View_GobalSettings.php:68
519
+ msgid "Documentation on date and time formatting"
520
+ msgstr ""
521
+
522
+ #: lib/view/WpProQuiz_View_GobalSettings.php:84
523
+ #: lib/view/WpProQuiz_View_GobalSettings.php:89
524
  msgid "Automatically add [raw] shortcode"
525
  msgstr "Lägger automatiskt till [raw]-kortkoden"
526
 
527
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
528
+ #: lib/view/WpProQuiz_View_GobalSettings.php:115
529
+ #: lib/view/WpProQuiz_View_GobalSettings.php:167
530
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
531
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
532
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
541
  #: lib/view/WpProQuiz_View_QuizEdit.php:299
542
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
543
  #: lib/view/WpProQuiz_View_QuizEdit.php:407
544
+ #: lib/view/WpProQuiz_View_QuizEdit.php:442
545
+ #: lib/view/WpProQuiz_View_QuizEdit.php:467
546
+ #: lib/view/WpProQuiz_View_QuizEdit.php:539
547
+ #: lib/view/WpProQuiz_View_QuizEdit.php:572
548
+ #: lib/view/WpProQuiz_View_QuizEdit.php:620
549
+ #: lib/view/WpProQuiz_View_QuizEdit.php:696
550
  msgid "Activate"
551
  msgstr "Aktivera"
552
 
553
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
554
  #, php-format
555
  msgid "It is recommended %s this option on your system."
556
  msgstr "Det är rekommenderat att %s detta val på ditt system"
557
 
558
+ #: lib/view/WpProQuiz_View_GobalSettings.php:96
559
  msgid ""
560
  "If this option is activated, a [raw] shortcode is automatically set around "
561
  "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
563
  "Om det här valet är aktiverat, en [raw]-kortkod sätts automatiskt runt "
564
  "WpProQuiz-kortkodet ([WpProQuiz X] ) blir [raw] [WpProQuiz X] [/raw]"
565
 
566
+ #: lib/view/WpProQuiz_View_GobalSettings.php:99
567
  #: lib/view/WpProQuiz_View_QuizOverall.php:42
568
  msgid ""
569
  "Own themes changes internal order of filters, what causes the problems. "
572
  "Egna tema-ändringar ändrar på filterna, vilket kan orsaka problem. Med "
573
  "tillägg av kortkoden [raw] kan detta förhindras."
574
 
575
+ #: lib/view/WpProQuiz_View_GobalSettings.php:106
576
+ #: lib/view/WpProQuiz_View_GobalSettings.php:111
577
  msgid "Do not load the Javascript-files in the footer"
578
  msgstr "Ladda inte Javascript-filerna i footer"
579
 
580
+ #: lib/view/WpProQuiz_View_GobalSettings.php:118
581
  msgid ""
582
  "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
583
  "when they are really needed."
585
  "Generellt laddas alla WpProQuiz-javascriptfiler i footern och endast när de "
586
  "behövs."
587
 
588
+ #: lib/view/WpProQuiz_View_GobalSettings.php:121
589
  msgid "In very old Wordpress themes this can lead to problems."
590
  msgstr "I väldigt gamla Wordpress-tema kan detta leda till problem."
591
 
592
+ #: lib/view/WpProQuiz_View_GobalSettings.php:124
593
  msgid ""
594
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
595
  "the header even if they are not needed."
597
  "Om du aktiverar detta val, så kommer alla WpProQuiz-javascriptfiler att "
598
  "laddas i headern även om det inte behövs."
599
 
600
+ #: lib/view/WpProQuiz_View_GobalSettings.php:127
601
  #, php-format
602
  msgid ""
603
  "Anyone who wants to learn more about this topic should read through the "
606
  "Alla som vill lära sig mer om detta ämne bör läsa igenom de följande "
607
  "webbsidorna %s och %s."
608
 
609
+ #: lib/view/WpProQuiz_View_GobalSettings.php:136
610
+ #: lib/view/WpProQuiz_View_GobalSettings.php:141
611
  msgid "Touch Library"
612
  msgstr "Touch Library"
613
 
614
+ #: lib/view/WpProQuiz_View_GobalSettings.php:145
615
  #: lib/view/WpProQuiz_View_QuizEdit.php:382
616
  msgid "Deactivate"
617
  msgstr "Deaktivera"
618
 
619
+ #: lib/view/WpProQuiz_View_GobalSettings.php:148
620
  msgid "In Version 0.13 a new Touch Library was added for mobile devices."
621
  msgstr "I version 0.13 lades ett nytt Touch Library till för mobila enheter."
622
 
623
+ #: lib/view/WpProQuiz_View_GobalSettings.php:151
624
  msgid "If you have any problems with the Touch Library, please deactivate it."
625
  msgstr "Om du har några problem med Touch Library, vänligen deaktivera det."
626
 
627
+ #: lib/view/WpProQuiz_View_GobalSettings.php:158
628
+ #: lib/view/WpProQuiz_View_GobalSettings.php:163
629
  msgid "jQuery support cors"
630
  msgstr ""
631
 
632
+ #: lib/view/WpProQuiz_View_GobalSettings.php:170
633
  msgid "Is required only in rare cases."
634
  msgstr ""
635
 
636
+ #: lib/view/WpProQuiz_View_GobalSettings.php:173
637
  msgid "If you have problems with the front ajax, please activate it."
638
  msgstr ""
639
 
640
+ #: lib/view/WpProQuiz_View_GobalSettings.php:176
641
  msgid "e.g. Domain with special characters in combination with IE"
642
  msgstr ""
643
 
644
+ #: lib/view/WpProQuiz_View_GobalSettings.php:185
645
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:185
646
+ #: lib/view/WpProQuiz_View_QuizEdit.php:790
647
+ #: lib/view/WpProQuiz_View_WpqSupport.php:45
648
  msgid "Save"
649
  msgstr "Spara"
650
 
651
  #: lib/view/WpProQuiz_View_Import.php:21
652
+ #: lib/view/WpProQuiz_View_QuizOverall.php:120
653
+ #: lib/view/WpProQuiz_View_QuizOverall.php:137
654
  msgid "Import"
655
  msgstr "Importera"
656
 
671
  msgstr "Quiz-namn"
672
 
673
  #: lib/view/WpProQuiz_View_Import.php:44
674
+ #: lib/view/WpProQuiz_View_QuizOverall.php:75
675
  msgid "Questions"
676
  msgstr "Frågor"
677
 
678
  #: lib/view/WpProQuiz_View_Import.php:67
679
+ #: lib/view/WpProQuiz_View_QuizOverall.php:148
680
  msgid "Start import"
681
  msgstr "Börja importera"
682
 
685
  msgstr "Titel"
686
 
687
  #: lib/view/WpProQuiz_View_QuestionEdit.php:12
688
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
689
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
690
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
691
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
692
+ #: lib/view/WpProQuiz_View_QuizEdit.php:684
693
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
694
  msgid "(optional)"
695
  msgstr "(valfritt)"
696
 
703
  "quizzet. Om du lämnar överskriften tom kommer en överskrift att genereras."
704
 
705
  #: lib/view/WpProQuiz_View_QuestionEdit.php:21
706
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
707
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
708
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
709
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
710
  msgid "(required)"
711
  msgstr "(krav)"
712
 
714
  msgid "Points for this question (Standard is 1 point)"
715
  msgstr "Poäng för denna fråga (standard är 1 poäng)"
716
 
717
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:31
718
+ msgid ""
719
+ "This points will be rewarded, only if the user closes the question correctly."
720
  msgstr ""
721
 
722
  #: lib/view/WpProQuiz_View_QuestionEdit.php:37
723
+ msgid "Different points for each answer"
724
+ msgstr ""
725
+
726
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:40
727
  msgid ""
728
+ "If you enable this option, you can enter different points for every answer."
 
 
729
  msgstr ""
730
 
731
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:46
732
  msgid "Show reached points in the correct- and incorrect message?"
733
  msgstr ""
734
 
735
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
736
  msgid "Message with the correct / incorrect answer"
737
  msgstr ""
738
 
739
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:62
740
  msgid "Deactivated in quiz settings."
741
  msgstr ""
742
 
743
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
744
  msgid "Message with the correct answer"
745
  msgstr "Meddelande till det rätta svaret"
746
 
747
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:70
748
  msgid ""
749
  "This text will be visible if answered correctly. It can be used as "
750
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
754
  "förklaring vid en komplicerad fråga. Meddelandet \"Rätt\" eller \"Fel\" "
755
  "kommer alltid att visas automatiskt."
756
 
757
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
758
  msgid "Same text for correct- and incorrect-message?"
759
  msgstr "Samma text för rätt och fel svar?"
760
 
761
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
762
  msgid "Message with the incorrect answer"
763
  msgstr "Meddelande för felaktigt svar"
764
 
765
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:87
766
  msgid ""
767
  "This text will be visible if answered incorrectly. It can be used as "
768
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
772
  "användas som förklaring vid en komplicerad fråga. Meddelandet \"Rätt\" eller "
773
  "\"Fel\" kommer alltid att visas automatiskt."
774
 
775
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:99
776
  msgid "Here you can enter solution hint."
777
  msgstr "Här kan du skriva in ett tips."
778
 
779
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:103
780
  msgid "Activate hint for this question?"
781
  msgstr "Aktivera tips för denna fråga"
782
 
783
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:115
784
  msgid "Answer type"
785
  msgstr "Svarstyp"
786
 
787
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:123
788
  msgid "Single choice"
789
  msgstr "Ett svar"
790
 
791
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:127
792
  msgid "Multiple choice"
793
  msgstr "Flera svar"
794
 
795
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:131
796
  msgid "\"Free\" choice"
797
  msgstr "\"Fritt\" svar"
798
 
799
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:135
800
  msgid "\"Sorting\" choice"
801
  msgstr "\"Sorteringssvar\""
802
 
803
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:139
804
  msgid "\"Matrix Sorting\" choice"
805
  msgstr "\"Matrix Sorting\"-svar"
806
 
807
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:143
808
  msgid "Cloze"
809
  msgstr "Cloze"
810
 
811
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
812
  msgid "Answers"
813
  msgstr "Svar"
814
 
815
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:155
 
 
 
 
 
 
 
816
  msgid ""
817
  "Please sort the answers in right order with the \"Move\" - Button. The "
818
  "answers will be displayed randomly."
820
  "Vänligen sortera svaren i rätt ordning med \"flytta\"-knappen. Svaren kommer "
821
  "att visas i blandad ordning."
822
 
823
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:160
824
  #: lib/view/WpProQuiz_View_QuestionEdit.php:166
825
  #: lib/view/WpProQuiz_View_QuestionEdit.php:178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
826
  msgid "Add new answer"
827
  msgstr "Lägg till nytt svar"
828
 
829
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
 
 
 
 
 
 
830
  msgid ""
831
  "In this mode, not a list have to be sorted, but elements must be assigned to "
832
  "matching criterion."
834
  "I denna metod så har vi inte en lista som måste sorteras, utan element som "
835
  "måste matchas till kriterier."
836
 
837
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
838
+ msgid ""
839
+ "You can create sort elements with empty criteria, which can't be assigned by "
840
+ "user."
841
+ msgstr ""
842
+
843
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:201
844
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
845
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:302
846
+ #: lib/view/WpProQuiz_View_QuizEdit.php:18
847
+ msgid "Options"
848
+ msgstr "Alternativ"
849
+
850
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
851
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:303
852
+ msgid "Answer"
853
+ msgstr ""
854
+
855
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:217
856
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:275
857
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:281
858
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:312
859
+ msgid "Allow HTML"
860
+ msgstr "Tillåt HTML"
861
+
862
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:234
863
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:288
864
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:329
865
+ msgid "Delete answer"
866
+ msgstr "Radera svar"
867
+
868
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:235
869
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
870
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:330
871
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:58
872
+ msgid "Move"
873
+ msgstr "Flytta"
874
+
875
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:251
876
  msgid "Criterion"
877
  msgstr "Kriterie"
878
 
879
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:341
880
+ msgid ""
881
+ "correct answers (one per line) (answers will be converted to lower case)"
882
+ msgstr ""
883
+ "Korrekt svar (en per rad) (svar kommer att konverteras till små bokstäver)"
884
+
885
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:354
886
  msgid ""
887
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
888
  "small letters will be ignored."
890
  "Inkapsla det sökta ordet med {} t.ex \"Jag {spelar} fotboll\". Stora och små "
891
  "bokstäver ignoreras."
892
 
893
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:357
894
+ msgid ""
895
+ "If mode \"Different points for every answer\" is activated, you can assign "
896
+ "points with |POINTS. Otherwise 1 point will be awarded for every answer."
897
+ msgstr ""
898
+
899
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
900
+ msgid ""
901
+ "e.g. \"I {play} soccer, with a {ball|3}\" - \"play\" gives 1 point and \"ball"
902
+ "\" 3 points."
903
+ msgstr ""
904
+
905
  #: lib/view/WpProQuiz_View_QuestionOverall.php:17
906
  msgid "Questions sorted"
907
  msgstr "Frågor sorterade"
908
 
909
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
910
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
 
 
 
 
 
 
 
 
 
 
911
  msgid "Edit"
912
  msgstr "Ändra"
913
 
914
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
 
 
 
 
 
915
  #: lib/view/WpProQuiz_View_Statistics.php:84
916
  msgid "Total"
917
  msgstr "Totalt"
918
 
919
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:81
920
  msgid "Add question"
921
  msgstr "Lägg till fråga"
922
 
923
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:82
924
  msgid "Save order"
925
  msgstr "Spara sortering"
926
 
927
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:83
928
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:88
929
  msgid "Copy questions from another Quiz"
930
  msgstr "Kopiera frågor från ett annat quiz"
931
 
932
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:89
933
  msgid ""
934
  "Here you can copy questions from another quiz into this quiz. (Multiple "
935
  "selection enabled)"
937
  "Här kan du kopiera frågor från ett annat quiz till detta quiz (man kan "
938
  "merkera flera samtidigt)"
939
 
940
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:101
 
 
 
 
 
941
  msgid "Copy questions"
942
  msgstr "Kopiera frågor"
943
 
945
  msgid "Quiz title"
946
  msgstr "Quiz-överskrift"
947
 
 
 
 
 
948
  #: lib/view/WpProQuiz_View_QuizEdit.php:24
949
  msgid "Hide quiz title"
950
  msgstr "Göm quiz-överskrift"
1021
  #: lib/view/WpProQuiz_View_QuizEdit.php:240
1022
  #: lib/view/WpProQuiz_View_QuizEdit.php:363
1023
  #: lib/view/WpProQuiz_View_QuizEdit.php:388
1024
+ #: lib/view/WpProQuiz_View_QuizEdit.php:448
1025
+ #: lib/view/WpProQuiz_View_QuizEdit.php:661
1026
+ #: lib/view/WpProQuiz_View_QuizEdit.php:671
1027
  msgid "Demo"
1028
  msgstr "Demo"
1029
 
1073
 
1074
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
1075
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
1076
+ #: lib/view/WpProQuiz_View_QuizOverall.php:92
1077
  msgid "Statistics"
1078
  msgstr "Statistik"
1079
 
1122
  msgstr "Detta val gäller:"
1123
 
1124
  #: lib/view/WpProQuiz_View_QuizEdit.php:314
1125
+ #: lib/view/WpProQuiz_View_QuizEdit.php:550
1126
  msgid "all users"
1127
  msgstr "alla användare"
1128
 
1129
  #: lib/view/WpProQuiz_View_QuizEdit.php:318
1130
+ #: lib/view/WpProQuiz_View_QuizEdit.php:554
1131
  msgid "registered useres only"
1132
  msgstr "endast registrerade användare"
1133
 
1134
  #: lib/view/WpProQuiz_View_QuizEdit.php:322
1135
+ #: lib/view/WpProQuiz_View_QuizEdit.php:558
1136
  msgid "anonymous users only"
1137
  msgstr "endast anonyma användare"
1138
 
1212
  msgid "in percent"
1213
  msgstr ""
1214
 
1215
+ #: lib/view/WpProQuiz_View_QuizEdit.php:433
1216
+ #: lib/view/WpProQuiz_View_QuizEdit.php:438
1217
+ msgid "Show average points"
1218
+ msgstr ""
1219
+
1220
+ #: lib/view/WpProQuiz_View_QuizEdit.php:445
1221
+ msgid "Statistics-function must be enabled."
1222
+ msgstr ""
1223
+
1224
+ #: lib/view/WpProQuiz_View_QuizEdit.php:458
1225
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
1226
+ msgid "Prerequisites"
1227
+ msgstr ""
1228
+
1229
+ #: lib/view/WpProQuiz_View_QuizEdit.php:470
1230
+ msgid ""
1231
+ "If you enable this option, you can choose quiz, which user have to finish "
1232
+ "before he can start this quiz."
1233
+ msgstr ""
1234
+
1235
+ #: lib/view/WpProQuiz_View_QuizEdit.php:473
1236
+ msgid ""
1237
+ "In all selected quizzes statistic function have to be active. If it is not "
1238
+ "it will be activated automatically."
1239
+ msgstr ""
1240
+
1241
+ #: lib/view/WpProQuiz_View_QuizEdit.php:478
1242
+ msgid "Quiz"
1243
+ msgstr ""
1244
+
1245
+ #: lib/view/WpProQuiz_View_QuizEdit.php:480
1246
+ msgid "Prerequisites (This quiz have to be finished)"
1247
+ msgstr ""
1248
+
1249
+ #: lib/view/WpProQuiz_View_QuizEdit.php:525
1250
+ msgid ""
1251
+ "The leaderboard allows users to enter results in public list and to share "
1252
+ "the result this way."
1253
+ msgstr ""
1254
+
1255
+ #: lib/view/WpProQuiz_View_QuizEdit.php:528
1256
+ msgid "The leaderboard works independent from internal statistics function."
1257
+ msgstr ""
1258
+
1259
+ #: lib/view/WpProQuiz_View_QuizEdit.php:545
1260
+ msgid "Who can sign up to the list"
1261
+ msgstr ""
1262
+
1263
+ #: lib/view/WpProQuiz_View_QuizEdit.php:561
1264
+ msgid ""
1265
+ "Not registered users have to enter name and e-mail (e-mail won't be "
1266
+ "displayed)"
1267
+ msgstr ""
1268
+
1269
+ #: lib/view/WpProQuiz_View_QuizEdit.php:567
1270
+ msgid "display captcha"
1271
+ msgstr ""
1272
+
1273
+ #: lib/view/WpProQuiz_View_QuizEdit.php:575
1274
+ msgid ""
1275
+ "If you enable this option, additional captcha will be displayed for users "
1276
+ "who are not registered."
1277
+ msgstr ""
1278
+
1279
+ #: lib/view/WpProQuiz_View_QuizEdit.php:578
1280
+ msgid "This option requires additional plugin:"
1281
+ msgstr ""
1282
+
1283
+ #: lib/view/WpProQuiz_View_QuizEdit.php:583
1284
+ msgid "Plugin has been detected."
1285
+ msgstr ""
1286
+
1287
+ #: lib/view/WpProQuiz_View_QuizEdit.php:587
1288
+ msgid "Plugin is not installed."
1289
+ msgstr ""
1290
+
1291
+ #: lib/view/WpProQuiz_View_QuizEdit.php:595
1292
+ msgid "Sort list by"
1293
+ msgstr ""
1294
+
1295
+ #: lib/view/WpProQuiz_View_QuizEdit.php:614
1296
+ msgid "Users can apply multiple times"
1297
+ msgstr ""
1298
+
1299
+ #: lib/view/WpProQuiz_View_QuizEdit.php:625
1300
+ msgid "User can apply after:"
1301
+ msgstr ""
1302
+
1303
+ #: lib/view/WpProQuiz_View_QuizEdit.php:627
1304
+ msgid "minute"
1305
+ msgstr ""
1306
+
1307
+ #: lib/view/WpProQuiz_View_QuizEdit.php:634
1308
+ msgid "How many entries should be displayed"
1309
+ msgstr ""
1310
+
1311
+ #: lib/view/WpProQuiz_View_QuizEdit.php:640
1312
+ msgid "Entries"
1313
+ msgstr ""
1314
+
1315
+ #: lib/view/WpProQuiz_View_QuizEdit.php:647
1316
+ msgid "Automatically display leaderboard in quiz result"
1317
+ msgstr ""
1318
+
1319
+ #: lib/view/WpProQuiz_View_QuizEdit.php:651
1320
+ msgid "Where should leaderboard be displayed:"
1321
+ msgstr ""
1322
+
1323
+ #: lib/view/WpProQuiz_View_QuizEdit.php:654
1324
+ msgid "don't display"
1325
+ msgstr ""
1326
+
1327
+ #: lib/view/WpProQuiz_View_QuizEdit.php:658
1328
+ msgid "below the \"result text\""
1329
+ msgstr ""
1330
+
1331
+ #: lib/view/WpProQuiz_View_QuizEdit.php:668
1332
+ msgid "in a button"
1333
+ msgstr ""
1334
+
1335
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
1336
  msgid "Quiz description"
1337
  msgstr "Quiz-beskrivning"
1338
 
1339
+ #: lib/view/WpProQuiz_View_QuizEdit.php:714
1340
  msgid "This text will be displayed before start of the quiz."
1341
  msgstr "Denna text kommer att visas innan quiz startas."
1342
 
1343
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
1344
  msgid "Results text"
1345
  msgstr "Resultattext"
1346
 
1347
+ #: lib/view/WpProQuiz_View_QuizEdit.php:725
1348
  msgid ""
1349
  "This text will be displayed at the end of the quiz (in results). (this text "
1350
  "is optional)"
1352
  "Denna text kommer att visas i slutet av varje quiz (i resultatetn). (Denna "
1353
  "text är frivillig)"
1354
 
1355
+ #: lib/view/WpProQuiz_View_QuizEdit.php:729
1356
  msgid "Activate graduation"
1357
  msgstr "Aktivera graduering"
1358
 
1359
+ #: lib/view/WpProQuiz_View_QuizEdit.php:735
1360
  msgid "Hint:"
1361
  msgstr "Tips:"
1362
 
1363
+ #: lib/view/WpProQuiz_View_QuizEdit.php:737
1364
  msgid "Maximal 15 levels"
1365
  msgstr "Maximum 15 nivåer"
1366
 
1367
+ #: lib/view/WpProQuiz_View_QuizEdit.php:739
1368
  #, php-format
1369
  msgid ""
1370
  "Percentages refer to the total score of the quiz. (Current total %d points "
1373
  "Procenten representerar totalprocenten för quizzet. (För närvarande totalt "
1374
  "%d poäng av %d frågor)"
1375
 
1376
+ #: lib/view/WpProQuiz_View_QuizEdit.php:742
1377
  msgid "Values can also be mixed up"
1378
  msgstr "Värden kan också mixas in"
1379
 
1380
+ #: lib/view/WpProQuiz_View_QuizEdit.php:743
1381
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1382
  msgstr "10,15% och 10.15% tillåtet (max två siffror efter decimalen)"
1383
 
1384
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1385
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1386
  msgid "from:"
1387
  msgstr "från:"
1388
 
1389
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1390
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1391
  msgid "percent"
1392
  msgstr "procent"
1393
 
1394
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1395
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1396
  #, php-format
1397
  msgid ""
1398
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
1401
  "(Kommer att visas när resultat-procenten är >= <span class=\"resultprozent\">"
1402
  "%s</span>%%)"
1403
 
1404
+ #: lib/view/WpProQuiz_View_QuizEdit.php:760
1405
+ #: lib/view/WpProQuiz_View_QuizEdit.php:771
1406
  msgid "Delete graduation"
1407
  msgstr "Ta bort graduering"
1408
 
1409
+ #: lib/view/WpProQuiz_View_QuizEdit.php:778
1410
  msgid "Add graduation"
1411
  msgstr "Lägg till graduering"
1412
 
1426
  msgid "Style Manager"
1427
  msgstr "Stil-manager"
1428
 
1429
+ #: lib/view/WpProQuiz_View_QuizOverall.php:50
1430
+ #: lib/view/WpProQuiz_View_WpqSupport.php:8
1431
+ msgid "Support WP-Pro-Quiz"
1432
+ msgstr ""
1433
+
1434
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
1435
  msgid "ID"
1436
  msgstr "ID"
1437
 
1438
+ #: lib/view/WpProQuiz_View_QuizOverall.php:59
1439
  msgid "Shortcode"
1440
  msgstr "Kortkod"
1441
 
1442
+ #: lib/view/WpProQuiz_View_QuizOverall.php:60
1443
+ msgid "Shortcode-Leaderboard"
1444
+ msgstr ""
1445
+
1446
+ #: lib/view/WpProQuiz_View_QuizOverall.php:88
1447
  msgid "Preview"
1448
  msgstr "Förhandsgranskning"
1449
 
1450
+ #: lib/view/WpProQuiz_View_QuizOverall.php:118
1451
  msgid "Add quiz"
1452
  msgstr "Lägg till quiz"
1453
 
1454
+ #: lib/view/WpProQuiz_View_QuizOverall.php:122
1455
+ #: lib/view/WpProQuiz_View_QuizOverall.php:127
1456
  msgid "Export"
1457
  msgstr "Exportera"
1458
 
1459
+ #: lib/view/WpProQuiz_View_QuizOverall.php:128
1460
  msgid ""
1461
  "Choose the respective question, which you would like to export and press on "
1462
  "\"Start export\""
1464
  "Välj respektive fråga som du vill exportera och klicka på \"Starta "
1465
  "exportering\""
1466
 
1467
+ #: lib/view/WpProQuiz_View_QuizOverall.php:132
1468
  msgid "Start export"
1469
  msgstr "Starta expotering"
1470
 
1471
+ #: lib/view/WpProQuiz_View_QuizOverall.php:138
1472
  msgid "Import only *.wpq files from known and trusted sources."
1473
  msgstr "Impoertera endast *.wpq-filer från kända källor."
1474
 
1475
+ #: lib/view/WpProQuiz_View_QuizOverall.php:146
1476
  #, php-format
1477
  msgid "Maximal %d MiB"
1478
  msgstr "Maximalt %d MiB"
1529
  msgid "Reset entire statistic"
1530
  msgstr "Nolltäll all statistik"
1531
 
 
 
 
 
1532
  #: lib/view/WpProQuiz_View_Statistics.php:120
1533
  msgid "Show only users, who solved the quiz:"
1534
  msgstr ""
1535
 
1536
+ #: lib/view/WpProQuiz_View_StyleManager.php:15
1537
+ msgid "Front"
1538
+ msgstr "Front"
1539
+
1540
+ #: lib/view/WpProQuiz_View_WpqSupport.php:10
1541
+ msgid "Donate"
1542
  msgstr ""
1543
 
1544
+ #: lib/view/WpProQuiz_View_WpqSupport.php:20
1545
+ msgid "WP-Pro-Quiz is small but nice free quiz plugin for WordPress."
1546
  msgstr ""
1547
 
1548
+ #: lib/view/WpProQuiz_View_WpqSupport.php:21
1549
+ msgid ""
1550
+ "I try to implement all wishes as fast as possible and help with problems."
1551
+ msgstr ""
1552
+
1553
+ #: lib/view/WpProQuiz_View_WpqSupport.php:22
1554
+ msgid ""
1555
+ "Your donations can help to ensure that the project continues to remain free."
1556
+ msgstr ""
1557
+
1558
+ #: lib/view/WpProQuiz_View_WpqSupport.php:25
1559
+ msgid "Translate WP-Pro-Quiz"
1560
+ msgstr ""
1561
+
1562
+ #: lib/view/WpProQuiz_View_WpqSupport.php:27
1563
+ msgid "You need:"
1564
+ msgstr ""
1565
+
1566
+ #: lib/view/WpProQuiz_View_WpqSupport.php:30
1567
+ msgid "Latest POT file"
1568
+ msgstr ""
1569
+
1570
+ #: lib/view/WpProQuiz_View_WpqSupport.php:35
1571
+ msgid "Open PoEdit"
1572
+ msgstr ""
1573
+
1574
+ #: lib/view/WpProQuiz_View_WpqSupport.php:36
1575
+ msgid "File - New catalogue from POT file..."
1576
+ msgstr ""
1577
+
1578
+ #: lib/view/WpProQuiz_View_WpqSupport.php:37
1579
+ msgid "Choose wp-pro-quiz.pot"
1580
+ msgstr ""
1581
+
1582
+ #: lib/view/WpProQuiz_View_WpqSupport.php:38
1583
+ msgid "Set \"Translation properties\""
1584
+ msgstr ""
1585
+
1586
+ #: lib/view/WpProQuiz_View_WpqSupport.php:39
1587
+ msgid "Save PO file - with the name \"wp-pro-qioz-de_DE.po\""
1588
+ msgstr ""
1589
+
1590
+ #: lib/view/WpProQuiz_View_WpqSupport.php:41
1591
+ msgid "replace de_DE with your countries short code (e.g. en_US, nl_NL...)"
1592
+ msgstr ""
1593
+
1594
+ #: lib/view/WpProQuiz_View_WpqSupport.php:44
1595
+ msgid "Translate"
1596
+ msgstr ""
1597
+
1598
+ #: lib/view/WpProQuiz_View_WpqSupport.php:46
1599
+ msgid ""
1600
+ "Upload generated *.mo file to your server, to /wp-content/plugins/wp-pro-"
1601
+ "quiz/languages"
1602
+ msgstr ""
1603
+
1604
+ #: lib/view/WpProQuiz_View_WpqSupport.php:47
1605
+ msgid "Finished"
1606
+ msgstr ""
1607
+
1608
+ #: lib/view/WpProQuiz_View_WpqSupport.php:51
1609
+ msgid ""
1610
+ "You can translate WP-Pro-Quiz from existing to existing language (e.g. "
1611
+ "english to english) e.g. to rename buttons."
1612
+ msgstr ""
1613
+
1614
+ #~ msgid "correct?"
1615
+ #~ msgstr "Korrekt svar"
1616
 
1617
  #~ msgid "One question is one point"
1618
  #~ msgstr "سؤال واحد يعني درجة واحدة"
languages/wp-pro-quiz.pot ADDED
@@ -0,0 +1,1553 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-02-07 20:48+0100\n"
5
+ "PO-Revision-Date: 2013-02-07 20:48+0100\n"
6
+ "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.5\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: lib/controller/WpProQuiz_Controller_Admin.php:98
17
+ msgid "Do you really want to delete the quiz/question?"
18
+ msgstr ""
19
+
20
+ #: lib/controller/WpProQuiz_Controller_Admin.php:99
21
+ msgid "Title is not filled!"
22
+ msgstr ""
23
+
24
+ #: lib/controller/WpProQuiz_Controller_Admin.php:100
25
+ msgid "No question deposited!"
26
+ msgstr ""
27
+
28
+ #: lib/controller/WpProQuiz_Controller_Admin.php:101
29
+ msgid "Correct answer was not selected!"
30
+ msgstr ""
31
+
32
+ #: lib/controller/WpProQuiz_Controller_Admin.php:102
33
+ msgid "No answer deposited!"
34
+ msgstr ""
35
+
36
+ #: lib/controller/WpProQuiz_Controller_Admin.php:103
37
+ msgid "No quiz description filled!"
38
+ msgstr ""
39
+
40
+ #: lib/controller/WpProQuiz_Controller_Admin.php:104
41
+ msgid "The percent values in result text are incorrect."
42
+ msgstr ""
43
+
44
+ #: lib/controller/WpProQuiz_Controller_Admin.php:105
45
+ msgid "No number in the field \"Points\" or less than 1"
46
+ msgstr ""
47
+
48
+ #: lib/controller/WpProQuiz_Controller_Admin.php:106
49
+ msgid "No number in the field \"Points\" or less than 0"
50
+ msgstr ""
51
+
52
+ #: lib/controller/WpProQuiz_Controller_Admin.php:107
53
+ msgid "No quiz selected"
54
+ msgstr ""
55
+
56
+ #: lib/controller/WpProQuiz_Controller_Admin.php:108
57
+ msgid "Do you really want to reset the statistic?"
58
+ msgstr ""
59
+
60
+ #: lib/controller/WpProQuiz_Controller_Admin.php:109
61
+ #: lib/view/WpProQuiz_View_FrontToplist.php:26
62
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
63
+ #: lib/view/WpProQuiz_View_QuizOverall.php:111
64
+ msgid "No data available"
65
+ msgstr ""
66
+
67
+ #: lib/controller/WpProQuiz_Controller_Admin.php:110
68
+ msgid "No sort element in the criterion"
69
+ msgstr ""
70
+
71
+ #: lib/controller/WpProQuiz_Controller_Admin.php:111
72
+ msgid ""
73
+ "\"Different points for every answer\" is not possible at \"Free\" choice"
74
+ msgstr ""
75
+
76
+ #: lib/controller/WpProQuiz_Controller_Front.php:44
77
+ #: lib/controller/WpProQuiz_Controller_Preview.php:15
78
+ #: lib/view/WpProQuiz_View_AdminToplist.php:47
79
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:393
80
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:93
81
+ #: lib/view/WpProQuiz_View_Statistics.php:45
82
+ msgid "Loading"
83
+ msgstr ""
84
+
85
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
86
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
87
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:43
88
+ #: lib/controller/WpProQuiz_Controller_Question.php:51
89
+ #: lib/controller/WpProQuiz_Controller_Question.php:128
90
+ #: lib/controller/WpProQuiz_Controller_Question.php:143
91
+ #: lib/controller/WpProQuiz_Controller_Question.php:196
92
+ #: lib/controller/WpProQuiz_Controller_Question.php:342
93
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:175
94
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:189
95
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:249
96
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:297
97
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:163
98
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:76
99
+ msgid "You do not have sufficient permissions to access this page."
100
+ msgstr ""
101
+
102
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:19
103
+ msgid "Settings saved"
104
+ msgstr ""
105
+
106
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
107
+ #: lib/helper/WpProQuiz_Helper_Import.php:59
108
+ #: lib/helper/WpProQuiz_Helper_Import.php:68
109
+ #: lib/helper/WpProQuiz_Helper_Import.php:75
110
+ msgid "File cannot be processed"
111
+ msgstr ""
112
+
113
+ #: lib/controller/WpProQuiz_Controller_Question.php:9
114
+ #: lib/controller/WpProQuiz_Controller_Question.php:19
115
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:201
116
+ msgid "Quiz not found"
117
+ msgstr ""
118
+
119
+ #: lib/controller/WpProQuiz_Controller_Question.php:65
120
+ msgid "questions copied"
121
+ msgstr ""
122
+
123
+ #: lib/controller/WpProQuiz_Controller_Question.php:147
124
+ msgid "Edit question"
125
+ msgstr ""
126
+
127
+ #: lib/controller/WpProQuiz_Controller_Question.php:155
128
+ msgid "Question not found"
129
+ msgstr ""
130
+
131
+ #: lib/controller/WpProQuiz_Controller_Question.php:172
132
+ #: lib/controller/WpProQuiz_Controller_Question.php:224
133
+ #, php-format
134
+ msgid "Question: %d"
135
+ msgstr ""
136
+
137
+ #: lib/controller/WpProQuiz_Controller_Question.php:180
138
+ msgid "Question edited"
139
+ msgstr ""
140
+
141
+ #: lib/controller/WpProQuiz_Controller_Question.php:200
142
+ msgid "New question"
143
+ msgstr ""
144
+
145
+ #: lib/controller/WpProQuiz_Controller_Question.php:233
146
+ msgid "Question added"
147
+ msgstr ""
148
+
149
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:196
150
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:21
151
+ msgid "Edit quiz"
152
+ msgstr ""
153
+
154
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:216
155
+ msgid "Quiz edited"
156
+ msgstr ""
157
+
158
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:233
159
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:281
160
+ msgid "Quiz title or quiz description are not filled"
161
+ msgstr ""
162
+
163
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:253
164
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:267
165
+ msgid "Create quiz"
166
+ msgstr ""
167
+
168
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:314
169
+ msgid "Quiz deleted"
170
+ msgstr ""
171
+
172
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:136
173
+ msgid "You signing up successfully."
174
+ msgstr ""
175
+
176
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:144
177
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:148
178
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:165
179
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:169
180
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:175
181
+ msgid "An error has occurred."
182
+ msgstr ""
183
+
184
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:186
185
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:195
186
+ msgid "You can not enter again."
187
+ msgstr ""
188
+
189
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:199
190
+ msgid "No name or e-mail entered."
191
+ msgstr ""
192
+
193
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:203
194
+ msgid "Your name can not exceed 15 characters."
195
+ msgstr ""
196
+
197
+ #: lib/controller/WpProQuiz_Controller_Toplist.php:211
198
+ msgid "You entered wrong captcha code."
199
+ msgstr ""
200
+
201
+ #: lib/helper/WpProQuiz_Helper_Import.php:9
202
+ msgid "File was not uploaded"
203
+ msgstr ""
204
+
205
+ #: lib/helper/WpProQuiz_Helper_Import.php:40
206
+ msgid "File have wrong format"
207
+ msgstr ""
208
+
209
+ #: lib/helper/WpProQuiz_Helper_Import.php:45
210
+ msgid "File is not compatible with the current version"
211
+ msgstr ""
212
+
213
+ #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
214
+ msgid "The user completed a quiz."
215
+ msgstr ""
216
+
217
+ #: lib/view/WpProQuiz_View_AdminToplist.php:7
218
+ #: lib/view/WpProQuiz_View_FrontToplist.php:8
219
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
220
+ #: lib/view/WpProQuiz_View_QuizEdit.php:534
221
+ #: lib/view/WpProQuiz_View_QuizOverall.php:96
222
+ msgid "Leaderboard"
223
+ msgstr ""
224
+
225
+ #: lib/view/WpProQuiz_View_AdminToplist.php:8
226
+ #: lib/view/WpProQuiz_View_GobalSettings.php:21
227
+ #: lib/view/WpProQuiz_View_Import.php:22
228
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
229
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
230
+ #: lib/view/WpProQuiz_View_QuizEdit.php:8
231
+ #: lib/view/WpProQuiz_View_Statistics.php:18
232
+ #: lib/view/WpProQuiz_View_StyleManager.php:11
233
+ msgid "back to overview"
234
+ msgstr ""
235
+
236
+ #: lib/view/WpProQuiz_View_AdminToplist.php:11
237
+ #: lib/view/WpProQuiz_View_Statistics.php:115
238
+ msgid "Filter"
239
+ msgstr ""
240
+
241
+ #: lib/view/WpProQuiz_View_AdminToplist.php:16
242
+ msgid "Sort by:"
243
+ msgstr ""
244
+
245
+ #: lib/view/WpProQuiz_View_AdminToplist.php:18
246
+ #: lib/view/WpProQuiz_View_QuizEdit.php:600
247
+ msgid "best user"
248
+ msgstr ""
249
+
250
+ #: lib/view/WpProQuiz_View_AdminToplist.php:19
251
+ #: lib/view/WpProQuiz_View_QuizEdit.php:604
252
+ msgid "newest entry"
253
+ msgstr ""
254
+
255
+ #: lib/view/WpProQuiz_View_AdminToplist.php:20
256
+ #: lib/view/WpProQuiz_View_QuizEdit.php:608
257
+ msgid "oldest entry"
258
+ msgstr ""
259
+
260
+ #: lib/view/WpProQuiz_View_AdminToplist.php:26
261
+ #: lib/view/WpProQuiz_View_Statistics.php:126
262
+ msgid "How many entries should be shown on one page:"
263
+ msgstr ""
264
+
265
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
266
+ #: lib/view/WpProQuiz_View_AdminToplist.php:57
267
+ msgid "Type"
268
+ msgstr ""
269
+
270
+ #: lib/view/WpProQuiz_View_AdminToplist.php:38
271
+ msgid "UR = unregistered user, R = registered user"
272
+ msgstr ""
273
+
274
+ #: lib/view/WpProQuiz_View_AdminToplist.php:55
275
+ #: lib/view/WpProQuiz_View_Statistics.php:145
276
+ msgid "User"
277
+ msgstr ""
278
+
279
+ #: lib/view/WpProQuiz_View_AdminToplist.php:56
280
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:401
281
+ msgid "E-Mail"
282
+ msgstr ""
283
+
284
+ #: lib/view/WpProQuiz_View_AdminToplist.php:58
285
+ #: lib/view/WpProQuiz_View_FrontToplist.php:16
286
+ msgid "Entered on"
287
+ msgstr ""
288
+
289
+ #: lib/view/WpProQuiz_View_AdminToplist.php:59
290
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:283
291
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:301
292
+ #: lib/view/WpProQuiz_View_FrontToplist.php:17
293
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
294
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
295
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:223
296
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:260
297
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
298
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
299
+ #: lib/view/WpProQuiz_View_Statistics.php:54
300
+ #: lib/view/WpProQuiz_View_Statistics.php:146
301
+ msgid "Points"
302
+ msgstr ""
303
+
304
+ #: lib/view/WpProQuiz_View_AdminToplist.php:60
305
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:64
306
+ #: lib/view/WpProQuiz_View_Statistics.php:59
307
+ #: lib/view/WpProQuiz_View_Statistics.php:150
308
+ msgid "Results"
309
+ msgstr ""
310
+
311
+ #: lib/view/WpProQuiz_View_AdminToplist.php:79
312
+ msgid "Action"
313
+ msgstr ""
314
+
315
+ #: lib/view/WpProQuiz_View_AdminToplist.php:80
316
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:54
317
+ #: lib/view/WpProQuiz_View_QuizOverall.php:84
318
+ msgid "Delete"
319
+ msgstr ""
320
+
321
+ #: lib/view/WpProQuiz_View_AdminToplist.php:82
322
+ msgid "Apply"
323
+ msgstr ""
324
+
325
+ #: lib/view/WpProQuiz_View_AdminToplist.php:83
326
+ msgid "Delete all entries"
327
+ msgstr ""
328
+
329
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:49
330
+ msgid "Start quiz"
331
+ msgstr ""
332
+
333
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:54
334
+ msgid ""
335
+ "You have already completed the quiz before. Hence you can not start it again."
336
+ msgstr ""
337
+
338
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:59
339
+ msgid "You have to finish following quiz, to start this quiz:"
340
+ msgstr ""
341
+
342
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:66
343
+ #, php-format
344
+ msgid "%s of %s questions answered correctly"
345
+ msgstr ""
346
+
347
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:69
348
+ msgid "Your time: <span></span>"
349
+ msgstr ""
350
+
351
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:72
352
+ msgid "Time has elapsed"
353
+ msgstr ""
354
+
355
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:75
356
+ #, php-format
357
+ msgid "You have reached %s of %s points, (%s)"
358
+ msgstr ""
359
+
360
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:83
361
+ msgid "Average score"
362
+ msgstr ""
363
+
364
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:90
365
+ msgid "Your score"
366
+ msgstr ""
367
+
368
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:122
369
+ msgid "Restart quiz"
370
+ msgstr ""
371
+
372
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:124
373
+ msgid "View questions"
374
+ msgstr ""
375
+
376
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:127
377
+ msgid "Show leaderboard"
378
+ msgstr ""
379
+
380
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:138
381
+ #: lib/view/WpProQuiz_View_QuizEdit.php:132
382
+ #: lib/view/WpProQuiz_View_QuizEdit.php:137
383
+ msgid "Time limit"
384
+ msgstr ""
385
+
386
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:162
387
+ #, php-format
388
+ msgid "Question %s of %s"
389
+ msgstr ""
390
+
391
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:165
392
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
393
+ #: lib/view/WpProQuiz_View_Statistics.php:53
394
+ msgid "Question"
395
+ msgstr ""
396
+
397
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:169
398
+ #, php-format
399
+ msgid "%d points"
400
+ msgstr ""
401
+
402
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:179
403
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:252
404
+ msgid "Sort elements"
405
+ msgstr ""
406
+
407
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:281
408
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:288
409
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:211
410
+ #: lib/view/WpProQuiz_View_Statistics.php:55
411
+ #: lib/view/WpProQuiz_View_Statistics.php:147
412
+ msgid "Correct"
413
+ msgstr ""
414
+
415
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:299
416
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:306
417
+ #: lib/view/WpProQuiz_View_Statistics.php:56
418
+ #: lib/view/WpProQuiz_View_Statistics.php:148
419
+ msgid "Incorrect"
420
+ msgstr ""
421
+
422
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:327
423
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:336
424
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
425
+ msgid "Hint"
426
+ msgstr ""
427
+
428
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:333
429
+ msgid "Check"
430
+ msgstr ""
431
+
432
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:334
433
+ msgid "Back"
434
+ msgstr ""
435
+
436
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:338
437
+ msgid "Next exercise"
438
+ msgstr ""
439
+
440
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:351
441
+ msgid "Finish quiz"
442
+ msgstr ""
443
+
444
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:391
445
+ msgid "Your result entered into leaderboard"
446
+ msgstr ""
447
+
448
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:398
449
+ #: lib/view/WpProQuiz_View_FrontToplist.php:15
450
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
451
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
452
+ msgid "Name"
453
+ msgstr ""
454
+
455
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:406
456
+ msgid "Captcha"
457
+ msgstr ""
458
+
459
+ #: lib/view/WpProQuiz_View_FrontToplist.php:11
460
+ #, php-format
461
+ msgid "maximum of %s points"
462
+ msgstr ""
463
+
464
+ #: lib/view/WpProQuiz_View_FrontToplist.php:14
465
+ msgid "Pos."
466
+ msgstr ""
467
+
468
+ #: lib/view/WpProQuiz_View_FrontToplist.php:18
469
+ msgid "Result"
470
+ msgstr ""
471
+
472
+ #: lib/view/WpProQuiz_View_FrontToplist.php:23
473
+ msgid "Table is loading"
474
+ msgstr ""
475
+
476
+ #: lib/view/WpProQuiz_View_GobalSettings.php:7
477
+ msgid "to activate"
478
+ msgstr ""
479
+
480
+ #: lib/view/WpProQuiz_View_GobalSettings.php:9
481
+ msgid "not to activate"
482
+ msgstr ""
483
+
484
+ #: lib/view/WpProQuiz_View_GobalSettings.php:14
485
+ #: lib/view/WpProQuiz_View_GobalSettings.php:24
486
+ #: lib/view/WpProQuiz_View_GobalSettings.php:31
487
+ #: lib/view/WpProQuiz_View_QuizOverall.php:48
488
+ msgid "Global settings"
489
+ msgstr ""
490
+
491
+ #: lib/view/WpProQuiz_View_GobalSettings.php:16
492
+ #: lib/view/WpProQuiz_View_WpqSupport.php:50
493
+ msgid "Please note"
494
+ msgstr ""
495
+
496
+ #: lib/view/WpProQuiz_View_GobalSettings.php:18
497
+ msgid ""
498
+ "These settings should only be set in cases of problems with Wp-Pro-Quiz."
499
+ msgstr ""
500
+
501
+ #: lib/view/WpProQuiz_View_GobalSettings.php:25
502
+ #: lib/view/WpProQuiz_View_GobalSettings.php:78
503
+ msgid "Settings in case of problems"
504
+ msgstr ""
505
+
506
+ #: lib/view/WpProQuiz_View_GobalSettings.php:37
507
+ #: lib/view/WpProQuiz_View_GobalSettings.php:42
508
+ msgid "Leaderboard time format"
509
+ msgstr ""
510
+
511
+ #: lib/view/WpProQuiz_View_GobalSettings.php:64
512
+ msgid "Custom"
513
+ msgstr ""
514
+
515
+ #: lib/view/WpProQuiz_View_GobalSettings.php:68
516
+ msgid "Documentation on date and time formatting"
517
+ msgstr ""
518
+
519
+ #: lib/view/WpProQuiz_View_GobalSettings.php:84
520
+ #: lib/view/WpProQuiz_View_GobalSettings.php:89
521
+ msgid "Automatically add [raw] shortcode"
522
+ msgstr ""
523
+
524
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
525
+ #: lib/view/WpProQuiz_View_GobalSettings.php:115
526
+ #: lib/view/WpProQuiz_View_GobalSettings.php:167
527
+ #: lib/view/WpProQuiz_View_QuizEdit.php:33
528
+ #: lib/view/WpProQuiz_View_QuizEdit.php:52
529
+ #: lib/view/WpProQuiz_View_QuizEdit.php:71
530
+ #: lib/view/WpProQuiz_View_QuizEdit.php:90
531
+ #: lib/view/WpProQuiz_View_QuizEdit.php:109
532
+ #: lib/view/WpProQuiz_View_QuizEdit.php:125
533
+ #: lib/view/WpProQuiz_View_QuizEdit.php:159
534
+ #: lib/view/WpProQuiz_View_QuizEdit.php:184
535
+ #: lib/view/WpProQuiz_View_QuizEdit.php:209
536
+ #: lib/view/WpProQuiz_View_QuizEdit.php:234
537
+ #: lib/view/WpProQuiz_View_QuizEdit.php:259
538
+ #: lib/view/WpProQuiz_View_QuizEdit.php:299
539
+ #: lib/view/WpProQuiz_View_QuizEdit.php:357
540
+ #: lib/view/WpProQuiz_View_QuizEdit.php:407
541
+ #: lib/view/WpProQuiz_View_QuizEdit.php:442
542
+ #: lib/view/WpProQuiz_View_QuizEdit.php:467
543
+ #: lib/view/WpProQuiz_View_QuizEdit.php:539
544
+ #: lib/view/WpProQuiz_View_QuizEdit.php:572
545
+ #: lib/view/WpProQuiz_View_QuizEdit.php:620
546
+ #: lib/view/WpProQuiz_View_QuizEdit.php:696
547
+ msgid "Activate"
548
+ msgstr ""
549
+
550
+ #: lib/view/WpProQuiz_View_GobalSettings.php:93
551
+ #, php-format
552
+ msgid "It is recommended %s this option on your system."
553
+ msgstr ""
554
+
555
+ #: lib/view/WpProQuiz_View_GobalSettings.php:96
556
+ msgid ""
557
+ "If this option is activated, a [raw] shortcode is automatically set around "
558
+ "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
559
+ msgstr ""
560
+
561
+ #: lib/view/WpProQuiz_View_GobalSettings.php:99
562
+ #: lib/view/WpProQuiz_View_QuizOverall.php:42
563
+ msgid ""
564
+ "Own themes changes internal order of filters, what causes the problems. "
565
+ "With additional shortcode [raw] this is prevented."
566
+ msgstr ""
567
+
568
+ #: lib/view/WpProQuiz_View_GobalSettings.php:106
569
+ #: lib/view/WpProQuiz_View_GobalSettings.php:111
570
+ msgid "Do not load the Javascript-files in the footer"
571
+ msgstr ""
572
+
573
+ #: lib/view/WpProQuiz_View_GobalSettings.php:118
574
+ msgid ""
575
+ "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
576
+ "when they are really needed."
577
+ msgstr ""
578
+
579
+ #: lib/view/WpProQuiz_View_GobalSettings.php:121
580
+ msgid "In very old Wordpress themes this can lead to problems."
581
+ msgstr ""
582
+
583
+ #: lib/view/WpProQuiz_View_GobalSettings.php:124
584
+ msgid ""
585
+ "If you activate this option, all WpProQuiz-Javascript files are loaded in "
586
+ "the header even if they are not needed."
587
+ msgstr ""
588
+
589
+ #: lib/view/WpProQuiz_View_GobalSettings.php:127
590
+ #, php-format
591
+ msgid ""
592
+ "Anyone who wants to learn more about this topic should read through the "
593
+ "following websites %s and %s."
594
+ msgstr ""
595
+
596
+ #: lib/view/WpProQuiz_View_GobalSettings.php:136
597
+ #: lib/view/WpProQuiz_View_GobalSettings.php:141
598
+ msgid "Touch Library"
599
+ msgstr ""
600
+
601
+ #: lib/view/WpProQuiz_View_GobalSettings.php:145
602
+ #: lib/view/WpProQuiz_View_QuizEdit.php:382
603
+ msgid "Deactivate"
604
+ msgstr ""
605
+
606
+ #: lib/view/WpProQuiz_View_GobalSettings.php:148
607
+ msgid "In Version 0.13 a new Touch Library was added for mobile devices."
608
+ msgstr ""
609
+
610
+ #: lib/view/WpProQuiz_View_GobalSettings.php:151
611
+ msgid "If you have any problems with the Touch Library, please deactivate it."
612
+ msgstr ""
613
+
614
+ #: lib/view/WpProQuiz_View_GobalSettings.php:158
615
+ #: lib/view/WpProQuiz_View_GobalSettings.php:163
616
+ msgid "jQuery support cors"
617
+ msgstr ""
618
+
619
+ #: lib/view/WpProQuiz_View_GobalSettings.php:170
620
+ msgid "Is required only in rare cases."
621
+ msgstr ""
622
+
623
+ #: lib/view/WpProQuiz_View_GobalSettings.php:173
624
+ msgid "If you have problems with the front ajax, please activate it."
625
+ msgstr ""
626
+
627
+ #: lib/view/WpProQuiz_View_GobalSettings.php:176
628
+ msgid "e.g. Domain with special characters in combination with IE"
629
+ msgstr ""
630
+
631
+ #: lib/view/WpProQuiz_View_GobalSettings.php:185
632
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:185
633
+ #: lib/view/WpProQuiz_View_QuizEdit.php:790
634
+ #: lib/view/WpProQuiz_View_WpqSupport.php:45
635
+ msgid "Save"
636
+ msgstr ""
637
+
638
+ #: lib/view/WpProQuiz_View_Import.php:21
639
+ #: lib/view/WpProQuiz_View_QuizOverall.php:120
640
+ #: lib/view/WpProQuiz_View_QuizOverall.php:137
641
+ msgid "Import"
642
+ msgstr ""
643
+
644
+ #: lib/view/WpProQuiz_View_Import.php:25
645
+ msgid "Error"
646
+ msgstr ""
647
+
648
+ #: lib/view/WpProQuiz_View_Import.php:32
649
+ msgid "Successfully"
650
+ msgstr ""
651
+
652
+ #: lib/view/WpProQuiz_View_Import.php:34
653
+ msgid "Import completed successfully"
654
+ msgstr ""
655
+
656
+ #: lib/view/WpProQuiz_View_Import.php:43
657
+ msgid "Quiz name"
658
+ msgstr ""
659
+
660
+ #: lib/view/WpProQuiz_View_Import.php:44
661
+ #: lib/view/WpProQuiz_View_QuizOverall.php:75
662
+ msgid "Questions"
663
+ msgstr ""
664
+
665
+ #: lib/view/WpProQuiz_View_Import.php:67
666
+ #: lib/view/WpProQuiz_View_QuizOverall.php:148
667
+ msgid "Start import"
668
+ msgstr ""
669
+
670
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
671
+ msgid "Title"
672
+ msgstr ""
673
+
674
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
675
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
676
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
677
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:96
678
+ #: lib/view/WpProQuiz_View_QuizEdit.php:522
679
+ #: lib/view/WpProQuiz_View_QuizEdit.php:684
680
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
681
+ msgid "(optional)"
682
+ msgstr ""
683
+
684
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:15
685
+ msgid ""
686
+ "The title is used for overview, it is not visible in quiz. If you leave the "
687
+ "title field empty, a title will be generated."
688
+ msgstr ""
689
+
690
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
691
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:52
692
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
693
+ #: lib/view/WpProQuiz_View_QuizEdit.php:12
694
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
695
+ msgid "(required)"
696
+ msgstr ""
697
+
698
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:25
699
+ msgid "Points for this question (Standard is 1 point)"
700
+ msgstr ""
701
+
702
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:31
703
+ msgid ""
704
+ "This points will be rewarded, only if the user closes the question correctly."
705
+ msgstr ""
706
+
707
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:37
708
+ msgid "Different points for each answer"
709
+ msgstr ""
710
+
711
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:40
712
+ msgid ""
713
+ "If you enable this option, you can enter different points for every answer."
714
+ msgstr ""
715
+
716
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:46
717
+ msgid "Show reached points in the correct- and incorrect message?"
718
+ msgstr ""
719
+
720
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
721
+ msgid "Message with the correct / incorrect answer"
722
+ msgstr ""
723
+
724
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:62
725
+ msgid "Deactivated in quiz settings."
726
+ msgstr ""
727
+
728
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:67
729
+ msgid "Message with the correct answer"
730
+ msgstr ""
731
+
732
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:70
733
+ msgid ""
734
+ "This text will be visible if answered correctly. It can be used as "
735
+ "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
736
+ "always displayed automatically."
737
+ msgstr ""
738
+
739
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
740
+ msgid "Same text for correct- and incorrect-message?"
741
+ msgstr ""
742
+
743
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:84
744
+ msgid "Message with the incorrect answer"
745
+ msgstr ""
746
+
747
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:87
748
+ msgid ""
749
+ "This text will be visible if answered incorrectly. It can be used as "
750
+ "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
751
+ "always displayed automatically."
752
+ msgstr ""
753
+
754
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:99
755
+ msgid "Here you can enter solution hint."
756
+ msgstr ""
757
+
758
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:103
759
+ msgid "Activate hint for this question?"
760
+ msgstr ""
761
+
762
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:115
763
+ msgid "Answer type"
764
+ msgstr ""
765
+
766
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:123
767
+ msgid "Single choice"
768
+ msgstr ""
769
+
770
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:127
771
+ msgid "Multiple choice"
772
+ msgstr ""
773
+
774
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:131
775
+ msgid "\"Free\" choice"
776
+ msgstr ""
777
+
778
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:135
779
+ msgid "\"Sorting\" choice"
780
+ msgstr ""
781
+
782
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:139
783
+ msgid "\"Matrix Sorting\" choice"
784
+ msgstr ""
785
+
786
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:143
787
+ msgid "Cloze"
788
+ msgstr ""
789
+
790
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:148
791
+ msgid "Answers"
792
+ msgstr ""
793
+
794
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:155
795
+ msgid ""
796
+ "Please sort the answers in right order with the \"Move\" - Button. The "
797
+ "answers will be displayed randomly."
798
+ msgstr ""
799
+
800
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:160
801
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:166
802
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:178
803
+ msgid "Add new answer"
804
+ msgstr ""
805
+
806
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
807
+ msgid ""
808
+ "In this mode, not a list have to be sorted, but elements must be assigned to "
809
+ "matching criterion."
810
+ msgstr ""
811
+
812
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
813
+ msgid ""
814
+ "You can create sort elements with empty criteria, which can't be assigned by "
815
+ "user."
816
+ msgstr ""
817
+
818
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:201
819
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
820
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:302
821
+ #: lib/view/WpProQuiz_View_QuizEdit.php:18
822
+ msgid "Options"
823
+ msgstr ""
824
+
825
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
826
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:303
827
+ msgid "Answer"
828
+ msgstr ""
829
+
830
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:217
831
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:275
832
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:281
833
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:312
834
+ msgid "Allow HTML"
835
+ msgstr ""
836
+
837
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:234
838
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:288
839
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:329
840
+ msgid "Delete answer"
841
+ msgstr ""
842
+
843
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:235
844
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
845
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:330
846
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:58
847
+ msgid "Move"
848
+ msgstr ""
849
+
850
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:251
851
+ msgid "Criterion"
852
+ msgstr ""
853
+
854
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:341
855
+ msgid ""
856
+ "correct answers (one per line) (answers will be converted to lower case)"
857
+ msgstr ""
858
+
859
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:354
860
+ msgid ""
861
+ "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
862
+ "small letters will be ignored."
863
+ msgstr ""
864
+
865
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:357
866
+ msgid ""
867
+ "If mode \"Different points for every answer\" is activated, you can assign "
868
+ "points with |POINTS. Otherwise 1 point will be awarded for every answer."
869
+ msgstr ""
870
+
871
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
872
+ msgid ""
873
+ "e.g. \"I {play} soccer, with a {ball|3}\" - \"play\" gives 1 point and \"ball"
874
+ "\" 3 points."
875
+ msgstr ""
876
+
877
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:17
878
+ msgid "Questions sorted"
879
+ msgstr ""
880
+
881
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
882
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
883
+ msgid "Edit"
884
+ msgstr ""
885
+
886
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
887
+ #: lib/view/WpProQuiz_View_Statistics.php:84
888
+ msgid "Total"
889
+ msgstr ""
890
+
891
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:81
892
+ msgid "Add question"
893
+ msgstr ""
894
+
895
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:82
896
+ msgid "Save order"
897
+ msgstr ""
898
+
899
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:83
900
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:88
901
+ msgid "Copy questions from another Quiz"
902
+ msgstr ""
903
+
904
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:89
905
+ msgid ""
906
+ "Here you can copy questions from another quiz into this quiz. (Multiple "
907
+ "selection enabled)"
908
+ msgstr ""
909
+
910
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:101
911
+ msgid "Copy questions"
912
+ msgstr ""
913
+
914
+ #: lib/view/WpProQuiz_View_QuizEdit.php:12
915
+ msgid "Quiz title"
916
+ msgstr ""
917
+
918
+ #: lib/view/WpProQuiz_View_QuizEdit.php:24
919
+ msgid "Hide quiz title"
920
+ msgstr ""
921
+
922
+ #: lib/view/WpProQuiz_View_QuizEdit.php:29
923
+ msgid "Hide title"
924
+ msgstr ""
925
+
926
+ #: lib/view/WpProQuiz_View_QuizEdit.php:36
927
+ msgid "The title serves as quiz heading."
928
+ msgstr ""
929
+
930
+ #: lib/view/WpProQuiz_View_QuizEdit.php:43
931
+ #: lib/view/WpProQuiz_View_QuizEdit.php:48
932
+ msgid "Hide \"Restart quiz\" button"
933
+ msgstr ""
934
+
935
+ #: lib/view/WpProQuiz_View_QuizEdit.php:55
936
+ msgid "Hide the \"Restart quiz\" button in the Frontend."
937
+ msgstr ""
938
+
939
+ #: lib/view/WpProQuiz_View_QuizEdit.php:62
940
+ #: lib/view/WpProQuiz_View_QuizEdit.php:67
941
+ msgid "Hide \"View question\" button"
942
+ msgstr ""
943
+
944
+ #: lib/view/WpProQuiz_View_QuizEdit.php:74
945
+ msgid "Hide the \"View question\" button in the Frontend."
946
+ msgstr ""
947
+
948
+ #: lib/view/WpProQuiz_View_QuizEdit.php:81
949
+ #: lib/view/WpProQuiz_View_QuizEdit.php:86
950
+ msgid "Show points"
951
+ msgstr ""
952
+
953
+ #: lib/view/WpProQuiz_View_QuizEdit.php:93
954
+ msgid "Shows in quiz, how many points are reachable for respective question."
955
+ msgstr ""
956
+
957
+ #: lib/view/WpProQuiz_View_QuizEdit.php:100
958
+ #: lib/view/WpProQuiz_View_QuizEdit.php:105
959
+ msgid "Display question randomly"
960
+ msgstr ""
961
+
962
+ #: lib/view/WpProQuiz_View_QuizEdit.php:116
963
+ #: lib/view/WpProQuiz_View_QuizEdit.php:121
964
+ msgid "Display answers randomly"
965
+ msgstr ""
966
+
967
+ #: lib/view/WpProQuiz_View_QuizEdit.php:140
968
+ msgid "Seconds"
969
+ msgstr ""
970
+
971
+ #: lib/view/WpProQuiz_View_QuizEdit.php:143
972
+ msgid "0 = no limit"
973
+ msgstr ""
974
+
975
+ #: lib/view/WpProQuiz_View_QuizEdit.php:150
976
+ #: lib/view/WpProQuiz_View_QuizEdit.php:155
977
+ msgid "Number answers"
978
+ msgstr ""
979
+
980
+ #: lib/view/WpProQuiz_View_QuizEdit.php:162
981
+ msgid ""
982
+ "If this option is activated, all answers are numbered (only single and "
983
+ "multiple choice)"
984
+ msgstr ""
985
+
986
+ #: lib/view/WpProQuiz_View_QuizEdit.php:165
987
+ #: lib/view/WpProQuiz_View_QuizEdit.php:190
988
+ #: lib/view/WpProQuiz_View_QuizEdit.php:215
989
+ #: lib/view/WpProQuiz_View_QuizEdit.php:240
990
+ #: lib/view/WpProQuiz_View_QuizEdit.php:363
991
+ #: lib/view/WpProQuiz_View_QuizEdit.php:388
992
+ #: lib/view/WpProQuiz_View_QuizEdit.php:448
993
+ #: lib/view/WpProQuiz_View_QuizEdit.php:661
994
+ #: lib/view/WpProQuiz_View_QuizEdit.php:671
995
+ msgid "Demo"
996
+ msgstr ""
997
+
998
+ #: lib/view/WpProQuiz_View_QuizEdit.php:175
999
+ #: lib/view/WpProQuiz_View_QuizEdit.php:180
1000
+ msgid "Questions below each other"
1001
+ msgstr ""
1002
+
1003
+ #: lib/view/WpProQuiz_View_QuizEdit.php:187
1004
+ msgid ""
1005
+ "If this option is activated, all answers are displayed below each other, i."
1006
+ "e. all questions are on a single page. Otherwise all questions are displayed "
1007
+ "one after the other."
1008
+ msgstr ""
1009
+
1010
+ #: lib/view/WpProQuiz_View_QuizEdit.php:200
1011
+ #: lib/view/WpProQuiz_View_QuizEdit.php:205
1012
+ msgid "Check -> continue"
1013
+ msgstr ""
1014
+
1015
+ #: lib/view/WpProQuiz_View_QuizEdit.php:212
1016
+ msgid ""
1017
+ "Shows \"right or wrong\" after each question. Otherwise the solutions will "
1018
+ "be displayed at the end. (Option will be ignored if \"questions below each "
1019
+ "other\" was used)"
1020
+ msgstr ""
1021
+
1022
+ #: lib/view/WpProQuiz_View_QuizEdit.php:225
1023
+ #: lib/view/WpProQuiz_View_QuizEdit.php:230
1024
+ msgid "Back button"
1025
+ msgstr ""
1026
+
1027
+ #: lib/view/WpProQuiz_View_QuizEdit.php:237
1028
+ msgid ""
1029
+ "Allows to use the back button in a question. (Option will be ignored if "
1030
+ "\"Check -> Continue\" or \"questions below each other\" was used)"
1031
+ msgstr ""
1032
+
1033
+ #: lib/view/WpProQuiz_View_QuizEdit.php:250
1034
+ #: lib/view/WpProQuiz_View_QuizEdit.php:255
1035
+ #: lib/view/WpProQuiz_View_QuizOverall.php:92
1036
+ msgid "Statistics"
1037
+ msgstr ""
1038
+
1039
+ #: lib/view/WpProQuiz_View_QuizEdit.php:262
1040
+ msgid ""
1041
+ "Statistics about right or wrong answers. Statistics will be saved by "
1042
+ "completed quiz, not after every question. The statistics is only visible "
1043
+ "over administration menu. (internal statistics)"
1044
+ msgstr ""
1045
+
1046
+ #: lib/view/WpProQuiz_View_QuizEdit.php:269
1047
+ #: lib/view/WpProQuiz_View_QuizEdit.php:274
1048
+ msgid "Statistics IP-lock"
1049
+ msgstr ""
1050
+
1051
+ #: lib/view/WpProQuiz_View_QuizEdit.php:278
1052
+ msgid "in minutes (recommended 1440 minutes = 1 day)"
1053
+ msgstr ""
1054
+
1055
+ #: lib/view/WpProQuiz_View_QuizEdit.php:281
1056
+ msgid ""
1057
+ "Protect the statistics from spam. Result will only be saved every X minutes "
1058
+ "from same IP. (0 = deactivated)"
1059
+ msgstr ""
1060
+
1061
+ #: lib/view/WpProQuiz_View_QuizEdit.php:288
1062
+ #: lib/view/WpProQuiz_View_QuizEdit.php:294
1063
+ msgid "Execute quiz only once"
1064
+ msgstr ""
1065
+
1066
+ #: lib/view/WpProQuiz_View_QuizEdit.php:302
1067
+ msgid ""
1068
+ "If you activate this option, the user can complete the quiz only once. "
1069
+ "Afterwards the quiz is blocked for this user."
1070
+ msgstr ""
1071
+
1072
+ #: lib/view/WpProQuiz_View_QuizEdit.php:306
1073
+ msgid "This option applies to:"
1074
+ msgstr ""
1075
+
1076
+ #: lib/view/WpProQuiz_View_QuizEdit.php:314
1077
+ #: lib/view/WpProQuiz_View_QuizEdit.php:550
1078
+ msgid "all users"
1079
+ msgstr ""
1080
+
1081
+ #: lib/view/WpProQuiz_View_QuizEdit.php:318
1082
+ #: lib/view/WpProQuiz_View_QuizEdit.php:554
1083
+ msgid "registered useres only"
1084
+ msgstr ""
1085
+
1086
+ #: lib/view/WpProQuiz_View_QuizEdit.php:322
1087
+ #: lib/view/WpProQuiz_View_QuizEdit.php:558
1088
+ msgid "anonymous users only"
1089
+ msgstr ""
1090
+
1091
+ #: lib/view/WpProQuiz_View_QuizEdit.php:328
1092
+ msgid "user identification by cookie"
1093
+ msgstr ""
1094
+
1095
+ #: lib/view/WpProQuiz_View_QuizEdit.php:331
1096
+ msgid ""
1097
+ "If you activate this option, a cookie is set additionally for unregistrated "
1098
+ "(anonymous) users. This ensures a longer assignment of the user than the "
1099
+ "simple assignment by the IP address."
1100
+ msgstr ""
1101
+
1102
+ #: lib/view/WpProQuiz_View_QuizEdit.php:336
1103
+ msgid "Reset the user identification"
1104
+ msgstr ""
1105
+
1106
+ #: lib/view/WpProQuiz_View_QuizEdit.php:337
1107
+ msgid "User identification has been reset."
1108
+ msgstr ""
1109
+
1110
+ #: lib/view/WpProQuiz_View_QuizEdit.php:339
1111
+ msgid "Resets user identification for all users."
1112
+ msgstr ""
1113
+
1114
+ #: lib/view/WpProQuiz_View_QuizEdit.php:348
1115
+ #: lib/view/WpProQuiz_View_QuizEdit.php:353
1116
+ msgid "Hide correct- and incorrect message"
1117
+ msgstr ""
1118
+
1119
+ #: lib/view/WpProQuiz_View_QuizEdit.php:360
1120
+ msgid ""
1121
+ "If you enable this option, no correct- or incorrect message will be "
1122
+ "displayed."
1123
+ msgstr ""
1124
+
1125
+ #: lib/view/WpProQuiz_View_QuizEdit.php:373
1126
+ #: lib/view/WpProQuiz_View_QuizEdit.php:378
1127
+ msgid "Correct and incorrect answer mark"
1128
+ msgstr ""
1129
+
1130
+ #: lib/view/WpProQuiz_View_QuizEdit.php:385
1131
+ msgid ""
1132
+ "If you enable this option, answers won't be color highlighted as correct or "
1133
+ "incorrect. "
1134
+ msgstr ""
1135
+
1136
+ #: lib/view/WpProQuiz_View_QuizEdit.php:398
1137
+ #: lib/view/WpProQuiz_View_QuizEdit.php:403
1138
+ msgid "Show only specific number of questions"
1139
+ msgstr ""
1140
+
1141
+ #: lib/view/WpProQuiz_View_QuizEdit.php:410
1142
+ msgid ""
1143
+ "If you enable this option, maximum number of displayed questions will be X "
1144
+ "from X questions. (The output of questions is random)"
1145
+ msgstr ""
1146
+
1147
+ #: lib/view/WpProQuiz_View_QuizEdit.php:413
1148
+ msgid "The statistics function is not available in this option."
1149
+ msgstr ""
1150
+
1151
+ #: lib/view/WpProQuiz_View_QuizEdit.php:416
1152
+ msgid ""
1153
+ "This option doesn't work reliable in connection with Frontend-Cache-Plugins."
1154
+ msgstr ""
1155
+
1156
+ #: lib/view/WpProQuiz_View_QuizEdit.php:420
1157
+ msgid "How many questions should be displayed simultaneously:"
1158
+ msgstr ""
1159
+
1160
+ #: lib/view/WpProQuiz_View_QuizEdit.php:425
1161
+ msgid "in percent"
1162
+ msgstr ""
1163
+
1164
+ #: lib/view/WpProQuiz_View_QuizEdit.php:433
1165
+ #: lib/view/WpProQuiz_View_QuizEdit.php:438
1166
+ msgid "Show average points"
1167
+ msgstr ""
1168
+
1169
+ #: lib/view/WpProQuiz_View_QuizEdit.php:445
1170
+ msgid "Statistics-function must be enabled."
1171
+ msgstr ""
1172
+
1173
+ #: lib/view/WpProQuiz_View_QuizEdit.php:458
1174
+ #: lib/view/WpProQuiz_View_QuizEdit.php:463
1175
+ msgid "Prerequisites"
1176
+ msgstr ""
1177
+
1178
+ #: lib/view/WpProQuiz_View_QuizEdit.php:470
1179
+ msgid ""
1180
+ "If you enable this option, you can choose quiz, which user have to finish "
1181
+ "before he can start this quiz."
1182
+ msgstr ""
1183
+
1184
+ #: lib/view/WpProQuiz_View_QuizEdit.php:473
1185
+ msgid ""
1186
+ "In all selected quizzes statistic function have to be active. If it is not "
1187
+ "it will be activated automatically."
1188
+ msgstr ""
1189
+
1190
+ #: lib/view/WpProQuiz_View_QuizEdit.php:478
1191
+ msgid "Quiz"
1192
+ msgstr ""
1193
+
1194
+ #: lib/view/WpProQuiz_View_QuizEdit.php:480
1195
+ msgid "Prerequisites (This quiz have to be finished)"
1196
+ msgstr ""
1197
+
1198
+ #: lib/view/WpProQuiz_View_QuizEdit.php:525
1199
+ msgid ""
1200
+ "The leaderboard allows users to enter results in public list and to share "
1201
+ "the result this way."
1202
+ msgstr ""
1203
+
1204
+ #: lib/view/WpProQuiz_View_QuizEdit.php:528
1205
+ msgid "The leaderboard works independent from internal statistics function."
1206
+ msgstr ""
1207
+
1208
+ #: lib/view/WpProQuiz_View_QuizEdit.php:545
1209
+ msgid "Who can sign up to the list"
1210
+ msgstr ""
1211
+
1212
+ #: lib/view/WpProQuiz_View_QuizEdit.php:561
1213
+ msgid ""
1214
+ "Not registered users have to enter name and e-mail (e-mail won't be "
1215
+ "displayed)"
1216
+ msgstr ""
1217
+
1218
+ #: lib/view/WpProQuiz_View_QuizEdit.php:567
1219
+ msgid "display captcha"
1220
+ msgstr ""
1221
+
1222
+ #: lib/view/WpProQuiz_View_QuizEdit.php:575
1223
+ msgid ""
1224
+ "If you enable this option, additional captcha will be displayed for users "
1225
+ "who are not registered."
1226
+ msgstr ""
1227
+
1228
+ #: lib/view/WpProQuiz_View_QuizEdit.php:578
1229
+ msgid "This option requires additional plugin:"
1230
+ msgstr ""
1231
+
1232
+ #: lib/view/WpProQuiz_View_QuizEdit.php:583
1233
+ msgid "Plugin has been detected."
1234
+ msgstr ""
1235
+
1236
+ #: lib/view/WpProQuiz_View_QuizEdit.php:587
1237
+ msgid "Plugin is not installed."
1238
+ msgstr ""
1239
+
1240
+ #: lib/view/WpProQuiz_View_QuizEdit.php:595
1241
+ msgid "Sort list by"
1242
+ msgstr ""
1243
+
1244
+ #: lib/view/WpProQuiz_View_QuizEdit.php:614
1245
+ msgid "Users can apply multiple times"
1246
+ msgstr ""
1247
+
1248
+ #: lib/view/WpProQuiz_View_QuizEdit.php:625
1249
+ msgid "User can apply after:"
1250
+ msgstr ""
1251
+
1252
+ #: lib/view/WpProQuiz_View_QuizEdit.php:627
1253
+ msgid "minute"
1254
+ msgstr ""
1255
+
1256
+ #: lib/view/WpProQuiz_View_QuizEdit.php:634
1257
+ msgid "How many entries should be displayed"
1258
+ msgstr ""
1259
+
1260
+ #: lib/view/WpProQuiz_View_QuizEdit.php:640
1261
+ msgid "Entries"
1262
+ msgstr ""
1263
+
1264
+ #: lib/view/WpProQuiz_View_QuizEdit.php:647
1265
+ msgid "Automatically display leaderboard in quiz result"
1266
+ msgstr ""
1267
+
1268
+ #: lib/view/WpProQuiz_View_QuizEdit.php:651
1269
+ msgid "Where should leaderboard be displayed:"
1270
+ msgstr ""
1271
+
1272
+ #: lib/view/WpProQuiz_View_QuizEdit.php:654
1273
+ msgid "don't display"
1274
+ msgstr ""
1275
+
1276
+ #: lib/view/WpProQuiz_View_QuizEdit.php:658
1277
+ msgid "below the \"result text\""
1278
+ msgstr ""
1279
+
1280
+ #: lib/view/WpProQuiz_View_QuizEdit.php:668
1281
+ msgid "in a button"
1282
+ msgstr ""
1283
+
1284
+ #: lib/view/WpProQuiz_View_QuizEdit.php:711
1285
+ msgid "Quiz description"
1286
+ msgstr ""
1287
+
1288
+ #: lib/view/WpProQuiz_View_QuizEdit.php:714
1289
+ msgid "This text will be displayed before start of the quiz."
1290
+ msgstr ""
1291
+
1292
+ #: lib/view/WpProQuiz_View_QuizEdit.php:722
1293
+ msgid "Results text"
1294
+ msgstr ""
1295
+
1296
+ #: lib/view/WpProQuiz_View_QuizEdit.php:725
1297
+ msgid ""
1298
+ "This text will be displayed at the end of the quiz (in results). (this text "
1299
+ "is optional)"
1300
+ msgstr ""
1301
+
1302
+ #: lib/view/WpProQuiz_View_QuizEdit.php:729
1303
+ msgid "Activate graduation"
1304
+ msgstr ""
1305
+
1306
+ #: lib/view/WpProQuiz_View_QuizEdit.php:735
1307
+ msgid "Hint:"
1308
+ msgstr ""
1309
+
1310
+ #: lib/view/WpProQuiz_View_QuizEdit.php:737
1311
+ msgid "Maximal 15 levels"
1312
+ msgstr ""
1313
+
1314
+ #: lib/view/WpProQuiz_View_QuizEdit.php:739
1315
+ #, php-format
1316
+ msgid ""
1317
+ "Percentages refer to the total score of the quiz. (Current total %d points "
1318
+ "in %d questions."
1319
+ msgstr ""
1320
+
1321
+ #: lib/view/WpProQuiz_View_QuizEdit.php:742
1322
+ msgid "Values can also be mixed up"
1323
+ msgstr ""
1324
+
1325
+ #: lib/view/WpProQuiz_View_QuizEdit.php:743
1326
+ msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
1327
+ msgstr ""
1328
+
1329
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1330
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1331
+ msgid "from:"
1332
+ msgstr ""
1333
+
1334
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1335
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1336
+ msgid "percent"
1337
+ msgstr ""
1338
+
1339
+ #: lib/view/WpProQuiz_View_QuizEdit.php:759
1340
+ #: lib/view/WpProQuiz_View_QuizEdit.php:770
1341
+ #, php-format
1342
+ msgid ""
1343
+ "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
1344
+ "%s</span>%%)"
1345
+ msgstr ""
1346
+
1347
+ #: lib/view/WpProQuiz_View_QuizEdit.php:760
1348
+ #: lib/view/WpProQuiz_View_QuizEdit.php:771
1349
+ msgid "Delete graduation"
1350
+ msgstr ""
1351
+
1352
+ #: lib/view/WpProQuiz_View_QuizEdit.php:778
1353
+ msgid "Add graduation"
1354
+ msgstr ""
1355
+
1356
+ #: lib/view/WpProQuiz_View_QuizOverall.php:32
1357
+ msgid "Quiz overview"
1358
+ msgstr ""
1359
+
1360
+ #: lib/view/WpProQuiz_View_QuizOverall.php:34
1361
+ msgid "In case of problems"
1362
+ msgstr ""
1363
+
1364
+ #: lib/view/WpProQuiz_View_QuizOverall.php:36
1365
+ msgid "If quiz doesn't work in front-end, please try following:"
1366
+ msgstr ""
1367
+
1368
+ #: lib/view/WpProQuiz_View_QuizOverall.php:46
1369
+ msgid "Style Manager"
1370
+ msgstr ""
1371
+
1372
+ #: lib/view/WpProQuiz_View_QuizOverall.php:50
1373
+ #: lib/view/WpProQuiz_View_WpqSupport.php:8
1374
+ msgid "Support WP-Pro-Quiz"
1375
+ msgstr ""
1376
+
1377
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
1378
+ msgid "ID"
1379
+ msgstr ""
1380
+
1381
+ #: lib/view/WpProQuiz_View_QuizOverall.php:59
1382
+ msgid "Shortcode"
1383
+ msgstr ""
1384
+
1385
+ #: lib/view/WpProQuiz_View_QuizOverall.php:60
1386
+ msgid "Shortcode-Leaderboard"
1387
+ msgstr ""
1388
+
1389
+ #: lib/view/WpProQuiz_View_QuizOverall.php:88
1390
+ msgid "Preview"
1391
+ msgstr ""
1392
+
1393
+ #: lib/view/WpProQuiz_View_QuizOverall.php:118
1394
+ msgid "Add quiz"
1395
+ msgstr ""
1396
+
1397
+ #: lib/view/WpProQuiz_View_QuizOverall.php:122
1398
+ #: lib/view/WpProQuiz_View_QuizOverall.php:127
1399
+ msgid "Export"
1400
+ msgstr ""
1401
+
1402
+ #: lib/view/WpProQuiz_View_QuizOverall.php:128
1403
+ msgid ""
1404
+ "Choose the respective question, which you would like to export and press on "
1405
+ "\"Start export\""
1406
+ msgstr ""
1407
+
1408
+ #: lib/view/WpProQuiz_View_QuizOverall.php:132
1409
+ msgid "Start export"
1410
+ msgstr ""
1411
+
1412
+ #: lib/view/WpProQuiz_View_QuizOverall.php:138
1413
+ msgid "Import only *.wpq files from known and trusted sources."
1414
+ msgstr ""
1415
+
1416
+ #: lib/view/WpProQuiz_View_QuizOverall.php:146
1417
+ #, php-format
1418
+ msgid "Maximal %d MiB"
1419
+ msgstr ""
1420
+
1421
+ #: lib/view/WpProQuiz_View_Statistics.php:17
1422
+ #, php-format
1423
+ msgid "Quiz: %s - Statistics"
1424
+ msgstr ""
1425
+
1426
+ #: lib/view/WpProQuiz_View_Statistics.php:21
1427
+ msgid "Stats not enabled"
1428
+ msgstr ""
1429
+
1430
+ #: lib/view/WpProQuiz_View_Statistics.php:22
1431
+ msgid "Activate statistics"
1432
+ msgstr ""
1433
+
1434
+ #: lib/view/WpProQuiz_View_Statistics.php:27
1435
+ msgid "Anonymous users"
1436
+ msgstr ""
1437
+
1438
+ #: lib/view/WpProQuiz_View_Statistics.php:28
1439
+ msgid "Registered users"
1440
+ msgstr ""
1441
+
1442
+ #: lib/view/WpProQuiz_View_Statistics.php:29
1443
+ msgid "Overview"
1444
+ msgstr ""
1445
+
1446
+ #: lib/view/WpProQuiz_View_Statistics.php:34
1447
+ msgid "Please select user name:"
1448
+ msgstr ""
1449
+
1450
+ #: lib/view/WpProQuiz_View_Statistics.php:57
1451
+ #: lib/view/WpProQuiz_View_Statistics.php:149
1452
+ msgid "Hints used"
1453
+ msgstr ""
1454
+
1455
+ #: lib/view/WpProQuiz_View_Statistics.php:58
1456
+ msgid "Points scored"
1457
+ msgstr ""
1458
+
1459
+ #: lib/view/WpProQuiz_View_Statistics.php:98
1460
+ msgid "Reset statistics"
1461
+ msgstr ""
1462
+
1463
+ #: lib/view/WpProQuiz_View_Statistics.php:100
1464
+ #: lib/view/WpProQuiz_View_Statistics.php:172
1465
+ msgid "Refresh"
1466
+ msgstr ""
1467
+
1468
+ #: lib/view/WpProQuiz_View_Statistics.php:104
1469
+ #: lib/view/WpProQuiz_View_Statistics.php:174
1470
+ msgid "Reset entire statistic"
1471
+ msgstr ""
1472
+
1473
+ #: lib/view/WpProQuiz_View_Statistics.php:120
1474
+ msgid "Show only users, who solved the quiz:"
1475
+ msgstr ""
1476
+
1477
+ #: lib/view/WpProQuiz_View_StyleManager.php:15
1478
+ msgid "Front"
1479
+ msgstr ""
1480
+
1481
+ #: lib/view/WpProQuiz_View_WpqSupport.php:10
1482
+ msgid "Donate"
1483
+ msgstr ""
1484
+
1485
+ #: lib/view/WpProQuiz_View_WpqSupport.php:20
1486
+ msgid "WP-Pro-Quiz is small but nice free quiz plugin for WordPress."
1487
+ msgstr ""
1488
+
1489
+ #: lib/view/WpProQuiz_View_WpqSupport.php:21
1490
+ msgid ""
1491
+ "I try to implement all wishes as fast as possible and help with problems."
1492
+ msgstr ""
1493
+
1494
+ #: lib/view/WpProQuiz_View_WpqSupport.php:22
1495
+ msgid ""
1496
+ "Your donations can help to ensure that the project continues to remain free."
1497
+ msgstr ""
1498
+
1499
+ #: lib/view/WpProQuiz_View_WpqSupport.php:25
1500
+ msgid "Translate WP-Pro-Quiz"
1501
+ msgstr ""
1502
+
1503
+ #: lib/view/WpProQuiz_View_WpqSupport.php:27
1504
+ msgid "You need:"
1505
+ msgstr ""
1506
+
1507
+ #: lib/view/WpProQuiz_View_WpqSupport.php:30
1508
+ msgid "Latest POT file"
1509
+ msgstr ""
1510
+
1511
+ #: lib/view/WpProQuiz_View_WpqSupport.php:35
1512
+ msgid "Open PoEdit"
1513
+ msgstr ""
1514
+
1515
+ #: lib/view/WpProQuiz_View_WpqSupport.php:36
1516
+ msgid "File - New catalogue from POT file..."
1517
+ msgstr ""
1518
+
1519
+ #: lib/view/WpProQuiz_View_WpqSupport.php:37
1520
+ msgid "Choose wp-pro-quiz.pot"
1521
+ msgstr ""
1522
+
1523
+ #: lib/view/WpProQuiz_View_WpqSupport.php:38
1524
+ msgid "Set \"Translation properties\""
1525
+ msgstr ""
1526
+
1527
+ #: lib/view/WpProQuiz_View_WpqSupport.php:39
1528
+ msgid "Save PO file - with the name \"wp-pro-qioz-de_DE.po\""
1529
+ msgstr ""
1530
+
1531
+ #: lib/view/WpProQuiz_View_WpqSupport.php:41
1532
+ msgid "replace de_DE with your countries short code (e.g. en_US, nl_NL...)"
1533
+ msgstr ""
1534
+
1535
+ #: lib/view/WpProQuiz_View_WpqSupport.php:44
1536
+ msgid "Translate"
1537
+ msgstr ""
1538
+
1539
+ #: lib/view/WpProQuiz_View_WpqSupport.php:46
1540
+ msgid ""
1541
+ "Upload generated *.mo file to your server, to /wp-content/plugins/wp-pro-"
1542
+ "quiz/languages"
1543
+ msgstr ""
1544
+
1545
+ #: lib/view/WpProQuiz_View_WpqSupport.php:47
1546
+ msgid "Finished"
1547
+ msgstr ""
1548
+
1549
+ #: lib/view/WpProQuiz_View_WpqSupport.php:51
1550
+ msgid ""
1551
+ "You can translate WP-Pro-Quiz from existing to existing language (e.g. "
1552
+ "english to english) e.g. to rename buttons."
1553
+ msgstr ""
lib/controller/WpProQuiz_Controller_Admin.php CHANGED
@@ -10,23 +10,67 @@ class WpProQuiz_Controller_Admin {
10
  add_action('wp_ajax_wp_pro_quiz_statistics', array($this, 'loadStatistics'));
11
 
12
  add_action('wp_ajax_wp_pro_quiz_reset_lock', array($this, 'resetLock'));
 
 
13
 
14
 
15
  add_action('wp_ajax_wp_pro_quiz_completed_quiz', array($this, 'completedQuiz'));
16
  add_action('wp_ajax_nopriv_wp_pro_quiz_completed_quiz', array($this, 'completedQuiz'));
17
 
18
- add_action('wp_ajax_wp_pro_quiz_check_lock', array($this, 'QuizCheckLock'));
19
- add_action('wp_ajax_nopriv_wp_pro_quiz_check_lock', array($this, 'QuizCheckLock'));
 
 
 
 
 
 
 
 
 
 
 
20
 
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
  }
28
 
29
- public function QuizCheckLock() {
30
  $quizController = new WpProQuiz_Controller_Quiz();
31
 
32
  echo json_encode($quizController->isLockQuiz($_POST['quizId']));
@@ -59,8 +103,12 @@ class WpProQuiz_Controller_Admin {
59
  'no_quiz_start_msg' => __('No quiz description filled!', 'wp-pro-quiz'),
60
  'fail_grade_result' => __('The percent values in result text are incorrect.', 'wp-pro-quiz'),
61
  'no_nummber_points' => __('No number in the field "Points" or less than 1', 'wp-pro-quiz'),
 
62
  'no_selected_quiz' => __('No quiz selected', 'wp-pro-quiz'),
63
- 'reset_statistics_msg' => __('Do you really want to reset the statistic?', 'wp-pro-quiz')
 
 
 
64
  );
65
 
66
  wp_localize_script('wpProQuiz_admin_javascript', 'wpProQuizLocalize', $translation_array);
@@ -115,6 +163,12 @@ class WpProQuiz_Controller_Admin {
115
  case 'styleManager':
116
  $c = new WpProQuiz_Controller_StyleManager();
117
  break;
 
 
 
 
 
 
118
  }
119
 
120
  if($c !== null) {
10
  add_action('wp_ajax_wp_pro_quiz_statistics', array($this, 'loadStatistics'));
11
 
12
  add_action('wp_ajax_wp_pro_quiz_reset_lock', array($this, 'resetLock'));
13
+
14
+ add_action('wp_ajax_wp_pro_quiz_load_toplist', array($this, 'adminToplist'));
15
 
16
 
17
  add_action('wp_ajax_wp_pro_quiz_completed_quiz', array($this, 'completedQuiz'));
18
  add_action('wp_ajax_nopriv_wp_pro_quiz_completed_quiz', array($this, 'completedQuiz'));
19
 
20
+ add_action('wp_ajax_wp_pro_quiz_check_lock', array($this, 'quizCheckLock'));
21
+ add_action('wp_ajax_nopriv_wp_pro_quiz_check_lock', array($this, 'quizCheckLock'));
22
+
23
+ //0.19
24
+ add_action('wp_ajax_wp_pro_quiz_add_toplist', array($this, 'addInToplist'));
25
+ add_action('wp_ajax_nopriv_wp_pro_quiz_add_toplist', array($this, 'addInToplist'));
26
+
27
+ add_action('wp_ajax_wp_pro_quiz_show_front_toplist', array($this, 'showFrontToplist'));
28
+ add_action('wp_ajax_nopriv_wp_pro_quiz_show_front_toplist', array($this, 'showFrontToplist'));
29
+
30
+ add_action('wp_ajax_wp_pro_quiz_load_quiz_data', array($this, 'loadQuizData'));
31
+ add_action('wp_ajax_nopriv_wp_pro_quiz_load_quiz_data', array($this, 'loadQuizData'));
32
+
33
 
34
  add_action('admin_menu', array($this, 'register_page'));
35
  }
36
 
37
+ public function loadQuizData() {
38
+ $q = new WpProQuiz_Controller_Quiz();
39
+
40
+ echo json_encode($q->loadQuizData());
41
+
42
+ exit;
43
+ }
44
+
45
+ public function adminToplist() {
46
+ $t = new WpProQuiz_Controller_Toplist();
47
+ $t->route();
48
+
49
+ exit;
50
+ }
51
+
52
+ public function showFrontToplist() {
53
+ $t = new WpProQuiz_Controller_Toplist();
54
+
55
+ $t->showFrontToplist();
56
+
57
+ exit;
58
+ }
59
+
60
+ public function addInToplist() {
61
+ $t = new WpProQuiz_Controller_Toplist();
62
+
63
+ $t->addInToplist();
64
+
65
+ exit;
66
+ }
67
+
68
  public function resetLock() {
69
  $c = new WpProQuiz_Controller_Quiz();
70
  $c->route();
71
  }
72
 
73
+ public function quizCheckLock() {
74
  $quizController = new WpProQuiz_Controller_Quiz();
75
 
76
  echo json_encode($quizController->isLockQuiz($_POST['quizId']));
103
  'no_quiz_start_msg' => __('No quiz description filled!', 'wp-pro-quiz'),
104
  'fail_grade_result' => __('The percent values in result text are incorrect.', 'wp-pro-quiz'),
105
  'no_nummber_points' => __('No number in the field "Points" or less than 1', 'wp-pro-quiz'),
106
+ 'no_nummber_points_new' => __('No number in the field "Points" or less than 0', 'wp-pro-quiz'),
107
  'no_selected_quiz' => __('No quiz selected', 'wp-pro-quiz'),
108
+ 'reset_statistics_msg' => __('Do you really want to reset the statistic?', 'wp-pro-quiz'),
109
+ 'no_data_available' => __('No data available', 'wp-pro-quiz'),
110
+ 'no_sort_element_criterion' => __('No sort element in the criterion', 'wp-pro-quiz'),
111
+ 'dif_points' => __('"Different points for every answer" is not possible at "Free" choice', 'wp-pro-quiz')
112
  );
113
 
114
  wp_localize_script('wpProQuiz_admin_javascript', 'wpProQuizLocalize', $translation_array);
163
  case 'styleManager':
164
  $c = new WpProQuiz_Controller_StyleManager();
165
  break;
166
+ case 'toplist':
167
+ $c = new WpProQuiz_Controller_Toplist();
168
+ break;
169
+ case 'wpq_support':
170
+ $c = new WpProQuiz_Controller_WpqSupport();
171
+ break;
172
  }
173
 
174
  if($c !== null) {
lib/controller/WpProQuiz_Controller_Front.php CHANGED
@@ -11,6 +11,7 @@ class WpProQuiz_Controller_Front {
11
 
12
  add_action('wp_enqueue_scripts', array($this, 'loadDefaultScripts'));
13
  add_shortcode('WpProQuiz', array($this, 'shortcode'));
 
14
  }
15
 
16
  public function loadDefaultScripts() {
@@ -24,18 +25,38 @@ class WpProQuiz_Controller_Front {
24
  );
25
 
26
  if($this->_settings->isJsLoadInHead()) {
27
- $this->loadJsScripts(false);
28
  }
29
  }
30
 
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
38
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  if(!$this->_settings->isTouchLibraryDeactivate()) {
41
  wp_enqueue_script(
@@ -109,6 +130,48 @@ class WpProQuiz_Controller_Front {
109
  $view->show();
110
  }
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  private function loadSettings() {
113
  $mapper = new WpProQuiz_Model_GlobalSettingsMapper();
114
 
11
 
12
  add_action('wp_enqueue_scripts', array($this, 'loadDefaultScripts'));
13
  add_shortcode('WpProQuiz', array($this, 'shortcode'));
14
+ add_shortcode('WpProQuiz_toplist', array($this, 'shortcodeToplist'));
15
  }
16
 
17
  public function loadDefaultScripts() {
25
  );
26
 
27
  if($this->_settings->isJsLoadInHead()) {
28
+ $this->loadJsScripts(false, true, true);
29
  }
30
  }
31
 
32
+ private function loadJsScripts($footer = true, $quiz = true, $toplist = false) {
33
+ if($quiz) {
34
+ wp_enqueue_script(
35
+ 'wpProQuiz_front_javascript',
36
+ plugins_url('js/wpProQuiz_front.min.js', WPPROQUIZ_FILE),
37
+ array('jquery-ui-sortable'),
38
+ WPPROQUIZ_VERSION,
39
+ $footer
40
+ );
41
+
42
+ wp_localize_script('wpProQuiz_front_javascript', 'WpProQuizGlobal', array(
43
+ 'ajaxurl' => admin_url('admin-ajax.php'),
44
+ 'loadData' => __('Loading', 'wp-pro-quiz')
45
+ ));
46
+ }
47
+
48
+ if($toplist) {
49
+ wp_enqueue_script(
50
+ 'wpProQuiz_front_javascript_toplist',
51
+ plugins_url('js/wpProQuiz_toplist.min.js', WPPROQUIZ_FILE),
52
+ array('jquery-ui-sortable'),
53
+ WPPROQUIZ_VERSION,
54
+ $footer
55
+ );
56
+
57
+ if(!wp_script_is('wpProQuiz_front_javascript'))
58
+ wp_localize_script('wpProQuiz_front_javascript_toplist', 'WpProQuizGlobal', array('ajaxurl' => admin_url('admin-ajax.php')));
59
+ }
60
 
61
  if(!$this->_settings->isTouchLibraryDeactivate()) {
62
  wp_enqueue_script(
130
  $view->show();
131
  }
132
 
133
+ public function shortcodeToplist($attr) {
134
+ $id = $attr[0];
135
+ $content = '';
136
+
137
+ if(!$this->_settings->isJsLoadInHead()) {
138
+ $this->loadJsScripts(true, false, true);
139
+ }
140
+
141
+ if(is_numeric($id)) {
142
+ ob_start();
143
+
144
+ $this->handleShortCodeToplist($id, isset($attr['q']));
145
+
146
+ $content = ob_get_contents();
147
+
148
+ ob_end_clean();
149
+ }
150
+
151
+ if($this->_settings->isAddRawShortcode() && !isset($attr['q'])) {
152
+ return '[raw]'.$content.'[/raw]';
153
+ }
154
+
155
+ return $content;
156
+ }
157
+
158
+ private function handleShortCodeToplist($quizId, $inQuiz = false) {
159
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
160
+ $view = new WpProQuiz_View_FrontToplist();
161
+
162
+ $quiz = $quizMapper->fetch($quizId);
163
+
164
+ if($quiz->getId() <= 0 || !$quiz->isToplistActivated()) {
165
+ echo '';
166
+ return;
167
+ }
168
+
169
+ $view->quiz = $quiz;
170
+ $view->points = $quizMapper->sumQuestionPoints($quizId);
171
+ $view->inQuiz = $inQuiz;
172
+ $view->show();
173
+ }
174
+
175
  private function loadSettings() {
176
  $mapper = new WpProQuiz_Model_GlobalSettingsMapper();
177
 
lib/controller/WpProQuiz_Controller_GlobalSettings.php CHANGED
@@ -17,11 +17,25 @@ class WpProQuiz_Controller_GlobalSettings extends WpProQuiz_Controller_Controlle
17
  if(isset($this->_post['submit'])) {
18
  $mapper->save(new WpProQuiz_Model_GlobalSettings($this->_post));
19
  WpProQuiz_View_View::admin_notices(__('Settings saved', 'wp-pro-quiz'), 'info');
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
 
22
  $view->settings = $mapper->fetchAll();
23
  $view->isRaw = !preg_match('[raw]', apply_filters('the_content', '[raw]a[/raw]'));
24
 
 
 
25
  $view->show();
26
  }
27
  }
17
  if(isset($this->_post['submit'])) {
18
  $mapper->save(new WpProQuiz_Model_GlobalSettings($this->_post));
19
  WpProQuiz_View_View::admin_notices(__('Settings saved', 'wp-pro-quiz'), 'info');
20
+
21
+
22
+
23
+ $toplistDateFormat = $this->_post['toplist_date_format'];
24
+
25
+ if($toplistDateFormat == 'custom') {
26
+ $toplistDateFormat = trim($this->_post['toplist_date_format_custom']);
27
+ }
28
+
29
+ if(add_option('wpProQuiz_toplistDataFormat', $toplistDateFormat) === false) {
30
+ update_option('wpProQuiz_toplistDataFormat', $toplistDateFormat);
31
+ }
32
  }
33
 
34
  $view->settings = $mapper->fetchAll();
35
  $view->isRaw = !preg_match('[raw]', apply_filters('the_content', '[raw]a[/raw]'));
36
 
37
+ $view->toplistDataFormat = get_option('wpProQuiz_toplistDataFormat', 'Y/m/d g:i A');
38
+
39
  $view->show();
40
  }
41
  }
lib/controller/WpProQuiz_Controller_Preview.php CHANGED
@@ -4,12 +4,17 @@ class WpProQuiz_Controller_Preview extends WpProQuiz_Controller_Controller {
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),
4
  public function route() {
5
 
6
  wp_enqueue_script(
7
+ 'wpProQuiz_front_javascript',
8
  plugins_url('js/wpProQuiz_front.min.js', WPPROQUIZ_FILE),
9
  array('jquery', 'jquery-ui-sortable'),
10
  WPPROQUIZ_VERSION
11
  );
12
 
13
+ wp_localize_script('wpProQuiz_front_javascript', 'WpProQuizGlobal', array(
14
+ 'ajaxurl' => admin_url('admin-ajax.php'),
15
+ 'loadData' => __('Loading', 'wp-pro-quiz')
16
+ ));
17
+
18
  wp_enqueue_style(
19
  'wpProQuiz_front_style',
20
  plugins_url('css/wpProQuiz_front.min.css', WPPROQUIZ_FILE),
lib/controller/WpProQuiz_Controller_Question.php CHANGED
@@ -34,7 +34,7 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
34
  $this->deleteAction($_GET['id']);
35
  break;
36
  case 'save_sort':
37
- $this->saveSort($_GET['id']);
38
  break;
39
  case 'load_question':
40
  $this->loadQuestion($_GET['quiz_id']);
@@ -107,7 +107,7 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
107
  exit;
108
  }
109
 
110
- public function saveSort($quizId) {
111
 
112
  if(!current_user_can('wpProQuiz_edit_quiz')) {
113
  exit;
@@ -145,6 +145,7 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
145
 
146
  $this->view = new WpProQuiz_View_QuestionEdit();
147
  $this->view->header = __('Edit question', 'wp-pro-quiz');
 
148
  $mapper = new WpProQuiz_Model_QuestionMapper();
149
  $quizMapper = new WpProQuiz_Model_QuizMapper();
150
 
@@ -156,31 +157,34 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
156
  }
157
 
158
  if(isset($this->_post['submit'])) {
159
- $post = $this->clearPost($this->_post);
160
- $post['id'] = $id;
161
 
 
162
  $post['title'] = isset($post['title']) ? trim($post['title']) : '';
163
-
 
 
 
 
164
  if(empty($post['title'])) {
165
  $question = $mapper->fetch($id);
166
 
167
  $post['title'] = sprintf(__('Question: %d', 'wp-pro-quiz'), $question->getSort()+1);
168
  }
169
 
170
- $post['pointsAnswer'] = $post['points'];
171
-
172
- if(isset($post['pointsPerAnswer'])) {
173
- $post['points'] = $this->generatePointsAnswer($post);
174
  }
175
-
176
  $mapper->save(new WpProQuiz_Model_Question($post));
177
  WpProQuiz_View_View::admin_notices(__('Question edited', 'wp-pro-quiz'), 'info');
178
  }
179
 
180
  $this->view->question = $mapper->fetch($id);
 
181
 
182
- if($this->view->question->isPointsPerAnswer()) {
183
- $this->view->question->setPoints($this->view->question->getPointsAnswer());
184
  }
185
 
186
  $this->view->show();
@@ -194,18 +198,25 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
194
 
195
  $this->view = new WpProQuiz_View_QuestionEdit();
196
  $this->view->header = __('New question', 'wp-pro-quiz');
 
197
  $post = null;
198
 
199
  $quizMapper = new WpProQuiz_Model_QuizMapper();
200
 
201
  $this->view->quiz = $quizMapper->fetch($this->_quizId);
202
-
203
  if(isset($this->_post['submit'])) {
204
- $post = $this->clearPost($this->_post);
205
 
206
  $questionMapper = new WpProQuiz_Model_QuestionMapper();
207
 
 
 
208
  $post['title'] = isset($post['title']) ? trim($post['title']) : '';
 
 
 
 
 
209
 
210
  if(empty($post['title'])) {
211
  $count = $questionMapper->count($this->_quizId);
@@ -213,10 +224,8 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
213
  $post['title'] = sprintf(__('Question: %d', 'wp-pro-quiz'), $count+1);
214
  }
215
 
216
- $post['pointsAnswer'] = $post['points'];
217
-
218
- if(isset($post['pointsPerAnswer'])) {
219
- $post['points'] = $this->generatePointsAnswer($post);
220
  }
221
 
222
  $questionMapper->save(new WpProQuiz_Model_Question($post));
@@ -224,51 +233,85 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
224
  WpProQuiz_View_View::admin_notices(__('Question added', 'wp-pro-quiz'), 'info');
225
 
226
  $this->showAction();
 
227
  return;
228
  }
229
 
230
  $this->view->question = new WpProQuiz_Model_Question($post);
 
231
  $this->view->question->setQuizId($this->_quizId);
232
 
233
- if($this->view->question->isPointsPerAnswer()) {
234
- $this->view->question->setPoints($this->view->question->getPointsAnswer());
235
  }
236
 
237
  $this->view->show();
238
  }
239
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  public function clearPost($post) {
241
- $j = array();
242
 
243
- switch($post['answerType']) {
 
244
 
245
-
246
- case 'single':
247
- case 'multiple':
248
- $j = array('classic_answer' => $post['answerJson']['classic_answer']);
249
- break;
250
- case 'free_answer':
251
- $j = array('free_answer' => $post['answerJson']['free_answer']);
252
- break;
253
- case 'sort_answer':
254
- $j = array('answer_sort' => $post['answerJson']['answer_sort']);
255
- break;
256
- case 'matrix_sort_answer':
257
- $j = array('answer_matrix_sort' => $post['answerJson']['answer_matrix_sort']);
258
- break;
259
- case 'cloze_answer':
260
- $j = array('answer_cloze' => $post['answerJson']['answer_cloze']);
261
- break;
262
 
 
 
 
 
 
 
 
 
263
  }
 
 
264
 
265
- unset($post['answerJson']);
 
 
266
 
267
- $post['answerJson'] = $j;
268
- $post['answerJson'] = $this->clear($post['answerJson']);
269
- $post['quizId'] = $this->_quizId;
270
 
271
- return $post;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  }
273
 
274
  public function clear($a) {
@@ -307,21 +350,4 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
307
  $this->view->question = $mm->fetchAll($this->_quizId);
308
  $this->view->show();
309
  }
310
-
311
- private function generatePointsAnswer($post) {
312
- switch($post['answerType']) {
313
- case 'single':
314
- case 'multiple':
315
- return count($post['answerJson']['classic_answer']['correct']) * $post['pointsAnswer'];
316
- case 'free_answer':
317
- return $post['pointsAnswer'];
318
- case 'sort_answer':
319
- return count($post['answerJson']['answer_sort']['answer']) * $post['pointsAnswer'];
320
- case 'matrix_sort_answer':
321
- return count($post['answerJson']['answer_matrix_sort']['answer']) * $post['pointsAnswer'];
322
- case 'cloze_answer':
323
- return preg_match_all('#\{(.*?)\}#', $post['answerJson']['answer_cloze']['text']) * $post['pointsAnswer'];
324
- break;
325
- }
326
- }
327
  }
34
  $this->deleteAction($_GET['id']);
35
  break;
36
  case 'save_sort':
37
+ $this->saveSort();
38
  break;
39
  case 'load_question':
40
  $this->loadQuestion($_GET['quiz_id']);
107
  exit;
108
  }
109
 
110
+ public function saveSort() {
111
 
112
  if(!current_user_can('wpProQuiz_edit_quiz')) {
113
  exit;
145
 
146
  $this->view = new WpProQuiz_View_QuestionEdit();
147
  $this->view->header = __('Edit question', 'wp-pro-quiz');
148
+
149
  $mapper = new WpProQuiz_Model_QuestionMapper();
150
  $quizMapper = new WpProQuiz_Model_QuizMapper();
151
 
157
  }
158
 
159
  if(isset($this->_post['submit'])) {
160
+ $post = $this->_post;
 
161
 
162
+ $post['id'] = $id;
163
  $post['title'] = isset($post['title']) ? trim($post['title']) : '';
164
+
165
+ $clearPost = $this->clearPost($post);
166
+
167
+ $post['answerData'] = $clearPost['answerData'];
168
+
169
  if(empty($post['title'])) {
170
  $question = $mapper->fetch($id);
171
 
172
  $post['title'] = sprintf(__('Question: %d', 'wp-pro-quiz'), $question->getSort()+1);
173
  }
174
 
175
+ if(isset($post['answerPointsActivated'])) {
176
+ $post['points'] = $clearPost['points'];
 
 
177
  }
178
+
179
  $mapper->save(new WpProQuiz_Model_Question($post));
180
  WpProQuiz_View_View::admin_notices(__('Question edited', 'wp-pro-quiz'), 'info');
181
  }
182
 
183
  $this->view->question = $mapper->fetch($id);
184
+ $this->view->data = $this->setAnswerObject($this->view->question);
185
 
186
+ if($this->view->question->isAnswerPointsActivated()) {
187
+ $this->view->question->setPoints(1);
188
  }
189
 
190
  $this->view->show();
198
 
199
  $this->view = new WpProQuiz_View_QuestionEdit();
200
  $this->view->header = __('New question', 'wp-pro-quiz');
201
+
202
  $post = null;
203
 
204
  $quizMapper = new WpProQuiz_Model_QuizMapper();
205
 
206
  $this->view->quiz = $quizMapper->fetch($this->_quizId);
207
+
208
  if(isset($this->_post['submit'])) {
 
209
 
210
  $questionMapper = new WpProQuiz_Model_QuestionMapper();
211
 
212
+ $post = $this->_post;
213
+
214
  $post['title'] = isset($post['title']) ? trim($post['title']) : '';
215
+ $post['quizId'] = $this->_quizId;
216
+
217
+ $clearPost = $this->clearPost($post);
218
+
219
+ $post['answerData'] = $clearPost['answerData'];
220
 
221
  if(empty($post['title'])) {
222
  $count = $questionMapper->count($this->_quizId);
224
  $post['title'] = sprintf(__('Question: %d', 'wp-pro-quiz'), $count+1);
225
  }
226
 
227
+ if(isset($post['answerPointsActivated'])) {
228
+ $post['points'] = $clearPost['points'];
 
 
229
  }
230
 
231
  $questionMapper->save(new WpProQuiz_Model_Question($post));
233
  WpProQuiz_View_View::admin_notices(__('Question added', 'wp-pro-quiz'), 'info');
234
 
235
  $this->showAction();
236
+
237
  return;
238
  }
239
 
240
  $this->view->question = new WpProQuiz_Model_Question($post);
241
+ $this->view->data = $this->setAnswerObject($this->view->question);
242
  $this->view->question->setQuizId($this->_quizId);
243
 
244
+ if($this->view->question->isAnswerPointsActivated()) {
245
+ $this->view->question->setPoints(1);
246
  }
247
 
248
  $this->view->show();
249
  }
250
 
251
+ private function setAnswerObject(WpProQuiz_Model_Question $question) {
252
+ //Defaults
253
+ $data = array(
254
+ 'sort_answer' => array(new WpProQuiz_Model_AnswerTypes()),
255
+ 'classic_answer' => array(new WpProQuiz_Model_AnswerTypes()),
256
+ 'matrix_sort_answer' => array(new WpProQuiz_Model_AnswerTypes()),
257
+ 'cloze_answer' => array(new WpProQuiz_Model_AnswerTypes()),
258
+ 'free_answer' => array(new WpProQuiz_Model_AnswerTypes())
259
+ );
260
+
261
+ $type = $question->getAnswerType();
262
+ $type = ($type == 'single' || $type == 'multiple') ? 'classic_answer' : $type;
263
+ $answerData = $question->getAnswerData();
264
+
265
+ if(isset($data[$type]) && $answerData !== null) {
266
+ $data[$type] = $question->getAnswerData();
267
+ }
268
+
269
+ return $data;
270
+ }
271
+
272
  public function clearPost($post) {
 
273
 
274
+ if($post['answerType'] == 'cloze_answer' && isset($post['answerData']['cloze'])) {
275
+ preg_match_all('#\{(.*?)(?:\|(\d+))?(?:[\s]+)?\}#im', $post['answerData']['cloze']['answer'], $matches);
276
 
277
+ $points = 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
278
 
279
+ foreach($matches[2] as $match) {
280
+ if(empty($match))
281
+ $match = 1;
282
+
283
+ $points += $match;
284
+ }
285
+
286
+ return array('points' => $points, 'answerData' => array(new WpProQuiz_Model_AnswerTypes($post['answerData']['cloze'])));
287
  }
288
+
289
+ unset($post['answerData']['cloze']);
290
 
291
+ if(isset($post['answerData']['none'])) {
292
+ unset($post['answerData']['none']);
293
+ }
294
 
295
+ $answerData = array();
296
+ $points = 0;
 
297
 
298
+ foreach($post['answerData'] as $k => $v) {
299
+ if(trim($v['answer']) == '') {
300
+ if($post['answerType'] != 'matrix_sort_answer') {
301
+ continue;
302
+ } else {
303
+ if(trim($v['sort_string']) == '')
304
+ continue;
305
+ }
306
+ }
307
+
308
+ $answerType = new WpProQuiz_Model_AnswerTypes($v);
309
+ $points += $answerType->getPoints();
310
+
311
+ $answerData[] = $answerType;
312
+ }
313
+
314
+ return array('points' => $points, 'answerData' => $answerData);
315
  }
316
 
317
  public function clear($a) {
350
  $this->view->question = $mm->fetchAll($this->_quizId);
351
  $this->view->show();
352
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
353
  }
lib/controller/WpProQuiz_Controller_Quiz.php CHANGED
@@ -26,6 +26,126 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
26
  }
27
  }
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  private function resetLock($quizId) {
30
 
31
  if(!current_user_can('wpProQuiz_edit_quiz')) {
@@ -69,6 +189,9 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
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
 
@@ -84,16 +207,24 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
84
  if(isset($this->_post['resultGradeEnabled'])) {
85
  $this->_post['result_text'] = $this->filterResultTextGrade($this->_post);
86
  }
87
-
88
- $this->view->quiz = new WpProQuiz_Model_Quiz($this->_post);
89
- $this->view->quiz->setId($id);
90
 
91
  if($this->checkValidit($this->_post)) {
92
 
93
  WpProQuiz_View_View::admin_notices(__('Quiz edited', 'wp-pro-quiz'), 'info');
94
 
95
- $this->view->quiz->getMapper()->save($this->view->quiz);
 
 
 
 
 
 
 
96
 
 
97
 
98
  $this->showAction();
99
 
@@ -102,9 +233,13 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
102
  WpProQuiz_View_View::admin_notices(__('Quiz title or quiz description are not filled', 'wp-pro-quiz'));
103
  }
104
  } else {
105
- $this->view->quiz = $m->fetch($id);
106
  }
107
 
 
 
 
 
108
  $this->view->show();
109
  }
110
 
@@ -117,27 +252,42 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
117
  $this->view = new WpProQuiz_View_QuizEdit();
118
  $this->view->header = __('Create quiz', 'wp-pro-quiz');
119
 
 
 
120
  if(isset($this->_post['submit'])) {
121
 
122
  if(isset($this->_post['resultGradeEnabled'])) {
123
  $this->_post['result_text'] = $this->filterResultTextGrade($this->_post);
124
  }
125
 
126
- $this->view->quiz = new WpProQuiz_Model_Quiz($this->_post);
 
127
 
128
  if($this->checkValidit($this->_post)) {
129
  WpProQuiz_View_View::admin_notices(__('Create quiz', 'wp-pro-quiz'), 'info');
130
- $this->view->quiz->getMapper()->save($this->view->quiz);
 
 
 
 
 
 
 
 
 
131
  $this->showAction();
132
  return;
133
  } else {
134
- //add_action('admin_notices', array('WpProQuiz_View_View', 'admin_notices'));
135
  WpProQuiz_View_View::admin_notices(__('Quiz title or quiz description are not filled', 'wp-pro-quiz'));
136
  }
137
  } else {
138
- $this->view->quiz = new WpProQuiz_Model_Quiz();
139
  }
140
 
 
 
 
 
141
  $this->view->show();
142
  }
143
 
@@ -151,11 +301,15 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
151
  $qm = new WpProQuiz_Model_QuestionMapper();
152
  $lm = new WpProQuiz_Model_LockMapper();
153
  $sm = new WpProQuiz_Model_StatisticMapper();
 
 
154
 
155
  $m->delete($id);
156
  $qm->deleteByQuizId($id);
157
  $lm->deleteByQuizId($id);
158
  $sm->deleteByQuiz($id);
 
 
159
 
160
  WpProQuiz_View_View::admin_notices(__('Quiz deleted', 'wp-pro-quiz'), 'info');
161
 
@@ -174,14 +328,37 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
174
  $result['text'][] = $post['resultTextGrade']['text'][$k];
175
  $result['prozent'][] = (float)str_replace(',', '.', $post['resultTextGrade']['prozent'][$k]);
176
  }
177
-
178
  return $result;
179
  }
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  public function completedQuiz() {
182
 
183
  $lockMapper = new WpProQuiz_Model_LockMapper();
184
  $quizMapper = new WpProQuiz_Model_QuizMapper();
 
185
 
186
  $quiz = $quizMapper->fetch($this->_post['quizId']);
187
 
@@ -189,6 +366,8 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
189
  exit;
190
  }
191
 
 
 
192
  if(!$this->isPreLockQuiz($quiz)) {
193
  $statistics = new WpProQuiz_Controller_Statistics();
194
  $statistics->save();
@@ -208,7 +387,7 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
208
  if(isset($this->_cookie['wpProQuiz_lock']) && get_current_user_id() == 0 && $quiz->isQuizRunOnceCookie()) {
209
  $cookieJson = json_decode($this->_cookie['wpProQuiz_lock'], true);
210
 
211
- if($cookieJson !== false) {
212
  if(isset($cookieJson[$this->_post['quizId']]) && $cookieJson[$this->_post['quizId']] == $cookieTime) {
213
  $lockCookie = true;
214
  }
@@ -265,36 +444,7 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
265
  return false;
266
  }
267
 
268
- public function isLockQuiz($quizId) {
269
- $lockMapper = new WpProQuiz_Model_LockMapper();
270
- $quizMapper = new WpProQuiz_Model_QuizMapper();
271
-
272
- $quiz = $quizMapper->fetch($this->_post['quizId']);
273
-
274
- if($quiz === null || $quiz->getId() <= 0) {
275
- return array('is' => true, 'pre' => true);
276
- }
277
-
278
- if($this->isPreLockQuiz($quiz)) {
279
- $lockIp = $lockMapper->isLock($this->_post['quizId'], $this->getIp(), get_current_user_id(), WpProQuiz_Model_Lock::TYPE_QUIZ);
280
- $lockCookie = false;
281
- $cookieTime = $quiz->getQuizRunOnceTime();
282
-
283
- if(isset($this->_cookie['wpProQuiz_lock']) && get_current_user_id() == 0 && $quiz->isQuizRunOnceCookie()) {
284
- $cookieJson = json_decode($this->_cookie['wpProQuiz_lock'], true);
285
-
286
- if($cookieJson !== false) {
287
- if(isset($cookieJson[$this->_post['quizId']]) && $cookieJson[$this->_post['quizId']] == $cookieTime) {
288
- $lockCookie = true;
289
- }
290
- }
291
- }
292
-
293
- return array('is' => ($lockIp || $lockCookie), 'pre' => true);
294
- }
295
-
296
- return array('is' => false, 'pre' => false);
297
- }
298
 
299
  private function getIp() {
300
  if(get_current_user_id() > 0)
26
  }
27
  }
28
 
29
+ public function checkLock() {
30
+
31
+
32
+ if($userId > 0) {
33
+ $quizIds = $prerequisiteMapper->getNoPrerequisite($quizId, $userId);
34
+ } else {
35
+ $checkIds = $prerequisiteMapper->fetchQuizIds($quizId);
36
+
37
+ if(isset($this->_post['wpProQuiz_result'])) {
38
+ $r = json_encode($this->_post['wpProQuiz_result'], true);
39
+
40
+ if($r !== null && is_array($r)) {
41
+ foreach($checkIds as $id) {
42
+ if(!isset($r[$id]) || !$r[$id]) {
43
+ $quizIds[] = $id;
44
+ }
45
+ }
46
+ }
47
+ } else {
48
+ $quizIds = $checkIds;
49
+ }
50
+ }
51
+
52
+ $names = $quizMapper->fetchCol($quizIds, 'name');
53
+
54
+ }
55
+
56
+ public function isLockQuiz($quizId) {
57
+ $quizId = (int)$this->_post['quizId'];
58
+ $userId = get_current_user_id();
59
+ $data = array();
60
+
61
+ $lockMapper = new WpProQuiz_Model_LockMapper();
62
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
63
+ $prerequisiteMapper = new WpProQuiz_Model_PrerequisiteMapper();
64
+
65
+ $quiz = $quizMapper->fetch($this->_post['quizId']);
66
+
67
+ if($quiz === null || $quiz->getId() <= 0) {
68
+ return null;
69
+ }
70
+
71
+ if($this->isPreLockQuiz($quiz)) {
72
+ $lockIp = $lockMapper->isLock($this->_post['quizId'], $this->getIp(), $userId, WpProQuiz_Model_Lock::TYPE_QUIZ);
73
+ $lockCookie = false;
74
+ $cookieTime = $quiz->getQuizRunOnceTime();
75
+
76
+ if(isset($this->_cookie['wpProQuiz_lock']) && $userId == 0 && $quiz->isQuizRunOnceCookie()) {
77
+ $cookieJson = json_decode($this->_cookie['wpProQuiz_lock'], true);
78
+
79
+ if($cookieJson !== false) {
80
+ if(isset($cookieJson[$this->_post['quizId']]) && $cookieJson[$this->_post['quizId']] == $cookieTime) {
81
+ $lockCookie = true;
82
+ }
83
+ }
84
+ }
85
+
86
+ $data['lock'] = array(
87
+ 'is' => ($lockIp || $lockCookie),
88
+ 'pre' => true
89
+ );
90
+ }
91
+
92
+ if($quiz->isPrerequisite()) {
93
+ $quizIds = array();
94
+
95
+ if($userId > 0) {
96
+ $quizIds = $prerequisiteMapper->getNoPrerequisite($quizId, $userId);
97
+ } else {
98
+ $checkIds = $prerequisiteMapper->fetchQuizIds($quizId);
99
+
100
+ if(isset($this->_cookie['wpProQuiz_result'])) {
101
+ $r = json_decode($this->_cookie['wpProQuiz_result'], true);
102
+
103
+ if($r !== null && is_array($r)) {
104
+ foreach($checkIds as $id) {
105
+ if(!isset($r[$id]) || !$r[$id]) {
106
+ $quizIds[] = $id;
107
+ }
108
+ }
109
+ }
110
+ } else {
111
+ $quizIds = $checkIds;
112
+ }
113
+ }
114
+
115
+ if(!empty($quizIds)) {
116
+ $names = $quizMapper->fetchCol($quizIds, 'name');
117
+
118
+ if(!empty($names)) {
119
+ $data['prerequisite'] = implode(', ', $names);
120
+ }
121
+ }
122
+
123
+ }
124
+
125
+ return $data;
126
+ }
127
+
128
+ public function loadQuizData() {
129
+ $quizId = (int)$_POST['quizId'];
130
+ $userId = get_current_user_id();
131
+
132
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
133
+ $toplistController = new WpProQuiz_Controller_Toplist();
134
+ $statisticController = new WpProQuiz_Controller_Statistics();
135
+
136
+ $quiz = $quizMapper->fetch($quizId);
137
+ $data = array();
138
+
139
+ if($quiz === null || $quiz->getId() <= 0) {
140
+ return array();
141
+ }
142
+
143
+ $data['toplist'] = $toplistController->getAddToplist($quiz);
144
+ $data['averageResult'] = $statisticController->getAverageResult($quizId);
145
+
146
+ return $data;
147
+ }
148
+
149
  private function resetLock($quizId) {
150
 
151
  if(!current_user_can('wpProQuiz_edit_quiz')) {
189
  wp_die(__('You do not have sufficient permissions to access this page.'));
190
  }
191
 
192
+ $prerequisiteMapper = new WpProQuiz_Model_PrerequisiteMapper();
193
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
194
+
195
  $this->view = new WpProQuiz_View_QuizEdit();
196
  $this->view->header = __('Edit quiz', 'wp-pro-quiz');
197
 
207
  if(isset($this->_post['resultGradeEnabled'])) {
208
  $this->_post['result_text'] = $this->filterResultTextGrade($this->_post);
209
  }
210
+
211
+ $quiz = new WpProQuiz_Model_Quiz($this->_post);
212
+ $quiz->setId($id);
213
 
214
  if($this->checkValidit($this->_post)) {
215
 
216
  WpProQuiz_View_View::admin_notices(__('Quiz edited', 'wp-pro-quiz'), 'info');
217
 
218
+ $prerequisiteMapper = new WpProQuiz_Model_PrerequisiteMapper();
219
+
220
+ $prerequisiteMapper->delete($id);
221
+
222
+ if($quiz->isPrerequisite() && !empty($this->_post['prerequisiteList'])) {
223
+ $prerequisiteMapper->save($id, $this->_post['prerequisiteList']);
224
+ $quizMapper->activateStatitic($this->_post['prerequisiteList'], 1440);
225
+ }
226
 
227
+ $quizMapper->save($quiz);
228
 
229
  $this->showAction();
230
 
233
  WpProQuiz_View_View::admin_notices(__('Quiz title or quiz description are not filled', 'wp-pro-quiz'));
234
  }
235
  } else {
236
+ $quiz = $m->fetch($id);
237
  }
238
 
239
+ $this->view->quiz = $quiz;
240
+ $this->view->prerequisiteQuizList = $prerequisiteMapper->fetchQuizIds($id);
241
+ $this->view->quizList = $m->fetchAllAsArray(array('id', 'name'), array($id));
242
+ $this->view->captchaIsInstalled = class_exists('ReallySimpleCaptcha');
243
  $this->view->show();
244
  }
245
 
252
  $this->view = new WpProQuiz_View_QuizEdit();
253
  $this->view->header = __('Create quiz', 'wp-pro-quiz');
254
 
255
+ $m = new WpProQuiz_Model_QuizMapper();
256
+
257
  if(isset($this->_post['submit'])) {
258
 
259
  if(isset($this->_post['resultGradeEnabled'])) {
260
  $this->_post['result_text'] = $this->filterResultTextGrade($this->_post);
261
  }
262
 
263
+ $quiz = new WpProQuiz_Model_Quiz($this->_post);
264
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
265
 
266
  if($this->checkValidit($this->_post)) {
267
  WpProQuiz_View_View::admin_notices(__('Create quiz', 'wp-pro-quiz'), 'info');
268
+ $quizMapper->save($quiz);
269
+
270
+ $id = $quizMapper->getInsertId();
271
+ $prerequisiteMapper = new WpProQuiz_Model_PrerequisiteMapper();
272
+
273
+ if($quiz->isPrerequisite() && !empty($this->_post['prerequisiteList'])) {
274
+ $prerequisiteMapper->save($id, $this->_post['prerequisiteList']);
275
+ $quizMapper->activateStatitic($this->_post['prerequisiteList'], 1440);
276
+ }
277
+
278
  $this->showAction();
279
  return;
280
  } else {
 
281
  WpProQuiz_View_View::admin_notices(__('Quiz title or quiz description are not filled', 'wp-pro-quiz'));
282
  }
283
  } else {
284
+ $quiz = new WpProQuiz_Model_Quiz();
285
  }
286
 
287
+ $this->view->quiz = $quiz;
288
+ $this->view->prerequisiteQuizList = array();
289
+ $this->view->quizList = $m->fetchAllAsArray(array('id', 'name'));
290
+ $this->view->captchaIsInstalled = class_exists('ReallySimpleCaptcha');
291
  $this->view->show();
292
  }
293
 
301
  $qm = new WpProQuiz_Model_QuestionMapper();
302
  $lm = new WpProQuiz_Model_LockMapper();
303
  $sm = new WpProQuiz_Model_StatisticMapper();
304
+ $pm = new WpProQuiz_Model_PrerequisiteMapper();
305
+ $tm = new WpProQuiz_Model_ToplistMapper();
306
 
307
  $m->delete($id);
308
  $qm->deleteByQuizId($id);
309
  $lm->deleteByQuizId($id);
310
  $sm->deleteByQuiz($id);
311
+ $pm->delete($id);
312
+ $tm->delete($id);
313
 
314
  WpProQuiz_View_View::admin_notices(__('Quiz deleted', 'wp-pro-quiz'), 'info');
315
 
328
  $result['text'][] = $post['resultTextGrade']['text'][$k];
329
  $result['prozent'][] = (float)str_replace(',', '.', $post['resultTextGrade']['prozent'][$k]);
330
  }
331
+
332
  return $result;
333
  }
334
 
335
+ private function setResultCookie(WpProQuiz_Model_Quiz $quiz) {
336
+ $prerequisite = new WpProQuiz_Model_PrerequisiteMapper();
337
+
338
+ if(get_current_user_id() == 0 && $prerequisite->isQuizId($quiz->getId())) {
339
+ $cookieData = array();
340
+
341
+ if(isset($this->_cookie['wpProQuiz_result'])) {
342
+ $d = json_decode($this->_cookie['wpProQuiz_result'], true);
343
+
344
+ if($d !== null && is_array($d)) {
345
+ $cookieData = $d;
346
+ }
347
+ }
348
+
349
+ $cookieData[$quiz->getId()] = 1;
350
+
351
+ $url = parse_url(get_bloginfo( 'url' ));
352
+
353
+ setcookie('wpProQuiz_result', json_encode($cookieData), time() + 60*60*24*300, empty($url['path']) ? '/' : $url['path']);
354
+ }
355
+ }
356
+
357
  public function completedQuiz() {
358
 
359
  $lockMapper = new WpProQuiz_Model_LockMapper();
360
  $quizMapper = new WpProQuiz_Model_QuizMapper();
361
+ $userId = get_current_user_id();
362
 
363
  $quiz = $quizMapper->fetch($this->_post['quizId']);
364
 
366
  exit;
367
  }
368
 
369
+ $this->setResultCookie($quiz);
370
+
371
  if(!$this->isPreLockQuiz($quiz)) {
372
  $statistics = new WpProQuiz_Controller_Statistics();
373
  $statistics->save();
387
  if(isset($this->_cookie['wpProQuiz_lock']) && get_current_user_id() == 0 && $quiz->isQuizRunOnceCookie()) {
388
  $cookieJson = json_decode($this->_cookie['wpProQuiz_lock'], true);
389
 
390
+ if($cookieJson !== false) {
391
  if(isset($cookieJson[$this->_post['quizId']]) && $cookieJson[$this->_post['quizId']] == $cookieTime) {
392
  $lockCookie = true;
393
  }
444
  return false;
445
  }
446
 
447
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
 
449
  private function getIp() {
450
  if(get_current_user_id() > 0)
lib/controller/WpProQuiz_Controller_Statistics.php CHANGED
@@ -17,6 +17,21 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
17
  }
18
  }
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  private function loadStatistics($quizId) {
21
 
22
  if(!current_user_can('wpProQuiz_show_statistics')) {
@@ -30,30 +45,34 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
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'];
 
 
 
40
 
41
- foreach($questions as $question) {
42
- $sum = $question->getCorrectCount() + $question->getIncorrectCount();
43
 
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(),
51
- 'cCorrect' => $question->getCorrectCount(),
52
- 'cIncorrect' => $question->getIncorrectCount(),
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
 
@@ -62,6 +81,7 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
62
  if($sum > 0) {
63
  $data['global']['pCorrect'] = round((100 * $data['global']['cCorrect'] / $sum), 2);
64
  $data['global']['pIncorrect'] = round((100 * $data['global']['cIncorrect'] / $sum), 2);
 
65
  }
66
 
67
  echo json_encode($data);
@@ -71,6 +91,7 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
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'];
@@ -79,6 +100,9 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
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();
@@ -103,6 +127,7 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
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
  }
@@ -164,6 +189,7 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
164
  $quizId = $this->_post['quizId'];
165
  $array = $this->_post['results'];
166
  $lockIp = $this->getIp();
 
167
 
168
  if($lockIp === false)
169
  return false;
@@ -174,20 +200,24 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
174
  if(!$quiz->isStatisticsOn() || $quiz->isShowMaxQuestion())
175
  return false;
176
 
177
- if($quiz->getStatisticsIpLock() > 0) {
 
 
 
 
 
178
  $lockMapper = new WpProQuiz_Model_LockMapper();
179
  $lockTime = $quiz->getStatisticsIpLock() * 60;
180
 
181
-
182
  $lockMapper->deleteOldLock($lockTime, $quiz->getId(), time(), WpProQuiz_Model_Lock::TYPE_STATISTIC);
183
 
184
- if($lockMapper->isLock($quizId, $lockIp, get_current_user_id(), WpProQuiz_Model_Lock::TYPE_STATISTIC))
185
  return false;
186
 
187
  $lock = new WpProQuiz_Model_Lock();
188
  $lock ->setQuizId($quizId)
189
  ->setLockIp($lockIp)
190
- ->setUserId(get_current_user_id())
191
  ->setLockType(WpProQuiz_Model_Lock::TYPE_STATISTIC)
192
  ->setLockDate(time());
193
 
@@ -195,11 +225,53 @@ class WpProQuiz_Controller_Statistics extends WpProQuiz_Controller_Controller {
195
  }
196
 
197
  $questionMapper = new WpProQuiz_Model_StatisticMapper();
198
- $questionMapper->save($quizId, get_current_user_id(), $array);
199
 
200
  return true;
201
  }
202
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  private function getIp() {
204
  if(get_current_user_id() > 0)
205
  return '0';
17
  }
18
  }
19
 
20
+ public function getAverageResult($quizId) {
21
+ $statisticMapper = new WpProQuiz_Model_StatisticMapper();
22
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
23
+
24
+ $r = $statisticMapper->fetchByQuiz($quizId);
25
+ $maxPoints = $quizMapper->sumQuestionPoints($quizId);
26
+ $sumQuestion = $quizMapper->countQuestion($quizId);
27
+
28
+ if($r['count'] > 0) {
29
+ return round((100 * $r['points'] / ($r['count'] * $maxPoints / $sumQuestion)), 2);
30
+ }
31
+
32
+ return 0;
33
+ }
34
+
35
  private function loadStatistics($quizId) {
36
 
37
  if(!current_user_can('wpProQuiz_show_statistics')) {
45
  exit;
46
  }
47
 
48
+ $statisticMapper = new WpProQuiz_Model_StatisticMapper();
49
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
50
+ $statistics = $statisticMapper->fetchAll($quizId, $this->_post['userId']);
51
 
52
+ $data = array( 'global' => array('cCorrect' => 0, 'cIncorrect' => 0, 'pCorrect' => 0, 'pIncorrect' => 0, 'cTip' => 0, 'cPoints' => 0, 'result' => 0),
53
  'items' => array());
54
 
55
  $data['clear'] = $data['global'];
56
+
57
+ $maxPoints = $quizMapper->sumQuestionPoints($quizId);
58
+ $sumQuestion = $quizMapper->countQuestion($quizId);
59
 
60
+ foreach($statistics as $statistic) {
61
+ $sum = $statistic->getCorrectCount() + $statistic->getIncorrectCount();
62
 
63
+ $data['global']['cCorrect'] += $statistic->getCorrectCount();
64
+ $data['global']['cIncorrect'] += $statistic->getIncorrectCount();
65
+ $data['global']['cTip'] += $statistic->getHintCount();
66
+ $data['global']['cPoints'] += $statistic->getPoints();
67
 
68
  $data['items'][] = array(
69
+ 'id' => $statistic->getQuestionId(),
70
+ 'cCorrect' => $statistic->getCorrectCount(),
71
+ 'cIncorrect' => $statistic->getIncorrectCount(),
72
+ 'cTip' => $statistic->getHintCount(),
73
+ 'pCorrect' => round((100 * $statistic->getCorrectCount() / $sum), 2),
74
+ 'pIncorrect' => round((100 * $statistic->getIncorrectCount() / $sum), 2),
75
+ 'cPoints' => $statistic->getPoints()
76
  );
77
  }
78
 
81
  if($sum > 0) {
82
  $data['global']['pCorrect'] = round((100 * $data['global']['cCorrect'] / $sum), 2);
83
  $data['global']['pIncorrect'] = round((100 * $data['global']['cIncorrect'] / $sum), 2);
84
+ $data['global']['result'] = round((100 * $data['global']['cPoints'] / ($sum * $maxPoints / $sumQuestion)), 2);
85
  }
86
 
87
  echo json_encode($data);
91
 
92
  private function loadStatisticsOverview($quizId) {
93
  $m = new WpProQuiz_Model_StatisticMapper();
94
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
95
 
96
  $page = (isset($this->_post['page']) && $this->_post['page'] > 0) ? $this->_post['page'] : 1;
97
  $limit = $this->_post['pageLimit'];
100
  $s = $m->fetchOverview($quizId, (bool)$this->_post['onlyCompleted'], $start, $limit);
101
  $data = array('items' => array());
102
 
103
+ $maxPoints = $quizMapper->sumQuestionPoints($quizId);
104
+ $sumQuestion = $quizMapper->countQuestion($quizId);
105
+
106
  foreach($s as $r) {
107
 
108
  $sum = $r->getCorrectCount() + $r->getIncorrectCount();
127
  'cTip' => $r->getHintCount(),
128
  'pCorrect' => round((100 * $r->getCorrectCount() / $sum), 2),
129
  'pIncorrect' => round((100 * $r->getIncorrectCount() / $sum), 2),
130
+ 'result' => round((100 * $r->getPoints() / ($sum * $maxPoints / $sumQuestion)), 2),
131
  'completed' => true
132
  );
133
  }
189
  $quizId = $this->_post['quizId'];
190
  $array = $this->_post['results'];
191
  $lockIp = $this->getIp();
192
+ $userId = get_current_user_id();
193
 
194
  if($lockIp === false)
195
  return false;
200
  if(!$quiz->isStatisticsOn() || $quiz->isShowMaxQuestion())
201
  return false;
202
 
203
+ $values = $this->makeDataList($quizId, $array, $userId);
204
+
205
+ if($values === false)
206
+ return;
207
+
208
+ if($quiz->getStatisticsIpLock() > 0) {
209
  $lockMapper = new WpProQuiz_Model_LockMapper();
210
  $lockTime = $quiz->getStatisticsIpLock() * 60;
211
 
 
212
  $lockMapper->deleteOldLock($lockTime, $quiz->getId(), time(), WpProQuiz_Model_Lock::TYPE_STATISTIC);
213
 
214
+ if($lockMapper->isLock($quizId, $lockIp, $userId, WpProQuiz_Model_Lock::TYPE_STATISTIC))
215
  return false;
216
 
217
  $lock = new WpProQuiz_Model_Lock();
218
  $lock ->setQuizId($quizId)
219
  ->setLockIp($lockIp)
220
+ ->setUserId($userId)
221
  ->setLockType(WpProQuiz_Model_Lock::TYPE_STATISTIC)
222
  ->setLockDate(time());
223
 
225
  }
226
 
227
  $questionMapper = new WpProQuiz_Model_StatisticMapper();
228
+ $questionMapper->save($values);
229
 
230
  return true;
231
  }
232
 
233
+ private function makeDataList($quizId, $array, $userId) {
234
+
235
+ $questionMapper = new WpProQuiz_Model_QuestionMapper();
236
+
237
+ $question = $questionMapper->fetchAllList($quizId, array('id', 'points'));
238
+
239
+ $ids = array();
240
+
241
+ foreach($question as $q) {
242
+ $ids[] = $q['id'];
243
+ $v = $array[$q['id']];
244
+
245
+ if(!isset($v) || $v['points'] > $q['points'] || $v['points'] < 0) {
246
+ return false;
247
+ }
248
+ }
249
+
250
+ unset($array['comp']);
251
+
252
+ $ak = array_keys($array);
253
+
254
+ if(array_diff($ids, $ak) !== array_diff($ak, $ids))
255
+ return false;
256
+
257
+ $values = array();
258
+
259
+ foreach($array as $k => $v) {
260
+ $s = new WpProQuiz_Model_Statistic();
261
+ $s->setQuizId($quizId);
262
+ $s->setQuestionId($k);
263
+ $s->setUserId($userId);
264
+ $s->setHintCount(isset($v['tip']) ? 1 : 0);
265
+ $s->setCorrectCount($v['correct'] ? 1 : 0);
266
+ $s->setIncorrectCount($v['correct'] ? 0 : 1);
267
+ $s->setPoints($v['points']);
268
+
269
+ $values[] = $s;
270
+ }
271
+
272
+ return $values;
273
+ }
274
+
275
  private function getIp() {
276
  if(get_current_user_id() > 0)
277
  return '0';
lib/controller/WpProQuiz_Controller_Toplist.php ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_Controller_Toplist extends WpProQuiz_Controller_Controller {
3
+
4
+ public function route() {
5
+
6
+ $quizId = $_GET['id'];
7
+ $action = isset($_GET['action']) ? $_GET['action'] : 'show';
8
+
9
+ switch($action) {
10
+ case 'load_toplist':
11
+ $this->loadToplist($quizId);
12
+ break;
13
+ case 'show':
14
+ default:
15
+ $this->showAdminToplist($quizId);
16
+ break;
17
+ }
18
+ }
19
+
20
+ private function loadToplist($quizId) {
21
+ if(!current_user_can('wpProQuiz_toplist_edit')) {
22
+ echo json_encode(array());
23
+ return;
24
+ }
25
+
26
+ $toplistMapper = new WpProQuiz_Model_ToplistMapper();
27
+ $j = array('data' => array());
28
+ $limit = (int)$this->_post['limit'];
29
+ $start = $limit * ($this->_post['page'] - 1);
30
+ $isNav = isset($this->_post['nav']);
31
+
32
+ if(isset($this->_post['a'])) {
33
+ switch ($this->_post['a']) {
34
+ case 'deleteAll':
35
+ $toplistMapper->delete($quizId);
36
+ break;
37
+ case 'delete':
38
+ if(!empty($this->_post['toplistIds']))
39
+ $toplistMapper->delete($quizId, $this->_post['toplistIds']);
40
+ break;
41
+ }
42
+
43
+ $start = 0;
44
+ $isNav = true;
45
+ }
46
+
47
+ $toplist = $toplistMapper->fetch($quizId, $limit, $this->_post['sort'], $start);
48
+
49
+ foreach($toplist as $tp) {
50
+ $j['data'][] = array(
51
+ 'id' => $tp->getToplistId(),
52
+ 'name' => $tp->getName(),
53
+ 'email' => $tp->getEmail(),
54
+ 'type' => $tp->getUserId() ? 'R' : 'UR',
55
+ 'date' => date_i18n(get_option('wpProQuiz_toplistDataFormat', 'Y/m/d g:i A'), $tp->getDate()),
56
+ 'points' => $tp->getPoints(),
57
+ 'result' => $tp->getResult()
58
+ );
59
+ }
60
+
61
+ if($isNav) {
62
+
63
+ $count = $toplistMapper->count($quizId);
64
+ $pages = ceil($count / $limit);
65
+ $j['nav'] = array(
66
+ 'count' => $count,
67
+ 'pages' => $pages ? $pages : 1
68
+ );
69
+ }
70
+
71
+ echo json_encode($j);
72
+ }
73
+
74
+ private function showAdminToplist($quizId) {
75
+ if(!current_user_can('wpProQuiz_toplist_edit')) {
76
+ wp_die(__('You do not have sufficient permissions to access this page.'));
77
+ }
78
+
79
+ $view = new WpProQuiz_View_AdminToplist();
80
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
81
+
82
+ $quiz = $quizMapper->fetch($quizId);
83
+
84
+ $view->quiz = $quiz;
85
+ $view->show();
86
+ }
87
+
88
+ public function getAddToplist(WpProQuiz_Model_Quiz $quiz) {
89
+ $userId = get_current_user_id();
90
+
91
+ if(!$quiz->isToplistActivated())
92
+ return null;
93
+
94
+ $data = array(
95
+ 'userId' => $userId,
96
+ 'token' => wp_create_nonce('wpProQuiz_toplist'),
97
+ 'canAdd' => $this->preCheck($quiz->getToplistDataAddPermissions(), $userId),
98
+ );
99
+
100
+ if($quiz->isToplistDataCaptcha() && $userId == 0) {
101
+ $captcha = WpProQuiz_Helper_Captcha::getInstance();
102
+
103
+ if($captcha->isSupported()) {
104
+ $data['captcha']['img'] = WPPROQUIZ_CAPTCHA_URL.'/'.$captcha->createImage();
105
+ $data['captcha']['code'] = $captcha->getPrefix();
106
+ }
107
+ }
108
+
109
+ return $data;
110
+ }
111
+
112
+ public function addInToplist() {
113
+ $quizId = isset($this->_post['quizId']) ? $this->_post['quizId'] : 0;
114
+ $prefix = !empty($this->_post['prefix']) ? trim($this->_post['prefix']) : '';
115
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
116
+
117
+ $quiz = $quizMapper->fetch($quizId);
118
+
119
+ $r = $this->handleAddInToplist($quiz);
120
+
121
+ if($quiz->isToplistActivated() && $quiz->isToplistDataCaptcha() && get_current_user_id() == 0) {
122
+ $captcha = WpProQuiz_Helper_Captcha::getInstance();
123
+
124
+ if($captcha->isSupported()) {
125
+ $captcha->remove($prefix);
126
+ $captcha->cleanup();
127
+
128
+ if($r !== true) {
129
+ $r['captcha']['img'] = WPPROQUIZ_CAPTCHA_URL.'/'.$captcha->createImage();
130
+ $r['captcha']['code'] = $captcha->getPrefix();
131
+ }
132
+ }
133
+ }
134
+
135
+ if($r === true)
136
+ $r = array('text' => __('You signing up successfully.', 'wp-pro-quiz'), 'clear' => true);
137
+
138
+
139
+ echo json_encode($r);
140
+ }
141
+
142
+ private function handleAddInToplist(WpProQuiz_Model_Quiz $quiz) {
143
+ if(!wp_verify_nonce($this->_post['token'], 'wpProQuiz_toplist')) {
144
+ return array('text' => __('An error has occurred.', 'wp-pro-quiz'), 'clear' => true);
145
+ }
146
+
147
+ if(!isset($this->_post['points']) || !isset($this->_post['totalPoints'])) {
148
+ return array('text' => __('An error has occurred.', 'wp-pro-quiz'), 'clear' => true);
149
+ }
150
+
151
+ $quizId = $quiz->getId();
152
+ $userId = get_current_user_id();
153
+ $points = (int)$this->_post['points'];
154
+ $totalPoints = (int)$this->_post['totalPoints'];
155
+ $name = !empty($this->_post['name']) ? trim($this->_post['name']) : '';
156
+ $email = !empty($this->_post['email']) ? trim($this->_post['email']) : '';
157
+ $ip = filter_var($_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP);
158
+ $captchaAnswer = !empty($this->_post['captcha']) ? trim($this->_post['captcha']) : '';
159
+ $prefix = !empty($this->_post['prefix']) ? trim($this->_post['prefix']) : '';
160
+
161
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
162
+ $toplistMapper = new WpProQuiz_Model_ToplistMapper();
163
+
164
+ if($quiz == null || $quiz->getId() == 0 || !$quiz->isToplistActivated()) {
165
+ return array('text' => __('An error has occurred.', 'wp-pro-quiz'), 'clear' => true);
166
+ }
167
+
168
+ if(!$this->preCheck($quiz->getToplistDataAddPermissions(), $userId)) {
169
+ return array('text' => __('An error has occurred.', 'wp-pro-quiz'), 'clear' => true);
170
+ }
171
+
172
+ $numPoints = $quizMapper->sumQuestionPoints($quizId);
173
+
174
+ if($totalPoints > $numPoints || $points > $numPoints) {
175
+ return array('text' => __('An error has occurred.', 'wp-pro-quiz'), 'clear' => true);
176
+ }
177
+
178
+ $clearTime = null;
179
+
180
+ if($quiz->isToplistDataAddMultiple()) {
181
+ $clearTime = $quiz->getToplistDataAddBlock() * 60;
182
+ }
183
+
184
+ if($userId > 0) {
185
+ if($toplistMapper->countUser($quizId, $userId, $clearTime)) {
186
+ return array('text' => __('You can not enter again.', 'wp-pro-quiz'), 'clear' => true);
187
+ }
188
+
189
+ $user = wp_get_current_user();
190
+ $email = $user->user_email;
191
+ $name = $user->display_name;
192
+
193
+ } else {
194
+ if($toplistMapper->countFree($quizId, $name, $email, $ip, $clearTime)) {
195
+ return array('text' => __('You can not enter again.', 'wp-pro-quiz'), 'clear' => true);
196
+ }
197
+
198
+ if(empty($name) || empty($email) || filter_var($email, FILTER_VALIDATE_EMAIL) === false) {
199
+ return array('text' => __('No name or e-mail entered.', 'wp-pro-quiz'), 'clear' => false);
200
+ }
201
+
202
+ if(strlen($name) > 15) {
203
+ return array('text' => __('Your name can not exceed 15 characters.', 'wp-pro-quiz'), 'clear' => false);
204
+ }
205
+
206
+ if($quiz->isToplistDataCaptcha()) {
207
+ $captcha = WpProQuiz_Helper_Captcha::getInstance();
208
+
209
+ if($captcha->isSupported()) {
210
+ if(!$captcha->check($prefix, $captchaAnswer)) {
211
+ return array('text' => __('You entered wrong captcha code.', 'wp-pro-quiz'), 'clear' => false);
212
+ }
213
+ }
214
+ }
215
+ }
216
+
217
+ $toplist = new WpProQuiz_Model_Toplist();
218
+ $toplist->setQuizId($quizId)
219
+ ->setUserId($userId)
220
+ ->setDate(time())
221
+ ->setName($name)
222
+ ->setEmail($email)
223
+ ->setPoints($points)
224
+ ->setResult(round($points / $totalPoints * 100, 2))
225
+ ->setIp($ip);
226
+
227
+ $toplistMapper->save($toplist);
228
+
229
+ return true;
230
+ }
231
+
232
+ private function preCheck($type, $userId) {
233
+ switch($type) {
234
+ case WpProQuiz_Model_Quiz::QUIZ_TOPLIST_TYPE_ALL:
235
+ return true;
236
+ case WpProQuiz_Model_Quiz::QUIZ_TOPLIST_TYPE_ONLY_ANONYM:
237
+ return $userId == 0;
238
+ case WpProQuiz_Model_Quiz::QUIZ_TOPLIST_TYPE_ONLY_USER:
239
+ return $userId > 0;
240
+ }
241
+
242
+ return false;
243
+ }
244
+
245
+ public function showFrontToplist() {
246
+ $quizIds = empty($this->_post['quizIds']) ? array() : array_unique((array)$this->_post['quizIds']);
247
+ $toplistMapper = new WpProQuiz_Model_ToplistMapper();
248
+ $quizMapper = new WpProQuiz_Model_QuizMapper();
249
+ $r = array();
250
+ $j = array();
251
+
252
+ foreach($quizIds as $quizId) {
253
+ $quiz = $quizMapper->fetch($quizId);
254
+ if($quiz == null || $quiz->getId() == 0)
255
+ continue;
256
+
257
+ $toplist = $toplistMapper->fetch($quizId, $quiz->getToplistDataShowLimit(), $quiz->getToplistDataSort());
258
+
259
+ foreach($toplist as $tp) {
260
+ $j[$quizId][] = array(
261
+ 'name' => $tp->getName(),
262
+ 'date' => date_i18n(get_option('wpProQuiz_toplistDataFormat', 'Y/m/d g:i A'), $tp->getDate()),
263
+ 'points' => $tp->getPoints(),
264
+ 'result' => $tp->getResult()
265
+ );
266
+ }
267
+ }
268
+
269
+ echo json_encode($j);
270
+ }
271
+ }
lib/controller/WpProQuiz_Controller_WpqSupport.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_Controller_WpqSupport extends WpProQuiz_Controller_Controller {
3
+
4
+ public function route() {
5
+ $this->showView();
6
+ }
7
+
8
+ private function showView() {
9
+ $view = new WpProQuiz_View_WpqSupport();
10
+
11
+ $view->show();
12
+ }
13
+ }
lib/helper/WpProQuiz_Helper_Captcha.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_Helper_Captcha {
3
+
4
+ private static $INSTANCE = null;
5
+
6
+ private $_captcha = null;
7
+ private $_supp = false;
8
+ private $_prefix = '';
9
+
10
+ public function __construct() {
11
+ if(!class_exists('ReallySimpleCaptcha'))
12
+ return;
13
+
14
+ $this->_captcha = new ReallySimpleCaptcha();
15
+
16
+ $this->_captcha->tmp_dir = WPPROQUIZ_CAPTCHA_DIR.'/';
17
+ $this->_captcha->file_mode = 0666;
18
+ $this->_captcha->answer_file_mode = 0666;
19
+
20
+ if(!$this->_captcha->make_tmp_dir()) {
21
+ $this->_supp = false;
22
+ return;
23
+ }
24
+
25
+ $this->_supp = true;
26
+ }
27
+
28
+ public function getPrefix() {
29
+ return $this->_prefix;
30
+ }
31
+
32
+ public function isSupported() {
33
+ return $this->_supp;
34
+ }
35
+
36
+ public function createImage() {
37
+ if(!$this->isSupported())
38
+ return false;
39
+
40
+ $w = $this->_captcha->generate_random_word();
41
+ $this->_prefix = mt_rand();
42
+ return $this->_captcha->generate_image($this->_prefix, $w);
43
+ }
44
+
45
+ public function remove($prefix) {
46
+ if(!$this->isSupported())
47
+ return;
48
+
49
+ $this->_captcha->remove($prefix);
50
+ }
51
+
52
+ public function check($prefix, $answer) {
53
+ if(!$this->isSupported())
54
+ return;
55
+
56
+ return $this->_captcha->check($prefix, $answer);
57
+ }
58
+
59
+ public function cleanup() {
60
+ if(!$this->isSupported())
61
+ return;
62
+
63
+ $this->_captcha->cleanup();
64
+ }
65
+
66
+ /**
67
+ * @return WpProQuiz_Helper_Captcha
68
+ */
69
+ public static function getInstance() {
70
+ if(WpProQuiz_Helper_Captcha::$INSTANCE == null) {
71
+ WpProQuiz_Helper_Captcha::$INSTANCE = new WpProQuiz_Helper_Captcha();
72
+ }
73
+
74
+ return WpProQuiz_Helper_Captcha::$INSTANCE;
75
+ }
76
+ }
lib/helper/WpProQuiz_Helper_DbUpgrade.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  class WpProQuiz_Helper_DbUpgrade {
3
 
4
- const WPPROQUIZ_DB_VERSION = 15;
5
 
6
  private $_wpdb;
7
  private $_prefix;
@@ -42,6 +42,8 @@ class WpProQuiz_Helper_DbUpgrade {
42
  $this->_wpdb->query('DROP TABLE IF EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_question`');
43
  $this->_wpdb->query('DROP TABLE IF EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_lock`');
44
  $this->_wpdb->query('DROP TABLE IF EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_statistic`');
 
 
45
  }
46
 
47
  private function install() {
@@ -130,6 +132,29 @@ class WpProQuiz_Helper_DbUpgrade {
130
  PRIMARY KEY (`quiz_id`,`question_id`,`user_id`)
131
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
132
  ');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  }
134
 
135
  private function upgradeDbV1() {
@@ -454,4 +479,184 @@ class WpProQuiz_Helper_DbUpgrade {
454
 
455
  return 15;
456
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457
  }
1
  <?php
2
  class WpProQuiz_Helper_DbUpgrade {
3
 
4
+ const WPPROQUIZ_DB_VERSION = 16;
5
 
6
  private $_wpdb;
7
  private $_prefix;
42
  $this->_wpdb->query('DROP TABLE IF EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_question`');
43
  $this->_wpdb->query('DROP TABLE IF EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_lock`');
44
  $this->_wpdb->query('DROP TABLE IF EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_statistic`');
45
+ $this->_wpdb->query('DROP TABLE IF EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_toplist`');
46
+ $this->_wpdb->query('DROP TABLE IF EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_prerequisite`');
47
  }
48
 
49
  private function install() {
132
  PRIMARY KEY (`quiz_id`,`question_id`,`user_id`)
133
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
134
  ');
135
+
136
+ $this->_wpdb->query('
137
+ CREATE TABLE IF NOT EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_prerequisite` (
138
+ `prerequisite_quiz_id` int(11) NOT NULL,
139
+ `quiz_id` int(11) NOT NULL,
140
+ PRIMARY KEY (`prerequisite_quiz_id`,`quiz_id`)
141
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
142
+ ');
143
+
144
+ $this->_wpdb->query('
145
+ CREATE TABLE IF NOT EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_toplist` (
146
+ `toplist_id` int(11) NOT NULL AUTO_INCREMENT,
147
+ `quiz_id` int(11) NOT NULL,
148
+ `date` int(10) unsigned NOT NULL,
149
+ `user_id` bigint(20) unsigned NOT NULL,
150
+ `name` varchar(30) NOT NULL,
151
+ `email` varchar(200) NOT NULL,
152
+ `points` int(10) unsigned NOT NULL,
153
+ `result` float unsigned NOT NULL,
154
+ `ip` varchar(100) NOT NULL,
155
+ PRIMARY KEY (`toplist_id`,`quiz_id`)
156
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
157
+ ');
158
  }
159
 
160
  private function upgradeDbV1() {
479
 
480
  return 15;
481
  }
482
+
483
+ private function upgradeDbV15() {
484
+
485
+ $this->_wpdb->query('
486
+ ALTER TABLE `'.$this->_wpdb->prefix.'wp_pro_quiz_question`
487
+ ADD `answer_points_activated` tinyint(1) NOT NULL,
488
+ ADD `answer_data` longtext NOT NULL
489
+ ');
490
+
491
+ $this->_wpdb->query('
492
+ ALTER TABLE `'.$this->_wpdb->prefix.'wp_pro_quiz_statistic`
493
+ ADD `points` int(10) unsigned NOT NULL
494
+ ');
495
+
496
+ $this->_wpdb->query('
497
+ ALTER TABLE `'.$this->_wpdb->prefix.'wp_pro_quiz_master`
498
+ ADD `toplist_activated` tinyint(1) NOT NULL,
499
+ ADD `toplist_data` text NOT NULL,
500
+ ADD `show_average_result` tinyint(1) NOT NULL,
501
+ ADD `prerequisite` tinyint(1) NOT NULL
502
+ ');
503
+
504
+ $this->_wpdb->query('
505
+ CREATE TABLE IF NOT EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_prerequisite` (
506
+ `prerequisite_quiz_id` int(11) NOT NULL,
507
+ `quiz_id` int(11) NOT NULL,
508
+ PRIMARY KEY (`prerequisite_quiz_id`,`quiz_id`)
509
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
510
+ ');
511
+
512
+ $this->_wpdb->query('
513
+ CREATE TABLE IF NOT EXISTS `'.$this->_wpdb->prefix.'wp_pro_quiz_toplist` (
514
+ `toplist_id` int(11) NOT NULL AUTO_INCREMENT,
515
+ `quiz_id` int(11) NOT NULL,
516
+ `date` int(10) unsigned NOT NULL,
517
+ `user_id` bigint(20) unsigned NOT NULL,
518
+ `name` varchar(30) NOT NULL,
519
+ `email` varchar(200) NOT NULL,
520
+ `points` int(10) unsigned NOT NULL,
521
+ `result` float unsigned NOT NULL,
522
+ `ip` varchar(100) NOT NULL,
523
+ PRIMARY KEY (`toplist_id`,`quiz_id`)
524
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
525
+ ');
526
+
527
+
528
+ $results = $this->_wpdb->get_results('SELECT id, answer_type, answer_json, points_per_answer, points_answer FROM `'.$this->_wpdb->prefix.'wp_pro_quiz_question`', ARRAY_A);
529
+
530
+ foreach($results as $row) {
531
+
532
+ $data = json_decode($row['answer_json'], true);
533
+ $newData = array();
534
+
535
+ if($data === null) {
536
+ continue;
537
+ }
538
+
539
+ if($row['answer_type'] == 'single' || $row['answer_type'] == 'multiple') {
540
+ foreach($data['classic_answer']['answer'] as $k => $v) {
541
+ $x = new WpProQuiz_Model_AnswerTypes();
542
+
543
+ $x->setAnswer($v);
544
+
545
+ if(isset($data['classic_answer']['correct']) && in_array($k, $data['classic_answer']['correct'])) {
546
+ $x->setCorrect(true);
547
+
548
+ if($row['points_per_answer']) {
549
+ $x->setPoints($row['points_answer']);
550
+ }
551
+
552
+ } else {
553
+ $x->setCorrect(false);
554
+
555
+ if($row['points_per_answer']) {
556
+ $x->setPoints(0);
557
+ }
558
+ }
559
+
560
+ if(isset($data['classic_answer']['html']) && in_array($k, $data['classic_answer']['html'])) {
561
+ $x->setHtml(true);
562
+ } else {
563
+ $x->setHtml(false);
564
+ }
565
+
566
+ $newData[] = $x;
567
+
568
+ }
569
+ } elseif($row['answer_type'] == 'cloze_answer') {
570
+ $x = new WpProQuiz_Model_AnswerTypes();
571
+
572
+ $x->setAnswer($data['answer_cloze']['text']);
573
+
574
+ $newData[] = $x;
575
+ } elseif($row['answer_type'] == 'matrix_sort_answer') {
576
+ foreach($data['answer_matrix_sort']['answer'] as $k => $v) {
577
+ $x = new WpProQuiz_Model_AnswerTypes();
578
+
579
+ $x->setAnswer($v);
580
+ $x->setSortString($data['answer_matrix_sort']['sort_string'][$k]);
581
+
582
+ if($row['points_per_answer']) {
583
+ $x->setPoints($row['points_answer']);
584
+ }
585
+
586
+ if(isset($data['answer_matrix_sort']['answer_html']) && in_array($k, $data['answer_matrix_sort']['answer_html'])) {
587
+ $x->setHtml(true);
588
+ } else {
589
+ $x->setHtml(false);
590
+ }
591
+
592
+ if(isset($data['answer_matrix_sort']['sort_string_html']) && in_array($k, $data['answer_matrix_sort']['sort_string_html'])) {
593
+ $x->setSortStringHtml(true);
594
+ } else {
595
+ $x->setSortStringHtml(false);
596
+ }
597
+
598
+ $newData[] = $x;
599
+
600
+ }
601
+ } elseif($row['answer_type'] == 'free_answer') {
602
+ $x = new WpProQuiz_Model_AnswerTypes();
603
+
604
+ $x->setAnswer($data['free_answer']['correct']);
605
+
606
+ $newData[] = $x;
607
+ } elseif($row['answer_type'] == 'sort_answer') {
608
+ foreach($data['answer_sort']['answer'] as $k => $v) {
609
+ $x = new WpProQuiz_Model_AnswerTypes();
610
+
611
+ $x->setAnswer($v);
612
+
613
+ if($row['points_per_answer']) {
614
+ $x->setPoints($row['points_answer']);
615
+ }
616
+
617
+ if(isset($data['answer_sort']['html']) && in_array($k, $data['answer_sort']['html'])) {
618
+ $x->setHtml(true);
619
+ } else {
620
+ $x->setHtml(false);
621
+ }
622
+
623
+ $newData[] = $x;
624
+ }
625
+ }
626
+
627
+
628
+ $this->_wpdb->update(
629
+ $this->_wpdb->prefix.'wp_pro_quiz_question',
630
+ array(
631
+ 'answer_data' => serialize($newData)
632
+ ),
633
+ array(
634
+ 'id' => $row['id']
635
+ )
636
+ );
637
+
638
+ }
639
+
640
+ $this->_wpdb->query(
641
+ 'UPDATE '.$this->_wpdb->prefix.'wp_pro_quiz_question
642
+ SET
643
+ answer_points_activated = points_per_answer
644
+ WHERE
645
+ answer_type <> \'free_answer\''
646
+ );
647
+
648
+
649
+ //Statistics
650
+ $this->_wpdb->query(
651
+ 'UPDATE
652
+ '.$this->_wpdb->prefix.'wp_pro_quiz_statistic AS s
653
+ SET
654
+ s.points = ( SELECT q.points_answer FROM '.$this->_wpdb->prefix.'wp_pro_quiz_question AS q WHERE q.id = s.question_id ) * s.correct_answer_count
655
+ WHERE
656
+ s.correct_answer_count > 0'
657
+ );
658
+
659
+
660
+ return 16;
661
+ }
662
  }
lib/helper/WpProQuiz_Helper_Export.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  class WpProQuiz_Helper_Export {
3
 
4
- const WPPROQUIZ_EXPORT_VERSION = 2;
5
 
6
  public function export($ids) {
7
  $export = array();
1
  <?php
2
  class WpProQuiz_Helper_Export {
3
 
4
+ const WPPROQUIZ_EXPORT_VERSION = 3;
5
 
6
  public function export($ids) {
7
  $export = array();
lib/helper/WpProQuiz_Helper_Import.php CHANGED
@@ -40,6 +40,11 @@ class WpProQuiz_Helper_Import {
40
  $this->setError(__('File have wrong format', 'wp-pro-quiz'));
41
  return false;
42
  }
 
 
 
 
 
43
 
44
  return true;
45
  }
@@ -84,14 +89,15 @@ class WpProQuiz_Helper_Import {
84
  }
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
 
@@ -120,11 +126,7 @@ class WpProQuiz_Helper_Import {
120
 
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
  }
40
  $this->setError(__('File have wrong format', 'wp-pro-quiz'));
41
  return false;
42
  }
43
+
44
+ if($v2 < 3) {
45
+ $this->setError(__('File is not compatible with the current version'));
46
+ return false;
47
+ }
48
 
49
  return true;
50
  }
89
  }
90
 
91
  switch($data['exportVersion']) {
92
+ case '3':
93
+ return $this->importData($data, $ids);
 
94
  break;
95
  }
96
+
97
+ return false;
98
  }
99
 
100
+ private function importData($o, $ids = false, $version = '1') {
101
  $quizMapper = new WpProQuiz_Model_QuizMapper();
102
  $questionMapper = new WpProQuiz_Model_QuestionMapper();
103
 
126
 
127
  $question->setQuizId($master->getId());
128
  $question->setId(0);
129
+
 
 
 
 
130
  $questionMapper->save($question);
131
  }
132
  }
lib/helper/WpProQuiz_Helper_Until.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_Helper_Until {
3
+
4
+ public static function saveUnserialize($str, &$into) {
5
+ static $serializefalse;
6
+
7
+ if ($serializefalse === null)
8
+ $serializefalse = serialize(false);
9
+
10
+ $into = @unserialize($str);
11
+
12
+ return $into !== false || rtrim($str) === $serializefalse;
13
+ }
14
+ }
lib/helper/WpProQuiz_Helper_Upgrade.php CHANGED
@@ -10,6 +10,7 @@ class WpProQuiz_Helper_Upgrade {
10
  switch($oldVersion) {
11
  case '0.17':
12
  case '0.18':
 
13
  break;
14
  default:
15
  WpProQuiz_Helper_Upgrade::install();
@@ -33,6 +34,7 @@ class WpProQuiz_Helper_Upgrade {
33
  $role->add_cap('wpProQuiz_import');
34
  $role->add_cap('wpProQuiz_export');
35
  $role->add_cap('wpProQuiz_change_settings');
 
36
 
37
  //ACHIEVEMENTS Version 2.x.x
38
  if(defined('ACHIEVEMENTS_IS_INSTALLED') && ACHIEVEMENTS_IS_INSTALLED === 1 && defined('ACHIEVEMENTS_VERSION')) {
@@ -43,6 +45,12 @@ class WpProQuiz_Helper_Upgrade {
43
  }
44
  }
45
 
 
 
 
 
 
 
46
  private static function updateDb() {
47
  $db = new WpProQuiz_Helper_DbUpgrade();
48
  $v = $db->upgrade(get_option('wpProQuiz_dbVersion', false));
10
  switch($oldVersion) {
11
  case '0.17':
12
  case '0.18':
13
+ WpProQuiz_Helper_Upgrade::updateV19();
14
  break;
15
  default:
16
  WpProQuiz_Helper_Upgrade::install();
34
  $role->add_cap('wpProQuiz_import');
35
  $role->add_cap('wpProQuiz_export');
36
  $role->add_cap('wpProQuiz_change_settings');
37
+ $role->add_cap('wpProQuiz_toplist_edit');
38
 
39
  //ACHIEVEMENTS Version 2.x.x
40
  if(defined('ACHIEVEMENTS_IS_INSTALLED') && ACHIEVEMENTS_IS_INSTALLED === 1 && defined('ACHIEVEMENTS_VERSION')) {
45
  }
46
  }
47
 
48
+ private static function updateV19() {
49
+ $role = get_role('administrator');
50
+
51
+ $role->add_cap('wpProQuiz_toplist_edit');
52
+ }
53
+
54
  private static function updateDb() {
55
  $db = new WpProQuiz_Helper_DbUpgrade();
56
  $v = $db->upgrade(get_option('wpProQuiz_dbVersion', false));
lib/model/WpProQuiz_Model_AnswerTypes.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_Model_AnswerTypes extends WpProQuiz_Model_Model {
3
+ protected $_answer = '';
4
+ protected $_html = false;
5
+ protected $_points = 1;
6
+
7
+ protected $_correct = false;
8
+
9
+ protected $_sortString = '';
10
+ protected $_sortStringHtml = false;
11
+
12
+ public function setAnswer($_answer) {
13
+ $this->_answer = (string)$_answer;
14
+ return $this;
15
+ }
16
+
17
+ public function getAnswer() {
18
+ return $this->_answer;
19
+ }
20
+
21
+ public function setHtml($_html) {
22
+ $this->_html = (bool)$_html;
23
+ return $this;
24
+ }
25
+
26
+ public function isHtml() {
27
+ return $this->_html;
28
+ }
29
+
30
+ public function setPoints($_points) {
31
+ $this->_points = (int)$_points;
32
+ return $this;
33
+ }
34
+
35
+ public function getPoints() {
36
+ return $this->_points;
37
+ }
38
+
39
+ public function setCorrect($_correct) {
40
+ $this->_correct = (bool)$_correct;
41
+ return $this;
42
+ }
43
+
44
+ public function isCorrect() {
45
+ return $this->_correct;
46
+ }
47
+
48
+ public function setSortString($_sortString) {
49
+ $this->_sortString = (string)$_sortString;
50
+ return $this;
51
+ }
52
+
53
+ public function getSortString() {
54
+ return $this->_sortString;
55
+ }
56
+
57
+ public function setSortStringHtml($_sortStringHtml) {
58
+ $this->_sortStringHtml = (bool)$_sortStringHtml;
59
+ return $this;
60
+ }
61
+
62
+ public function isSortStringHtml() {
63
+ return $this->_sortStringHtml;
64
+ }
65
+ }
lib/model/WpProQuiz_Model_Mapper.php CHANGED
@@ -18,6 +18,8 @@ class WpProQuiz_Model_Mapper {
18
  protected $_tableMaster;
19
  protected $_tableLock;
20
  protected $_tableStatistic;
 
 
21
 
22
 
23
  function __construct() {
@@ -30,5 +32,11 @@ class WpProQuiz_Model_Mapper {
30
  $this->_tableMaster = $this->_prefix.'master';
31
  $this->_tableLock = $this->_prefix.'lock';
32
  $this->_tableStatistic = $this->_prefix.'statistic';
 
 
 
 
 
 
33
  }
34
  }
18
  protected $_tableMaster;
19
  protected $_tableLock;
20
  protected $_tableStatistic;
21
+ protected $_tableToplist;
22
+ protected $_tablePrerequisite;
23
 
24
 
25
  function __construct() {
32
  $this->_tableMaster = $this->_prefix.'master';
33
  $this->_tableLock = $this->_prefix.'lock';
34
  $this->_tableStatistic = $this->_prefix.'statistic';
35
+ $this->_tableToplist = $this->_prefix.'toplist';
36
+ $this->_tablePrerequisite = $this->_prefix.'prerequisite';
37
+ }
38
+
39
+ public function getInsertId() {
40
+ return $this->_wpdb->insert_id;
41
  }
42
  }
lib/model/WpProQuiz_Model_Model.php CHANGED
@@ -7,24 +7,21 @@ class WpProQuiz_Model_Model {
7
  protected $_mapper = null;
8
 
9
  public function __construct($array = null) {
 
 
 
 
10
  if($array != null) {
11
- // $a = get_object_vars($this);
12
- // foreach($array as $k => $v) {
13
- // if(array_key_exists('_'.$k, $a)) {
14
- // $this->{'_'.$k} = $v;
15
- // }
16
- // }
17
-
18
  foreach($array as $k => $v) {
19
- // if(array_key_exists('_'.$k, $a)) {
20
- // $this->{'_'.$k} = $v;
21
- // }
22
-
23
  if(strpos($k, '_') !== false) {
24
- $k = str_replace(' ', '', ucwords(str_replace('_', ' ', $k)));
 
 
 
25
  }
26
-
27
- $this->{'set'.ucfirst($k)}($v);
 
28
  }
29
  }
30
  }
7
  protected $_mapper = null;
8
 
9
  public function __construct($array = null) {
10
+ $this->setModelData($array);
11
+ }
12
+
13
+ public function setModelData($array) {
14
  if($array != null) {
 
 
 
 
 
 
 
15
  foreach($array as $k => $v) {
 
 
 
 
16
  if(strpos($k, '_') !== false) {
17
+ // $k = str_replace(' ', '', ucwords(str_replace('_', ' ', $k)));
18
+ $k = implode('', array_map('ucfirst', explode('_', $k)));
19
+ } else {
20
+ $k = ucfirst($k);
21
  }
22
+
23
+ // $this->{'set'.ucfirst($k)}($v);
24
+ $this->{'set'.$k}($v);
25
  }
26
  }
27
  }
lib/model/WpProQuiz_Model_PrerequisiteMapper.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_Model_PrerequisiteMapper extends WpProQuiz_Model_Mapper {
3
+ public function delete($prerequisiteQuizId) {
4
+ return $this->_wpdb->delete(
5
+ $this->_tablePrerequisite,
6
+ array('prerequisite_quiz_id' => $prerequisiteQuizId),
7
+ array('%d')
8
+ );
9
+ }
10
+
11
+ public function isQuizId($quizId) {
12
+ return $this->_wpdb->get_var(
13
+ $this->_wpdb->prepare("SELECT (quiz_id) FROM {$this->_tablePrerequisite} WHERE quiz_id = %d",
14
+ $quizId)
15
+ );
16
+ }
17
+
18
+ public function fetchQuizIds($prerequisiteQuizId) {
19
+ return $this->_wpdb->get_col(
20
+ $this->_wpdb->prepare(
21
+ "SELECT quiz_id FROM {$this->_tablePrerequisite} WHERE prerequisite_quiz_id = %d",
22
+ $prerequisiteQuizId)
23
+ );
24
+ }
25
+
26
+ public function save($prerequisiteQuizId, $quiz_ids) {
27
+ foreach($quiz_ids as $quiz_id) {
28
+ $this->_wpdb->insert($this->_tablePrerequisite, array(
29
+ 'prerequisite_quiz_id' => $prerequisiteQuizId,
30
+ 'quiz_id' => $quiz_id
31
+ ), array('%d', '%d'));
32
+ }
33
+ }
34
+
35
+ public function getNoPrerequisite($prerequisiteQuizId, $userId) {
36
+ return $this->_wpdb->get_col(
37
+ $this->_wpdb->prepare(
38
+ "SELECT
39
+ p.quiz_id
40
+ FROM
41
+ {$this->_tablePrerequisite} AS p
42
+ LEFT JOIN
43
+ {$this->_tableStatistic} AS s
44
+ ON ( s.quiz_id = p.quiz_id AND s.user_id = %d )
45
+ WHERE
46
+ s.user_id IS NULL AND p.prerequisite_quiz_id = %d
47
+ GROUP BY
48
+ p.quiz_id",
49
+ $userId, $prerequisiteQuizId)
50
+ );
51
+ }
52
+ }
lib/model/WpProQuiz_Model_Question.php CHANGED
@@ -8,18 +8,16 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
8
  protected $_correctMsg;
9
  protected $_incorrectMsg;
10
  protected $_answerType;
11
- protected $_answerJson;
12
- protected $_correctCount;
13
- protected $_incorrectCount;
14
  protected $_correctSameText = false;
15
  protected $_tipEnabled = false;
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;
@@ -92,37 +90,6 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
92
  return $this->_answerType;
93
  }
94
 
95
- public function setAnswerJson($answerJson) {
96
- $this->_answerJson = $answerJson;
97
-
98
- if(isset($this->_answerJson['answer_type']))
99
- $this->setAnswerType($this->_answerJson['answer_type']);
100
-
101
- return $this;
102
- }
103
-
104
- public function getAnswerJson() {
105
- return $this->_answerJson;
106
- }
107
-
108
- public function setCorrectCount($_correctCount) {
109
- $this->_correctCount = $_correctCount;
110
- return $this;
111
- }
112
-
113
- public function getCorrectCount() {
114
- return (int)$this->_correctCount;
115
- }
116
-
117
- public function setIncorrectCount($_incorrectCount) {
118
- $this->_incorrectCount = $_incorrectCount;
119
- return $this;
120
- }
121
-
122
- public function getIncorrectCount() {
123
- return (int)$this->_incorrectCount;
124
- }
125
-
126
  public function setCorrectSameText($_correctSameText) {
127
  $this->_correctSameText = (bool)$_correctSameText;
128
  return $this;
@@ -150,15 +117,6 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
150
  return $this->_tipMsg;
151
  }
152
 
153
- public function setTipCount($_tipCount) {
154
- $this->_tipCount = (int)$_tipCount;
155
- return $this;
156
- }
157
-
158
- public function getTipCount() {
159
- return $this->_tipCount;
160
- }
161
-
162
  public function setPoints($_points) {
163
  $this->_points = (int)$_points;
164
  return $this;
@@ -168,30 +126,48 @@ class WpProQuiz_Model_Question extends WpProQuiz_Model_Model {
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
  }
8
  protected $_correctMsg;
9
  protected $_incorrectMsg;
10
  protected $_answerType;
 
 
 
11
  protected $_correctSameText = false;
12
  protected $_tipEnabled = false;
13
  protected $_tipMsg;
 
14
  protected $_points = 1;
 
 
15
  protected $_showPointsInBox = false;
16
 
17
+ //0.19
18
+ protected $_answerPointsActivated = false;
19
+ protected $_answerData = null;
20
+
21
  public function setId($_id) {
22
  $this->_id = $_id;
23
  return $this;
90
  return $this->_answerType;
91
  }
92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  public function setCorrectSameText($_correctSameText) {
94
  $this->_correctSameText = (bool)$_correctSameText;
95
  return $this;
117
  return $this->_tipMsg;
118
  }
119
 
 
 
 
 
 
 
 
 
 
120
  public function setPoints($_points) {
121
  $this->_points = (int)$_points;
122
  return $this;
126
  return $this->_points;
127
  }
128
 
129
+ public function setShowPointsInBox($_showPointsInBox) {
130
+ $this->_showPointsInBox = (bool)$_showPointsInBox;
131
  return $this;
132
  }
133
 
134
+ public function isShowPointsInBox() {
135
+ return $this->_showPointsInBox;
136
  }
137
 
138
+ public function setAnswerPointsActivated($_answerPointsActivated) {
139
+ $this->_answerPointsActivated = (bool)$_answerPointsActivated;
140
  return $this;
141
  }
142
 
143
+ public function isAnswerPointsActivated() {
144
+ return $this->_answerPointsActivated;
145
  }
146
 
147
+ public function setAnswerData($_answerData) {
148
+ $this->_answerData = $_answerData;
149
+
150
  return $this;
151
  }
152
 
153
+ public function getAnswerData($serialize = false) {
154
+ if($this->_answerData === null)
155
+ return null;
156
+
157
+ if(is_array($this->_answerData) || $this->_answerData instanceof WpProQuiz_Model_AnswerTypes) {
158
+ if($serialize) {
159
+ return @serialize($this->_answerData);
160
+ }
161
+ } else {
162
+ if(!$serialize) {
163
+ if(WpProQuiz_Helper_Until::saveUnserialize($this->_answerData, $into) === false) {
164
+ return null;
165
+ }
166
+
167
+ $this->_answerData = $into;
168
+ }
169
+ }
170
+
171
+ return $this->_answerData;
172
  }
173
  }
lib/model/WpProQuiz_Model_QuestionMapper.php CHANGED
@@ -40,13 +40,12 @@ 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
- '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,12 +60,11 @@ class WpProQuiz_Model_QuestionMapper extends WpProQuiz_Model_Mapper {
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);
@@ -89,8 +87,6 @@ class WpProQuiz_Model_QuestionMapper extends WpProQuiz_Model_Mapper {
89
  ARRAY_A
90
  );
91
 
92
- $row['answer_json'] = json_decode($row['answer_json'], true);
93
-
94
  $model = new WpProQuiz_Model_Question($row);
95
 
96
  return $model;
@@ -115,8 +111,6 @@ class WpProQuiz_Model_QuestionMapper extends WpProQuiz_Model_Mapper {
115
  );
116
 
117
  foreach ($results as $row) {
118
- $row['answer_json'] = json_decode($row['answer_json'], true);
119
-
120
  $a[] = new WpProQuiz_Model_Question($row);
121
 
122
  }
@@ -153,9 +147,6 @@ class WpProQuiz_Model_QuestionMapper extends WpProQuiz_Model_Mapper {
153
  ARRAY_A);
154
 
155
  foreach($results as $row) {
156
-
157
- $row['answer_json'] = json_decode($row['answer_json'], true);
158
-
159
  $model = new WpProQuiz_Model_Question($row);
160
 
161
  $a[] = $model;
@@ -164,6 +155,21 @@ class WpProQuiz_Model_QuestionMapper extends WpProQuiz_Model_Mapper {
164
  return $a;
165
  }
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  public function count($quizId) {
168
  return $this->_wpdb->get_var($this->_wpdb->prepare("SELECT COUNT(*) FROM {$this->_table} WHERE quiz_id = %d", $quizId));
169
  }
@@ -171,56 +177,4 @@ class WpProQuiz_Model_QuestionMapper extends WpProQuiz_Model_Mapper {
171
  public function exists($id) {
172
  return $this->_wpdb->get_var($this->_wpdb->prepare("SELECT COUNT(*) FROM {$this->_table} WHERE id = %d", $id));
173
  }
174
-
175
- public function updateStatistics($quizId, $array) {
176
- $ids = $this->_wpdb->get_col($this->_wpdb->prepare("SELECT id FROM {$this->_table} WHERE quiz_id = %d", $quizId));
177
-
178
- $ak = array_keys($array);
179
-
180
- if(array_diff($ids, $ak) !== array_diff($ak, $ids))
181
- return false;
182
-
183
- $correctIds = $incorrectIds = $tipIds = array();
184
-
185
- foreach($array as $k => $v) {
186
- if(isset($v['tip'])) {
187
- $tipIds[] = $k;
188
- }
189
-
190
- if($v['correct']) {
191
- $correctIds[] = $k;
192
- } else {
193
- $incorrectIds[] = $k;
194
- }
195
- }
196
-
197
- $correctIds = implode(', ', $correctIds);
198
- $incorrectIds = implode(', ', $incorrectIds);
199
- $tipIds = implode(', ', $tipIds);
200
-
201
- if(!empty($correctIds)) {
202
- $this->_wpdb->query("UPDATE {$this->_table} SET correct_count = correct_count + 1 WHERE id IN({$correctIds})");
203
- }
204
-
205
- if(!empty($incorrectIds)) {
206
- $this->_wpdb->query("UPDATE {$this->_table} SET incorrect_count = incorrect_count + 1 WHERE id IN({$incorrectIds})");
207
- }
208
-
209
- if(!empty($tipIds)) {
210
- $this->_wpdb->query("UPDATE {$this->_table} SET tip_count = tip_count + 1 WHERE id IN({$tipIds})");
211
- }
212
-
213
- return true;
214
- }
215
-
216
- public function resetStatistics($quizId) {
217
- return $this->_wpdb->update($this->_table,
218
- array( 'incorrect_count' => 0,
219
- 'correct_count' => 0,
220
- 'tip_count' => 0
221
- ),
222
- array( 'quiz_id' => $quizId),
223
- array( '%d', '%d', '%d'),
224
- array( '%d'));
225
- }
226
  }
40
  'tip_enabled' => (int)$question->isTipEnabled(),
41
  'tip_msg' => $question->getTipMsg(),
42
  'answer_type' => $question->getAnswerType(),
43
+ 'show_points_in_box' => (int)$question->isShowPointsInBox(),
44
+ 'answer_points_activated' => (int)$question->isAnswerPointsActivated(),
45
+ 'answer_data' => $question->getAnswerData(true)
 
46
  ),
47
  array('id' => $question->getId()),
48
+ array('%s', '%d', '%s', '%s', '%s', '%d', '%d', '%s', '%s', '%d', '%d', '%s'),
49
  array('%d'));
50
  } else {
51
  $id = $this->_wpdb->insert($this->_table, array(
60
  'tip_enabled' => (int)$question->isTipEnabled(),
61
  'tip_msg' => $question->getTipMsg(),
62
  'answer_type' => $question->getAnswerType(),
63
+ 'show_points_in_box' => (int)$question->isShowPointsInBox(),
64
+ 'answer_points_activated' => (int)$question->isAnswerPointsActivated(),
65
+ 'answer_data' => $question->getAnswerData(true)
 
66
  ),
67
+ array('%d', '%d', '%s', '%d', '%s', '%s', '%s', '%d', '%d', '%s', '%s', '%d', '%d', '%s')
68
  );
69
 
70
  $question->setId($id);
87
  ARRAY_A
88
  );
89
 
 
 
90
  $model = new WpProQuiz_Model_Question($row);
91
 
92
  return $model;
111
  );
112
 
113
  foreach ($results as $row) {
 
 
114
  $a[] = new WpProQuiz_Model_Question($row);
115
 
116
  }
147
  ARRAY_A);
148
 
149
  foreach($results as $row) {
 
 
 
150
  $model = new WpProQuiz_Model_Question($row);
151
 
152
  $a[] = $model;
155
  return $a;
156
  }
157
 
158
+ public function fetchAllList($quizId, $list) {
159
+ $results = $this->_wpdb->get_results(
160
+ $this->_wpdb->prepare(
161
+ 'SELECT
162
+ '.implode(', ', (array)$list).'
163
+ FROM
164
+ '. $this->_tableQuestion.'
165
+ WHERE
166
+ quiz_id = %d'
167
+ , $quizId),
168
+ ARRAY_A);
169
+
170
+ return $results;
171
+ }
172
+
173
  public function count($quizId) {
174
  return $this->_wpdb->get_var($this->_wpdb->prepare("SELECT COUNT(*) FROM {$this->_table} WHERE quiz_id = %d", $quizId));
175
  }
177
  public function exists($id) {
178
  return $this->_wpdb->get_var($this->_wpdb->prepare("SELECT COUNT(*) FROM {$this->_table} WHERE id = %d", $id));
179
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  }
lib/model/WpProQuiz_Model_Quiz.php CHANGED
@@ -5,6 +5,18 @@ class WpProQuiz_Model_Quiz extends WpProQuiz_Model_Model {
5
  const QUIZ_RUN_ONCE_TYPE_ONLY_USER = 2;
6
  const QUIZ_RUN_ONCE_TYPE_ONLY_ANONYM = 3;
7
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  protected $_id;
9
  protected $_name;
10
  protected $_text;
@@ -33,6 +45,23 @@ class WpProQuiz_Model_Quiz extends WpProQuiz_Model_Model {
33
  protected $_showMaxQuestionValue = 1;
34
  protected $_showMaxQuestionPercent = false;
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  public function getId() {
37
  return $this->_id;
38
  }
@@ -287,4 +316,121 @@ class WpProQuiz_Model_Quiz extends WpProQuiz_Model_Model {
287
  public function isShowMaxQuestionPercent() {
288
  return $this->_showMaxQuestionPercent;
289
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  }
5
  const QUIZ_RUN_ONCE_TYPE_ONLY_USER = 2;
6
  const QUIZ_RUN_ONCE_TYPE_ONLY_ANONYM = 3;
7
 
8
+ const QUIZ_TOPLIST_TYPE_ALL = 1;
9
+ const QUIZ_TOPLIST_TYPE_ONLY_USER = 2;
10
+ const QUIZ_TOPLIST_TYPE_ONLY_ANONYM = 3;
11
+
12
+ const QUIZ_TOPLIST_SORT_BEST = 1;
13
+ const QUIZ_TOPLIST_SORT_NEW = 2;
14
+ const QUIZ_TOPLIST_SORT_OLD = 3;
15
+
16
+ const QUIZ_TOPLIST_SHOW_IN_NONE = 0;
17
+ const QUIZ_TOPLIST_SHOW_IN_NORMAL = 1;
18
+ const QUIZ_TOPLIST_SHOW_IN_BUTTON = 2;
19
+
20
  protected $_id;
21
  protected $_name;
22
  protected $_text;
45
  protected $_showMaxQuestionValue = 1;
46
  protected $_showMaxQuestionPercent = false;
47
 
48
+ //0.19
49
+ protected $_toplistActivated = false;
50
+ protected $_toplistDataAddPermissions = 1;
51
+ protected $_toplistDataSort = 1;
52
+ protected $_toplistDataAddMultiple = false;
53
+ protected $_toplistDataAddBlock = 1;
54
+ protected $_toplistDataShowLimit = 1;
55
+ protected $_toplistDataShowQuizResult = false;
56
+ protected $_toplistDataShowIn = 0;
57
+ protected $_toplistDataCaptcha = false;
58
+
59
+ protected $_toplistData = array();
60
+
61
+ protected $_showAverageResult = false;
62
+
63
+ protected $_prerequisite = false;
64
+
65
  public function getId() {
66
  return $this->_id;
67
  }
316
  public function isShowMaxQuestionPercent() {
317
  return $this->_showMaxQuestionPercent;
318
  }
319
+
320
+ public function setToplistActivated($_toplistActivated) {
321
+ $this->_toplistActivated = (bool)$_toplistActivated;
322
+ return $this;
323
+ }
324
+
325
+ public function isToplistActivated() {
326
+ return $this->_toplistActivated;
327
+ }
328
+
329
+ public function setToplistDataAddPermissions($_toplistDataAddPermissions) {
330
+ $this->_toplistDataAddPermissions = (int)$_toplistDataAddPermissions;
331
+ return $this;
332
+ }
333
+
334
+ public function getToplistDataAddPermissions() {
335
+ return $this->_toplistDataAddPermissions;
336
+ }
337
+
338
+ public function setToplistDataSort($_toplistDataSort) {
339
+ $this->_toplistDataSort = (int)$_toplistDataSort;
340
+ return $this;
341
+ }
342
+
343
+ public function getToplistDataSort() {
344
+ return $this->_toplistDataSort;
345
+ }
346
+
347
+ public function setToplistDataAddMultiple($_toplistDataAddMultiple) {
348
+ $this->_toplistDataAddMultiple = (bool)$_toplistDataAddMultiple;
349
+ return $this;
350
+ }
351
+
352
+ public function isToplistDataAddMultiple() {
353
+ return $this->_toplistDataAddMultiple;
354
+ }
355
+
356
+ public function setToplistDataAddBlock($_toplistDataAddBlock) {
357
+ $this->_toplistDataAddBlock = (int)$_toplistDataAddBlock;
358
+ return $this;
359
+ }
360
+
361
+ public function getToplistDataAddBlock() {
362
+ return $this->_toplistDataAddBlock;
363
+ }
364
+
365
+ public function setToplistDataShowLimit($_toplistDataShowLimit) {
366
+ $this->_toplistDataShowLimit = (int)$_toplistDataShowLimit;
367
+ return $this;
368
+ }
369
+
370
+ public function getToplistDataShowLimit() {
371
+ return $this->_toplistDataShowLimit;
372
+ }
373
+
374
+ public function setToplistData($_toplistData) {
375
+ if(!empty($_toplistData)) {
376
+ $d = unserialize($_toplistData);
377
+
378
+ if($d !== false) {
379
+ $this->setModelData($d);
380
+ }
381
+ }
382
+
383
+ return $this;
384
+ }
385
+
386
+ public function getToplistData() {
387
+
388
+ $a = array(
389
+ 'toplistDataAddPermissions' => $this->getToplistDataAddPermissions(),
390
+ 'toplistDataSort' => $this->getToplistDataSort(),
391
+ 'toplistDataAddMultiple' => $this->isToplistDataAddMultiple(),
392
+ 'toplistDataAddBlock' => $this->getToplistDataAddBlock(),
393
+ 'toplistDataShowLimit' => $this->getToplistDataShowLimit(),
394
+ 'toplistDataShowIn' => $this->getToplistDataShowIn(),
395
+ 'toplistDataCaptcha' => $this->isToplistDataCaptcha()
396
+ );
397
+
398
+ return serialize($a);
399
+ }
400
+
401
+ public function setToplistDataShowIn($_toplistDataShowIn) {
402
+ $this->_toplistDataShowIn = (int)$_toplistDataShowIn;
403
+ return $this;
404
+ }
405
+
406
+ public function getToplistDataShowIn() {
407
+ return $this->_toplistDataShowIn;
408
+ }
409
+
410
+ public function setToplistDataCaptcha($_toplistDataCaptcha) {
411
+ $this->_toplistDataCaptcha = (bool)$_toplistDataCaptcha;
412
+ return $this;
413
+ }
414
+
415
+ public function isToplistDataCaptcha() {
416
+ return $this->_toplistDataCaptcha;
417
+ }
418
+
419
+ public function setShowAverageResult($_showAverageResult) {
420
+ $this->_showAverageResult = (bool)$_showAverageResult;
421
+ return $this;
422
+ }
423
+
424
+ public function isShowAverageResult() {
425
+ return $this->_showAverageResult;
426
+ }
427
+
428
+ public function setPrerequisite($_prerequisite) {
429
+ $this->_prerequisite = (bool)$_prerequisite;
430
+ return $this;
431
+ }
432
+
433
+ public function isPrerequisite() {
434
+ return $this->_prerequisite;
435
+ }
436
  }
lib/model/WpProQuiz_Model_QuizMapper.php CHANGED
@@ -88,7 +88,11 @@ class WpProQuiz_Model_QuizMapper extends WpProQuiz_Model_Mapper
88
  'disabled_answer_mark' => (int)$data->isDisabledAnswerMark(),
89
  'show_max_question' => (int)$data->isShowMaxQuestion(),
90
  'show_max_question_value' => (int)$data->getShowMaxQuestionValue(),
91
- 'show_max_question_percent' => (int)$data->isShowMaxQuestionPercent()
 
 
 
 
92
  );
93
 
94
  if($data->getId() != 0) {
@@ -97,13 +101,13 @@ class WpProQuiz_Model_QuizMapper extends WpProQuiz_Model_Mapper
97
  array(
98
  'id' => $data->getId()
99
  ),
100
- array('%s', '%s', '%s', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d'),
101
  array('%d'));
102
  } else {
103
 
104
  $result = $this->_wpdb->insert($this->_table,
105
  $set,
106
- array('%s', '%s', '%s', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d'));
107
 
108
  $data->setId($this->_wpdb->insert_id);
109
  }
@@ -122,4 +126,33 @@ class WpProQuiz_Model_QuizMapper extends WpProQuiz_Model_Mapper
122
  public function countQuestion($id) {
123
  return $this->_wpdb->get_var($this->_wpdb->prepare("SELECT COUNT(*) FROM {$this->_tableQuestion} WHERE quiz_id = %d", $id));
124
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  }
88
  'disabled_answer_mark' => (int)$data->isDisabledAnswerMark(),
89
  'show_max_question' => (int)$data->isShowMaxQuestion(),
90
  'show_max_question_value' => (int)$data->getShowMaxQuestionValue(),
91
+ 'show_max_question_percent' => (int)$data->isShowMaxQuestionPercent(),
92
+ 'toplist_activated' => (int)$data->isToplistActivated(),
93
+ 'toplist_data' => $data->getToplistData(),
94
+ 'show_average_result' => (int)$data->isShowAverageResult(),
95
+ 'prerequisite' => (int)$data->isPrerequisite()
96
  );
97
 
98
  if($data->getId() != 0) {
101
  array(
102
  'id' => $data->getId()
103
  ),
104
+ array('%s', '%s', '%s', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', '%d', '%d'),
105
  array('%d'));
106
  } else {
107
 
108
  $result = $this->_wpdb->insert($this->_table,
109
  $set,
110
+ array('%s', '%s', '%s', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', '%d', '%d'));
111
 
112
  $data->setId($this->_wpdb->insert_id);
113
  }
126
  public function countQuestion($id) {
127
  return $this->_wpdb->get_var($this->_wpdb->prepare("SELECT COUNT(*) FROM {$this->_tableQuestion} WHERE quiz_id = %d", $id));
128
  }
129
+
130
+ public function fetchAllAsArray($list, $outIds = array()) {
131
+ $where = ' 1 ';
132
+
133
+ if(!empty($outIds)) {
134
+ $where .= ' AND id NOT IN('.implode(', ', array_map('intval', (array)$outIds)).') ';
135
+ }
136
+
137
+ return $this->_wpdb->get_results(
138
+ "SELECT ".implode(', ', (array)$list)." FROM {$this->_tableMaster} WHERE $where ORDER BY name",
139
+ ARRAY_A
140
+ );
141
+ }
142
+
143
+ public function fetchCol($ids, $col) {
144
+ $ids = implode(', ', array_map('intval', (array)$ids));
145
+
146
+ return $this->_wpdb->get_col("SELECT {$col} FROM {$this->_tableMaster} WHERE id IN({$ids})");
147
+ }
148
+
149
+ public function activateStatitic($quizIds, $lockIpTime) {
150
+ $quizIds = implode(', ', array_map('intval', (array)$quizIds));
151
+
152
+ return $this->_wpdb->query($this->_wpdb->prepare(
153
+ "UPDATE {$this->_tableMaster}
154
+ SET `statistics_on` = 1, `statistics_ip_lock` = %d
155
+ WHERE `statistics_on` = 0 AND id IN(".$quizIds.")"
156
+ , $lockIpTime));
157
+ }
158
  }
lib/model/WpProQuiz_Model_StatisticMapper.php CHANGED
@@ -40,12 +40,10 @@ class WpProQuiz_Model_StatisticMapper extends WpProQuiz_Model_Mapper {
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';
@@ -67,6 +65,20 @@ class WpProQuiz_Model_StatisticMapper extends WpProQuiz_Model_Mapper {
67
 
68
  }
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  public function countOverview($quizId, $onlyCompleded) {
71
 
72
  if($onlyCompleded) {
@@ -109,6 +121,37 @@ class WpProQuiz_Model_StatisticMapper extends WpProQuiz_Model_Mapper {
109
  return $this->_wpdb->delete($this->_tableStatistic, array('question_id' => $questionId), array('%d'));
110
  }
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  public function save($quizId, $userId, $array) {
113
  $ids = $this->_wpdb->get_col($this->_wpdb->prepare("SELECT id FROM {$this->_tableQuestion} WHERE quiz_id = %d", $quizId));
114
 
@@ -161,4 +204,5 @@ class WpProQuiz_Model_StatisticMapper extends WpProQuiz_Model_Mapper {
161
  correct_answer_count = correct_answer_count + VALUES(correct_answer_count)'
162
  );
163
  }
 
164
  }
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(s.`points`) as points
 
44
  FROM
45
  `'.$this->_wpdb->users.'` AS u
46
  '.($onlyCompleded ? 'INNER' : 'LEFT').' JOIN `'.$this->_tableStatistic.'` AS s ON ( s.user_id = u.ID AND s.`quiz_id` = %d )
 
47
  GROUP BY u.ID
48
  ORDER BY u.`user_login`
49
  LIMIT %d , %d';
65
 
66
  }
67
 
68
+ public function fetchByQuiz($quizId) {
69
+ $sql = 'SELECT
70
+ (SUM(`correct_count`) + SUM(`incorrect_count`)) as count,
71
+ SUM(`points`) as points
72
+ FROM
73
+ '.$this->_tableStatistic.'
74
+ WHERE
75
+ quiz_id = %d';
76
+
77
+ return $this->_wpdb->get_row(
78
+ $this->_wpdb->prepare($sql, $quizId),
79
+ ARRAY_A);
80
+ }
81
+
82
  public function countOverview($quizId, $onlyCompleded) {
83
 
84
  if($onlyCompleded) {
121
  return $this->_wpdb->delete($this->_tableStatistic, array('question_id' => $questionId), array('%d'));
122
  }
123
 
124
+ public function save($s) {
125
+ $values = array();
126
+
127
+ foreach($s as $d) {
128
+ $values[] = '( '.implode(', ', array(
129
+ 'quiz_id' => $d->getQuizId(),
130
+ 'question_id' => $d->getQuestionId(),
131
+ 'user_id' => $d->getUserId(),
132
+ 'correct_count' => $d->getCorrectCount(),
133
+ 'incorrect_count' => $d->getIncorrectCount(),
134
+ 'hint_count' => $d->getHintCount(),
135
+ 'points' => $d->getPoints()
136
+ )).' )';
137
+ }
138
+
139
+ $this->_wpdb->query(
140
+ 'INSERT INTO
141
+ '.$this->_tableStatistic.' (
142
+ quiz_id, question_id, user_id, correct_count, incorrect_count, hint_count, points
143
+ )
144
+ VALUES
145
+ '.implode(', ', $values).'
146
+ ON DUPLICATE KEY UPDATE
147
+ correct_count = correct_count + VALUES(correct_count),
148
+ incorrect_count = incorrect_count + VALUES(incorrect_count),
149
+ hint_count = hint_count + VALUES(hint_count),
150
+ points = points + VALUES(points)'
151
+ );
152
+ }
153
+
154
+ /*
155
  public function save($quizId, $userId, $array) {
156
  $ids = $this->_wpdb->get_col($this->_wpdb->prepare("SELECT id FROM {$this->_tableQuestion} WHERE quiz_id = %d", $quizId));
157
 
204
  correct_answer_count = correct_answer_count + VALUES(correct_answer_count)'
205
  );
206
  }
207
+ */
208
  }
lib/model/WpProQuiz_Model_Toplist.php ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_Model_Toplist extends WpProQuiz_Model_Model {
3
+ protected $_toplistId;
4
+ protected $_quizId;
5
+ protected $_userId;
6
+ protected $_date;
7
+ protected $_name;
8
+ protected $_email;
9
+ protected $_points;
10
+ protected $_result;
11
+ protected $_ip;
12
+
13
+ public function setToplistId($_toplistId) {
14
+ $this->_toplistId = (int)$_toplistId;
15
+ return $this;
16
+ }
17
+
18
+ public function getToplistId() {
19
+ return $this->_toplistId;
20
+ }
21
+
22
+ public function setQuizId($_quizId) {
23
+ $this->_quizId = (int)$_quizId;
24
+ return $this;
25
+ }
26
+
27
+ public function getQuizId() {
28
+ return $this->_quizId;
29
+ }
30
+
31
+ public function setUserId($_userId) {
32
+ $this->_userId = (int)$_userId;
33
+ return $this;
34
+ }
35
+
36
+ public function getUserId() {
37
+ return $this->_userId;
38
+ }
39
+
40
+ public function setDate($_date) {
41
+ $this->_date = (int)$_date;
42
+ return $this;
43
+ }
44
+
45
+ public function getDate() {
46
+ return $this->_date;
47
+ }
48
+
49
+ public function setName($_name) {
50
+ $this->_name = (string)$_name;
51
+ return $this;
52
+ }
53
+
54
+ public function getName() {
55
+ return $this->_name;
56
+ }
57
+
58
+ public function setEmail($_email) {
59
+ $this->_email = (string)$_email;
60
+ return $this;
61
+ }
62
+
63
+ public function getEmail() {
64
+ return $this->_email;
65
+ }
66
+
67
+ public function setPoints($_points) {
68
+ $this->_points = (int)$_points;
69
+ return $this;
70
+ }
71
+
72
+ public function getPoints() {
73
+ return $this->_points;
74
+ }
75
+
76
+ public function setResult($_result) {
77
+ $this->_result = (float)$_result;
78
+ return $this;
79
+ }
80
+
81
+ public function getResult() {
82
+ return $this->_result;
83
+ }
84
+
85
+ public function setIp($_ip) {
86
+ $this->_ip = (string)$_ip;
87
+ return $this;
88
+ }
89
+
90
+ public function getIp() {
91
+ return $this->_ip;
92
+ }
93
+ }
lib/model/WpProQuiz_Model_ToplistMapper.php ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_Model_ToplistMapper extends WpProQuiz_Model_Mapper {
3
+
4
+ public function countFree($quizId, $name, $email, $ip, $clearTime = null) {
5
+ $c = '';
6
+
7
+ if($clearTime !== null) {
8
+ $c = 'AND date >= '.(time() - $clearTime);
9
+ }
10
+
11
+ $flooding = time() - 15;
12
+
13
+ return $this->_wpdb->get_var(
14
+ $this->_wpdb->prepare(
15
+ "SELECT COUNT(*)
16
+ FROM {$this->_tableToplist}
17
+ WHERE quiz_id = %d AND (name = %s OR email = %s OR (ip = %s AND date >= {$flooding})) ".$c,
18
+ $quizId,
19
+ $name,
20
+ $email,
21
+ $ip
22
+ )
23
+ );
24
+ }
25
+
26
+ public function countUser($quizId, $userId, $clearTime = null) {
27
+ $c = '';
28
+
29
+ if($clearTime !== null) {
30
+ $c = 'AND date >= '.(time() - $clearTime);
31
+ }
32
+
33
+ return $this->_wpdb->get_var(
34
+ $this->_wpdb->prepare(
35
+ "SELECT COUNT(*)
36
+ FROM {$this->_tableToplist}
37
+ WHERE quiz_id = %d AND user_id = %d ".$c,
38
+ $quizId,
39
+ $userId
40
+ )
41
+ );
42
+ }
43
+
44
+ public function count($quizId) {
45
+ return $this->_wpdb->get_var(
46
+ $this->_wpdb->prepare(
47
+ "SELECT COUNT(*) FROM {$this->_tableToplist} WHERE quiz_id = %d",
48
+ $quizId
49
+ )
50
+ );
51
+ }
52
+
53
+ public function save(WpProQuiz_Model_Toplist $toplist) {
54
+ $result = $this->_wpdb->insert($this->_tableToplist,
55
+ array( 'quiz_id' => $toplist->getQuizId(),
56
+ 'user_id' => $toplist->getUserId(),
57
+ 'date' => $toplist->getDate(),
58
+ 'name' => $toplist->getName(),
59
+ 'email' => $toplist->getEmail(),
60
+ 'points' => $toplist->getPoints(),
61
+ 'result' => $toplist->getResult(),
62
+ 'ip' => $toplist->getIp()),
63
+ array('%d', '%d', '%d', '%s', '%s', '%d', '%f', '%s'));
64
+
65
+ $toplist->setToplistId($this->_wpdb->insert_id);
66
+ }
67
+
68
+ public function fetch($quizId, $limit, $sort, $start = 0) {
69
+ $s = '';
70
+ $r = array();
71
+
72
+ $start = (int)$start;
73
+
74
+ switch ($sort) {
75
+ case WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SORT_BEST:
76
+ $s = 'ORDER BY result DESC';
77
+ break;
78
+ case WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SORT_NEW:
79
+ $s = 'ORDER BY date DESC';
80
+ break;
81
+ case WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SORT_OLD:
82
+ default:
83
+ $s = 'ORDER BY date ASC';
84
+ break;
85
+ }
86
+
87
+ $results = $this->_wpdb->get_results(
88
+ $this->_wpdb->prepare(
89
+ 'SELECT
90
+ *
91
+ FROM
92
+ '. $this->_tableToplist.'
93
+ WHERE
94
+ quiz_id = %d
95
+ '.$s.'
96
+ LIMIT %d, %d'
97
+ , $quizId, $start, $limit),
98
+ ARRAY_A);
99
+
100
+ foreach($results as $row) {
101
+ $r[] = new WpProQuiz_Model_Toplist($row);
102
+ }
103
+
104
+ return $r;
105
+ }
106
+
107
+ public function delete($quizId, $toplistIds = null) {
108
+ $quizId = (int)$quizId;
109
+
110
+ if($toplistIds === null) {
111
+ return $this->_wpdb->delete($this->_tableToplist, array('quiz_id' => $quizId), array('%d'));
112
+ }
113
+
114
+ $ids = array_map('intval', (array)$toplistIds);
115
+
116
+ return $this->_wpdb->query("DELETE FROM {$this->_tableToplist} WHERE quiz_id = {$quizId} AND toplist_id IN(".implode(', ', $ids).")");
117
+ }
118
+ }
lib/view/WpProQuiz_View_AdminToplist.php ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_View_AdminToplist extends WpProQuiz_View_View {
3
+
4
+ public function show() {
5
+ ?>
6
+ <div class="wrap wpProQuiz_toplist">
7
+ <h2><?php _e('Leaderboard', 'wp-pro-quiz'); echo ': ', $this->quiz->getName(); ?></h2>
8
+ <a class="button-secondary" href="admin.php?page=wpProQuiz"><?php _e('back to overview', 'wp-pro-quiz'); ?></a>
9
+ <div id="poststuff">
10
+ <div class="postbox">
11
+ <h3 class="hndle"><?php _e('Filter', 'wp-pro-quiz'); ?></h3>
12
+ <div class="inside">
13
+ <ul>
14
+ <li>
15
+ <label>
16
+ <?php _e('Sort by:', 'wp-pro-quiz'); ?>
17
+ <select id="wpProQuiz_sorting">
18
+ <option value="<?php echo WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SORT_BEST; ?>"><?php _e('best user', 'wp-pro-quiz'); ?></option>
19
+ <option value="<?php echo WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SORT_NEW; ?>"><?php _e('newest entry', 'wp-pro-quiz'); ?></option>
20
+ <option value="<?php echo WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SORT_OLD; ?>"><?php _e('oldest entry', 'wp-pro-quiz'); ?></option>
21
+ </select>
22
+ </label>
23
+ </li>
24
+ <li>
25
+ <label>
26
+ <?php _e('How many entries should be shown on one page:', 'wp-pro-quiz'); ?>
27
+ <select id="wpProQuiz_pageLimit">
28
+ <option>1</option>
29
+ <option>10</option>
30
+ <option>50</option>
31
+ <option selected="selected">100</option>
32
+ <option>500</option>
33
+ <option>1000</option>
34
+ </select>
35
+ </label>
36
+ </li>
37
+ <li>
38
+ <span style="font-weight: bold;"><?php _e('Type', 'wp-pro-quiz'); ?>:</span> <?php _e('UR = unregistered user, R = registered user', 'wp-pro-quiz'); ?>
39
+ </li>
40
+ </ul>
41
+ </div>
42
+ </div>
43
+ </div>
44
+
45
+ <div id="wpProQuiz_loadData" class="wpProQuiz_blueBox" style="background-color: #F8F5A8;padding: 20px;border: 1px dotted;margin-top: 10px;">
46
+ <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">
47
+ <?php _e('Loading', 'wp-pro-quiz'); ?>
48
+ </div>
49
+
50
+ <div id="wpProQuiz_content">
51
+ <table class="wp-list-table widefat" id="wpProQuiz_toplistTable">
52
+ <thead>
53
+ <tr>
54
+ <th scope="col" width="20px"><input style="margin: 0;" type="checkbox" value="0" id="wpProQuiz_checkedAll"></th>
55
+ <th scope="col"><?php _e('User', 'wp-pro-quiz'); ?></th>
56
+ <th scope="col"><?php _e('E-Mail', 'wp-pro-quiz'); ?></th>
57
+ <th scope="col" width="50px"><?php _e('Type', 'wp-pro-quiz'); ?></th>
58
+ <th scope="col" width="150px"><?php _e('Entered on', 'wp-pro-quiz'); ?></th>
59
+ <th scope="col" width="70px"><?php _e('Points', 'wp-pro-quiz'); ?></th>
60
+ <th scope="col" width="100px"><?php _e('Results', 'wp-pro-quiz'); ?></th>
61
+ </tr>
62
+ </thead>
63
+ <tbody id="">
64
+ <tr style="display: none;">
65
+ <td><input type="checkbox" name="checkedData[]"></td>
66
+ <td></td>
67
+ <td></td>
68
+ <td></td>
69
+ <td></td>
70
+ <td></td>
71
+ <td style="font-weight: bold;"></td>
72
+ </tr>
73
+ </tbody>
74
+ </table>
75
+
76
+ <div style="margin-top: 10px;">
77
+ <div style="float: left;">
78
+ <select id="wpProQuiz_actionName">
79
+ <option value="0" selected="selected"><?php _e('Action', 'wp-pro-quiz'); ?></option>
80
+ <option value="delete" ><?php _e('Delete', 'wp-pro-quiz'); ?></option>
81
+ </select>
82
+ <input class="button-secondary" type="button" value="<?php _e('Apply', 'wp-pro-quiz'); ?>" id="wpProQuiz_action">
83
+ <input class="button-secondary" type="button" value="<?php _e('Delete all entries', 'wp-pro-quiz'); ?>" id="wpProQuiz_deleteAll">
84
+ </div>
85
+ <div style="float: right;">
86
+ <input style="font-weight: bold;" class="button-secondary" value="&lt;" type="button" id="wpProQuiz_pageLeft">
87
+ <select id="wpProQuiz_currentPage"><option value="1">1</option></select>
88
+ <input style="font-weight: bold;" class="button-secondary"value="&gt;" type="button" id="wpProQuiz_pageRight">
89
+ </div>
90
+ <div style="clear: both;"></div>
91
+ </div>
92
+ </div>
93
+ </div>
94
+
95
+ <?php
96
+ }
97
+ }
lib/view/WpProQuiz_View_FrontQuiz.php CHANGED
@@ -1,77 +1,40 @@
1
  <?php
2
  class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
3
 
4
- private function parseJson($data) {
5
- $r = array();
6
-
7
- foreach($data as $q) {
8
- $a = array();
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()) {
21
- case 'single':
22
- case 'multiple':
23
- $a['correct'] = $j['classic_answer']['correct'];
24
- break;
25
- case 'sort_answer':
26
- $a['correct'] = array_keys(array_values($j['answer_sort']['answer']));
27
- break;
28
- case 'free_answer':
29
- $t = str_replace("\r\n", "\n", strtolower($j['free_answer']['correct']));
30
- $t = str_replace("\r", "\n", $t);
31
- $t = explode("\n", $t);
32
- $a['correct'] = array_values(array_filter(array_map('trim', $t)));
33
- break;
34
- case 'matrix_sort_answer':
35
- $a['correct'] = array_keys(array_values($j['answer_matrix_sort']['sort_string']));
36
- break;
37
- }
38
-
39
- $r[] = $a;
40
- }
41
-
42
- return $r;
43
  }
44
 
45
  public function show($preview = false) {
46
 
47
  $question_count = count($this->question);
48
 
49
- $json = json_encode($this->parseJson($this->question));
50
 
51
  $result = $this->quiz->getResultText();
52
 
53
  if(!$this->quiz->isResultGradeEnabled()) {
54
- $r = array();
55
- $r['text'][] = $result;
56
- $r['prozent'][] = 0;
57
-
58
- $result = $r;
59
  }
60
 
61
  $resultsProzent = json_encode($result['prozent']);
62
 
63
- $questionOnSinglePage = 0;
64
- $checkAnswer = 0;
65
- $backButton = 0;
66
-
67
  if($this->quiz->isQuestionOnSinglePage()) {
68
- $questionOnSinglePage = 1;
69
  } else if($this->quiz->isCheckAnswer()) {
70
- $checkAnswer = 1;
71
  } else if($this->quiz->isBackButton()) {
72
- $backButton = 1;
73
  }
74
-
 
75
  ?>
76
 
77
  <div class="wpProQuiz_content" id="wpProQuiz_<?php echo $this->quiz->getId(); ?>">
@@ -83,18 +46,24 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
83
  <?php echo do_shortcode(apply_filters('comment_text', $this->quiz->getText())); ?>
84
  </p>
85
  <div>
86
- <input type="button" value="<?php _e('Start quiz', 'wp-pro-quiz'); ?>" name="startQuiz">
87
  </div>
88
  </div>
89
  <div style="display: none;" class="wpProQuiz_lock">
90
- <p style="font-weight: bold;">
91
  <?php _e('You have already completed the quiz before. Hence you can not start it again.', 'wp-pro-quiz'); ?>
92
  </p>
93
  </div>
 
 
 
 
 
 
94
  <div style="display: none;" class="wpProQuiz_results">
95
  <h3><?php _e('Results', 'wp-pro-quiz'); ?></h3>
96
  <p>
97
- <?php printf(__('%s of %s questions answered correctly', 'wp-pro-quiz'), '<span class="wpProQuiz_correct_answer"></span>', '<span>'.$question_count.'</span>'); ?>
98
  </p>
99
  <p class="wpProQuiz_quiz_time">
100
  <?php _e('Your time: <span></span>', 'wp-pro-quiz'); ?>
@@ -103,8 +72,31 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
103
  <?php _e('Time has elapsed', 'wp-pro-quiz'); ?>
104
  </p>
105
  <p class="wpProQuiz_points">
106
- <?php _e('You have reached <span></span> of <span></span> points, (<span></span>%)', 'wp-pro-quiz'); ?>
107
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  <div>
109
  <ul class="wpProQuiz_resultsList">
110
  <?php foreach($result['text'] as $resultText) { ?>
@@ -116,17 +108,35 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
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>
129
- <div class="progress"></div>
130
  </div>
131
  <div style="display: none;" class="wpProQuiz_quiz">
132
  <ol class="wpProQuiz_list">
@@ -134,9 +144,20 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
134
  $index = 0;
135
  foreach($this->question as $question) {
136
  $index++;
137
- $answerArray = $question->getAnswerJson();
 
 
 
 
 
 
 
 
 
 
 
138
  ?>
139
- <li class="wpProQuiz_listItem">
140
  <div class="wpProQuiz_question_page" <?php echo $this->quiz->isQuestionOnSinglePage() ? 'style="display: none;"' : ''; ?> >
141
  <?php printf(__('Question %s of %s', 'wp-pro-quiz'), '<span>'.$index.'</span>', '<span>'.$question_count.'</span>'); ?>
142
  </div>
@@ -158,84 +179,103 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
158
  <h3><?php _e('Sort elements', 'wp-pro-quiz'); ?></h3>
159
  <ul class="wpProQuiz_sortStringList">
160
  <?php
161
- foreach($answerArray['answer_matrix_sort']['sort_string'] as $k => $v) {
162
  ?>
163
- <li class="wpProQuiz_sortStringItem"><?php echo (isset($answerArray['answer_matrix_sort']['sort_string_html']) && in_array($k, $answerArray['answer_matrix_sort']['sort_string_html'])) ? $v : esc_html($v); ?></li>
164
  <?php } ?>
165
  </ul>
166
  <div style="clear: both;"></div>
167
  </div>
168
  <?php } ?>
169
- <ul class="wpProQuiz_questionList">
170
  <?php
171
- if($question->getAnswerType() === 'single' || $question->getAnswerType() === 'multiple') {
172
- $answer_index = 1;
173
- foreach($answerArray['classic_answer']['answer'] as $k => $v) {
174
- $answer_text = (isset($answerArray['classic_answer']['html']) && in_array($k, $answerArray['classic_answer']['html'])) ? $v : esc_html($v);
 
 
 
 
 
 
 
 
 
175
  ?>
176
 
177
- <li class="wpProQuiz_questionListItem">
178
- <span class="WpProQuiz_numberedAnswer"></span>
179
- <label>
180
- <input class="wpProQuiz_questionInput" type="<?php echo $question->getAnswerType() === 'single' ? 'radio' : 'checkbox'; ?>" name="question_<?php echo $this->quiz->getId(); ?>_<?php echo $question->getId(); ?>" value="<?php echo $answer_index; ?>"> <?php echo $answer_text; ?>
181
- </label>
182
- </li>
 
 
183
 
184
- <?php $answer_index++; }
185
- } else if($question->getAnswerType() === 'sort_answer') {
186
- foreach($answerArray['answer_sort']['answer'] as $k => $v) {
187
- ?>
188
- <li class="wpProQuiz_questionListItem">
189
- <div class="wpProQuiz_sortable">
190
- <?php echo (isset($answerArray['answer_sort']['html']) && in_array($k, $answerArray['answer_sort']['html'])) ? $v : esc_html($v); ?>
191
- </div>
192
- </li>
193
- <?php } } else if($question->getAnswerType() === 'free_answer') {
194
-
195
- ?>
196
- <li class="wpProQuiz_questionListItem">
197
- <label>
198
- <input class="wpProQuiz_questionInput" type="text" name="question_<?php echo $this->quiz->getId(); ?>_<?php echo $question->getId(); ?>" style="width: 300px;">
199
- </label>
200
- </li>
201
- <?php } else if($question->getAnswerType() === 'matrix_sort_answer') {
202
- foreach($answerArray['answer_matrix_sort']['answer'] as $k => $v) {
203
- $ma = $answerArray['answer_matrix_sort'];
204
- ?>
205
-
206
- <li class="wpProQuiz_questionListItem">
207
- <table>
208
- <tbody>
209
- <tr class="wpProQuiz_mextrixTr">
210
- <td width="20%"><div class="wpProQuiz_maxtrixSortText" ><?php echo (isset($ma['answer_html']) && in_array($k, $ma['answer_html'])) ? $v : esc_html($v); ?></div></td>
211
- <td width="80%" >
212
- <ul class="wpProQuiz_maxtrixSortCriterion"></ul>
213
- </td>
214
- </tr>
215
- </tbody>
216
- </table>
217
- </li>
218
- <?php } } else if($question->getAnswerType() === 'cloze_answer') { ?>
219
- <li class="wpProQuiz_questionListItem">
220
- <?php
221
- $clozeText = $answerArray['answer_cloze']['text'];
222
-
223
- $clozeText = do_shortcode(apply_filters('comment_text', $clozeText));
 
 
 
224
 
225
  $input = '<span class="wpProQuiz_cloze"><input type="text" value="">';
226
 
227
- $clozeText = preg_replace('#\{(.*?)\}#', $input.' <span class="wpProQuiz_clozeCorrect" style="display: none;">(\1)</span></span>', $clozeText);
228
 
229
  echo $clozeText;
230
- ?>
231
- </li>
232
- <?php } ?>
 
 
 
 
 
233
  </ul>
234
  </div>
235
  <?php if(!$this->quiz->isHideAnswerMessageBox()) { ?>
236
  <div class="wpProQuiz_response" style="display: none;">
237
  <div style="display: none;" class="wpProQuiz_correct">
238
- <?php if($question->isShowPointsInBox() && $question->isPointsPerAnswer()) { ?>
239
  <div>
240
  <span style="float: left;">
241
  <?php _e('Correct', 'wp-pro-quiz'); ?>
@@ -253,7 +293,7 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
253
  </p>
254
  </div>
255
  <div style="display: none;" class="wpProQuiz_incorrect">
256
- <?php if($question->isShowPointsInBox() && $question->isPointsPerAnswer()) { ?>
257
  <div>
258
  <span style="float: left;">
259
  <?php _e('Incorrect', 'wp-pro-quiz'); ?>
@@ -280,20 +320,22 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
280
  </div>
281
  </div>
282
  <?php } ?>
283
- <div class="wpProQuiz_tipp" style="display: none;">
284
- <h3><?php _e('Hint', 'wp-pro-quiz'); ?></h3>
285
- <?php
286
- if($question->isTipEnabled()) {
287
- echo do_shortcode(apply_filters('comment_text', $question->getTipMsg()));
288
- }
289
- ?>
290
  </div>
291
- <input type="button" name="check" value="<?php _e('Check', 'wp-pro-quiz'); ?>" class="wpProQuiz_QuestionButton" style="float: left !important; margin-right: 10px !important; display: none;">
292
- <input type="button" name="back" value="<?php _e('Back', 'wp-pro-quiz'); ?>" class="wpProQuiz_QuestionButton" style="float: left !important; margin-right: 10px !important; display: none;">
 
 
293
  <?php if($question->isTipEnabled()) { ?>
294
- <input type="button" name="tip" value="<?php _e('Hint', 'wp-pro-quiz'); ?>" class="wpProQuiz_QuestionButton wpProQuiz_TipButton" style="float: left !important; display: inline-block;">
295
  <?php } ?>
296
- <input type="button" name="next" value="<?php _e('Next exercise', 'wp-pro-quiz'); ?>" class="wpProQuiz_QuestionButton" style="float: right; display: none;" >
297
  <div style="clear: both;"></div>
298
 
299
  <?php if($this->quiz->isQuestionOnSinglePage()) { ?>
@@ -306,32 +348,71 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
306
  </ol>
307
  <?php if($this->quiz->isQuestionOnSinglePage()) { ?>
308
  <div>
309
- <input type="button" name="checkSingle" value="<?php _e('Finish quiz', 'wp-pro-quiz'); ?>" class="wpProQuiz_QuestionButton" >
310
  </div>
311
  <?php } ?>
312
  </div>
313
  </div>
314
- <script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  jQuery(document).ready(function($) {
316
  $('#wpProQuiz_<?php echo $this->quiz->getId(); ?>').wpProQuizFront({
317
- questionRandom: <?php echo (int)$this->quiz->isQuestionRandom(); ?>,
318
- answerRandom: <?php echo (int)$this->quiz->isAnswerRandom(); ?>,
319
- timeLimit: <?php echo (int)$this->quiz->getTimeLimit(); ?>,
320
- checkAnswer: <?php echo $checkAnswer; ?>,
321
- backButton: <?php echo $backButton; ?>,
322
  quizId: <?php echo (int)$this->quiz->getId(); ?>,
323
- lock: <?php echo (int)$this->quiz->isQuizRunOnce(); ?>,
324
- preview: <?php echo ($preview) ? 1 : 0; ?>,
325
- numberedAnswer: <?php echo (int)$this->quiz->isnumberedAnswer(); ?>,
326
- questionOnSinglePage: <?php echo $questionOnSinglePage; ?>,
327
- url: '<?php echo admin_url('admin-ajax.php'); ?>',
328
  resultsGrade: <?php echo $resultsProzent; ?>,
329
- <?php echo get_option('wpProQuiz_corsActivated') ? 'cors: 1,' : ''; ?>
330
- <?php echo $this->quiz->isDisabledAnswerMark() ? 'disabledAnswerMark: 1,' : ''; ?>
331
- json: <?php echo $json; ?>
332
  });
333
  });
334
  </script>
335
  <?php
336
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
  }
1
  <?php
2
  class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
3
 
4
+ private function getFreeCorrect($data) {
5
+ $t = str_replace("\r\n", "\n", strtolower($data->getAnswer()));
6
+ $t = str_replace("\r", "\n", $t);
7
+ $t = explode("\n", $t);
8
+ return array_values(array_filter(array_map('trim', $t)));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  }
10
 
11
  public function show($preview = false) {
12
 
13
  $question_count = count($this->question);
14
 
15
+ $globalPoints = 0;
16
 
17
  $result = $this->quiz->getResultText();
18
 
19
  if(!$this->quiz->isResultGradeEnabled()) {
20
+ $result = array(
21
+ 'text' => array($result),
22
+ 'prozent' => array(0)
23
+ );
 
24
  }
25
 
26
  $resultsProzent = json_encode($result['prozent']);
27
 
28
+ $mode = 0;
 
 
 
29
  if($this->quiz->isQuestionOnSinglePage()) {
30
+ $mode = 3;
31
  } else if($this->quiz->isCheckAnswer()) {
32
+ $mode = 2;
33
  } else if($this->quiz->isBackButton()) {
34
+ $mode = 1;
35
  }
36
+
37
+ $json = array();
38
  ?>
39
 
40
  <div class="wpProQuiz_content" id="wpProQuiz_<?php echo $this->quiz->getId(); ?>">
46
  <?php echo do_shortcode(apply_filters('comment_text', $this->quiz->getText())); ?>
47
  </p>
48
  <div>
49
+ <input class="wpProQuiz_button" type="button" value="<?php _e('Start quiz', 'wp-pro-quiz'); ?>" name="startQuiz">
50
  </div>
51
  </div>
52
  <div style="display: none;" class="wpProQuiz_lock">
53
+ <p>
54
  <?php _e('You have already completed the quiz before. Hence you can not start it again.', 'wp-pro-quiz'); ?>
55
  </p>
56
  </div>
57
+ <div style="display: none;" class="wpProQuiz_prerequisite">
58
+ <p>
59
+ <?php _e('You have to finish following quiz, to start this quiz:', 'wp-pro-quiz'); ?>
60
+ <span></span>
61
+ </p>
62
+ </div>
63
  <div style="display: none;" class="wpProQuiz_results">
64
  <h3><?php _e('Results', 'wp-pro-quiz'); ?></h3>
65
  <p>
66
+ <?php printf(__('%s of %s questions answered correctly', 'wp-pro-quiz'), '<span class="wpProQuiz_correct_answer">0</span>', '<span>'.$question_count.'</span>'); ?>
67
  </p>
68
  <p class="wpProQuiz_quiz_time">
69
  <?php _e('Your time: <span></span>', 'wp-pro-quiz'); ?>
72
  <?php _e('Time has elapsed', 'wp-pro-quiz'); ?>
73
  </p>
74
  <p class="wpProQuiz_points">
75
+ <?php printf(__('You have reached %s of %s points, (%s)', 'wp-pro-quiz'), '<span>0</span>', '<span>0</span>', '<span>0</span>'); ?>
76
  </p>
77
+
78
+ <?php if($this->quiz->isShowAverageResult()) { ?>
79
+ <div class="wpProQuiz_resultTable">
80
+ <table>
81
+ <tbody>
82
+ <tr>
83
+ <td class="wpProQuiz_resultName"><?php _e('Average score', 'wp-pro-quiz'); ?></td>
84
+ <td class="wpProQuiz_resultValue">
85
+ <div style="background-color: #6CA54C;">&nbsp;</div>
86
+ <span>&nbsp;</span>
87
+ </td>
88
+ </tr>
89
+ <tr>
90
+ <td class="wpProQuiz_resultName"><?php _e('Your score', 'wp-pro-quiz'); ?></td>
91
+ <td class="wpProQuiz_resultValue">
92
+ <div style="background-color: #F79646;">&nbsp;</div>
93
+ <span>&nbsp;</span>
94
+ </td>
95
+ </tr>
96
+ </tbody>
97
+ </table>
98
+ </div>
99
+ <?php } ?>
100
  <div>
101
  <ul class="wpProQuiz_resultsList">
102
  <?php foreach($result['text'] as $resultText) { ?>
108
  <?php } ?>
109
  </ul>
110
  </div>
111
+ <?php
112
+ if($this->quiz->isToplistActivated()) {
113
+ if($this->quiz->getToplistDataShowIn() == WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SHOW_IN_NORMAL) {
114
+ echo do_shortcode('[WpProQuiz_toplist '.$this->quiz->getId().' q="true"]');
115
+ }
116
+
117
+ $this->showAddToplist();
118
+ }
119
+ ?>
120
  <div style="margin: 10px 0px;">
121
  <?php if(!$this->quiz->isBtnRestartQuizHidden()) { ?>
122
+ <input class="wpProQuiz_button" type="button" name="restartQuiz" value="<?php _e('Restart quiz', 'wp-pro-quiz'); ?>" >
123
  <?php } if(!$this->quiz->isBtnViewQuestionHidden()) { ?>
124
+ <input class="wpProQuiz_button" type="button" name="reShowQuestion" value="<?php _e('View questions', 'wp-pro-quiz'); ?>">
125
+ <?php } ?>
126
+ <?php if($this->quiz->isToplistActivated() && $this->quiz->getToplistDataShowIn() == WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SHOW_IN_BUTTON) { ?>
127
+ <input class="wpProQuiz_button" type="button" name="showToplist" value="<?php _e('Show leaderboard', 'wp-pro-quiz'); ?>">
128
  <?php } ?>
129
  </div>
130
  </div>
131
+ <?php
132
+ if($this->quiz->getToplistDataShowIn() == WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SHOW_IN_BUTTON) { ?>
133
+ <div class="wpProQuiz_toplistShowInButton" style="display: none;">
134
+ <?php echo do_shortcode('[WpProQuiz_toplist '.$this->quiz->getId().' q="true"]'); ?>
135
+ </div>
136
+ <?php } ?>
137
  <div style="display: none;" class="wpProQuiz_time_limit">
138
  <div class="time"><?php _e('Time limit', 'wp-pro-quiz'); ?>: <span>00:03:15</span></div>
139
+ <div class="wpProQuiz_progress"></div>
140
  </div>
141
  <div style="display: none;" class="wpProQuiz_quiz">
142
  <ol class="wpProQuiz_list">
144
  $index = 0;
145
  foreach($this->question as $question) {
146
  $index++;
147
+ $answerArray = $question->getAnswerData();
148
+
149
+ $globalPoints += $question->getPoints();
150
+
151
+
152
+ $json[$question->getId()]['type'] = $question->getAnswerType();
153
+ $json[$question->getId()]['id'] = (int)$question->getId();
154
+
155
+ if(!$question->isAnswerPointsActivated()) {
156
+ $json[$question->getId()]['points'] = $question->getPoints();
157
+ }
158
+
159
  ?>
160
+ <li class="wpProQuiz_listItem" style="display: none;">
161
  <div class="wpProQuiz_question_page" <?php echo $this->quiz->isQuestionOnSinglePage() ? 'style="display: none;"' : ''; ?> >
162
  <?php printf(__('Question %s of %s', 'wp-pro-quiz'), '<span>'.$index.'</span>', '<span>'.$question_count.'</span>'); ?>
163
  </div>
179
  <h3><?php _e('Sort elements', 'wp-pro-quiz'); ?></h3>
180
  <ul class="wpProQuiz_sortStringList">
181
  <?php
182
+ foreach($answerArray as $k => $v) {
183
  ?>
184
+ <li class="wpProQuiz_sortStringItem" data-pos="<?php echo $k; ?>"><?php echo $v->isSortStringHtml() ? $v->getSortString() : esc_html($v->getSortString()); ?></li>
185
  <?php } ?>
186
  </ul>
187
  <div style="clear: both;"></div>
188
  </div>
189
  <?php } ?>
190
+ <ul class="wpProQuiz_questionList" data-question_id="<?php echo $question->getId(); ?>" data-type="<?php echo $question->getAnswerType(); ?>">
191
  <?php
192
+ $answer_index = 0;
193
+
194
+ foreach($answerArray as $v) {
195
+ $answer_text = $v->isHtml() ? $v->getAnswer() : esc_html($v->getAnswer());
196
+
197
+ if($answer_text == '') {
198
+ continue;
199
+ }
200
+
201
+ if($question->isAnswerPointsActivated()) {
202
+ $json[$question->getId()]['points'][] = $v->getPoints();
203
+ }
204
+
205
  ?>
206
 
207
+ <li class="wpProQuiz_questionListItem" data-pos="<?php echo $answer_index;?>">
208
+
209
+ <?php if($question->getAnswerType() === 'single' || $question->getAnswerType() === 'multiple') { ?>
210
+ <?php $json[$question->getId()]['correct'][] = (int)$v->isCorrect(); ?>
211
+ <span <?php $this->quiz->isNumberedAnswer() ? '' : 'style="display:none;"'?>></span>
212
+ <label>
213
+ <input class="wpProQuiz_questionInput" type="<?php echo $question->getAnswerType() === 'single' ? 'radio' : 'checkbox'; ?>" name="question_<?php echo $this->quiz->getId(); ?>_<?php echo $question->getId(); ?>" value="<?php echo ($answer_index+1); ?>"> <?php echo $answer_text; ?>
214
+ </label>
215
 
216
+ <?php } else if($question->getAnswerType() === 'sort_answer') { ?>
217
+ <?php $json[$question->getId()]['correct'][] = (int)$answer_index; ?>
218
+ <div class="wpProQuiz_sortable">
219
+ <?php echo $answer_text; ?>
220
+ </div>
221
+ <?php } else if($question->getAnswerType() === 'free_answer') { ?>
222
+ <?php $json[$question->getId()]['correct'] = $this->getFreeCorrect($v); ?>
223
+ <label>
224
+ <input class="wpProQuiz_questionInput" type="text" name="question_<?php echo $this->quiz->getId(); ?>_<?php echo $question->getId(); ?>" style="width: 300px;">
225
+ </label>
226
+ <?php } else if($question->getAnswerType() === 'matrix_sort_answer') { ?>
227
+ <?php
228
+ $json[$question->getId()]['correct'][] = (int)$answer_index;
229
+ ?>
230
+ <table>
231
+ <tbody>
232
+ <tr class="wpProQuiz_mextrixTr">
233
+ <td width="20%"><div class="wpProQuiz_maxtrixSortText" ><?php echo $answer_text; ?></div></td>
234
+ <td width="80%" >
235
+ <ul class="wpProQuiz_maxtrixSortCriterion"></ul>
236
+ </td>
237
+ </tr>
238
+ </tbody>
239
+ </table>
240
+
241
+
242
+ <?php } else if($question->getAnswerType() === 'cloze_answer') {
243
+ $json[$question->getId()]['correct'] = array();
244
+
245
+ if($question->isAnswerPointsActivated()) {
246
+ preg_match_all('#\{(.*?)(?:\|(\d+))?(?:[\s]+)?\}#im', $answer_text, $matches);
247
+
248
+ $json[$question->getId()]['points'] = array();
249
+
250
+ foreach($matches[2] as $match) {
251
+ if(empty($match))
252
+ $match = 1;
253
+
254
+ $json[$question->getId()]['points'][] = (int)$match;
255
+ }
256
+ }
257
+
258
+ $clozeText = do_shortcode(apply_filters('comment_text', $answer_text));
259
 
260
  $input = '<span class="wpProQuiz_cloze"><input type="text" value="">';
261
 
262
+ $clozeText = preg_replace('#\{(.*?)(?:\|(\d+))?(?:[\s]+)?\}#im', $input.' <span class="wpProQuiz_clozeCorrect" style="display: none;">(\1)</span></span>', $clozeText);
263
 
264
  echo $clozeText;
265
+ } ?>
266
+
267
+
268
+ </li>
269
+ <?php
270
+ $answer_index++;
271
+ }
272
+ ?>
273
  </ul>
274
  </div>
275
  <?php if(!$this->quiz->isHideAnswerMessageBox()) { ?>
276
  <div class="wpProQuiz_response" style="display: none;">
277
  <div style="display: none;" class="wpProQuiz_correct">
278
+ <?php if($question->isShowPointsInBox() && $question->isAnswerPointsActivated()) { ?>
279
  <div>
280
  <span style="float: left;">
281
  <?php _e('Correct', 'wp-pro-quiz'); ?>
293
  </p>
294
  </div>
295
  <div style="display: none;" class="wpProQuiz_incorrect">
296
+ <?php if($question->isShowPointsInBox() && $question->isAnswerPointsActivated()) { ?>
297
  <div>
298
  <span style="float: left;">
299
  <?php _e('Incorrect', 'wp-pro-quiz'); ?>
320
  </div>
321
  </div>
322
  <?php } ?>
323
+
324
+ <?php if($question->isTipEnabled()) { ?>
325
+ <div class="wpProQuiz_tipp" style="display: none; position: relative;">
326
+ <div>
327
+ <h3 style="margin: 0px 0px 10px;"><?php _e('Hint', 'wp-pro-quiz'); ?></h3>
328
+ <?php echo do_shortcode(apply_filters('comment_text', $question->getTipMsg())); ?>
329
+ </div>
330
  </div>
331
+ <?php } ?>
332
+
333
+ <input type="button" name="check" value="<?php _e('Check', 'wp-pro-quiz'); ?>" class="wpProQuiz_button wpProQuiz_QuestionButton" style="float: left !important; margin-right: 10px !important; display: none;">
334
+ <input type="button" name="back" value="<?php _e('Back', 'wp-pro-quiz'); ?>" class="wpProQuiz_button wpProQuiz_QuestionButton" style="float: left !important; margin-right: 10px !important; display: none;">
335
  <?php if($question->isTipEnabled()) { ?>
336
+ <input type="button" name="tip" value="<?php _e('Hint', 'wp-pro-quiz'); ?>" class="wpProQuiz_button wpProQuiz_QuestionButton wpProQuiz_TipButton" style="float: left !important; display: inline-block;">
337
  <?php } ?>
338
+ <input type="button" name="next" value="<?php _e('Next exercise', 'wp-pro-quiz'); ?>" class="wpProQuiz_button wpProQuiz_QuestionButton" style="float: right; display: none;" >
339
  <div style="clear: both;"></div>
340
 
341
  <?php if($this->quiz->isQuestionOnSinglePage()) { ?>
348
  </ol>
349
  <?php if($this->quiz->isQuestionOnSinglePage()) { ?>
350
  <div>
351
+ <input type="button" name="checkSingle" value="<?php _e('Finish quiz', 'wp-pro-quiz'); ?>" class="wpProQuiz_button wpProQuiz_QuestionButton" >
352
  </div>
353
  <?php } ?>
354
  </div>
355
  </div>
356
+
357
+
358
+ <?php
359
+ //Create Options
360
+
361
+ $bo = 0;
362
+
363
+ $bo |= ((int)$this->quiz->isAnswerRandom()) << 0;
364
+ $bo |= ((int)$this->quiz->isQuestionRandom()) << 1;
365
+ $bo |= ((int)$this->quiz->isDisabledAnswerMark()) << 2;
366
+ $bo |= ((int)($this->quiz->isQuizRunOnce() || $this->quiz->isPrerequisite())) << 3;
367
+ $bo |= ((int)$preview) << 4;
368
+ $bo |= ((int)get_option('wpProQuiz_corsActivated')) << 5;
369
+
370
+ ?>
371
+
372
+ <script type="text/javascript">
373
  jQuery(document).ready(function($) {
374
  $('#wpProQuiz_<?php echo $this->quiz->getId(); ?>').wpProQuizFront({
 
 
 
 
 
375
  quizId: <?php echo (int)$this->quiz->getId(); ?>,
376
+ mode: <?php echo (int)$mode; ?>,
377
+ globalPoints: <?php echo (int)$globalPoints; ?>,
378
+ timelimit: <?php echo (int)$this->quiz->getTimeLimit(); ?>,
 
 
379
  resultsGrade: <?php echo $resultsProzent; ?>,
380
+ bo: <?php echo $bo ?>,
381
+ json: <?php echo json_encode($json); ?>
 
382
  });
383
  });
384
  </script>
385
  <?php
386
  }
387
+
388
+ private function showAddToplist() {
389
+ ?>
390
+ <div class="wpProQuiz_addToplist" style="display: none;">
391
+ <span style="font-weight: bold;"><?php _e('Your result entered into leaderboard', 'wp-pro-quiz'); ?></span>
392
+ <div style="margin-top: 6px;">
393
+ <div class="wpProQuiz_addToplistMessage" style="display: none;"><?php _e('Loading', 'wp-pro-quiz'); ?></div>
394
+ <div class="wpProQuiz_addBox">
395
+ <div>
396
+ <span>
397
+ <label>
398
+ <?php _e('Name', 'wp-pro-quiz'); ?>: <input type="text" placeholder="<?php _e('Name', 'wp-pro-quiz'); ?>" name="wpProQuiz_toplistName" maxlength="15" size="16" >
399
+ </label>
400
+ <label>
401
+ <?php _e('E-Mail', 'wp-pro-quiz'); ?>: <input type="email" placeholder="<?php _e('E-Mail', 'wp-pro-quiz'); ?>" name="wpProQuiz_toplistEmail" size="20">
402
+ </label>
403
+ </span>
404
+ <div style="margin-top: 5px;">
405
+ <label>
406
+ <?php _e('Captcha', 'wp-pro-quiz'); ?>: <input type="text" placeholder="<?php _e('Captcha', 'wp-pro-quiz'); ?>" name="wpProQuiz_captcha" size="8">
407
+ </label>
408
+ <input type="hidden" name="wpProQuiz_captchaPrefix" value="0">
409
+ <img alt="captcha" src="" class="wpProQuiz_captchaImg" style="vertical-align: middle;">
410
+ </div>
411
+ </div>
412
+ <input class="wpProQuiz_toplistButton" type="submit" value="Abschicken" name="wpProQuiz_toplistAdd">
413
+ </div>
414
+ </div>
415
+ </div>
416
+ <?php
417
+ }
418
  }
lib/view/WpProQuiz_View_FrontToplist.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_View_FrontToplist extends WpProQuiz_View_View {
3
+
4
+ public function show() {
5
+ ?>
6
+ <div style="margin-bottom: 30px; margin-top: 10px;" class="wpProQuiz_toplist" data-quiz_id="<?php echo $this->quiz->getId(); ?>">
7
+ <?php if(!$this->inQuiz) { ?>
8
+ <h2><?php _e('Leaderboard', 'wp-pro-quiz'); ?>: <?php echo $this->quiz->getName(); ?></h2>
9
+ <?php } ?>
10
+ <table class="wpProQuiz_toplistTable">
11
+ <caption><?php printf(__('maximum of %s points', 'wp-pro-quiz'), $this->points); ?></caption>
12
+ <thead>
13
+ <tr>
14
+ <th style="width: 40px;"><?php _e('Pos.', 'wp-pro-quiz'); ?></th>
15
+ <th style="text-align: left;"><?php _e('Name', 'wp-pro-quiz'); ?></th>
16
+ <th style="width: 140px;"><?php _e('Entered on', 'wp-pro-quiz'); ?></th>
17
+ <th style="width: 60px;"><?php _e('Points', 'wp-pro-quiz'); ?></th>
18
+ <th style="width: 75px;"><?php _e('Result', 'wp-pro-quiz'); ?></th>
19
+ </tr>
20
+ </thead>
21
+ <tbody>
22
+ <tr>
23
+ <td colspan="5"><?php _e('Table is loading', 'wp-pro-quiz'); ?></td>
24
+ </tr>
25
+ <tr style="display: none;">
26
+ <td colspan="5"><?php _e('No data available', 'wp-pro-quiz'); ?></td>
27
+ </tr>
28
+ <tr style="display: none;">
29
+ <td></td>
30
+ <td style="text-align: left;"></td>
31
+ <td style=" color: rgb(124, 124, 124); font-size: x-small;"></td>
32
+ <td></td>
33
+ <td></td>
34
+ </tr>
35
+ </tbody>
36
+ </table>
37
+ </div>
38
+
39
+ <?php
40
+ }
41
+ }
lib/view/WpProQuiz_View_GobalSettings.php CHANGED
@@ -10,18 +10,71 @@ class WpProQuiz_View_GobalSettings extends WpProQuiz_View_View {
10
  }
11
 
12
  ?>
13
- <div class="wrap">
14
- <h2 style="margin-bottom: 10px;"><?php _e('Settings in case of problems', 'wp-pro-quiz'); ?></h2>
15
- <div class="updated">
16
  <h3><?php _e('Please note', 'wp-pro-quiz'); ?></h3>
17
  <p>
18
  <?php _e('These settings should only be set in cases of problems with Wp-Pro-Quiz.', 'wp-pro-quiz'); ?>
19
  </p>
20
  </div>
21
  <a class="button-secondary" href="admin.php?page=wpProQuiz"><?php _e('back to overview', 'wp-pro-quiz'); ?></a>
 
 
 
 
 
 
22
  <form method="post">
23
  <div id="poststuff">
24
- <div class="postbox">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  <h3 class="hndle"><?php _e('Settings in case of problems', 'wp-pro-quiz'); ?></h3>
26
  <div class="wrap">
27
  <table class="form-table">
10
  }
11
 
12
  ?>
13
+ <div class="wrap wpProQuiz_globalSettings">
14
+ <h2 style="margin-bottom: 10px;"><?php _e('Global settings', 'wp-pro-quiz'); ?></h2>
15
+ <div class="updated" id="problemInfo" style="display: none;">
16
  <h3><?php _e('Please note', 'wp-pro-quiz'); ?></h3>
17
  <p>
18
  <?php _e('These settings should only be set in cases of problems with Wp-Pro-Quiz.', 'wp-pro-quiz'); ?>
19
  </p>
20
  </div>
21
  <a class="button-secondary" href="admin.php?page=wpProQuiz"><?php _e('back to overview', 'wp-pro-quiz'); ?></a>
22
+
23
+ <div style="padding: 10px 0px;">
24
+ <a class="button-primary wpProQuiz_tab" id="globalTab" href="#"><?php _e('Global settings', 'wp-pro-quiz'); ?></a>
25
+ <a class="button-secondary wpProQuiz_tab" href="#"><?php _e('Settings in case of problems', 'wp-pro-quiz'); ?></a>
26
+ </div>
27
+
28
  <form method="post">
29
  <div id="poststuff">
30
+ <div class="postbox" id="globalContent">
31
+ <h3 class="hndle"><?php _e('Global settings', 'wp-pro-quiz'); ?></h3>
32
+ <div class="wrap">
33
+ <table class="form-table">
34
+ <tbody>
35
+ <tr>
36
+ <th scope="row">
37
+ <?php _e('Leaderboard time format', 'wp-pro-quiz'); ?>
38
+ </th>
39
+ <td>
40
+ <fieldset>
41
+ <legend class="screen-reader-text">
42
+ <span><?php _e('Leaderboard time format', 'wp-pro-quiz'); ?></span>
43
+ </legend>
44
+ <label>
45
+ <input type="radio" name="toplist_date_format" value="d.m.Y H:i" <?php $this->checked($this->toplistDataFormat, 'd.m.Y H:i'); ?>> 06.11.2010 12:50
46
+ </label> <br>
47
+ <label>
48
+ <input type="radio" name="toplist_date_format" value="Y/m/d g:i A" <?php $this->checked($this->toplistDataFormat, 'Y/m/d g:i A'); ?>> 2010/11/06 12:50 AM
49
+ </label> <br>
50
+ <label>
51
+ <input type="radio" name="toplist_date_format" value="Y/m/d \a\t g:i A" <?php $this->checked($this->toplistDataFormat, 'Y/m/d \a\t g:i A'); ?>> 2010/11/06 at 12:50 AM
52
+ </label> <br>
53
+ <label>
54
+ <input type="radio" name="toplist_date_format" value="Y/m/d \a\t g:ia" <?php $this->checked($this->toplistDataFormat, 'Y/m/d \a\t g:ia'); ?>> 2010/11/06 at 12:50am
55
+ </label> <br>
56
+ <label>
57
+ <input type="radio" name="toplist_date_format" value="F j, Y g:i a" <?php $this->checked($this->toplistDataFormat, 'F j, Y g:i a'); ?>> November 6, 2010 12:50 am
58
+ </label> <br>
59
+ <label>
60
+ <input type="radio" name="toplist_date_format" value="M j, Y @ G:i" <?php $this->checked($this->toplistDataFormat, 'M j, Y @ G:i'); ?>> Nov 6, 2010 @ 0:50
61
+ </label> <br>
62
+ <label>
63
+ <input type="radio" name="toplist_date_format" value="custom" <?php echo in_array($this->toplistDataFormat, array('d.m.Y H:i', 'Y/m/d g:i A', 'Y/m/d \a\t g:i A', 'Y/m/d \a\t g:ia', 'F j, Y g:i a', 'M j, Y @ G:i')) ? '' : 'checked="checked"'; ?> >
64
+ <?php _e('Custom', 'wp-pro-quiz'); ?>:
65
+ <input class="medium-text" name="toplist_date_format_custom" style="width: 100px;" value="<?php echo $this->toplistDataFormat; ?>">
66
+ </label>
67
+ <p>
68
+ <a href="http://codex.wordpress.org/Formatting_Date_and_Time" target="_blank"><?php _e('Documentation on date and time formatting', 'wp-pro-quiz'); ?></a>
69
+ </p>
70
+ </fieldset>
71
+ </td>
72
+ </tr>
73
+ </tbody>
74
+ </table>
75
+ </div>
76
+ </div>
77
+ <div class="postbox" id="problemContent" style="display: none;">
78
  <h3 class="hndle"><?php _e('Settings in case of problems', 'wp-pro-quiz'); ?></h3>
79
  <div class="wrap">
80
  <table class="form-table">
lib/view/WpProQuiz_View_QuestionEdit.php CHANGED
@@ -25,16 +25,19 @@ class WpProQuiz_View_QuestionEdit extends WpProQuiz_View_View {
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">
@@ -112,8 +115,8 @@ class WpProQuiz_View_QuestionEdit extends WpProQuiz_View_View {
112
  <h3 class="hndle"><?php _e('Answer type', 'wp-pro-quiz'); ?></h3>
113
  <div class="inside">
114
  <?php
115
- $qa = (array) $this->question->getAnswerJson();
116
  $type = $this->question->getAnswerType();
 
117
  ?>
118
  <label style="padding-right: 10px;">
119
  <input type="radio" name="answerType" value="single" <?php echo ($type === 'single') ? 'checked="checked"' : ''; ?>>
@@ -145,236 +148,37 @@ class WpProQuiz_View_QuestionEdit extends WpProQuiz_View_View {
145
  <h3 class="hndle"><?php _e('Answers', 'wp-pro-quiz'); ?> <?php _e('(required)', 'wp-pro-quiz'); ?></h3>
146
  <div class="inside answer_felder">
147
  <div class="free_answer">
148
- <?php if($type === 'free_answer') { ?>
149
- <p style="border-bottom:1px dotted #ccc;">
150
- <textarea placeholder="<?php _e('correct answers (one per line) (answers will be converted to lower case)', 'wp-pro-quiz'); ?>" rows="6" cols="100" class="large-text" name="answerJson[free_answer][correct]"><?php echo $qa['free_answer']['correct']; ?></textarea>
151
- </p>
152
- <?php } else { ?>
153
- <p style="border-bottom:1px dotted #ccc;">
154
- <textarea placeholder="<?php _e('correct answers (one per line) (answers will be converted to lower case)', 'wp-pro-quiz'); ?>" rows="6" cols="100" class="large-text" name="answerJson[free_answer][correct]"></textarea>
155
- </p>
156
- <?php } ?>
157
  </div>
158
  <div class="sort_answer">
159
  <p class="description">
160
  <?php _e('Please sort the answers in right order with the "Move" - Button. The answers will be displayed randomly.', 'wp-pro-quiz'); ?>
161
  </p>
162
- <ul>
163
- <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; display:none; background-color: whiteSmoke;">
164
- <!-- <input class="small-text" name="answerJson[answer_sort][nr][]" value="" placeholder="Nr."> -->
165
- <textarea rows="2" cols="100" class="large-text" name="answerJson[answer_sort][answer][]"></textarea>
166
- <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
167
- <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
168
- <label>
169
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
170
- <input type="checkbox" name="answerJson[answer_sort][html][]" value="0">
171
- </label>
172
- </li>
173
- <?php if($type === 'sort_answer') {
174
- foreach($qa['answer_sort']['answer'] as $k => $v) { ?>
175
- <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; background-color: whiteSmoke;">
176
- <!-- <input class="small-text" name="answerJson[answer_sort][nr][]" value="<?php echo $qa['answer_sort']['nr'][$k]; ?>" placeholder="Nr.">-->
177
- <textarea rows="2" cols="100" class="large-text" name="answerJson[answer_sort][answer][]"><?php echo $v; ?></textarea>
178
- <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
179
- <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
180
- <label>
181
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
182
- <input type="checkbox" name="answerJson[answer_sort][html][]" value="<?php echo $k; ?>" <?php echo (isset($qa['answer_sort']['html']) && in_array($k, $qa['answer_sort']['html'])) ? 'checked=checked' : ''; ?>>
183
- </label>
184
- </li>
185
- <?php } } else { ?>
186
- <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; background-color: whiteSmoke;">
187
- <textarea rows="2" cols="100" class="large-text" name="answerJson[answer_sort][answer][]"></textarea>
188
- <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
189
- <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
190
- <label>
191
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
192
- <input type="checkbox" name="answerJson[answer_sort][html][]" value="1">
193
- </label>
194
- </li>
195
- <?php } ?>
196
  </ul>
197
  <input type="button" class="button-primary addAnswer" value="<?php _e('Add new answer', 'wp-pro-quiz'); ?>">
198
  </div>
199
  <div class="classic_answer">
200
- <ul>
201
- <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; display:none;">
202
- <textarea rows="2" cols="50" class="large-text" name="answerJson[classic_answer][answer][]"></textarea>
203
- <label>
204
- <input type="radio" name="answerJson[classic_answer][correct][]" value="0">
205
- <?php _e('correct?', 'wp-pro-quiz'); ?>
206
- </label>
207
- <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
208
- <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
209
- <label>
210
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
211
- <input type="checkbox" name="answerJson[classic_answer][html][]" value="0">
212
- </label>
213
- </li>
214
- <?php if($type === 'single' || $type === 'multiple') {
215
- foreach($qa['classic_answer']['answer'] as $k => $v) { ?>
216
- <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px;">
217
- <textarea rows="2" cols="50" class="large-text" name="answerJson[classic_answer][answer][]"><?php echo $v; ?></textarea>
218
- <label>
219
- <input type="checkbox" name="answerJson[classic_answer][correct][]" value="<?php echo $k; ?>"
220
- <?php echo (isset($qa['classic_answer']['correct']) && in_array($k, $qa['classic_answer']['correct'])) ? 'checked="checked"' : ''; ?>>
221
- <?php _e('correct?', 'wp-pro-quiz'); ?>
222
- </label>
223
- <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
224
- <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
225
- <label>
226
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
227
- <input type="checkbox" name="answerJson[classic_answer][html][]" value="<?php echo $k; ?>" <?php echo (isset($qa['classic_answer']['html']) && in_array($k, $qa['classic_answer']['html'])) ? 'checked="checked"' : ''; ?>>
228
- </label>
229
- </li>
230
- <?php } } else { ?>
231
- <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px;">
232
- <textarea rows="2" cols="50" class="large-text" name="answerJson[classic_answer][answer][]"></textarea>
233
- <label>
234
- <input type="radio" name="answerJson[classic_answer][correct][]" value="1" checked="checked">
235
- <?php _e('correct?', 'wp-pro-quiz'); ?>
236
- </label>
237
- <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
238
- <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
239
- <label>
240
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
241
- <input type="checkbox" name="answerJson[classic_answer][html][]" value="1">
242
- </label>
243
- </li>
244
- <?php } ?>
245
  </ul>
246
  <input type="button" class="button-primary addAnswer" value="<?php _e('Add new answer', 'wp-pro-quiz'); ?>">
247
  </div>
248
  <div class="matrix_sort_answer">
249
- <p class="description">
250
  <?php _e('In this mode, not a list have to be sorted, but elements must be assigned to matching criterion.', 'wp-pro-quiz'); ?>
251
  </p>
252
- <ul>
253
- <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; display:none; background-color: whiteSmoke;">
254
- <table style="width: 100%; margin-bottom: 10px;">
255
- <thead>
256
- <tr>
257
- <td><?php _e('Criterion', 'wp-pro-quiz'); ?></td>
258
- <td><?php _e('Sort elements', 'wp-pro-quiz'); ?></td>
259
- </tr>
260
- </thead>
261
- <tbody>
262
- <tr>
263
- <td>
264
- <textarea rows="4" name="answerJson[answer_matrix_sort][answer][]" style="width: 100%; resize:none;"></textarea>
265
- </td>
266
- <td>
267
- <textarea rows="4" name="answerJson[answer_matrix_sort][sort_string][]" style="width: 100%; resize:none;"></textarea>
268
- </td>
269
- </tr>
270
- <tr>
271
- <td>
272
- <label>
273
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
274
- <input type="checkbox" name="answerJson[answer_matrix_sort][answer_html][]" value="0">
275
- </label>
276
- </td>
277
- <td>
278
- <label>
279
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
280
- <input type="checkbox" name="answerJson[answer_matrix_sort][sort_string_html][]" value="0">
281
- </label>
282
- </td>
283
- </tr>
284
- </tbody>
285
- </table>
286
- <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
287
- <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
288
- </li>
289
- <?php if($type === 'matrix_sort_answer') {
290
- foreach($qa['answer_matrix_sort']['answer'] as $k => $v) {
291
- $ms = $qa['answer_matrix_sort'];
292
- ?>
293
- <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; background-color: whiteSmoke;">
294
- <table style="width: 100%; margin-bottom: 10px;">
295
- <thead>
296
- <tr>
297
- <td><?php _e('Criterion', 'wp-pro-quiz'); ?></td>
298
- <td><?php _e('Sort elements', 'wp-pro-quiz'); ?></td>
299
- </tr>
300
- </thead>
301
- <tbody>
302
- <tr>
303
- <td>
304
- <textarea rows="4" name="answerJson[answer_matrix_sort][answer][]" style="width: 100%; resize:none;"><?php echo $v; ?></textarea>
305
- </td>
306
- <td>
307
- <textarea rows="4" name="answerJson[answer_matrix_sort][sort_string][]" style="width: 100%; resize:none;"><?php echo $ms['sort_string'][$k]; ?></textarea>
308
- </td>
309
- </tr>
310
- <tr>
311
- <td>
312
- <label>
313
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
314
- <input type="checkbox" name="answerJson[answer_matrix_sort][answer_html][]" value="<?php echo $k; ?>" <?php echo (isset($ms['answer_html']) && in_array($k, $ms['answer_html'])) ? 'checked="checked"' : ''; ?>>
315
- </label>
316
- </td>
317
- <td>
318
- <label>
319
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
320
- <input type="checkbox" name="answerJson[answer_matrix_sort][sort_string_html][]" value="<?php echo $k; ?>" <?php echo (isset($ms['sort_string_html']) && in_array($k, $ms['sort_string_html'])) ? 'checked="checked"' : ''; ?>>
321
- </label>
322
- </td>
323
- </tr>
324
- </tbody>
325
- </table>
326
- <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
327
- <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
328
- </li>
329
- <?php } } else { ?>
330
- <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; background-color: whiteSmoke;">
331
- <table style="width: 100%; margin-bottom: 10px;">
332
- <thead>
333
- <tr>
334
- <th><?php _e('Criterion', 'wp-pro-quiz'); ?></th>
335
- <th><?php _e('Sort elements', 'wp-pro-quiz'); ?></th>
336
- </tr>
337
- </thead>
338
- <tbody>
339
- <tr>
340
- <td>
341
- <textarea rows="4" name="answerJson[answer_matrix_sort][answer][]" style="width: 100%; resize:vertical;"></textarea>
342
- </td>
343
- <td>
344
- <textarea rows="4" name="answerJson[answer_matrix_sort][sort_string][]" style="width: 100%; resize:vertical;"></textarea>
345
- </td>
346
- </tr>
347
- <tr>
348
- <td>
349
- <label>
350
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
351
- <input type="checkbox" name="answerJson[answer_matrix_sort][answer_html][]" value="1">
352
- </label>
353
- </td>
354
- <td>
355
- <label>
356
- <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
357
- <input type="checkbox" name="answerJson[answer_matrix_sort][sort_string_html][]" value="1">
358
- </label>
359
- </td>
360
- </tr>
361
- </tbody>
362
- </table>
363
- <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
364
- <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
365
- </li>
366
- <?php } ?>
367
  </ul>
368
  <input type="button" class="button-primary addAnswer" value="<?php _e('Add new answer', 'wp-pro-quiz'); ?>">
369
  </div>
370
  <div class="cloze_answer">
371
- <p class="description">
372
- <?php _e('Enclose the searched words with { } e.g. "I {play} soccer". Capital and small letters will be ignored.', 'wp-pro-quiz'); ?>
373
- </p>
374
- <?php
375
- $clozeText = isset($qa['answer_cloze'], $qa['answer_cloze']['text']) ? $qa['answer_cloze']['text'] : '';
376
- wp_editor($clozeText, 'cloze', array('textarea_rows' => 10, 'textarea_name' => 'answerJson[answer_cloze][text]'));
377
- ?>
378
  </div>
379
  </div>
380
  </div>
@@ -385,4 +189,179 @@ class WpProQuiz_View_QuestionEdit extends WpProQuiz_View_View {
385
 
386
  <?php
387
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
388
  }
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="number" min="1"> <?php _e('Points', 'wp-pro-quiz'); ?>
29
  </label>
30
+ <p class="description">
31
+ <?php _e('This points will be rewarded, only if the user closes the question correctly.', 'wp-pro-quiz'); ?>
32
+ </p>
33
  </div>
34
  <div style="margin-top: 10px;">
35
  <label>
36
+ <input name="answerPointsActivated" type="checkbox" value="1" <?php echo $this->question->isAnswerPointsActivated() ? 'checked="checked"' : '' ?>>
37
+ <?php _e('Different points for each answer', 'wp-pro-quiz'); ?>
38
  </label>
39
  <p class="description">
40
+ <?php _e('If you enable this option, you can enter different points for every answer.', 'wp-pro-quiz'); ?>
41
  </p>
42
  </div>
43
  <div style="margin-top: 10px; display: none;" id="wpProQuiz_showPointsBox">
115
  <h3 class="hndle"><?php _e('Answer type', 'wp-pro-quiz'); ?></h3>
116
  <div class="inside">
117
  <?php
 
118
  $type = $this->question->getAnswerType();
119
+ $type = $type === null ? 'single' : $type;
120
  ?>
121
  <label style="padding-right: 10px;">
122
  <input type="radio" name="answerType" value="single" <?php echo ($type === 'single') ? 'checked="checked"' : ''; ?>>
148
  <h3 class="hndle"><?php _e('Answers', 'wp-pro-quiz'); ?> <?php _e('(required)', 'wp-pro-quiz'); ?></h3>
149
  <div class="inside answer_felder">
150
  <div class="free_answer">
151
+ <?php $this->freeChoice($this->data['free_answer']); ?>
 
 
 
 
 
 
 
 
152
  </div>
153
  <div class="sort_answer">
154
  <p class="description">
155
  <?php _e('Please sort the answers in right order with the "Move" - Button. The answers will be displayed randomly.', 'wp-pro-quiz'); ?>
156
  </p>
157
+ <ul class="answerList">
158
+ <?php $this->sortingChoice($this->data['sort_answer']); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  </ul>
160
  <input type="button" class="button-primary addAnswer" value="<?php _e('Add new answer', 'wp-pro-quiz'); ?>">
161
  </div>
162
  <div class="classic_answer">
163
+ <ul class="answerList">
164
+ <?php $this->singleMultiCoice($this->data['classic_answer']); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  </ul>
166
  <input type="button" class="button-primary addAnswer" value="<?php _e('Add new answer', 'wp-pro-quiz'); ?>">
167
  </div>
168
  <div class="matrix_sort_answer">
169
+ <p class="description">
170
  <?php _e('In this mode, not a list have to be sorted, but elements must be assigned to matching criterion.', 'wp-pro-quiz'); ?>
171
  </p>
172
+ <p class="description">
173
+ <?php _e('You can create sort elements with empty criteria, which can\'t be assigned by user.', 'wp-pro-quiz'); ?>
174
+ </p>
175
+ <ul class="answerList">
176
+ <?php $this->matrixSortingChoice($this->data['matrix_sort_answer']); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
  </ul>
178
  <input type="button" class="button-primary addAnswer" value="<?php _e('Add new answer', 'wp-pro-quiz'); ?>">
179
  </div>
180
  <div class="cloze_answer">
181
+ <?php $this->clozeChoice($this->data['cloze_answer']); ?>
 
 
 
 
 
 
182
  </div>
183
  </div>
184
  </div>
189
 
190
  <?php
191
  }
192
+
193
+ private function singleMultiCoice($data) {
194
+ foreach($data as $d) {
195
+ ?>
196
+
197
+ <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; background-color: whiteSmoke;" id="TEST">
198
+ <table style="width: 100%;border: 1px solid #9E9E9E;border-collapse: collapse; margin-bottom: 20px;">
199
+ <thead>
200
+ <tr>
201
+ <th width="160px" style=" border-right: 1px solid #9E9E9E; padding: 5px; "><?php _e('Options', 'wp-pro-quiz'); ?></th>
202
+ <th style="padding: 5px;"><?php _e('Answer', 'wp-pro-quiz'); ?></th>
203
+ </tr>
204
+ </thead>
205
+ <tbody>
206
+ <tr>
207
+ <td style="border-right: 1px solid #9E9E9E; padding: 5px; vertical-align: top;">
208
+ <div>
209
+ <label>
210
+ <input type="checkbox" class="wpProQuiz_classCorrect wpProQuiz_checkbox" name="answerData[][correct]" value="1" <?php $this->checked($d->isCorrect()); ?>>
211
+ <?php _e('Correct', 'wp-pro-quiz'); ?>
212
+ </label>
213
+ </div>
214
+ <div style="padding-top: 5px;">
215
+ <label>
216
+ <input type="checkbox" class="wpProQuiz_checkbox" name="answerData[][html]" value="1" <?php $this->checked($d->isHtml()); ?>>
217
+ <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
218
+ </label>
219
+ </div>
220
+ <div style="padding-top: 5px;" class="wpProQuiz_answerPoints">
221
+ <label>
222
+ <input type="number" min="0" class="small-text wpProQuiz_points" name="answerData[][points]" value="<?php echo $d->getPoints(); ?>">
223
+ <?php _e('Points', 'wp-pro-quiz'); ?>
224
+ </label>
225
+ </div>
226
+ </td>
227
+ <td style="padding: 5px; vertical-align: top;">
228
+ <textarea rows="2" cols="50" class="large-text wpProQuiz_text" name="answerData[][answer]" style="resize:vertical;"><?php echo $d->getAnswer(); ?></textarea>
229
+ </td>
230
+ </tr>
231
+ </tbody>
232
+ </table>
233
+
234
+ <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
235
+ <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
236
+
237
+ </li>
238
+
239
+ <?php
240
+ }
241
+ }
242
+
243
+ private function matrixSortingChoice($data) {
244
+ foreach($data as $d) {
245
+ ?>
246
+ <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; background-color: whiteSmoke;">
247
+ <table style="width: 100%;border: 1px solid #9E9E9E;border-collapse: collapse; margin-bottom: 20px;">
248
+ <thead>
249
+ <tr>
250
+ <th width="130px" style=" border-right: 1px solid #9E9E9E; padding: 5px; "><?php _e('Options', 'wp-pro-quiz'); ?></th>
251
+ <th style=" border-right: 1px solid #9E9E9E; padding: 5px; "><?php _e('Criterion', 'wp-pro-quiz'); ?></th>
252
+ <th style="padding: 5px;"><?php _e('Sort elements', 'wp-pro-quiz'); ?></th>
253
+ </tr>
254
+ </thead>
255
+ <tbody>
256
+ <tr>
257
+ <td style="border-right: 1px solid #9E9E9E; padding: 5px; vertical-align: top;">
258
+ <label class="wpProQuiz_answerPoints">
259
+ <input type="number" min="0" class="small-text wpProQuiz_points" name="answerData[][points]" value="<?php echo $d->getPoints(); ?>">
260
+ <?php _e('Points', 'wp-pro-quiz'); ?>
261
+ </label>
262
+ </td>
263
+ <td style="border-right: 1px solid #9E9E9E; padding: 5px; vertical-align: top;">
264
+ <textarea rows="4" name="answerData[][answer]" class="wpProQuiz_text" style="width: 100%; resize:vertical;"><?php echo $d->getAnswer(); ?></textarea>
265
+ </td>
266
+ <td style="padding: 5px; vertical-align: top;">
267
+ <textarea rows="4" name="answerData[][sort_string]" class="wpProQuiz_text" style="width: 100%; resize:vertical;"><?php echo $d->getSortString(); ?></textarea>
268
+ </td>
269
+ </tr>
270
+ <tr>
271
+ <td style="border-right: 1px solid #9E9E9E; padding: 5px; vertical-align: top;"></td>
272
+ <td style="border-right: 1px solid #9E9E9E; padding: 5px; vertical-align: top;">
273
+ <label>
274
+ <input type="checkbox" class="wpProQuiz_checkbox" name="answerData[][html]" value="1" <?php $this->checked($d->isHtml()); ?>>
275
+ <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
276
+ </label>
277
+ </td>
278
+ <td style="padding: 5px; vertical-align: top;">
279
+ <label>
280
+ <input type="checkbox" class="wpProQuiz_checkbox" name="answerData[][sort_string_html]" value="1" <?php $this->checked($d->isSortStringHtml()); ?>>
281
+ <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
282
+ </label>
283
+ </td>
284
+ </tr>
285
+ </tbody>
286
+ </table>
287
+
288
+ <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
289
+ <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
290
+ </li>
291
+ <?php
292
+ }
293
+ }
294
+
295
+ private function sortingChoice($data) {
296
+ foreach($data as $d) {
297
+ ?>
298
+ <li style="border-bottom:1px dotted #ccc; padding-bottom: 5px; background-color: whiteSmoke;">
299
+ <table style="width: 100%;border: 1px solid #9E9E9E;border-collapse: collapse;margin-bottom: 20px;">
300
+ <thead>
301
+ <tr>
302
+ <th width="160px" style=" border-right: 1px solid #9E9E9E; padding: 5px; "><?php _e('Options', 'wp-pro-quiz'); ?></th>
303
+ <th style="padding: 5px;"><?php _e('Answer', 'wp-pro-quiz'); ?></th>
304
+ </tr>
305
+ </thead>
306
+ <tbody>
307
+ <tr>
308
+ <td style="border-right: 1px solid #9E9E9E; padding: 5px; vertical-align: top;">
309
+ <div>
310
+ <label>
311
+ <input type="checkbox" class="wpProQuiz_checkbox" name="answerData[][html]" value="1" <?php $this->checked($d->isHtml()); ?>>
312
+ <?php _e('Allow HTML', 'wp-pro-quiz'); ?>
313
+ </label>
314
+ </div>
315
+ <div style="padding-top: 5px;" class="wpProQuiz_answerPoints">
316
+ <label>
317
+ <input type="number" min="0" class="small-text wpProQuiz_points" name="answerData[][points]" value="<?php echo $d->getPoints(); ?>">
318
+ <?php _e('Points', 'wp-pro-quiz'); ?>
319
+ </label>
320
+ </div>
321
+ </td>
322
+ <td style="padding: 5px; vertical-align: top;">
323
+ <textarea rows="2" cols="100" class="large-text wpProQuiz_text" name="answerData[][answer]" style="resize:vertical;"><?php echo $d->getAnswer(); ?></textarea>
324
+ </td>
325
+ </tr>
326
+ </tbody>
327
+ </table>
328
+
329
+ <input type="button" name="submit" class="button-primary deleteAnswer" value="<?php _e('Delete answer', 'wp-pro-quiz'); ?>">
330
+ <a href="#" class="button-secondary wpProQuiz_move" style="cursor: move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
331
+ </li>
332
+ <?php
333
+ }
334
+ }
335
+
336
+ private function freeChoice($data) {
337
+ $single = $data[0];
338
+ ?>
339
+ <div class="answerList">
340
+ <p class="description">
341
+ <?php _e('correct answers (one per line) (answers will be converted to lower case)', 'wp-pro-quiz'); ?>
342
+ </p>
343
+ <p style="border-bottom:1px dotted #ccc;">
344
+ <textarea rows="6" cols="100" class="large-text" name="answerData[][answer]"><?php echo $single->getAnswer(); ?></textarea>
345
+ </p>
346
+ </div>
347
+ <?php
348
+ }
349
+
350
+ private function clozeChoice($data) {
351
+ $single = $data[0];
352
+ ?>
353
+ <p class="description">
354
+ <?php _e('Enclose the searched words with { } e.g. "I {play} soccer". Capital and small letters will be ignored.', 'wp-pro-quiz'); ?>
355
+ </p>
356
+ <p class="description" style="margin-top: 10px;">
357
+ <?php _e('If mode "Different points for every answer" is activated, you can assign points with |POINTS. Otherwise 1 point will be awarded for every answer.', 'wp-pro-quiz'); ?>
358
+ </p>
359
+ <p class="description">
360
+ <?php _e('e.g. "I {play} soccer, with a {ball|3}" - "play" gives 1 point and "ball" 3 points.', 'wp-pro-quiz'); ?>
361
+ </p>
362
+ <?php
363
+ wp_editor($single->getAnswer(), 'cloze', array('textarea_rows' => 10, 'textarea_name' => 'answerData[cloze][answer]'));
364
+ ?>
365
+ <?php
366
+ }
367
  }
lib/view/WpProQuiz_View_QuestionOverall.php CHANGED
@@ -27,30 +27,45 @@ class WpProQuiz_View_QuestionOverall extends WpProQuiz_View_View {
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>
@@ -58,7 +73,6 @@ class WpProQuiz_View_QuestionOverall extends WpProQuiz_View_View {
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>
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
  </tr>
31
  </thead>
32
  <tbody>
33
  <?php
34
  $index = 1;
35
  $points = 0;
36
+
37
+ if(count($this->question)) {
38
+
39
  foreach ($this->question as $question) {
40
  $points += $question->getPoints();
41
+
42
  ?>
43
  <tr id="wpProQuiz_questionId_<?php echo $question->getId(); ?>">
44
  <th><?php echo $index++; ?></th>
45
+ <td>
46
+ <strong><?php echo $question->getTitle(); ?></strong>
47
+ <div class="row-actions">
48
+ <?php if(current_user_can('wpProQuiz_edit_quiz')) { ?>
49
+ <span>
50
+ <a 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> |
51
+ </span>
52
+ <?php } if(current_user_can('wpProQuiz_delete_quiz')) { ?>
53
+ <span>
54
+ <a style="color: red;" class="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> |
55
+ </span>
56
+ <?php } if(current_user_can('wpProQuiz_edit_quiz')) { ?>
57
+ <span>
58
+ <a class="wpProQuiz_move" href="#" style="cursor:move;"><?php _e('Move', 'wp-pro-quiz'); ?></a>
59
+ </span>
60
+ <?php } ?>
61
+ </div>
62
+ </td>
63
+ <td><?php echo $question->getPoints(); ?></td>
64
  </tr>
65
+ <?php } } else { ?>
66
+ <tr>
67
+ <td colspan="3" style="text-align: center; font-weight: bold; padding: 10px;"><?php _e('No data available', 'wp-pro-quiz'); ?></td>
68
+ </tr>
69
  <?php } ?>
70
  </tbody>
71
  <tfoot>
73
  <th></th>
74
  <th style="font-weight: bold;"><?php _e('Total', 'wp-pro-quiz'); ?></th>
75
  <th style="font-weight: bold;"><?php echo $points; ?></th>
 
76
  </tr>
77
  </tfoot>
78
  </table>
lib/view/WpProQuiz_View_QuizEdit.php CHANGED
@@ -137,7 +137,7 @@ class WpProQuiz_View_QuizEdit extends WpProQuiz_View_View {
137
  <span><?php _e('Time limit', 'wp-pro-quiz'); ?></span>
138
  </legend>
139
  <label for="time_limit">
140
- <input type="text" id="time_limit" value="<?php echo $this->quiz->getTimeLimit(); ?>" name="timeLimit"> <?php _e('Seconds', 'wp-pro-quiz'); ?>
141
  </label>
142
  <p class="description">
143
  <?php _e('0 = no limit', 'wp-pro-quiz'); ?>
@@ -428,10 +428,258 @@ class WpProQuiz_View_QuizEdit extends WpProQuiz_View_View {
428
  </fieldset>
429
  </td>
430
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
431
  </tbody>
432
  </table>
433
  </div>
434
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
435
  <div class="postbox" style="display: none;">
436
  <h3 class="hndle"><?php //_e('Frage-Pool Modus', 'wp-pro-quiz'); ?> <?php _e('(optional)', 'wp-pro-quiz'); ?></h3>
437
  <div class="inside">
137
  <span><?php _e('Time limit', 'wp-pro-quiz'); ?></span>
138
  </legend>
139
  <label for="time_limit">
140
+ <input type="number" min="0" class="small-text" id="time_limit" value="<?php echo $this->quiz->getTimeLimit(); ?>" name="timeLimit"> <?php _e('Seconds', 'wp-pro-quiz'); ?>
141
  </label>
142
  <p class="description">
143
  <?php _e('0 = no limit', 'wp-pro-quiz'); ?>
428
  </fieldset>
429
  </td>
430
  </tr>
431
+ <tr>
432
+ <th scope="row">
433
+ <?php _e('Show average points', 'wp-pro-quiz'); ?>
434
+ </th>
435
+ <td>
436
+ <fieldset>
437
+ <legend class="screen-reader-text">
438
+ <span><?php _e('Show average points', 'wp-pro-quiz'); ?></span>
439
+ </legend>
440
+ <label>
441
+ <input type="checkbox" value="1" name="showAverageResult" <?php $this->checked($this->quiz->isShowAverageResult()); ?>>
442
+ <?php _e('Activate', 'wp-pro-quiz'); ?>
443
+ </label>
444
+ <p class="description">
445
+ <?php _e('Statistics-function must be enabled.', 'wp-pro-quiz'); ?>
446
+ </p>
447
+ <div class="wpProQuiz_demoBox">
448
+ <a href="#"><?php _e('Demo', 'wp-pro-quiz'); ?></a>
449
+ <div style="z-index: 9999999; position: absolute; background-color: #E9E9E9; padding: 10px; box-shadow: 0px 0px 10px 4px rgb(44, 44, 44); display: none; ">
450
+ <img alt="" src="<?php echo WPPROQUIZ_URL.'/img/averagePoints.png'; ?> ">
451
+ </div>
452
+ </div>
453
+ </fieldset>
454
+ </td>
455
+ </tr>
456
+ <tr>
457
+ <th scope="row">
458
+ <?php _e('Prerequisites', 'wp-pro-quiz'); ?>
459
+ </th>
460
+ <td>
461
+ <fieldset>
462
+ <legend class="screen-reader-text">
463
+ <span><?php _e('Prerequisites', 'wp-pro-quiz'); ?></span>
464
+ </legend>
465
+ <label>
466
+ <input type="checkbox" value="1" name="prerequisite" <?php $this->checked($this->quiz->isPrerequisite()); ?>>
467
+ <?php _e('Activate', 'wp-pro-quiz'); ?>
468
+ </label>
469
+ <p class="description">
470
+ <?php _e('If you enable this option, you can choose quiz, which user have to finish before he can start this quiz.', 'wp-pro-quiz'); ?>
471
+ </p>
472
+ <p class="description">
473
+ <?php _e('In all selected quizzes statistic function have to be active. If it is not it will be activated automatically.', 'wp-pro-quiz'); ?>
474
+ </p>
475
+ <div id="prerequisiteBox" style="display: none;">
476
+ <table>
477
+ <tr>
478
+ <th style="width: 120px; padding: 0;"><?php _e('Quiz', 'wp-pro-quiz'); ?></th>
479
+ <th style="padding: 0; width: 50px;"></th>
480
+ <th style="padding: 0; width: 400px;"><?php _e('Prerequisites (This quiz have to be finished)', 'wp-pro-quiz'); ?></th>
481
+ </tr>
482
+ <tr>
483
+ <td style="padding: 0;">
484
+ <select multiple="multiple" size="8" style="width: 200px;" name="quizList">
485
+ <?php foreach($this->quizList as $list) {
486
+ if(in_array($list['id'], $this->prerequisiteQuizList))
487
+ continue;
488
+
489
+ echo '<option value="'.$list['id'].'">'.$list['name'].'</option>';
490
+ } ?>
491
+ </select>
492
+ </td>
493
+ <td style="padding: 0; text-align: center;">
494
+ <div>
495
+ <input type="button" id="btnPrerequisiteAdd" value="&gt;&gt;">
496
+ </div>
497
+ <div>
498
+ <input type="button" id="btnPrerequisiteDelete" value="&lt;&lt;">
499
+ </div>
500
+ </td>
501
+ <td style="padding: 0;">
502
+ <select multiple="multiple" size="8" style="width: 200px" name="prerequisiteList[]">
503
+ <?php foreach($this->quizList as $list) {
504
+ if(!in_array($list['id'], $this->prerequisiteQuizList))
505
+ continue;
506
+
507
+ echo '<option value="'.$list['id'].'">'.$list['name'].'</option>';
508
+ } ?>
509
+ </select>
510
+ </td>
511
+ </tr>
512
+ </table>
513
+ </div>
514
+ </fieldset>
515
+ </td>
516
+ </tr>
517
  </tbody>
518
  </table>
519
  </div>
520
  </div>
521
+ <div class="postbox">
522
+ <h3 class="hndle"><?php _e('Leaderboard', 'wp-pro-quiz'); ?> <?php _e('(optional)', 'wp-pro-quiz'); ?></h3>
523
+ <div class="inside">
524
+ <p>
525
+ <?php _e('The leaderboard allows users to enter results in public list and to share the result this way.', 'wp-pro-quiz'); ?>
526
+ </p>
527
+ <p>
528
+ <?php _e('The leaderboard works independent from internal statistics function.', 'wp-pro-quiz'); ?>
529
+ </p>
530
+ <table class="form-table">
531
+ <tbody id="toplistBox">
532
+ <tr>
533
+ <th scope="row">
534
+ <?php _e('Leaderboard', 'wp-pro-quiz'); ?>
535
+ </th>
536
+ <td>
537
+ <label>
538
+ <input type="checkbox" name="toplistActivated" value="1" <?php echo $this->quiz->isToplistActivated() ? 'checked="checked"' : ''; ?>>
539
+ <?php _e('Activate', 'wp-pro-quiz'); ?>
540
+ </label>
541
+ </td>
542
+ </tr>
543
+ <tr>
544
+ <th scope="row">
545
+ <?php _e('Who can sign up to the list', 'wp-pro-quiz'); ?>
546
+ </th>
547
+ <td>
548
+ <label>
549
+ <input name="toplistDataAddPermissions" type="radio" value="1" <?php echo $this->quiz->getToplistDataAddPermissions() == 1 ? 'checked="checked"' : ''; ?>>
550
+ <?php _e('all users', 'wp-pro-quiz'); ?>
551
+ </label>
552
+ <label>
553
+ <input name="toplistDataAddPermissions" type="radio" value="2" <?php echo $this->quiz->getToplistDataAddPermissions() == 2 ? 'checked="checked"' : ''; ?>>
554
+ <?php _e('registered useres only', 'wp-pro-quiz'); ?>
555
+ </label>
556
+ <label>
557
+ <input name="toplistDataAddPermissions" type="radio" value="3" <?php echo $this->quiz->getToplistDataAddPermissions() == 3 ? 'checked="checked"' : ''; ?>>
558
+ <?php _e('anonymous users only', 'wp-pro-quiz'); ?>
559
+ </label>
560
+ <p class="description">
561
+ <?php _e('Not registered users have to enter name and e-mail (e-mail won\'t be displayed)', 'wp-pro-quiz'); ?>
562
+ </p>
563
+ </td>
564
+ </tr>
565
+ <tr>
566
+ <th scope="row">
567
+ <?php _e('display captcha', 'wp-pro-quiz'); ?>
568
+ </th>
569
+ <td>
570
+ <label>
571
+ <input type="checkbox" name="toplistDataCaptcha" value="1" <?php echo $this->quiz->isToplistDataCaptcha() ? 'checked="checked"' : ''; ?> <?php echo $this->captchaIsInstalled ? '' : 'disabled="disabled"'; ?>>
572
+ <?php _e('Activate', 'wp-pro-quiz'); ?>
573
+ </label>
574
+ <p class="description">
575
+ <?php _e('If you enable this option, additional captcha will be displayed for users who are not registered.', 'wp-pro-quiz'); ?>
576
+ </p>
577
+ <p class="description" style="color: red;">
578
+ <?php _e('This option requires additional plugin:', 'wp-pro-quiz'); ?>
579
+ <a href="http://wordpress.org/extend/plugins/really-simple-captcha/" target="_blank">Really Simple CAPTCHA</a>
580
+ </p>
581
+ <?php if($this->captchaIsInstalled) { ?>
582
+ <p class="description" style="color: green;">
583
+ <?php _e('Plugin has been detected.', 'wp-pro-quiz'); ?>
584
+ </p>
585
+ <?php } else { ?>
586
+ <p class="description" style="color: red;">
587
+ <?php _e('Plugin is not installed.', 'wp-pro-quiz'); ?>
588
+ </p>
589
+ <?php } ?>
590
+
591
+ </td>
592
+ </tr>
593
+ <tr>
594
+ <th scope="row">
595
+ <?php _e('Sort list by', 'wp-pro-quiz'); ?>
596
+ </th>
597
+ <td>
598
+ <label>
599
+ <input name="toplistDataSort" type="radio" value="1" <?php echo ($this->quiz->getToplistDataSort() == 1) ? 'checked="checked"' : ''; ?>>
600
+ <?php _e('best user', 'wp-pro-quiz'); ?>
601
+ </label>
602
+ <label>
603
+ <input name="toplistDataSort" type="radio" value="2" <?php echo ($this->quiz->getToplistDataSort() == 2) ? 'checked="checked"' : ''; ?>>
604
+ <?php _e('newest entry', 'wp-pro-quiz'); ?>
605
+ </label>
606
+ <label>
607
+ <input name="toplistDataSort" type="radio" value="3" <?php echo ($this->quiz->getToplistDataSort() == 3) ? 'checked="checked"' : ''; ?>>
608
+ <?php _e('oldest entry', 'wp-pro-quiz'); ?>
609
+ </label>
610
+ </td>
611
+ </tr>
612
+ <tr>
613
+ <th scope="row">
614
+ <?php _e('Users can apply multiple times', 'wp-pro-quiz'); ?>
615
+ </th>
616
+ <td>
617
+ <div>
618
+ <label>
619
+ <input type="checkbox" name="toplistDataAddMultiple" value="1" <?php echo $this->quiz->isToplistDataAddMultiple() ? 'checked="checked"' : ''; ?>>
620
+ <?php _e('Activate', 'wp-pro-quiz'); ?>
621
+ </label>
622
+ </div>
623
+ <div id="toplistDataAddBlockBox" style="display: none;">
624
+ <label>
625
+ <?php _e('User can apply after:', 'wp-pro-quiz'); ?>
626
+ <input type="number" min="0" class="small-text" name="toplistDataAddBlock" value="<?php echo $this->quiz->getToplistDataAddBlock(); ?>">
627
+ <?php _e('minute', 'wp-pro-quiz'); ?>
628
+ </label>
629
+ </div>
630
+ </td>
631
+ </tr>
632
+ <tr>
633
+ <th scope="row">
634
+ <?php _e('How many entries should be displayed', 'wp-pro-quiz'); ?>
635
+ </th>
636
+ <td>
637
+ <div>
638
+ <label>
639
+ <input type="number" min="0" class="small-text" name="toplistDataShowLimit" value="<?php echo $this->quiz->getToplistDataShowLimit(); ?>">
640
+ <?php _e('Entries', 'wp-pro-quiz'); ?>
641
+ </label>
642
+ </div>
643
+ </td>
644
+ </tr>
645
+ <tr>
646
+ <th scope="row">
647
+ <?php _e('Automatically display leaderboard in quiz result', 'wp-pro-quiz'); ?>
648
+ </th>
649
+ <td>
650
+ <div style="margin-top: 6px;">
651
+ <?php _e('Where should leaderboard be displayed:', 'wp-pro-quiz'); ?>
652
+ <label style="margin-right: 5px; margin-left: 5px;">
653
+ <input type="radio" name="toplistDataShowIn" value="0" <?php echo ($this->quiz->getToplistDataShowIn() == 0) ? 'checked="checked"' : ''; ?>>
654
+ <?php _e('don\'t display', 'wp-pro-quiz'); ?>
655
+ </label>
656
+ <label>
657
+ <input type="radio" name="toplistDataShowIn" value="1" <?php echo ($this->quiz->getToplistDataShowIn() == 1) ? 'checked="checked"' : ''; ?>>
658
+ <?php _e('below the "result text"', 'wp-pro-quiz'); ?>
659
+ </label>
660
+ <span class="wpProQuiz_demoBox" style="margin-right: 5px;">
661
+ <a href="#"><?php _e('Demo', 'wp-pro-quiz'); ?></a>
662
+ <span style="z-index: 9999999; position: absolute; background-color: #E9E9E9; padding: 10px; box-shadow: 0px 0px 10px 4px rgb(44, 44, 44); display: none; ">
663
+ <img alt="" src="<?php echo WPPROQUIZ_URL.'/img/leaderboardInResultText.png'; ?> ">
664
+ </span>
665
+ </span>
666
+ <label>
667
+ <input type="radio" name="toplistDataShowIn" value="2" <?php echo ($this->quiz->getToplistDataShowIn() == 2) ? 'checked="checked"' : ''; ?>>
668
+ <?php _e('in a button', 'wp-pro-quiz'); ?>
669
+ </label>
670
+ <span class="wpProQuiz_demoBox">
671
+ <a href="#"><?php _e('Demo', 'wp-pro-quiz'); ?></a>
672
+ <span style="z-index: 9999999; position: absolute; background-color: #E9E9E9; padding: 10px; box-shadow: 0px 0px 10px 4px rgb(44, 44, 44); display: none; ">
673
+ <img alt="" src="<?php echo WPPROQUIZ_URL.'/img/leaderboardInButton.png'; ?> ">
674
+ </span>
675
+ </span>
676
+ </div>
677
+ </td>
678
+ </tr>
679
+ </tbody>
680
+ </table>
681
+ </div>
682
+ </div>
683
  <div class="postbox" style="display: none;">
684
  <h3 class="hndle"><?php //_e('Frage-Pool Modus', 'wp-pro-quiz'); ?> <?php _e('(optional)', 'wp-pro-quiz'); ?></h3>
685
  <div class="inside">
lib/view/WpProQuiz_View_QuizOverall.php CHANGED
@@ -45,41 +45,70 @@ class WpProQuiz_View_QuizOverall extends WpProQuiz_View_View {
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>
53
  <tr>
54
- <th scope="col" class="wpProQuiz_exportCheck"><input type="checkbox" name="exportItemsAll" value="0"></th>
55
- <th scope="col"><?php _e('ID', 'wp-pro-quiz'); ?></th>
56
- <th scope="col"><?php _e('Shortcode', 'wp-pro-quiz'); ?></th>
57
  <th scope="col"><?php _e('Name', 'wp-pro-quiz'); ?></th>
58
- <th scope="col"><?php _e('Action', 'wp-pro-quiz'); ?></th>
 
59
  </tr>
60
  </thead>
61
  <tbody>
62
  <?php
 
63
  foreach ($this->quiz as $quiz) {
64
  ?>
65
  <tr>
66
  <th class="wpProQuiz_exportCheck"><input type="checkbox" name="exportItems" value="<?php echo $quiz->getId(); ?>"></th>
67
- <th><?php echo $quiz->getId(); ?></th>
68
- <th>[WpProQuiz <?php echo $quiz->getId(); ?>]</th>
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>
@@ -89,7 +118,7 @@ class WpProQuiz_View_QuizOverall extends WpProQuiz_View_View {
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>
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; float: left;" href="admin.php?page=wpProQuiz&module=globalSettings"><?php _e('Global settings', 'wp-pro-quiz'); ?></a>
49
  <?php } ?>
50
+ <a class="button-primary" style="font-weight: bold; float: right;" href="admin.php?page=wpProQuiz&module=wpq_support"><?php _e('Support WP-Pro-Quiz', 'wp-pro-quiz'); ?></a>
51
+ <div style="clear: both;"></div>
52
  </div>
53
  <table class="wp-list-table widefat">
54
  <thead>
55
  <tr>
56
+ <th scope="col" width="30px" class="wpProQuiz_exportCheck"><input type="checkbox" name="exportItemsAll" value="0"></th>
57
+ <th scope="col" width="40px"><?php _e('ID', 'wp-pro-quiz'); ?></th>
 
58
  <th scope="col"><?php _e('Name', 'wp-pro-quiz'); ?></th>
59
+ <th scope="col" width="180px"><?php _e('Shortcode', 'wp-pro-quiz'); ?></th>
60
+ <th scope="col" width="180px"><?php _e('Shortcode-Leaderboard', 'wp-pro-quiz'); ?></th>
61
  </tr>
62
  </thead>
63
  <tbody>
64
  <?php
65
+ if(count($this->quiz)) {
66
  foreach ($this->quiz as $quiz) {
67
  ?>
68
  <tr>
69
  <th class="wpProQuiz_exportCheck"><input type="checkbox" name="exportItems" value="<?php echo $quiz->getId(); ?>"></th>
70
+ <td><?php echo $quiz->getId(); ?></td>
71
+ <td class="wpProQuiz_quizName">
72
+ <strong><?php echo $quiz->getName(); ?></strong>
73
+ <div class="row-actions">
74
+ <span>
75
+ <a href="admin.php?page=wpProQuiz&module=question&quiz_id=<?php echo $quiz->getId(); ?>"><?php _e('Questions', 'wp-pro-quiz'); ?></a> |
76
+ </span>
77
+
78
+ <?php if(current_user_can('wpProQuiz_edit_quiz')) { ?>
79
+ <span>
80
+ <a href="admin.php?page=wpProQuiz&action=edit&id=<?php echo $quiz->getId(); ?>"><?php _e('Edit', 'wp-pro-quiz'); ?></a> |
81
+ </span>
82
+ <?php } if(current_user_can('wpProQuiz_delete_quiz')) { ?>
83
+ <span>
84
+ <a style="color: red;" class="wpProQuiz_delete" href="admin.php?page=wpProQuiz&action=delete&id=<?php echo $quiz->getId(); ?>"><?php _e('Delete', 'wp-pro-quiz'); ?></a> |
85
+ </span>
86
+ <?php } ?>
87
+ <span>
88
+ <a class="wpProQuiz_prview" href="admin.php?page=wpProQuiz&module=preview&id=<?php echo $quiz->getId(); ?>"><?php _e('Preview', 'wp-pro-quiz'); ?></a> |
89
+ </span>
90
+ <?php if(current_user_can('wpProQuiz_show_statistics')) { ?>
91
+ <span>
92
+ <a href="admin.php?page=wpProQuiz&module=statistics&id=<?php echo $quiz->getId(); ?>"><?php _e('Statistics', 'wp-pro-quiz'); ?></a> |
93
+ </span>
94
+ <?php } if(current_user_can('wpProQuiz_toplist_edit')) { ?>
95
+ <span>
96
+ <a href="admin.php?page=wpProQuiz&module=toplist&id=<?php echo $quiz->getId(); ?>"><?php _e('Leaderboard', 'wp-pro-quiz'); ?></a>
97
+ </span>
98
+ <?php } ?>
99
+ </div>
100
+ </td>
101
+ <td>[WpProQuiz <?php echo $quiz->getId(); ?>]</td>
102
+ <td>
103
+ <?php if($quiz->isToplistActivated()) { ?>
104
+ [WpProQuiz_toplist <?php echo $quiz->getId(); ?>]
105
  <?php } ?>
106
+
107
+ </td>
108
+ </tr>
109
+ <?php } } else { ?>
110
+ <tr>
111
+ <td colspan="5" style="text-align: center; font-weight: bold; padding: 10px;"><?php _e('No data available', 'wp-pro-quiz'); ?></td>
112
  </tr>
113
  <?php } ?>
114
  </tbody>
118
  <a class="button-secondary" href="admin.php?page=wpProQuiz&action=add"><?php echo __('Add quiz', 'wp-pro-quiz'); ?></a>
119
  <?php } if(current_user_can('wpProQuiz_import')) { ?>
120
  <a class="button-secondary wpProQuiz_import" href="#"><?php echo __('Import', 'wp-pro-quiz'); ?></a>
121
+ <?php } if(current_user_can('wpProQuiz_export') && count($this->quiz)) { ?>
122
  <a class="button-secondary wpProQuiz_export" href="#"><?php echo __('Export', 'wp-pro-quiz'); ?></a>
123
  <?php } ?>
124
  </p>
lib/view/WpProQuiz_View_Statistics.php CHANGED
@@ -73,8 +73,8 @@ class WpProQuiz_View_Statistics extends WpProQuiz_View_View {
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,7 +86,7 @@ class WpProQuiz_View_Statistics extends WpProQuiz_View_View {
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>
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_cPoints"></th>
77
+ <th></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_cPoints"></th>
90
  <th class="wpProQuiz_cResult" style="font-weight: bold;"></th>
91
  </tr>
92
  </tfoot>
lib/view/WpProQuiz_View_View.php CHANGED
@@ -22,4 +22,15 @@ class WpProQuiz_View_View {
22
  public function redirect($url) {
23
 
24
  }
 
 
 
 
 
 
 
 
 
 
 
25
  }
22
  public function redirect($url) {
23
 
24
  }
25
+
26
+ public function checked($v, $check = true, $echo = true) {
27
+
28
+ $r = ($v == $check) ? 'checked="checked"' : '';
29
+
30
+ if($echo) {
31
+ echo $r;
32
+ } else {
33
+ return $r;
34
+ }
35
+ }
36
  }
lib/view/WpProQuiz_View_WpqSupport.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WpProQuiz_View_WpqSupport extends WpProQuiz_View_View {
3
+
4
+ public function show() {
5
+ ?>
6
+
7
+ <div class="wrap">
8
+ <h2><?php _e('Support WP-Pro-Quiz', 'wp-pro-quiz'); ?></h2>
9
+
10
+ <h3><?php _e('Donate', 'wp-pro-quiz'); ?></h3>
11
+
12
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
13
+ <input type="hidden" name="cmd" value="_s-xclick">
14
+ <input type="hidden" name="hosted_button_id" value="N9B7S4FT8CE2N">
15
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
16
+ <img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1">
17
+ </form>
18
+
19
+ <p>
20
+ <?php _e('WP-Pro-Quiz is small but nice free quiz plugin for WordPress.', 'wp-pro-quiz'); ?> <br>
21
+ <?php _e('I try to implement all wishes as fast as possible and help with problems.', 'wp-pro-quiz'); ?> <br>
22
+ <?php _e('Your donations can help to ensure that the project continues to remain free.', 'wp-pro-quiz'); ?>
23
+ </p>
24
+
25
+ <h3 style="margin-top: 40px;"><?php _e('Translate WP-Pro-Quiz', 'wp-pro-quiz'); ?></h3>
26
+
27
+ <h4><?php _e('You need:', 'wp-pro-quiz'); ?></h4>
28
+ <ul style="list-style: disc; padding-left: 10px; list-style-position: inside;">
29
+ <li><a href="http://www.poedit.net/" target="_blank">PoEdit</a></li>
30
+ <li><a href="http://plugins.svn.wordpress.org/wp-pro-quiz/trunk/languages/wp-pro-quiz.pot" target="_blank"><?php _e('Latest POT file', 'wp-pro-quiz'); ?></a></li>
31
+ </ul>
32
+
33
+ <h4>PoEdit:</h4>
34
+ <ul style="list-style: disc; padding-left: 10px; list-style-position: inside;">
35
+ <li><?php _e('Open PoEdit', 'wp-pro-quiz'); ?></li>
36
+ <li><?php _e('File - New catalogue from POT file...', 'wp-pro-quiz'); ?></li>
37
+ <li><?php _e('Choose wp-pro-quiz.pot', 'wp-pro-quiz'); ?></li>
38
+ <li><?php _e('Set "Translation properties"', 'wp-pro-quiz'); ?></li>
39
+ <li><?php _e('Save PO file - with the name "wp-pro-qioz-de_DE.po"', 'wp-pro-quiz'); ?>
40
+ <ul style="list-style: disc; padding-left: 10px; list-style-position: inside;">
41
+ <li><?php _e('replace de_DE with your countries short code (e.g. en_US, nl_NL...)', 'wp-pro-quiz'); ?></li>
42
+ </ul>
43
+ </li>
44
+ <li><?php _e('Translate', 'wp-pro-quiz'); ?></li>
45
+ <li><?php _e('Save', 'wp-pro-quiz'); ?></li>
46
+ <li><?php _e('Upload generated *.mo file to your server, to /wp-content/plugins/wp-pro-quiz/languages', 'wp-pro-quiz'); ?></li>
47
+ <li><?php _e('Finished', 'wp-pro-quiz'); ?></li>
48
+ </ul>
49
+
50
+ <h4><?php _e('Please note', 'wp-pro-quiz'); ?>:</h4>
51
+ <p><?php _e('You can translate WP-Pro-Quiz from existing to existing language (e.g. english to english) e.g. to rename buttons.', 'wp-pro-quiz'); ?></p>
52
+
53
+ </div>
54
+
55
+ <?php
56
+ }
57
+ }
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
  === Wp-Pro-Quiz ===
2
  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.18
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -28,9 +29,12 @@ A powerful and beautiful quiz plugin for WordPress.
28
  * Back-Button (optional)
29
  * Correct / incorrect response message for all questions (optional)
30
  * Different valency for every question (optional)
 
31
  * Result text with gradations (optional)
32
  * Preview-function
33
  * Statistics
 
 
34
  * Hints
35
  * Import / Export function
36
  * Many configuration options
@@ -51,7 +55,7 @@ http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "D
51
 
52
  = Special =
53
  * Support for "User Role Editor" etc.
54
- * Support for BodyPress achievements 2.x.x
55
 
56
  = Support =
57
  * English: http://wordpress.org/support/plugin/wp-pro-quiz
@@ -69,11 +73,13 @@ http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "D
69
  3. Quiz demo - Multimedia
70
  4. Quiz demo - Results
71
  5. Quiz demo2 - Time limit and back button
72
- 6. Adminmenu - Quiz overview
73
- 7. Adminmenu - Create quiz
74
- 8. Adminmenu - Quiz question overview
75
- 9. Adminmenu - Create question
76
- 10. Adminmenu - Question statistics
 
 
77
 
78
  == Changelog ==
79
 
@@ -173,4 +179,16 @@ http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "D
173
  * "0" can now be used as a answer
174
  * Database: "sort" change to SMALLINT
175
  * Updated Norwegian translation
176
- * Updated Russian translation
 
 
 
 
 
 
 
 
 
 
 
 
1
  === Wp-Pro-Quiz ===
2
  Contributors: xeno010
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=N9B7S4FT8CE2N
4
  Tags: quiz, test, answer, question, learning
5
  Requires at least: 3.3
6
+ Tested up to: 3.5.1
7
+ Stable tag: 0.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
29
  * Back-Button (optional)
30
  * Correct / incorrect response message for all questions (optional)
31
  * Different valency for every question (optional)
32
+ * Different points for each answer
33
  * Result text with gradations (optional)
34
  * Preview-function
35
  * Statistics
36
+ * Leaderboard
37
+ * Quiz requirements
38
  * Hints
39
  * Import / Export function
40
  * Many configuration options
55
 
56
  = Special =
57
  * Support for "User Role Editor" etc.
58
+ * Support for BuddyPress achievements 2.x.x
59
 
60
  = Support =
61
  * English: http://wordpress.org/support/plugin/wp-pro-quiz
73
  3. Quiz demo - Multimedia
74
  4. Quiz demo - Results
75
  5. Quiz demo2 - Time limit and back button
76
+ 6. Quiz demo - Leadboard
77
+ 7. Quiz demo - Average score
78
+ 8. Adminmenu - Quiz overview
79
+ 9. Adminmenu - Create quiz
80
+ 10. Adminmenu - Quiz question overview
81
+ 11. Adminmenu - Create question
82
+ 12. Adminmenu - Question statistics
83
 
84
  == Changelog ==
85
 
179
  * "0" can now be used as a answer
180
  * Database: "sort" change to SMALLINT
181
  * Updated Norwegian translation
182
+ * Updated Russian translation
183
+
184
+ = 0.19 =
185
+ * Leaderboard added
186
+ * Quiz requirements added
187
+ * Different points for each answer
188
+ * "Matrix Sort" sort elements can now be created without criteria
189
+ * Front-End javascript completely rewritten
190
+ * Admin javascript revised
191
+ * Average score can now be displayed in quiz
192
+ * Cloze: different points can be assigned for every gap
193
+ * Very many internal changes
194
+ * several bugfixes
screenshot-10.png CHANGED
Binary file
screenshot-11.png ADDED
Binary file
screenshot-12.png ADDED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-6.png CHANGED
Binary file
screenshot-7.png CHANGED
Binary file
screenshot-8.png CHANGED
Binary file
screenshot-9.png CHANGED
Binary file
uninstall.php CHANGED
@@ -14,4 +14,5 @@ delete_option('wpProQuiz_version');
14
  delete_option('wpProQuiz_addRawShortcode');
15
  delete_option('wpProQuiz_jsLoadInHead');
16
  delete_option('wpProQuiz_touchLibraryDeactivate');
17
- delete_option('wpProQuiz_corsActivated');
 
14
  delete_option('wpProQuiz_addRawShortcode');
15
  delete_option('wpProQuiz_jsLoadInHead');
16
  delete_option('wpProQuiz_touchLibraryDeactivate');
17
+ delete_option('wpProQuiz_corsActivated');
18
+ delete_option('wpProQuiz_toplistDataFormat');
wp-pro-quiz.php CHANGED
@@ -3,12 +3,12 @@
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.18
7
  Author: Julius Fischer
8
  Author URI: http://www.it-gecko.de
9
  */
10
 
11
- define('WPPROQUIZ_VERSION', '0.18');
12
 
13
  define('WPPROQUIZ_PATH', dirname(__FILE__));
14
  define('WPPROQUIZ_URL', plugins_url('', __FILE__));
@@ -16,6 +16,11 @@ 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'));
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.19
7
  Author: Julius Fischer
8
  Author URI: http://www.it-gecko.de
9
  */
10
 
11
+ define('WPPROQUIZ_VERSION', '0.19');
12
 
13
  define('WPPROQUIZ_PATH', dirname(__FILE__));
14
  define('WPPROQUIZ_URL', plugins_url('', __FILE__));
16
  define('WPPROQUIZ_PPATH', dirname(plugin_basename(__FILE__)));
17
  define('WPPROQUIZ_PLUGIN_PATH', WPPROQUIZ_PATH.'/plugin');
18
 
19
+ $uploadDir = wp_upload_dir();
20
+
21
+ define('WPPROQUIZ_CAPTCHA_DIR', $uploadDir['basedir'].'/wp_pro_quiz_captcha');
22
+ define('WPPROQUIZ_CAPTCHA_URL', $uploadDir['baseurl'].'/wp_pro_quiz_captcha');
23
+
24
  spl_autoload_register('wpProQuiz_autoload');
25
 
26
  register_activation_hook(__FILE__, array('WpProQuiz_Helper_Upgrade', 'upgrade'));