diff --git a/.tx/config b/.tx/config new file mode 100644 index 00000000..a8d27ab6 --- /dev/null +++ b/.tx/config @@ -0,0 +1,9 @@ +[main] +host = https://www.transifex.com + +[wp-testing.wp-testing] +file_filter = languages/wp-testing-.po +source_file = languages/wp-testing.pot +source_lang = en +type = PO +minimum_perc = 80 diff --git a/CHANGELOG.md b/CHANGELOG.md index 5df811bb..0d078ba7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ ## Changelog ## +## 0.5 ## +Localization and quick fill + +* Localize to six languages with help of [Transifiex](https://www.transifex.com/projects/p/wp-testing/) +* Add understandable labels for no-questions/no-answers and other no-something cases in test editor +* Quick fill questions from text +* Quick fill scores from questions separated by commas +* Update docs and add screenshots + + ### 0.4.2 ### Fix pages disapperance and form formatting diff --git a/README.md b/README.md index e9e72c20..a0ceb794 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ **Tags:** psychological, testing, test, quiz **Requires at least:** 3.2 **Tested up to:** 3.9 -**Stable tag:** 0.4.2 +**Stable tag:** 0.5 **License:** GPLv3 **License URI:** http://www.gnu.org/licenses/gpl-3.0.html @@ -15,17 +15,25 @@ Create psychological tests/quizes with scales connected with results through sim With the help of this plugin now you can create typical and advanced psychological tests (quizes, assessments). -Typical psychological test consists of questions and answers. A respondent answers all of the qoestions and gets results. This is how the box outside looks like. +Typical psychological test consists of **questions** and **answers**. A respondent answers all of the questions and gets **results**. This is how the box outside looks like. -Inside the box we also have scales each connected with the particular answer with scores and results, that are calculated with the help of simple formulas like: "extraversion > 50%". Where "extraversion" is a sum of respondent's scores from extraversion scale. We didn't invent anything new — all this has been already invented in 19th century. +Inside the box we also have **scales** each connected with the particular answer with **scores** and **results**, that are calculated with the help of **simple formulas** like: "extraversion > 50%". Where "extraversion" is a sum of respondent's scores from extraversion scale. We didn't invent anything new — all this has been already invented in 19th century. -Test answers, scales, results and categories are edited through wordpress standard editors, similar to categories editor. You can associate them in sidebar. Whether test questions, answers and formulas are edited with standard wordpress metaboxes, behind content. You can even reorder them if you like. At the top of content editor you have button for quick access to those metaboxes: Add New Questions, Edit Questions, Edit Formulas. +Test answers, scales, results and categories are edited through **wordpress standard editors**, similar to categories editor. You can associate them in sidebar. Whether test questions, answers and formulas are edited with standard wordpress metaboxes, behind content. You can even reorder them if you like. At the top of content editor you have **button for quick access** to those metaboxes: Add New Questions, Edit Questions and Scores, Edit Formulas. -As to formulas you can be sure — we have simple formula editor, that has buttons for each scale (with sum of it's scores) and allowed comparisions. +As to **formulas** you can be sure — we have simple formula editor, that has buttons for each scale (with sum of it's scores) and allowed comparisions. + +Tests are treated for WordPress like posts — they appear on home page and inside their categories pages if selected. But if you don't want your test to appear on home page you can uncheck **"Publish on the home page"** in "Publish" metabox and this particular test will not appear on homepage. + +To minimize author's time we have **Quick Fill** for questions and scores. You can **quick fill questions from text** and they will fill appropriate fields. Same way you can **Quick Fill Scores** in many questions some answer+scale combination. + +Wp-testing localized in six languages: English, Russian (native speaker), German, French, Dutch and Swedish. English and Russian have good quality — others need review. You can easily add your language through excellent [Transifiex](https://www.transifex.com/projects/p/wp-testing/) service. **Translators** and *reviewers* are kindly welcome! + +**Quality** and **compatibility** are taken really seriously. Plugin tested on [37 combinations](https://travis-ci.org/garex/wp-testing) of WordPress (from 3.2 to 4.0) and PHP (from 5.2 to 5.5) plus one custom combination for old MySQL storage engine (MyISAM). So you can be sure, that it will just work, even if you don't have the latest WordPress or your hosting doesn't have the latest versions of PHP/MySQL. [Build status image](https://travis-ci.org/garex/wp-testing.svg?branch=develop) is available. [![Build Status](https://travis-ci.org/garex/wp-testing.svg?branch=develop)](https://travis-ci.org/garex/wp-testing) -ps: **If something broken or not works**, pls create new topic in "Support" tab here! +PS: **If something broken or doesn't work**, pls create new topic in ["Support" tab](https://wordpress.org/support/plugin/wp-testing)! ## Installation ## @@ -41,3 +49,20 @@ ps: **If something broken or not works**, pls create new topic in "Support" tab * WordPress version **3.2** or higher. * PHP version **5.2.4** or higher. * MySQL version **5.0** or higher. + +## Screenshots ## + +1. Test editing section with menu in admin +2. Test editing section. There are fast acces buttons like "add new questions" at the top of the page. The choise of answers and scales is available in the sidebar. +3. Here we can see "Edit Questions and Scores" box where every scale has a sum of scores +4. The "Quick Fill Scores" box is opened that allows us quickly enter scores from the questions separated by commas +5. Fast adding questions from text +6. Editing formulas +7. Ready test on the home page +8. The page with the description of the test, questions and answers +9. The button is desabled untill all questions are not answered +10. Get test results after all questions are answered +11. The results page +12. The result page contains both the result of the test and the scales that create a result +13. The example of the test without scores +14. A test without scores is shown like a "Test is under construction" diff --git a/assets-wp-repo/icon-128x128.png b/assets-wp-repo/icon-128x128.png new file mode 100644 index 00000000..3c674d75 Binary files /dev/null and b/assets-wp-repo/icon-128x128.png differ diff --git a/assets-wp-repo/icon-256x256.png b/assets-wp-repo/icon-256x256.png new file mode 100644 index 00000000..7cdfebc3 Binary files /dev/null and b/assets-wp-repo/icon-256x256.png differ diff --git a/assets-wp-repo/icon.xcf b/assets-wp-repo/icon.xcf new file mode 100644 index 00000000..a7d53f86 Binary files /dev/null and b/assets-wp-repo/icon.xcf differ diff --git a/assets-wp-repo/screenshot-1.png b/assets-wp-repo/screenshot-1.png new file mode 100644 index 00000000..4b3f7214 Binary files /dev/null and b/assets-wp-repo/screenshot-1.png differ diff --git a/assets-wp-repo/screenshot-10.png b/assets-wp-repo/screenshot-10.png new file mode 100644 index 00000000..c8c388ac Binary files /dev/null and b/assets-wp-repo/screenshot-10.png differ diff --git a/assets-wp-repo/screenshot-11.png b/assets-wp-repo/screenshot-11.png new file mode 100644 index 00000000..32d6ce5c Binary files /dev/null and b/assets-wp-repo/screenshot-11.png differ diff --git a/assets-wp-repo/screenshot-12.png b/assets-wp-repo/screenshot-12.png new file mode 100644 index 00000000..c81d465f Binary files /dev/null and b/assets-wp-repo/screenshot-12.png differ diff --git a/assets-wp-repo/screenshot-13.png b/assets-wp-repo/screenshot-13.png new file mode 100644 index 00000000..95638174 Binary files /dev/null and b/assets-wp-repo/screenshot-13.png differ diff --git a/assets-wp-repo/screenshot-14.png b/assets-wp-repo/screenshot-14.png new file mode 100644 index 00000000..3c29ed29 Binary files /dev/null and b/assets-wp-repo/screenshot-14.png differ diff --git a/assets-wp-repo/screenshot-2.png b/assets-wp-repo/screenshot-2.png new file mode 100644 index 00000000..7320a785 Binary files /dev/null and b/assets-wp-repo/screenshot-2.png differ diff --git a/assets-wp-repo/screenshot-3.png b/assets-wp-repo/screenshot-3.png new file mode 100644 index 00000000..695dc04a Binary files /dev/null and b/assets-wp-repo/screenshot-3.png differ diff --git a/assets-wp-repo/screenshot-4.png b/assets-wp-repo/screenshot-4.png new file mode 100644 index 00000000..629f59c8 Binary files /dev/null and b/assets-wp-repo/screenshot-4.png differ diff --git a/assets-wp-repo/screenshot-5.png b/assets-wp-repo/screenshot-5.png new file mode 100644 index 00000000..7d529a7f Binary files /dev/null and b/assets-wp-repo/screenshot-5.png differ diff --git a/assets-wp-repo/screenshot-6.png b/assets-wp-repo/screenshot-6.png new file mode 100644 index 00000000..4cff14e9 Binary files /dev/null and b/assets-wp-repo/screenshot-6.png differ diff --git a/assets-wp-repo/screenshot-7.png b/assets-wp-repo/screenshot-7.png new file mode 100644 index 00000000..d39ce66e Binary files /dev/null and b/assets-wp-repo/screenshot-7.png differ diff --git a/assets-wp-repo/screenshot-8.png b/assets-wp-repo/screenshot-8.png new file mode 100644 index 00000000..8010f32f Binary files /dev/null and b/assets-wp-repo/screenshot-8.png differ diff --git a/assets-wp-repo/screenshot-9.png b/assets-wp-repo/screenshot-9.png new file mode 100644 index 00000000..8cf7a08c Binary files /dev/null and b/assets-wp-repo/screenshot-9.png differ diff --git a/css/admin.css b/css/admin.css index 2c4279fc..f0581e99 100644 --- a/css/admin.css +++ b/css/admin.css @@ -48,3 +48,42 @@ table.wpt_formulas_helper { .wpt_formulas .wpt_formula input { width: 100%; } + +#wpt_quick_fill_scores, +#wpt_quick_fill_questions { + margin-bottom: 1em; +} + +#wpt_quick_fill_questions textarea { + height: 30em; + width: 100%; +} + +table.wpt_quick_scores { + margin-bottom: 0.5em; +} + +table.wpt_quick_scores th { + text-align: center; +} + +table.wpt_quick_scores th.questions { + width: 90%; +} +table.wpt_quick_scores td { + white-space: nowrap; +} +table.wpt_quick_scores td.answer { + text-align: center; +} +table.wpt_quick_scores th.score, +table.wpt_quick_scores td.score { + padding-right: 0em; +} +table.wpt_quick_scores td.score input { + text-align: center; + width: 5em; +} +table.wpt_quick_scores td.questions input { + width: 100%; +} diff --git a/css/public.css b/css/public.css index f09e8b79..052eb210 100644 --- a/css/public.css +++ b/css/public.css @@ -65,3 +65,46 @@ .wpt_test .get_results .content { color: gray; } + +/* @see gootstrap .bs-callout */ +/* common */ +.wpt_danger, +.wpt_warning, +.wpt_info { + padding: 1.2em; + margin: 1.2em 0; + border: 1px solid #eee; + border-left-width: 5px; + border-radius: 3px; +} +.wpt_danger h1, .wpt_danger h2, .wpt_danger h3, .wpt_danger h4, +.wpt_warning h1, .wpt_warning h2, .wpt_warning h3, .wpt_warning h4, +.wpt_info h1, .wpt_info h2, .wpt_info h3, .wpt_info h4 { + margin-top: 0; + margin-bottom: 1em; + font-weight: bold; +} +.wpt_danger p:last-child, +.wpt_warning p:last-child, +.wpt_info p:last-child { + margin-bottom: 0em; +} +/* colors */ +.wpt_danger { + border-left-color: #d9534f; +} +.wpt_danger h1, .wpt_danger h2, .wpt_danger h3, .wpt_danger h4 { + color: #d9534f; +} +.wpt_warning { + border-left-color: #f0ad4e; +} +.wpt_warning h1, .wpt_warning h2, .wpt_warning h3, .wpt_warning h4 { + color: #f0ad4e; +} +.wpt_info { + border-left-color: #5bc0de; +} +.wpt_info h1, .wpt_info h2, .wpt_info h3, .wpt_info h4 { + color: #5bc0de; +} diff --git a/db/sql/scales-min-max-sum.sql b/db/sql/scales-min-max-sum.sql new file mode 100644 index 00000000..cafef961 --- /dev/null +++ b/db/sql/scales-min-max-sum.sql @@ -0,0 +1,10 @@ +SELECT + SUM(IF(score_value > 0, 0, score_value)) AS total_negative, + SUM(IF(score_value > 0, score_value, 0)) AS total_positive +FROM + wp_t_scores +WHERE + question_id IN (84 , 85, 0) + AND scale_id = 15 +GROUP BY scale_id +HAVING total_positive > total_negative; \ No newline at end of file diff --git a/js/test-quick-questions.js b/js/test-quick-questions.js new file mode 100644 index 00000000..d4314c53 --- /dev/null +++ b/js/test-quick-questions.js @@ -0,0 +1,77 @@ +jQuery(document).ready(function($) { + var box = $('#wpt_quick_fill_questions'), + toggle = box.find('.toggle'), + panel = box.find('.wp-hidden-child'), + ok = box.find('.button'), + text = box.find('textarea'), + table = $('#wpt_add_questions table.wpt_questions'); + + toggle.click(function() { + panel.toggle(); + return false; + }); + + ok.click(function() { + var source = text.val(), + questions = parseQuestions(source); + + fillQuestions(questions); + + text.val(''); + panel.toggle(); + }); + + function parseQuestions(source) { + var result = []; + + source = $.trim(source); + if (source == '') { + return result; + } + + result = source.split(/[\r\n]+/); + + jQuery.each(result, function(i, row) { + result[i] = $.trim(row.replace(/^\w{1,3}[^\w\s]\s+/, '')); + }); + + return result; + }; + + function fillQuestions(newQuestions) { + if (newQuestions.length == 0) { + return; + } + + // Merge existing questions with new + var questions = []; + table.find('input:text').each(function() { + if ($(this).val() != '') { + questions.push($(this).val()); + } + }); + $(newQuestions).each(function(i, newQuestion) { + questions.push(newQuestion); + }); + + // Redraw table + var startFrom = table.data('startFrom'), + firstRow = table.find('tr:first').removeClass('bar').remove(); + + table.find('tr').remove(); + + $(questions).each(function(i, question) { + var inputNameKey = 'wpt_question_title[' + JSON.stringify({"i": startFrom + i, "id": ''}) + ']'; + firstRow + .clone() + .addClass(i % 2 ? 'alternate' : 'bar') + .appendTo(table) + .find('input') + .val(question) + .attr('name', inputNameKey) + .attr('id', 'wpt_question_title_' + (startFrom + i)); + }); + + }; + +}); diff --git a/js/test-quick-scores.js b/js/test-quick-scores.js new file mode 100644 index 00000000..93d3d107 --- /dev/null +++ b/js/test-quick-scores.js @@ -0,0 +1,61 @@ +jQuery(document).ready(function($) { + var box = $('#wpt_quick_fill_scores'), + sourceRows = box.find('table tr.quick-score'), + targetTable = $('#wpt_edit_questions table.wpt_questions'), + toggle = box.find('.toggle'), + panel = box.find('.wp-hidden-child'), + ok = box.find('.button'); + + toggle.click(function() { + fillUpSourceTableFromTarget(); + panel.toggle(); + return false; + }); + + ok.click(function() { + sourceRows.each(function() { + var quickClass = $(this).data('quickScoreClass'), + score = $(this).find('.score input').val(), + questions = $(this).find('.questions input').val().split(/[^\d]+/), + target = targetTable.find('.' + quickClass); + + target.val(''); + $(questions).each(function(i, questionNumber) { + if ('' == questionNumber) { + return; + } + target.filter('.question-' + questionNumber).val(score); + }); + }); + + panel.toggle(); + }); + + function fillUpSourceTableFromTarget() { + sourceRows.each(function() { + var quickClass = $(this).data('quickScoreClass'), + target = targetTable.find('.' + quickClass), + questions = []; + scores = []; + + target.each(function() { + var value = $(this).val(); + if ('' == value) { + return; + } + scores.push(value); + questions.push($(this).data('questionNumber')); + }); + $(this).find('.questions input').val(questions.join(', ')); + + scores = _.uniq(scores); + var score = 1; + if (scores.length == 1) { + score = scores[0]; + } else if (scores.length > 1) { + score = ''; + } + $(this).find('.score input').val(score); + }); + }; +}); diff --git a/js/vendor/bestiejs/json3.min.js b/js/vendor/bestiejs/json3.min.js new file mode 100644 index 00000000..7a99d822 --- /dev/null +++ b/js/vendor/bestiejs/json3.min.js @@ -0,0 +1,17 @@ +/*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */ +(function(){function N(p,r){function q(a){if(q[a]!==w)return q[a];var c;if("bug-string-char-index"==a)c="a"!="a"[0];else if("json"==a)c=q("json-stringify")&&q("json-parse");else{var e;if("json-stringify"==a){c=r.stringify;var b="function"==typeof c&&s;if(b){(e=function(){return 1}).toJSON=e;try{b="0"===c(0)&&"0"===c(new t)&&'""'==c(new A)&&c(u)===w&&c(w)===w&&c()===w&&"1"===c(e)&&"[1]"==c([e])&&"[null]"==c([w])&&"null"==c(null)&&"[null,null,null]"==c([w,u,null])&&'{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}'== +c({a:[e,!0,!1,null,"\x00\b\n\f\r\t"]})&&"1"===c(null,e)&&"[\n 1,\n 2\n]"==c([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new C(-864E13))&&'"+275760-09-13T00:00:00.000Z"'==c(new C(864E13))&&'"-000001-01-01T00:00:00.000Z"'==c(new C(-621987552E5))&&'"1969-12-31T23:59:59.999Z"'==c(new C(-1))}catch(f){b=!1}}c=b}if("json-parse"==a){c=r.parse;if("function"==typeof c)try{if(0===c("0")&&!c(!1)){e=c('{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}');var n=5==e.a.length&&1===e.a[0];if(n){try{n=!c('"\t"')}catch(d){}if(n)try{n= +1!==c("01")}catch(g){}if(n)try{n=1!==c("1.")}catch(m){}}}}catch(X){n=!1}c=n}}return q[a]=!!c}p||(p=k.Object());r||(r=k.Object());var t=p.Number||k.Number,A=p.String||k.String,H=p.Object||k.Object,C=p.Date||k.Date,G=p.SyntaxError||k.SyntaxError,K=p.TypeError||k.TypeError,L=p.Math||k.Math,I=p.JSON||k.JSON;"object"==typeof I&&I&&(r.stringify=I.stringify,r.parse=I.parse);var H=H.prototype,u=H.toString,v,B,w,s=new C(-0xc782b5b800cec);try{s=-109252==s.getUTCFullYear()&&0===s.getUTCMonth()&&1===s.getUTCDate()&& +10==s.getUTCHours()&&37==s.getUTCMinutes()&&6==s.getUTCSeconds()&&708==s.getUTCMilliseconds()}catch(Q){}if(!q("json")){var D=q("bug-string-char-index");if(!s)var x=L.floor,M=[0,31,59,90,120,151,181,212,243,273,304,334],E=function(a,c){return M[c]+365*(a-1970)+x((a-1969+(c=+(1d){c+="\\u00"+y(2,d.toString(16));break}c+=f?n[b]:a.charAt(b)}}return c+'"'},O=function(a,c,b,h,f,n,d){var g,m,k,l,p,r,s,t,q;try{g=c[a]}catch(z){}if("object"==typeof g&&g)if(m=u.call(g),"[object Date]"!=m||v.call(g, +"toJSON"))"function"==typeof g.toJSON&&("[object Number]"!=m&&"[object String]"!=m&&"[object Array]"!=m||v.call(g,"toJSON"))&&(g=g.toJSON(a));else if(g>-1/0&&g<1/0){if(E){l=x(g/864E5);for(m=x(l/365.2425)+1970-1;E(m+1,0)<=l;m++);for(k=x((l-E(m,0))/30.42);E(m,k+1)<=l;k++);l=1+l-E(m,k);p=(g%864E5+864E5)%864E5;r=x(p/36E5)%24;s=x(p/6E4)%60;t=x(p/1E3)%60;p%=1E3}else m=g.getUTCFullYear(),k=g.getUTCMonth(),l=g.getUTCDate(),r=g.getUTCHours(),s=g.getUTCMinutes(),t=g.getUTCSeconds(),p=g.getUTCMilliseconds(); +g=(0>=m||1E4<=m?(0>m?"-":"+")+y(6,0>m?-m:m):y(4,m))+"-"+y(2,k+1)+"-"+y(2,l)+"T"+y(2,r)+":"+y(2,s)+":"+y(2,t)+"."+y(3,p)+"Z"}else g=null;b&&(g=b.call(c,a,g));if(null===g)return"null";m=u.call(g);if("[object Boolean]"==m)return""+g;if("[object Number]"==m)return g>-1/0&&g<1/0?""+g:"null";if("[object String]"==m)return R(""+g);if("object"==typeof g){for(a=d.length;a--;)if(d[a]===g)throw K();d.push(g);q=[];c=n;n+=f;if("[object Array]"==m){k=0;for(a=g.length;k=b.length?b:b.slice(0,10));return O("",(l={},l[""]=a,l),f,n,h,"",[])}}if(!q("json-parse")){var V=A.fromCharCode,W={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},b,J,l=function(){b=J=null;throw G();},z=function(){for(var a=J,c=a.length,e,h,f,k,d;bd)l();else if(92==d)switch(d=a.charCodeAt(++b),d){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=W[d];b++;break;case 117:h=++b;for(f=b+4;b=d||97<=d&&102>=d||65<=d&&70>=d||l();e+=V("0x"+a.slice(h,b));break;default:l()}else{if(34==d)break;d=a.charCodeAt(b);for(h=b;32<=d&&92!=d&&34!=d;)d=a.charCodeAt(++b);e+=a.slice(h,b)}if(34==a.charCodeAt(b))return b++,e;l();default:h= +b;45==d&&(k=!0,d=a.charCodeAt(++b));if(48<=d&&57>=d){for(48==d&&(d=a.charCodeAt(b+1),48<=d&&57>=d)&&l();b=d);b++);if(46==a.charCodeAt(b)){for(f=++b;f=d);f++);f==b&&l();b=f}d=a.charCodeAt(b);if(101==d||69==d){d=a.charCodeAt(++b);43!=d&&45!=d||b++;for(f=b;f=d);f++);f==b&&l();b=f}return+a.slice(h,b)}k&&l();if("true"==a.slice(b,b+4))return b+=4,!0;if("false"==a.slice(b,b+5))return b+=5,!1;if("null"==a.slice(b, +b+4))return b+=4,null;l()}return"$"},P=function(a){var c,b;"$"==a&&l();if("string"==typeof a){if("@"==(D?a.charAt(0):a[0]))return a.slice(1);if("["==a){for(c=[];;b||(b=!0)){a=z();if("]"==a)break;b&&(","==a?(a=z(),"]"==a&&l()):l());","==a&&l();c.push(P(a))}return c}if("{"==a){for(c={};;b||(b=!0)){a=z();if("}"==a)break;b&&(","==a?(a=z(),"}"==a&&l()):l());","!=a&&"string"==typeof a&&"@"==(D?a.charAt(0):a[0])&&":"==z()||l();c[a.slice(1)]=P(z())}return c}l()}return a},T=function(a,b,e){e=S(a,b,e);e=== +w?delete a[b]:a[b]=e},S=function(a,b,e){var h=a[b],f;if("object"==typeof h&&h)if("[object Array]"==u.call(h))for(f=h.length;f--;)T(h,f,e);else B(h,function(a){T(h,a,e)});return e.call(a,b,h)};r.parse=function(a,c){var e,h;b=0;J=""+a;e=P(z());"$"!=z()&&l();b=J=null;return c&&"[object Function]"==u.call(c)?S((h={},h[""]=e,h),"",c):e}}}r.runInContext=N;return r}var K=typeof define==="function"&&define.amd,F={"function":!0,object:!0},G=F[typeof exports]&&exports&&!exports.nodeType&&exports,k=F[typeof window]&& +window||this,t=G&&F[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;!t||t.global!==t&&t.window!==t&&t.self!==t||(k=t);if(G&&!K)N(k,G);else{var L=k.JSON,Q=k.JSON3,M=!1,A=N(k,k.JSON3={noConflict:function(){M||(M=!0,k.JSON=L,k.JSON3=Q,L=Q=null);return A}});k.JSON={parse:A.parse,stringify:A.stringify}}K&&define(function(){return A})}).call(this); \ No newline at end of file diff --git a/languages/How-to-use-a-pot-file.md b/languages/How-to-use-a-pot-file.md new file mode 100644 index 00000000..6da69767 --- /dev/null +++ b/languages/How-to-use-a-pot-file.md @@ -0,0 +1,20 @@ +#How to use the pot file# + +The pot file include in this folder is ready to use. + +1. Double click on it and open it with poedit + +2. In poedit goto File -> New Catalog from POT file... + +3. Select and Open the pot file from the languages folder + +4. Enter your name, email address, your language and country (i.e. french fr_FR, german de_DE) to the setting form + +5. Click the update button in the main poedit ui. + +6. Save the file : + - As wp-testing-xx_XX.po with xx_XX for your language and country. + +7. That's it, go to your WordPress blog and see your translation in action. N'joy your blogging!!! + +Thank you for your contribution diff --git a/languages/pull-n-compile.sh b/languages/pull-n-compile.sh new file mode 100755 index 00000000..5c653f14 --- /dev/null +++ b/languages/pull-n-compile.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# tnx to https://gist.github.com/fxbenard/9367794 + +# Pull all files from Transifex; +tx pull --all + +# Create .mo files from .po files. +# Twisted by WP-Translations.org, created by grappler. + +for file in $(find . -name "*.po") +do + echo Compile $file + msgfmt -o ${file/.po/.mo} $file +done + +echo Adding to git +git add *.po +git add *.mo diff --git a/languages/wp-testing-de_DE.mo b/languages/wp-testing-de_DE.mo new file mode 100644 index 00000000..52be436a Binary files /dev/null and b/languages/wp-testing-de_DE.mo differ diff --git a/languages/wp-testing-de_DE.po b/languages/wp-testing-de_DE.po new file mode 100644 index 00000000..10320e53 --- /dev/null +++ b/languages/wp-testing-de_DE.po @@ -0,0 +1,464 @@ +# Copyright (C) 2014 Alexander Ustimenko +# This file is distrubuted under the GPL-3.0+ +# Translators: +# Alexander Ustimenko , 2014 +msgid "" +msgstr "" +"Project-Id-Version: WP testing\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-16 06:37+0700\n" +"PO-Revision-Date: 2014-11-16 00:56+0000\n" +"Last-Translator: Alexander Ustimenko \n" +"Language-Team: German (Germany) (http://www.transifex.com/projects/p/wp-testing/language/de_DE/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: de_DE\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-Basepath: ../src/\n" +"X-Poedit-KeywordsList: __;_e;_x;esc_html_e;esc_html__;esc_attr_e;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n" +"X-Poedit-SearchPath-0: .\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n" + +#: Doer/TestEditor.php:24 +msgid "Edit Questions and Scores" +msgstr "Bearbeiten Sie Fragen und Partituren" + +#: Doer/TestEditor.php:25 +msgid "Add New Questions" +msgstr "Neue Fragen hinzufügen" + +#: Doer/TestEditor.php:26 +msgid "Edit Formulas" +msgstr "Bearbeiten von Formeln" + +#: Doer/TestEditor.php:121 +msgid "Test data not saved" +msgstr "Testdaten nicht gespeichert" + +#: Doer/WordPressEntitiesRegistrator.php:12 +#: Doer/WordPressEntitiesRegistrator.php:21 +msgid "Tests" +msgstr "Tests" + +#: Doer/WordPressEntitiesRegistrator.php:13 +msgid "Test" +msgstr "Test" + +#: Doer/WordPressEntitiesRegistrator.php:14 +msgctxt "test" +msgid "Add New" +msgstr "Hinzufügen" + +#: Doer/WordPressEntitiesRegistrator.php:15 +msgid "Add New Test" +msgstr "Fügen neuen Test hinzu" + +#: Doer/WordPressEntitiesRegistrator.php:16 +msgid "Edit Test" +msgstr "Test bearbeiten" + +#: Doer/WordPressEntitiesRegistrator.php:17 +msgid "View Test" +msgstr "Ansicht-Test" + +#: Doer/WordPressEntitiesRegistrator.php:18 +msgid "Search Tests" +msgstr "Suche Tests" + +#: Doer/WordPressEntitiesRegistrator.php:19 +msgid "Parent Test:" +msgstr "Eltern-Test:" + +#: Doer/WordPressEntitiesRegistrator.php:22 +msgid "All Tests" +msgstr "Alle Tests" + +#: Doer/WordPressEntitiesRegistrator.php:23 +msgid "Update Test" +msgstr "Update-Test" + +#: Doer/WordPressEntitiesRegistrator.php:24 +msgid "New Test Name" +msgstr "Neue Test-Namen" + +#: Doer/WordPressEntitiesRegistrator.php:25 +msgid "Parent Test" +msgstr "Eltern-Test" + +#: Doer/WordPressEntitiesRegistrator.php:27 +msgid "New Test" +msgstr "Neuer Test" + +#: Doer/WordPressEntitiesRegistrator.php:28 +msgid "No Tests found" +msgstr "Keine Tests gefunden" + +#: Doer/WordPressEntitiesRegistrator.php:29 +msgid "No Tests found in Trash" +msgstr "Keine Tests, die im Papierkorb gefunden" + +#: Doer/WordPressEntitiesRegistrator.php:31 +msgid "" +"Instrument to measure unobserved constructs (latent variables). Typically it" +" is a series of tasks or problems that the respondent has to solve." +msgstr "Als psychologischer Test oder psychologisches Testverfahren wird ein Instrument bezeichnet, welches psychische Merkmale von Personen, Personengruppen oder Organisationen erfassen soll." + +#: Doer/WordPressEntitiesRegistrator.php:58 +msgid "Test Answers" +msgstr "Test Antworten" + +#: Doer/WordPressEntitiesRegistrator.php:59 +msgid "Test Answer" +msgstr "Test-Antwort" + +#: Doer/WordPressEntitiesRegistrator.php:60 +msgid "Add New Answer" +msgstr "Neue Antwort hinzufügen" + +#: Doer/WordPressEntitiesRegistrator.php:61 +msgid "Edit Answer" +msgstr "Antwort bearbeiten" + +#: Doer/WordPressEntitiesRegistrator.php:62 +msgid "View Answer" +msgstr "Antwort anzeigen" + +#: Doer/WordPressEntitiesRegistrator.php:63 +msgid "Search Answers" +msgstr "Suche Antworten" + +#: Doer/WordPressEntitiesRegistrator.php:64 +msgid "Parent Answer:" +msgstr "Übergeordnete Antwort:" + +#: Doer/WordPressEntitiesRegistrator.php:66 +msgid "Answers" +msgstr "Antworten" + +#: Doer/WordPressEntitiesRegistrator.php:67 +msgid "All Answers" +msgstr "Alle Antworten" + +#: Doer/WordPressEntitiesRegistrator.php:68 +msgid "Update Answer" +msgstr "Update Antwort" + +#: Doer/WordPressEntitiesRegistrator.php:69 +msgid "New Answer Name" +msgstr "Neue Antwort-Name" + +#: Doer/WordPressEntitiesRegistrator.php:70 +msgid "Parent Answer" +msgstr "Übergeordnete Antwort" + +#: Doer/WordPressEntitiesRegistrator.php:72 +msgid "New Answer" +msgstr "Neue Antwort" + +#: Doer/WordPressEntitiesRegistrator.php:73 +msgid "No Answers found" +msgstr "Keine Antworten gefunden" + +#: Doer/WordPressEntitiesRegistrator.php:74 +msgid "No Answers found in Trash" +msgstr "Keine Antworten, die im Papierkorb gefunden" + +#: Doer/WordPressEntitiesRegistrator.php:79 +msgid "Test Scales" +msgstr "Test-Skalen" + +#: Doer/WordPressEntitiesRegistrator.php:80 +msgid "Test Scale" +msgstr "Test-Skala" + +#: Doer/WordPressEntitiesRegistrator.php:81 +msgid "Add New Scale" +msgstr "Fügen neuer Scale hinzu" + +#: Doer/WordPressEntitiesRegistrator.php:82 +msgid "Edit Scale" +msgstr "Bearbeiten von Skala" + +#: Doer/WordPressEntitiesRegistrator.php:83 +msgid "View Scale" +msgstr "Ansichtsmaßstab" + +#: Doer/WordPressEntitiesRegistrator.php:84 +msgid "Search Scales" +msgstr "Suche Waage" + +#: Doer/WordPressEntitiesRegistrator.php:85 +msgid "Parent Scale:" +msgstr "Übergeordneten Skala:" + +#: Doer/WordPressEntitiesRegistrator.php:87 +msgid "Scales" +msgstr "Waage" + +#: Doer/WordPressEntitiesRegistrator.php:88 +msgid "All Scales" +msgstr "Allen Skalen" + +#: Doer/WordPressEntitiesRegistrator.php:89 +msgid "Update Scale" +msgstr "Update-Skala" + +#: Doer/WordPressEntitiesRegistrator.php:90 +msgid "New Scale Name" +msgstr "Neuen Maßstab-Namen" + +#: Doer/WordPressEntitiesRegistrator.php:91 +msgid "Parent Scale" +msgstr "Übergeordneten Skala" + +#: Doer/WordPressEntitiesRegistrator.php:93 +msgid "New Scale" +msgstr "Neue Skala" + +#: Doer/WordPressEntitiesRegistrator.php:94 +msgid "No Scales found" +msgstr "Keine Schuppen gefunden" + +#: Doer/WordPressEntitiesRegistrator.php:95 +msgid "No Scales found in Trash" +msgstr "Keine Schuppen, die im Papierkorb gefunden" + +#: Doer/WordPressEntitiesRegistrator.php:100 +msgid "Test Results" +msgstr "Testergebnisse" + +#: Doer/WordPressEntitiesRegistrator.php:101 +msgid "Test Result" +msgstr "Testergebnis" + +#: Doer/WordPressEntitiesRegistrator.php:102 +msgid "Add New Result" +msgstr "Neues Ergebnis hinzufügen" + +#: Doer/WordPressEntitiesRegistrator.php:103 +msgid "Edit Result" +msgstr "Ergebnis bearbeiten" + +#: Doer/WordPressEntitiesRegistrator.php:104 +msgid "View Result" +msgstr "Ergebnis anzeigen" + +#: Doer/WordPressEntitiesRegistrator.php:105 +msgid "Search Results" +msgstr "Suchergebnisse" + +#: Doer/WordPressEntitiesRegistrator.php:106 +msgid "Parent Result:" +msgstr "Übergeordnete Ergebnis:" + +#: Doer/WordPressEntitiesRegistrator.php:108 +msgid "Results" +msgstr "Ergebnisse" + +#: Doer/WordPressEntitiesRegistrator.php:109 +msgid "All Results" +msgstr "Alle Ergebnisse" + +#: Doer/WordPressEntitiesRegistrator.php:110 +msgid "Update Result" +msgstr "Update-Ergebnis" + +#: Doer/WordPressEntitiesRegistrator.php:111 +msgid "New Result Name" +msgstr "Neue Ergebnisname" + +#: Doer/WordPressEntitiesRegistrator.php:112 +msgid "Parent Result" +msgstr "Übergeordnete Ergebnis" + +#: Doer/WordPressEntitiesRegistrator.php:114 +msgid "New Result" +msgstr "Neues Ergebnis" + +#: Doer/WordPressEntitiesRegistrator.php:115 +msgid "No Results found" +msgstr "Keine Ergebnisse gefunden" + +#: Doer/WordPressEntitiesRegistrator.php:116 +msgid "No Results found in Trash" +msgstr "Keine Ergebnisse in Papierkorb gefunden" + +#: Doer/WordPressEntitiesRegistrator.php:121 +msgid "Test Categories" +msgstr "Testkategorien" + +#: Doer/WordPressEntitiesRegistrator.php:122 +msgid "Test Category" +msgstr "Test-Kategorie" + +#: Doer/WordPressEntitiesRegistrator.php:123 +msgid "Add New Category" +msgstr "Neue Kategorie hinzufügen" + +#: Doer/WordPressEntitiesRegistrator.php:124 +msgid "Edit Category" +msgstr "Kategorie bearbeiten" + +#: Doer/WordPressEntitiesRegistrator.php:125 +msgid "View Category" +msgstr "Kategorie anzeigen" + +#: Doer/WordPressEntitiesRegistrator.php:126 +msgid "Search Categories" +msgstr "Kategorien durchsuchen" + +#: Doer/WordPressEntitiesRegistrator.php:127 +msgid "Parent Category:" +msgstr "Übergeordnete Kategorie:" + +#: Doer/WordPressEntitiesRegistrator.php:129 +msgid "Categories" +msgstr "Kategorien" + +#: Doer/WordPressEntitiesRegistrator.php:130 +msgid "All Categories" +msgstr "Alle Kategorien" + +#: Doer/WordPressEntitiesRegistrator.php:131 +msgid "Update Category" +msgstr "Kategorie aktualisieren" + +#: Doer/WordPressEntitiesRegistrator.php:132 +msgid "New Category Name" +msgstr "Neuer Kategorie-Name" + +#: Doer/WordPressEntitiesRegistrator.php:133 +msgid "Parent Category" +msgstr "Übergeordnete Kategorie" + +#: Doer/WordPressEntitiesRegistrator.php:135 +msgid "New Category" +msgstr "Neue Kategorie" + +#: Doer/WordPressEntitiesRegistrator.php:136 +msgid "No Categories found" +msgstr "Keine Kategorien gefunden" + +#: Doer/WordPressEntitiesRegistrator.php:137 +msgid "No Categories found in Trash" +msgstr "Keine Kategorien in Papierkorb gefunden" + +#: Model/Formula.php:217 +#, php-format +msgid "Formula for %s has error" +msgstr "Formel für %s hat Fehler" + +#: Model/FormulaVariable.php:17 +#, php-format +msgid "%1$s, ∑ %2$d" +msgstr "%1$s, ∑ %2$d" + +#: Model/FormulaVariable.php:26 +msgid "Scale Variable" +msgstr "Skala-Variable" + +#: Model/FormulaVariable.php:28 +msgid "Variable" +msgstr "Variable" + +#: Template/Test/Editor/edit-formulas.php:3 +msgid "Result" +msgstr "Ergebnis" + +#: Template/Test/Editor/edit-formulas.php:4 +msgid "Formula" +msgstr "Formel" + +#: Template/Test/Editor/edit-formulas.php:29 +msgid "No formulas to edit. To edit formulas you must have results selected." +msgstr "Keine Formeln bearbeiten. Formeln bearbeiten möchten, die müssen Sie Ergebnisse ausgewählt haben." + +#: Template/Test/Editor/edit-formulas.php:38 +msgid "Variables" +msgstr "Variablen" + +#: Template/Test/Editor/edit-formulas.php:39 +msgid "Comparisions" +msgstr "Vergleiche" + +#: Template/Test/Editor/edit-formulas.php:49 +msgid "Comparision" +msgstr "Vergleich" + +#: Template/Test/Editor/edit-formulas.php:57 +msgid "" +"No variables for formulas available. To use variables you must have scales " +"selected." +msgstr "Keine Variablen bei Formeln zur Verfügung. Um Variablen zu verwenden, Sie müssen Waagen ausgewählten." + +#: Template/Test/Editor/edit-formulas.php:66 +msgid "" +"Both numbers and percents allowed. For example \"scale-bla\" has total 30, " +"then \"scale-bla > 15\" and \"scale-bla > 50%\" are same." +msgstr "Beide Zahlen und Prozent erlaubt. Zum Beispiel \"scale-bla\" hat insgesamt 30, dann \"scale-bla > 15\" und \"scale-bla > 50%\" sind gleich." + +#: Template/Test/Editor/add-questions.php:4 +#: Template/Test/Editor/add-questions.php:9 +msgid "Quick Fill From Text" +msgstr "Schnellfüllung aus Text" + +#: Template/Test/Editor/add-questions.php:8 +msgid "" +"Paste here your questions and they will fill fields below. Numbers and other" +" indexes will be stripped automatically." +msgstr "Fügen Sie hier Ihre Fragen und sie werden folgenden Felder aus. Zahlen und anderen Indizes werden automatisch abgezogen werden." + +#: Template/Test/Editor/submit-misc-actions.php:6 +msgid "Publish on the home page" +msgstr "Auf der Homepage veröffentlichen" + +#: Template/Test/Editor/edit-questions.php:29 +#: Template/Test/Editor/edit-questions.php:65 +msgid "Quick Fill Scores" +msgstr "Füllen schnell Punkte" + +#: Template/Test/Editor/edit-questions.php:37 +msgid "Scale" +msgstr "Skalierung" + +#: Template/Test/Editor/edit-questions.php:38 +msgid "Score" +msgstr "Punkt" + +#: Template/Test/Editor/edit-questions.php:39 +msgid "Answer" +msgstr "Antwort" + +#: Template/Test/Editor/edit-questions.php:40 +msgid "Questions" +msgstr "Fragen" + +#: Template/Test/Editor/edit-questions.php:86 +msgid "" +"No questions to edit. Add new questions and then they will appear here." +msgstr "Keine Fragen zu bearbeiten. Neue Fragen hinzufügen und dann werden sie hier erscheinen." + +#: Template/Test/Editor/edit-questions.php:94 +msgid "" +"No scores to edit. To edit scores you must have both answers and scales " +"selected." +msgstr "Keine Resultate zu bearbeiten. Um Resultate zu bearbeiten müssen Sie Antworten und Skalen ausgewählt." + +#: Template/Test/Passer/get-results.php:33 +#, php-format +msgid "%1$d out of %2$d" +msgstr "%1$d von %2$d" + +#: Template/Test/Passer/fill-form.php:45 +msgid "Get Test Results" +msgstr "Testergebnisse zu erhalten" + +#: Template/Test/Passer/fill-form.php:48 +msgid "Test is under construction" +msgstr "Test befindet sich im Aufbau" + +#: Template/Test/Passer/fill-form.php:49 +msgid "You can not get any results from it yet." +msgstr "Sie erhalten keine Ergebnisse daraus." diff --git a/languages/wp-testing-en_US.mo b/languages/wp-testing-en_US.mo new file mode 100644 index 00000000..2475f877 Binary files /dev/null and b/languages/wp-testing-en_US.mo differ diff --git a/languages/wp-testing-en_US.po b/languages/wp-testing-en_US.po new file mode 100644 index 00000000..38e38dd9 --- /dev/null +++ b/languages/wp-testing-en_US.po @@ -0,0 +1,463 @@ +# Copyright (C) 2014 Alexander Ustimenko +# This file is distrubuted under the GPL-3.0+ +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: WP testing\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-16 06:37+0700\n" +"PO-Revision-Date: 2014-11-16 00:39+0000\n" +"Last-Translator: Alexander Ustimenko \n" +"Language-Team: English (United States) (http://www.transifex.com/projects/p/wp-testing/language/en_US/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: en_US\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-Basepath: ../src/\n" +"X-Poedit-KeywordsList: __;_e;_x;esc_html_e;esc_html__;esc_attr_e;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n" +"X-Poedit-SearchPath-0: .\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n" + +#: Doer/TestEditor.php:24 +msgid "Edit Questions and Scores" +msgstr "Edit Questions and Scores" + +#: Doer/TestEditor.php:25 +msgid "Add New Questions" +msgstr "Add New Questions" + +#: Doer/TestEditor.php:26 +msgid "Edit Formulas" +msgstr "Edit Formulas" + +#: Doer/TestEditor.php:121 +msgid "Test data not saved" +msgstr "Test data not saved" + +#: Doer/WordPressEntitiesRegistrator.php:12 +#: Doer/WordPressEntitiesRegistrator.php:21 +msgid "Tests" +msgstr "Tests" + +#: Doer/WordPressEntitiesRegistrator.php:13 +msgid "Test" +msgstr "Test" + +#: Doer/WordPressEntitiesRegistrator.php:14 +msgctxt "test" +msgid "Add New" +msgstr "Add New" + +#: Doer/WordPressEntitiesRegistrator.php:15 +msgid "Add New Test" +msgstr "Add New Test" + +#: Doer/WordPressEntitiesRegistrator.php:16 +msgid "Edit Test" +msgstr "Edit Test" + +#: Doer/WordPressEntitiesRegistrator.php:17 +msgid "View Test" +msgstr "View Test" + +#: Doer/WordPressEntitiesRegistrator.php:18 +msgid "Search Tests" +msgstr "Search Tests" + +#: Doer/WordPressEntitiesRegistrator.php:19 +msgid "Parent Test:" +msgstr "Parent Test:" + +#: Doer/WordPressEntitiesRegistrator.php:22 +msgid "All Tests" +msgstr "All Tests" + +#: Doer/WordPressEntitiesRegistrator.php:23 +msgid "Update Test" +msgstr "Update Test" + +#: Doer/WordPressEntitiesRegistrator.php:24 +msgid "New Test Name" +msgstr "New Test Name" + +#: Doer/WordPressEntitiesRegistrator.php:25 +msgid "Parent Test" +msgstr "Parent Test" + +#: Doer/WordPressEntitiesRegistrator.php:27 +msgid "New Test" +msgstr "New Test" + +#: Doer/WordPressEntitiesRegistrator.php:28 +msgid "No Tests found" +msgstr "No Tests found" + +#: Doer/WordPressEntitiesRegistrator.php:29 +msgid "No Tests found in Trash" +msgstr "No Tests found in Trash" + +#: Doer/WordPressEntitiesRegistrator.php:31 +msgid "" +"Instrument to measure unobserved constructs (latent variables). Typically it" +" is a series of tasks or problems that the respondent has to solve." +msgstr "Instrument to measure unobserved constructs (latent variables). Typically it is a series of tasks or problems that the respondent has to solve." + +#: Doer/WordPressEntitiesRegistrator.php:58 +msgid "Test Answers" +msgstr "Test Answers" + +#: Doer/WordPressEntitiesRegistrator.php:59 +msgid "Test Answer" +msgstr "Test Answer" + +#: Doer/WordPressEntitiesRegistrator.php:60 +msgid "Add New Answer" +msgstr "Add New Answer" + +#: Doer/WordPressEntitiesRegistrator.php:61 +msgid "Edit Answer" +msgstr "Edit Answer" + +#: Doer/WordPressEntitiesRegistrator.php:62 +msgid "View Answer" +msgstr "View Answer" + +#: Doer/WordPressEntitiesRegistrator.php:63 +msgid "Search Answers" +msgstr "Search Answers" + +#: Doer/WordPressEntitiesRegistrator.php:64 +msgid "Parent Answer:" +msgstr "Parent Answer:" + +#: Doer/WordPressEntitiesRegistrator.php:66 +msgid "Answers" +msgstr "Answers" + +#: Doer/WordPressEntitiesRegistrator.php:67 +msgid "All Answers" +msgstr "All Answers" + +#: Doer/WordPressEntitiesRegistrator.php:68 +msgid "Update Answer" +msgstr "Update Answer" + +#: Doer/WordPressEntitiesRegistrator.php:69 +msgid "New Answer Name" +msgstr "New Answer Name" + +#: Doer/WordPressEntitiesRegistrator.php:70 +msgid "Parent Answer" +msgstr "Parent Answer" + +#: Doer/WordPressEntitiesRegistrator.php:72 +msgid "New Answer" +msgstr "New Answer" + +#: Doer/WordPressEntitiesRegistrator.php:73 +msgid "No Answers found" +msgstr "No Answers found" + +#: Doer/WordPressEntitiesRegistrator.php:74 +msgid "No Answers found in Trash" +msgstr "No Answers found in Trash" + +#: Doer/WordPressEntitiesRegistrator.php:79 +msgid "Test Scales" +msgstr "Test Scales" + +#: Doer/WordPressEntitiesRegistrator.php:80 +msgid "Test Scale" +msgstr "Test Scale" + +#: Doer/WordPressEntitiesRegistrator.php:81 +msgid "Add New Scale" +msgstr "Add New Scale" + +#: Doer/WordPressEntitiesRegistrator.php:82 +msgid "Edit Scale" +msgstr "Edit Scale" + +#: Doer/WordPressEntitiesRegistrator.php:83 +msgid "View Scale" +msgstr "View Scale" + +#: Doer/WordPressEntitiesRegistrator.php:84 +msgid "Search Scales" +msgstr "Search Scales" + +#: Doer/WordPressEntitiesRegistrator.php:85 +msgid "Parent Scale:" +msgstr "Parent Scale:" + +#: Doer/WordPressEntitiesRegistrator.php:87 +msgid "Scales" +msgstr "Scales" + +#: Doer/WordPressEntitiesRegistrator.php:88 +msgid "All Scales" +msgstr "All Scales" + +#: Doer/WordPressEntitiesRegistrator.php:89 +msgid "Update Scale" +msgstr "Update Scale" + +#: Doer/WordPressEntitiesRegistrator.php:90 +msgid "New Scale Name" +msgstr "New Scale Name" + +#: Doer/WordPressEntitiesRegistrator.php:91 +msgid "Parent Scale" +msgstr "Parent Scale" + +#: Doer/WordPressEntitiesRegistrator.php:93 +msgid "New Scale" +msgstr "New Scale" + +#: Doer/WordPressEntitiesRegistrator.php:94 +msgid "No Scales found" +msgstr "No Scales found" + +#: Doer/WordPressEntitiesRegistrator.php:95 +msgid "No Scales found in Trash" +msgstr "No Scales found in Trash" + +#: Doer/WordPressEntitiesRegistrator.php:100 +msgid "Test Results" +msgstr "Test Results" + +#: Doer/WordPressEntitiesRegistrator.php:101 +msgid "Test Result" +msgstr "Test Result" + +#: Doer/WordPressEntitiesRegistrator.php:102 +msgid "Add New Result" +msgstr "Add New Result" + +#: Doer/WordPressEntitiesRegistrator.php:103 +msgid "Edit Result" +msgstr "Edit Result" + +#: Doer/WordPressEntitiesRegistrator.php:104 +msgid "View Result" +msgstr "View Result" + +#: Doer/WordPressEntitiesRegistrator.php:105 +msgid "Search Results" +msgstr "Search Results" + +#: Doer/WordPressEntitiesRegistrator.php:106 +msgid "Parent Result:" +msgstr "Parent Result:" + +#: Doer/WordPressEntitiesRegistrator.php:108 +msgid "Results" +msgstr "Results" + +#: Doer/WordPressEntitiesRegistrator.php:109 +msgid "All Results" +msgstr "All Results" + +#: Doer/WordPressEntitiesRegistrator.php:110 +msgid "Update Result" +msgstr "Update Result" + +#: Doer/WordPressEntitiesRegistrator.php:111 +msgid "New Result Name" +msgstr "New Result Name" + +#: Doer/WordPressEntitiesRegistrator.php:112 +msgid "Parent Result" +msgstr "Parent Result" + +#: Doer/WordPressEntitiesRegistrator.php:114 +msgid "New Result" +msgstr "New Result" + +#: Doer/WordPressEntitiesRegistrator.php:115 +msgid "No Results found" +msgstr "No Results found" + +#: Doer/WordPressEntitiesRegistrator.php:116 +msgid "No Results found in Trash" +msgstr "No Results found in Trash" + +#: Doer/WordPressEntitiesRegistrator.php:121 +msgid "Test Categories" +msgstr "Test Categories" + +#: Doer/WordPressEntitiesRegistrator.php:122 +msgid "Test Category" +msgstr "Test Category" + +#: Doer/WordPressEntitiesRegistrator.php:123 +msgid "Add New Category" +msgstr "Add New Category" + +#: Doer/WordPressEntitiesRegistrator.php:124 +msgid "Edit Category" +msgstr "Edit Category" + +#: Doer/WordPressEntitiesRegistrator.php:125 +msgid "View Category" +msgstr "View Category" + +#: Doer/WordPressEntitiesRegistrator.php:126 +msgid "Search Categories" +msgstr "Search Categories" + +#: Doer/WordPressEntitiesRegistrator.php:127 +msgid "Parent Category:" +msgstr "Parent Category:" + +#: Doer/WordPressEntitiesRegistrator.php:129 +msgid "Categories" +msgstr "Categories" + +#: Doer/WordPressEntitiesRegistrator.php:130 +msgid "All Categories" +msgstr "All Categories" + +#: Doer/WordPressEntitiesRegistrator.php:131 +msgid "Update Category" +msgstr "Update Category" + +#: Doer/WordPressEntitiesRegistrator.php:132 +msgid "New Category Name" +msgstr "New Category Name" + +#: Doer/WordPressEntitiesRegistrator.php:133 +msgid "Parent Category" +msgstr "Parent Category" + +#: Doer/WordPressEntitiesRegistrator.php:135 +msgid "New Category" +msgstr "New Category" + +#: Doer/WordPressEntitiesRegistrator.php:136 +msgid "No Categories found" +msgstr "No Categories found" + +#: Doer/WordPressEntitiesRegistrator.php:137 +msgid "No Categories found in Trash" +msgstr "No Categories found in Trash" + +#: Model/Formula.php:217 +#, php-format +msgid "Formula for %s has error" +msgstr "Formula for %s has error" + +#: Model/FormulaVariable.php:17 +#, php-format +msgid "%1$s, ∑ %2$d" +msgstr "%1$s, ∑ %2$d" + +#: Model/FormulaVariable.php:26 +msgid "Scale Variable" +msgstr "Scale Variable" + +#: Model/FormulaVariable.php:28 +msgid "Variable" +msgstr "Variable" + +#: Template/Test/Editor/edit-formulas.php:3 +msgid "Result" +msgstr "Result" + +#: Template/Test/Editor/edit-formulas.php:4 +msgid "Formula" +msgstr "Formula" + +#: Template/Test/Editor/edit-formulas.php:29 +msgid "No formulas to edit. To edit formulas you must have results selected." +msgstr "No formulas to edit. To edit formulas you must have results selected." + +#: Template/Test/Editor/edit-formulas.php:38 +msgid "Variables" +msgstr "Variables" + +#: Template/Test/Editor/edit-formulas.php:39 +msgid "Comparisions" +msgstr "Comparisions" + +#: Template/Test/Editor/edit-formulas.php:49 +msgid "Comparision" +msgstr "Comparision" + +#: Template/Test/Editor/edit-formulas.php:57 +msgid "" +"No variables for formulas available. To use variables you must have scales " +"selected." +msgstr "No variables for formulas available. To use variables you must have scales selected." + +#: Template/Test/Editor/edit-formulas.php:66 +msgid "" +"Both numbers and percents allowed. For example \"scale-bla\" has total 30, " +"then \"scale-bla > 15\" and \"scale-bla > 50%\" are same." +msgstr "Both numbers and percents allowed. For example \"scale-bla\" has total 30, then \"scale-bla > 15\" and \"scale-bla > 50%\" are same." + +#: Template/Test/Editor/add-questions.php:4 +#: Template/Test/Editor/add-questions.php:9 +msgid "Quick Fill From Text" +msgstr "Quick Fill From Text" + +#: Template/Test/Editor/add-questions.php:8 +msgid "" +"Paste here your questions and they will fill fields below. Numbers and other" +" indexes will be stripped automatically." +msgstr "Paste here your questions and they will fill fields below. Numbers and other indexes will be stripped automatically." + +#: Template/Test/Editor/submit-misc-actions.php:6 +msgid "Publish on the home page" +msgstr "Publish on the home page" + +#: Template/Test/Editor/edit-questions.php:29 +#: Template/Test/Editor/edit-questions.php:65 +msgid "Quick Fill Scores" +msgstr "Quick Fill Scores" + +#: Template/Test/Editor/edit-questions.php:37 +msgid "Scale" +msgstr "Scale" + +#: Template/Test/Editor/edit-questions.php:38 +msgid "Score" +msgstr "Score" + +#: Template/Test/Editor/edit-questions.php:39 +msgid "Answer" +msgstr "Answer" + +#: Template/Test/Editor/edit-questions.php:40 +msgid "Questions" +msgstr "Questions" + +#: Template/Test/Editor/edit-questions.php:86 +msgid "" +"No questions to edit. Add new questions and then they will appear here." +msgstr "No questions to edit. Add new questions and then they will appear here." + +#: Template/Test/Editor/edit-questions.php:94 +msgid "" +"No scores to edit. To edit scores you must have both answers and scales " +"selected." +msgstr "No scores to edit. To edit scores you must have both answers and scales selected." + +#: Template/Test/Passer/get-results.php:33 +#, php-format +msgid "%1$d out of %2$d" +msgstr "%1$d out of %2$d" + +#: Template/Test/Passer/fill-form.php:45 +msgid "Get Test Results" +msgstr "Get Test Results" + +#: Template/Test/Passer/fill-form.php:48 +msgid "Test is under construction" +msgstr "Test is under construction" + +#: Template/Test/Passer/fill-form.php:49 +msgid "You can not get any results from it yet." +msgstr "You can not get any results from it yet." diff --git a/languages/wp-testing-fr_FR.mo b/languages/wp-testing-fr_FR.mo new file mode 100644 index 00000000..77c25c5e Binary files /dev/null and b/languages/wp-testing-fr_FR.mo differ diff --git a/languages/wp-testing-fr_FR.po b/languages/wp-testing-fr_FR.po new file mode 100644 index 00000000..de18a3ba --- /dev/null +++ b/languages/wp-testing-fr_FR.po @@ -0,0 +1,464 @@ +# Copyright (C) 2014 Alexander Ustimenko +# This file is distrubuted under the GPL-3.0+ +# Translators: +# Alexander Ustimenko , 2014 +msgid "" +msgstr "" +"Project-Id-Version: WP testing\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-16 06:37+0700\n" +"PO-Revision-Date: 2014-11-16 00:56+0000\n" +"Last-Translator: Alexander Ustimenko \n" +"Language-Team: French (France) (http://www.transifex.com/projects/p/wp-testing/language/fr_FR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: fr_FR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Poedit-Basepath: ../src/\n" +"X-Poedit-KeywordsList: __;_e;_x;esc_html_e;esc_html__;esc_attr_e;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n" +"X-Poedit-SearchPath-0: .\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n" + +#: Doer/TestEditor.php:24 +msgid "Edit Questions and Scores" +msgstr "Modifier les questions et les scores" + +#: Doer/TestEditor.php:25 +msgid "Add New Questions" +msgstr "Ajouter de nouvelles Questions" + +#: Doer/TestEditor.php:26 +msgid "Edit Formulas" +msgstr "Modifier des formules" + +#: Doer/TestEditor.php:121 +msgid "Test data not saved" +msgstr "Tester les données non sauvegardées" + +#: Doer/WordPressEntitiesRegistrator.php:12 +#: Doer/WordPressEntitiesRegistrator.php:21 +msgid "Tests" +msgstr "Tests" + +#: Doer/WordPressEntitiesRegistrator.php:13 +msgid "Test" +msgstr "Test" + +#: Doer/WordPressEntitiesRegistrator.php:14 +msgctxt "test" +msgid "Add New" +msgstr "Ajouter un nouveau" + +#: Doer/WordPressEntitiesRegistrator.php:15 +msgid "Add New Test" +msgstr "Ajouter nouveau Test" + +#: Doer/WordPressEntitiesRegistrator.php:16 +msgid "Edit Test" +msgstr "Modifier le Test" + +#: Doer/WordPressEntitiesRegistrator.php:17 +msgid "View Test" +msgstr "Voir Test" + +#: Doer/WordPressEntitiesRegistrator.php:18 +msgid "Search Tests" +msgstr "Tests de recherche" + +#: Doer/WordPressEntitiesRegistrator.php:19 +msgid "Parent Test:" +msgstr "Test de parent:" + +#: Doer/WordPressEntitiesRegistrator.php:22 +msgid "All Tests" +msgstr "Tous les Tests" + +#: Doer/WordPressEntitiesRegistrator.php:23 +msgid "Update Test" +msgstr "Mise à jour de Test" + +#: Doer/WordPressEntitiesRegistrator.php:24 +msgid "New Test Name" +msgstr "Nouveau Test nom" + +#: Doer/WordPressEntitiesRegistrator.php:25 +msgid "Parent Test" +msgstr "Test parent" + +#: Doer/WordPressEntitiesRegistrator.php:27 +msgid "New Test" +msgstr "Nouveau Test" + +#: Doer/WordPressEntitiesRegistrator.php:28 +msgid "No Tests found" +msgstr "Aucun test trouvé" + +#: Doer/WordPressEntitiesRegistrator.php:29 +msgid "No Tests found in Trash" +msgstr "Aucun test ne trouvé dans la corbeille" + +#: Doer/WordPressEntitiesRegistrator.php:31 +msgid "" +"Instrument to measure unobserved constructs (latent variables). Typically it" +" is a series of tasks or problems that the respondent has to solve." +msgstr "Instrument pour mesurer la non prise en charge des constructions (variables latentes). En général, c'est une série de tâches ou de problèmes que l'intimé a à résoudre." + +#: Doer/WordPressEntitiesRegistrator.php:58 +msgid "Test Answers" +msgstr "Réponses à l'examen" + +#: Doer/WordPressEntitiesRegistrator.php:59 +msgid "Test Answer" +msgstr "Réponse de test" + +#: Doer/WordPressEntitiesRegistrator.php:60 +msgid "Add New Answer" +msgstr "Ajouter nouvelle réponse" + +#: Doer/WordPressEntitiesRegistrator.php:61 +msgid "Edit Answer" +msgstr "Modifier la réponse" + +#: Doer/WordPressEntitiesRegistrator.php:62 +msgid "View Answer" +msgstr "Réponse de vue" + +#: Doer/WordPressEntitiesRegistrator.php:63 +msgid "Search Answers" +msgstr "Recherche réponses" + +#: Doer/WordPressEntitiesRegistrator.php:64 +msgid "Parent Answer:" +msgstr "Réponse de parent:" + +#: Doer/WordPressEntitiesRegistrator.php:66 +msgid "Answers" +msgstr "Réponses" + +#: Doer/WordPressEntitiesRegistrator.php:67 +msgid "All Answers" +msgstr "Toutes les réponses" + +#: Doer/WordPressEntitiesRegistrator.php:68 +msgid "Update Answer" +msgstr "Réponse de mise à jour" + +#: Doer/WordPressEntitiesRegistrator.php:69 +msgid "New Answer Name" +msgstr "Nouveau nom de réponse" + +#: Doer/WordPressEntitiesRegistrator.php:70 +msgid "Parent Answer" +msgstr "Réponse de parent" + +#: Doer/WordPressEntitiesRegistrator.php:72 +msgid "New Answer" +msgstr "Nouvelle réponse" + +#: Doer/WordPressEntitiesRegistrator.php:73 +msgid "No Answers found" +msgstr "Pas trouvés de réponses" + +#: Doer/WordPressEntitiesRegistrator.php:74 +msgid "No Answers found in Trash" +msgstr "Aucune réponses trouvées dans la corbeille" + +#: Doer/WordPressEntitiesRegistrator.php:79 +msgid "Test Scales" +msgstr "Échelles d'essai" + +#: Doer/WordPressEntitiesRegistrator.php:80 +msgid "Test Scale" +msgstr "Barème de test" + +#: Doer/WordPressEntitiesRegistrator.php:81 +msgid "Add New Scale" +msgstr "Ajouter le nouveau barème" + +#: Doer/WordPressEntitiesRegistrator.php:82 +msgid "Edit Scale" +msgstr "Modifier l'échelle" + +#: Doer/WordPressEntitiesRegistrator.php:83 +msgid "View Scale" +msgstr "Échelle de la vue" + +#: Doer/WordPressEntitiesRegistrator.php:84 +msgid "Search Scales" +msgstr "Recherche des échelles" + +#: Doer/WordPressEntitiesRegistrator.php:85 +msgid "Parent Scale:" +msgstr "Échelle des parents:" + +#: Doer/WordPressEntitiesRegistrator.php:87 +msgid "Scales" +msgstr "Échelles" + +#: Doer/WordPressEntitiesRegistrator.php:88 +msgid "All Scales" +msgstr "Toutes les échelles" + +#: Doer/WordPressEntitiesRegistrator.php:89 +msgid "Update Scale" +msgstr "Mise à jour échelle" + +#: Doer/WordPressEntitiesRegistrator.php:90 +msgid "New Scale Name" +msgstr "Nouveau nom de l'échelle" + +#: Doer/WordPressEntitiesRegistrator.php:91 +msgid "Parent Scale" +msgstr "Échelle des parents" + +#: Doer/WordPressEntitiesRegistrator.php:93 +msgid "New Scale" +msgstr "Nouveau barème" + +#: Doer/WordPressEntitiesRegistrator.php:94 +msgid "No Scales found" +msgstr "Dépourvu d'écailles trouvées" + +#: Doer/WordPressEntitiesRegistrator.php:95 +msgid "No Scales found in Trash" +msgstr "Dépourvu d'écailles trouvées dans la corbeille" + +#: Doer/WordPressEntitiesRegistrator.php:100 +msgid "Test Results" +msgstr "Résultats des tests" + +#: Doer/WordPressEntitiesRegistrator.php:101 +msgid "Test Result" +msgstr "Résultat du test" + +#: Doer/WordPressEntitiesRegistrator.php:102 +msgid "Add New Result" +msgstr "Ajouter nouveau résultat" + +#: Doer/WordPressEntitiesRegistrator.php:103 +msgid "Edit Result" +msgstr "Modifier le résultat" + +#: Doer/WordPressEntitiesRegistrator.php:104 +msgid "View Result" +msgstr "Résultat de la vue" + +#: Doer/WordPressEntitiesRegistrator.php:105 +msgid "Search Results" +msgstr "Résultats de recherche" + +#: Doer/WordPressEntitiesRegistrator.php:106 +msgid "Parent Result:" +msgstr "Résultat de parent:" + +#: Doer/WordPressEntitiesRegistrator.php:108 +msgid "Results" +msgstr "Résultats" + +#: Doer/WordPressEntitiesRegistrator.php:109 +msgid "All Results" +msgstr "Tous les résultats" + +#: Doer/WordPressEntitiesRegistrator.php:110 +msgid "Update Result" +msgstr "Mise à jour résultat" + +#: Doer/WordPressEntitiesRegistrator.php:111 +msgid "New Result Name" +msgstr "Nouveau nom de résultat" + +#: Doer/WordPressEntitiesRegistrator.php:112 +msgid "Parent Result" +msgstr "Résultat de parent" + +#: Doer/WordPressEntitiesRegistrator.php:114 +msgid "New Result" +msgstr "Nouveau résultat" + +#: Doer/WordPressEntitiesRegistrator.php:115 +msgid "No Results found" +msgstr "Aucun résultat trouvé" + +#: Doer/WordPressEntitiesRegistrator.php:116 +msgid "No Results found in Trash" +msgstr "Aucun résultat trouvé dans la poubelle" + +#: Doer/WordPressEntitiesRegistrator.php:121 +msgid "Test Categories" +msgstr "Catégories de test" + +#: Doer/WordPressEntitiesRegistrator.php:122 +msgid "Test Category" +msgstr "Catégorie de test" + +#: Doer/WordPressEntitiesRegistrator.php:123 +msgid "Add New Category" +msgstr "Ajouter nouvelle catégorie" + +#: Doer/WordPressEntitiesRegistrator.php:124 +msgid "Edit Category" +msgstr "Modifier la catégorie" + +#: Doer/WordPressEntitiesRegistrator.php:125 +msgid "View Category" +msgstr "Catégorie de vue" + +#: Doer/WordPressEntitiesRegistrator.php:126 +msgid "Search Categories" +msgstr "Catégories de recherche" + +#: Doer/WordPressEntitiesRegistrator.php:127 +msgid "Parent Category:" +msgstr "Catégorie parente:" + +#: Doer/WordPressEntitiesRegistrator.php:129 +msgid "Categories" +msgstr "Catégories" + +#: Doer/WordPressEntitiesRegistrator.php:130 +msgid "All Categories" +msgstr "Toutes les catégories" + +#: Doer/WordPressEntitiesRegistrator.php:131 +msgid "Update Category" +msgstr "Catégorie de mise à jour" + +#: Doer/WordPressEntitiesRegistrator.php:132 +msgid "New Category Name" +msgstr "Nouveau nom de la catégorie" + +#: Doer/WordPressEntitiesRegistrator.php:133 +msgid "Parent Category" +msgstr "Catégorie parent" + +#: Doer/WordPressEntitiesRegistrator.php:135 +msgid "New Category" +msgstr "Nouvelle catégorie" + +#: Doer/WordPressEntitiesRegistrator.php:136 +msgid "No Categories found" +msgstr "Pas trouvés de catégories" + +#: Doer/WordPressEntitiesRegistrator.php:137 +msgid "No Categories found in Trash" +msgstr "Pas trouvés dans la corbeille de catégories" + +#: Model/Formula.php:217 +#, php-format +msgid "Formula for %s has error" +msgstr "Formule pour %s a erreur" + +#: Model/FormulaVariable.php:17 +#, php-format +msgid "%1$s, ∑ %2$d" +msgstr "%1$s, ∑ %2$d" + +#: Model/FormulaVariable.php:26 +msgid "Scale Variable" +msgstr "Échelle Variable" + +#: Model/FormulaVariable.php:28 +msgid "Variable" +msgstr "Variable" + +#: Template/Test/Editor/edit-formulas.php:3 +msgid "Result" +msgstr "Résultat" + +#: Template/Test/Editor/edit-formulas.php:4 +msgid "Formula" +msgstr "Formule" + +#: Template/Test/Editor/edit-formulas.php:29 +msgid "No formulas to edit. To edit formulas you must have results selected." +msgstr "Aucune formule à modifier. Pour modifier des formules, vous devez avoir sélectionné des résultats." + +#: Template/Test/Editor/edit-formulas.php:38 +msgid "Variables" +msgstr "Variables" + +#: Template/Test/Editor/edit-formulas.php:39 +msgid "Comparisions" +msgstr "Comparaisons" + +#: Template/Test/Editor/edit-formulas.php:49 +msgid "Comparision" +msgstr "Comparision" + +#: Template/Test/Editor/edit-formulas.php:57 +msgid "" +"No variables for formulas available. To use variables you must have scales " +"selected." +msgstr "Aucune variable pour les formules disponibles. Pour utiliser des variables, que vous devez avoir les échelles choisies." + +#: Template/Test/Editor/edit-formulas.php:66 +msgid "" +"Both numbers and percents allowed. For example \"scale-bla\" has total 30, " +"then \"scale-bla > 15\" and \"scale-bla > 50%\" are same." +msgstr "Des chiffres et des pourcentages autorisés. Par exemple, \"scale-bla\" a un total de 30, puis \"scale-bla > 15\" et \"scale-bla > 50%\" sont même." + +#: Template/Test/Editor/add-questions.php:4 +#: Template/Test/Editor/add-questions.php:9 +msgid "Quick Fill From Text" +msgstr "Remplissage Rapide de Texte" + +#: Template/Test/Editor/add-questions.php:8 +msgid "" +"Paste here your questions and they will fill fields below. Numbers and other" +" indexes will be stripped automatically." +msgstr "Collez ici vos questions et vous feront remplir les champs ci-dessous. Les chiffres et les autres indices seront supprimés automatiquement." + +#: Template/Test/Editor/submit-misc-actions.php:6 +msgid "Publish on the home page" +msgstr "Publier sur la page d'accueil" + +#: Template/Test/Editor/edit-questions.php:29 +#: Template/Test/Editor/edit-questions.php:65 +msgid "Quick Fill Scores" +msgstr "Remplir rapidement des points" + +#: Template/Test/Editor/edit-questions.php:37 +msgid "Scale" +msgstr "Appliquer" + +#: Template/Test/Editor/edit-questions.php:38 +msgid "Score" +msgstr "Score" + +#: Template/Test/Editor/edit-questions.php:39 +msgid "Answer" +msgstr "Réponse" + +#: Template/Test/Editor/edit-questions.php:40 +msgid "Questions" +msgstr "Questions" + +#: Template/Test/Editor/edit-questions.php:86 +msgid "" +"No questions to edit. Add new questions and then they will appear here." +msgstr "Aucune question d'éditer. Ajouter de nouvelles questions et puis elles apparaîtront ici." + +#: Template/Test/Editor/edit-questions.php:94 +msgid "" +"No scores to edit. To edit scores you must have both answers and scales " +"selected." +msgstr "Aucun des scores d'éditer. Pour éditer des partitions, vous devez avoir des réponses et des échelles choisies." + +#: Template/Test/Passer/get-results.php:33 +#, php-format +msgid "%1$d out of %2$d" +msgstr "%1$d sur %2$d" + +#: Template/Test/Passer/fill-form.php:45 +msgid "Get Test Results" +msgstr "Obtenez les résultats des tests" + +#: Template/Test/Passer/fill-form.php:48 +msgid "Test is under construction" +msgstr "Test est en cours de construction" + +#: Template/Test/Passer/fill-form.php:49 +msgid "You can not get any results from it yet." +msgstr "Vous ne pouvez pas obtenir aucun résultat d'elle encore." diff --git a/languages/wp-testing-nl_NL.mo b/languages/wp-testing-nl_NL.mo new file mode 100644 index 00000000..3423ef80 Binary files /dev/null and b/languages/wp-testing-nl_NL.mo differ diff --git a/languages/wp-testing-nl_NL.po b/languages/wp-testing-nl_NL.po new file mode 100644 index 00000000..0aacd3aa --- /dev/null +++ b/languages/wp-testing-nl_NL.po @@ -0,0 +1,464 @@ +# Copyright (C) 2014 Alexander Ustimenko +# This file is distrubuted under the GPL-3.0+ +# Translators: +# Alexander Ustimenko , 2014 +msgid "" +msgstr "" +"Project-Id-Version: WP testing\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-16 06:37+0700\n" +"PO-Revision-Date: 2014-11-16 00:56+0000\n" +"Last-Translator: Alexander Ustimenko \n" +"Language-Team: Dutch (Netherlands) (http://www.transifex.com/projects/p/wp-testing/language/nl_NL/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: nl_NL\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-Basepath: ../src/\n" +"X-Poedit-KeywordsList: __;_e;_x;esc_html_e;esc_html__;esc_attr_e;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n" +"X-Poedit-SearchPath-0: .\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n" + +#: Doer/TestEditor.php:24 +msgid "Edit Questions and Scores" +msgstr "Rediger spørgsmål og scoringer" + +#: Doer/TestEditor.php:25 +msgid "Add New Questions" +msgstr "Nieuwe vragen toevoegen" + +#: Doer/TestEditor.php:26 +msgid "Edit Formulas" +msgstr "Formules bewerken" + +#: Doer/TestEditor.php:121 +msgid "Test data not saved" +msgstr "Testgegevens niet opgeslagen" + +#: Doer/WordPressEntitiesRegistrator.php:12 +#: Doer/WordPressEntitiesRegistrator.php:21 +msgid "Tests" +msgstr "Proeven" + +#: Doer/WordPressEntitiesRegistrator.php:13 +msgid "Test" +msgstr "Test" + +#: Doer/WordPressEntitiesRegistrator.php:14 +msgctxt "test" +msgid "Add New" +msgstr "Nieuwe toevoegen" + +#: Doer/WordPressEntitiesRegistrator.php:15 +msgid "Add New Test" +msgstr "Toevoegen van nieuwe Test" + +#: Doer/WordPressEntitiesRegistrator.php:16 +msgid "Edit Test" +msgstr "Test bewerken" + +#: Doer/WordPressEntitiesRegistrator.php:17 +msgid "View Test" +msgstr "Weergave Test" + +#: Doer/WordPressEntitiesRegistrator.php:18 +msgid "Search Tests" +msgstr "Zoek Tests" + +#: Doer/WordPressEntitiesRegistrator.php:19 +msgid "Parent Test:" +msgstr "Bovenliggende Test:" + +#: Doer/WordPressEntitiesRegistrator.php:22 +msgid "All Tests" +msgstr "Alle Tests" + +#: Doer/WordPressEntitiesRegistrator.php:23 +msgid "Update Test" +msgstr "Update Test" + +#: Doer/WordPressEntitiesRegistrator.php:24 +msgid "New Test Name" +msgstr "Nieuwe Test naam" + +#: Doer/WordPressEntitiesRegistrator.php:25 +msgid "Parent Test" +msgstr "Bovenliggende Test" + +#: Doer/WordPressEntitiesRegistrator.php:27 +msgid "New Test" +msgstr "Nieuwe Test" + +#: Doer/WordPressEntitiesRegistrator.php:28 +msgid "No Tests found" +msgstr "Geen Tests gevonden" + +#: Doer/WordPressEntitiesRegistrator.php:29 +msgid "No Tests found in Trash" +msgstr "Geen Tests gevonden in Prullenbak" + +#: Doer/WordPressEntitiesRegistrator.php:31 +msgid "" +"Instrument to measure unobserved constructs (latent variables). Typically it" +" is a series of tasks or problems that the respondent has to solve." +msgstr "En psykologisk test er en standardiseret måling af forskellige aspekter af menneskelig adfærd, såsom intelligens eller personlighed." + +#: Doer/WordPressEntitiesRegistrator.php:58 +msgid "Test Answers" +msgstr "Test antwoorden" + +#: Doer/WordPressEntitiesRegistrator.php:59 +msgid "Test Answer" +msgstr "Test antwoord" + +#: Doer/WordPressEntitiesRegistrator.php:60 +msgid "Add New Answer" +msgstr "Toevoegen van nieuwe antwoord" + +#: Doer/WordPressEntitiesRegistrator.php:61 +msgid "Edit Answer" +msgstr "Antwoord bewerken" + +#: Doer/WordPressEntitiesRegistrator.php:62 +msgid "View Answer" +msgstr "Weergave antwoord" + +#: Doer/WordPressEntitiesRegistrator.php:63 +msgid "Search Answers" +msgstr "Zoek antwoorden" + +#: Doer/WordPressEntitiesRegistrator.php:64 +msgid "Parent Answer:" +msgstr "Bovenliggende antwoord:" + +#: Doer/WordPressEntitiesRegistrator.php:66 +msgid "Answers" +msgstr "Antwoorden" + +#: Doer/WordPressEntitiesRegistrator.php:67 +msgid "All Answers" +msgstr "Alle antwoorden" + +#: Doer/WordPressEntitiesRegistrator.php:68 +msgid "Update Answer" +msgstr "Bijwerken antwoord" + +#: Doer/WordPressEntitiesRegistrator.php:69 +msgid "New Answer Name" +msgstr "Nieuwe antwoord naam" + +#: Doer/WordPressEntitiesRegistrator.php:70 +msgid "Parent Answer" +msgstr "Bovenliggende antwoord" + +#: Doer/WordPressEntitiesRegistrator.php:72 +msgid "New Answer" +msgstr "Nieuwe antwoord" + +#: Doer/WordPressEntitiesRegistrator.php:73 +msgid "No Answers found" +msgstr "Geen antwoorden gevonden" + +#: Doer/WordPressEntitiesRegistrator.php:74 +msgid "No Answers found in Trash" +msgstr "Geen antwoorden gevonden in Prullenbak" + +#: Doer/WordPressEntitiesRegistrator.php:79 +msgid "Test Scales" +msgstr "Test schalen" + +#: Doer/WordPressEntitiesRegistrator.php:80 +msgid "Test Scale" +msgstr "Test schaal" + +#: Doer/WordPressEntitiesRegistrator.php:81 +msgid "Add New Scale" +msgstr "Toevoegen van nieuwe schaal" + +#: Doer/WordPressEntitiesRegistrator.php:82 +msgid "Edit Scale" +msgstr "Schaal bewerken" + +#: Doer/WordPressEntitiesRegistrator.php:83 +msgid "View Scale" +msgstr "Weergave schaal" + +#: Doer/WordPressEntitiesRegistrator.php:84 +msgid "Search Scales" +msgstr "Zoek schalen" + +#: Doer/WordPressEntitiesRegistrator.php:85 +msgid "Parent Scale:" +msgstr "Bovenliggende schaal:" + +#: Doer/WordPressEntitiesRegistrator.php:87 +msgid "Scales" +msgstr "Schalen" + +#: Doer/WordPressEntitiesRegistrator.php:88 +msgid "All Scales" +msgstr "Alle schalen" + +#: Doer/WordPressEntitiesRegistrator.php:89 +msgid "Update Scale" +msgstr "Schaal bijwerken" + +#: Doer/WordPressEntitiesRegistrator.php:90 +msgid "New Scale Name" +msgstr "Nieuwe schaal naam" + +#: Doer/WordPressEntitiesRegistrator.php:91 +msgid "Parent Scale" +msgstr "Bovenliggende schaal" + +#: Doer/WordPressEntitiesRegistrator.php:93 +msgid "New Scale" +msgstr "Nieuwe schaal" + +#: Doer/WordPressEntitiesRegistrator.php:94 +msgid "No Scales found" +msgstr "Geen schalen gevonden" + +#: Doer/WordPressEntitiesRegistrator.php:95 +msgid "No Scales found in Trash" +msgstr "Geen schalen gevonden in Prullenbak" + +#: Doer/WordPressEntitiesRegistrator.php:100 +msgid "Test Results" +msgstr "Testresultaten" + +#: Doer/WordPressEntitiesRegistrator.php:101 +msgid "Test Result" +msgstr "Testresultaat" + +#: Doer/WordPressEntitiesRegistrator.php:102 +msgid "Add New Result" +msgstr "Toevoegen van nieuwe resultaat" + +#: Doer/WordPressEntitiesRegistrator.php:103 +msgid "Edit Result" +msgstr "Resultaat bewerken" + +#: Doer/WordPressEntitiesRegistrator.php:104 +msgid "View Result" +msgstr "Bekijk resultaat" + +#: Doer/WordPressEntitiesRegistrator.php:105 +msgid "Search Results" +msgstr "Zoekresultaten" + +#: Doer/WordPressEntitiesRegistrator.php:106 +msgid "Parent Result:" +msgstr "Bovenliggende resultaat:" + +#: Doer/WordPressEntitiesRegistrator.php:108 +msgid "Results" +msgstr "Resultaten" + +#: Doer/WordPressEntitiesRegistrator.php:109 +msgid "All Results" +msgstr "Alle resultaten" + +#: Doer/WordPressEntitiesRegistrator.php:110 +msgid "Update Result" +msgstr "Resultaat bijgewerkt" + +#: Doer/WordPressEntitiesRegistrator.php:111 +msgid "New Result Name" +msgstr "Nieuwe resultaat naam" + +#: Doer/WordPressEntitiesRegistrator.php:112 +msgid "Parent Result" +msgstr "Bovenliggende resultaat" + +#: Doer/WordPressEntitiesRegistrator.php:114 +msgid "New Result" +msgstr "Nieuwe resultaat" + +#: Doer/WordPressEntitiesRegistrator.php:115 +msgid "No Results found" +msgstr "Geen resultaten gevonden" + +#: Doer/WordPressEntitiesRegistrator.php:116 +msgid "No Results found in Trash" +msgstr "Geen resultaten gevonden in de Prullenbak" + +#: Doer/WordPressEntitiesRegistrator.php:121 +msgid "Test Categories" +msgstr "Test Categorieën" + +#: Doer/WordPressEntitiesRegistrator.php:122 +msgid "Test Category" +msgstr "Test categorie" + +#: Doer/WordPressEntitiesRegistrator.php:123 +msgid "Add New Category" +msgstr "Nieuwe categorie toevoegen" + +#: Doer/WordPressEntitiesRegistrator.php:124 +msgid "Edit Category" +msgstr "Categorie bewerken" + +#: Doer/WordPressEntitiesRegistrator.php:125 +msgid "View Category" +msgstr "Categorie tonen" + +#: Doer/WordPressEntitiesRegistrator.php:126 +msgid "Search Categories" +msgstr "Categorieën zoeken" + +#: Doer/WordPressEntitiesRegistrator.php:127 +msgid "Parent Category:" +msgstr "Bovenliggende categorie:" + +#: Doer/WordPressEntitiesRegistrator.php:129 +msgid "Categories" +msgstr "Categorieën" + +#: Doer/WordPressEntitiesRegistrator.php:130 +msgid "All Categories" +msgstr "Alle categorieën" + +#: Doer/WordPressEntitiesRegistrator.php:131 +msgid "Update Category" +msgstr "Categorie bijwerken" + +#: Doer/WordPressEntitiesRegistrator.php:132 +msgid "New Category Name" +msgstr "Nieuwe categorienaam" + +#: Doer/WordPressEntitiesRegistrator.php:133 +msgid "Parent Category" +msgstr "Bovenliggende categorie" + +#: Doer/WordPressEntitiesRegistrator.php:135 +msgid "New Category" +msgstr "Nieuwe categorie" + +#: Doer/WordPressEntitiesRegistrator.php:136 +msgid "No Categories found" +msgstr "Er zijn geen rubrieken gevonden" + +#: Doer/WordPressEntitiesRegistrator.php:137 +msgid "No Categories found in Trash" +msgstr "Er zijn geen rubrieken gevonden in Prullenbak" + +#: Model/Formula.php:217 +#, php-format +msgid "Formula for %s has error" +msgstr "Formule voor %s heeft fout" + +#: Model/FormulaVariable.php:17 +#, php-format +msgid "%1$s, ∑ %2$d" +msgstr "%1$s, ∑ %2$d" + +#: Model/FormulaVariable.php:26 +msgid "Scale Variable" +msgstr "Schaal variabele" + +#: Model/FormulaVariable.php:28 +msgid "Variable" +msgstr "Variabele" + +#: Template/Test/Editor/edit-formulas.php:3 +msgid "Result" +msgstr "Resultaat" + +#: Template/Test/Editor/edit-formulas.php:4 +msgid "Formula" +msgstr "Formule" + +#: Template/Test/Editor/edit-formulas.php:29 +msgid "No formulas to edit. To edit formulas you must have results selected." +msgstr "Geen formules te bewerken. Als u wilt formules bewerken hebt u resultaten geselecteerd." + +#: Template/Test/Editor/edit-formulas.php:38 +msgid "Variables" +msgstr "Variabelen" + +#: Template/Test/Editor/edit-formulas.php:39 +msgid "Comparisions" +msgstr "Comparisions" + +#: Template/Test/Editor/edit-formulas.php:49 +msgid "Comparision" +msgstr "Vergelijking" + +#: Template/Test/Editor/edit-formulas.php:57 +msgid "" +"No variables for formulas available. To use variables you must have scales " +"selected." +msgstr "Geen variabelen voor formules beschikbaar. Hiermee schaalt u geselecteerde voor het gebruik van variabelen die u moet hebben." + +#: Template/Test/Editor/edit-formulas.php:66 +msgid "" +"Both numbers and percents allowed. For example \"scale-bla\" has total 30, " +"then \"scale-bla > 15\" and \"scale-bla > 50%\" are same." +msgstr "Både tal og procenter tilladt. For eksempel vil \"scale-bla\" har samlede 30, derefter \"scale-bla > 15\" og \"scale-bla > 50%\" er samme." + +#: Template/Test/Editor/add-questions.php:4 +#: Template/Test/Editor/add-questions.php:9 +msgid "Quick Fill From Text" +msgstr "Quick Fyld fra Tekst" + +#: Template/Test/Editor/add-questions.php:8 +msgid "" +"Paste here your questions and they will fill fields below. Numbers and other" +" indexes will be stripped automatically." +msgstr "Indsæt her dine spørgsmål, og de vil udfylde nedenstående felter. Numre og andre indekser strippes automatisk." + +#: Template/Test/Editor/submit-misc-actions.php:6 +msgid "Publish on the home page" +msgstr "Publiceren op de home page" + +#: Template/Test/Editor/edit-questions.php:29 +#: Template/Test/Editor/edit-questions.php:65 +msgid "Quick Fill Scores" +msgstr "Hurtigt fylde point" + +#: Template/Test/Editor/edit-questions.php:37 +msgid "Scale" +msgstr "Schaal" + +#: Template/Test/Editor/edit-questions.php:38 +msgid "Score" +msgstr "Score" + +#: Template/Test/Editor/edit-questions.php:39 +msgid "Answer" +msgstr "Besvar" + +#: Template/Test/Editor/edit-questions.php:40 +msgid "Questions" +msgstr "Spørgsmål" + +#: Template/Test/Editor/edit-questions.php:86 +msgid "" +"No questions to edit. Add new questions and then they will appear here." +msgstr "Geen vragen om te bewerken. Toevoegen van nieuwe vragen en dan ze hier zal verschijnen." + +#: Template/Test/Editor/edit-questions.php:94 +msgid "" +"No scores to edit. To edit scores you must have both answers and scales " +"selected." +msgstr "Geen scores te bewerken. Als u wilt bewerken van partituren moet u antwoorden en schalen geselecteerd." + +#: Template/Test/Passer/get-results.php:33 +#, php-format +msgid "%1$d out of %2$d" +msgstr "%1$d ud af %2$d" + +#: Template/Test/Passer/fill-form.php:45 +msgid "Get Test Results" +msgstr "Testresultaten te krijgen" + +#: Template/Test/Passer/fill-form.php:48 +msgid "Test is under construction" +msgstr "Test is in aanbouw" + +#: Template/Test/Passer/fill-form.php:49 +msgid "You can not get any results from it yet." +msgstr "U kunt niet krijgen geen resultaten van het nog." diff --git a/languages/wp-testing-ru_RU.mo b/languages/wp-testing-ru_RU.mo new file mode 100644 index 00000000..d02c5063 Binary files /dev/null and b/languages/wp-testing-ru_RU.mo differ diff --git a/languages/wp-testing-ru_RU.po b/languages/wp-testing-ru_RU.po new file mode 100644 index 00000000..2b777fdc --- /dev/null +++ b/languages/wp-testing-ru_RU.po @@ -0,0 +1,464 @@ +# Copyright (C) 2014 Alexander Ustimenko +# This file is distrubuted under the GPL-3.0+ +# Translators: +# Alexander Ustimenko , 2014 +msgid "" +msgstr "" +"Project-Id-Version: WP testing\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-16 06:37+0700\n" +"PO-Revision-Date: 2014-11-16 00:56+0000\n" +"Last-Translator: Alexander Ustimenko \n" +"Language-Team: Russian (Russia) (http://www.transifex.com/projects/p/wp-testing/language/ru_RU/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ru_RU\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"X-Poedit-Basepath: ../src/\n" +"X-Poedit-KeywordsList: __;_e;_x;esc_html_e;esc_html__;esc_attr_e;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n" +"X-Poedit-SearchPath-0: .\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n" + +#: Doer/TestEditor.php:24 +msgid "Edit Questions and Scores" +msgstr "Редактировать вопросы и баллы" + +#: Doer/TestEditor.php:25 +msgid "Add New Questions" +msgstr "Добавить новые вопросы" + +#: Doer/TestEditor.php:26 +msgid "Edit Formulas" +msgstr "Редактировать формулы" + +#: Doer/TestEditor.php:121 +msgid "Test data not saved" +msgstr "Данные теста не сохранены" + +#: Doer/WordPressEntitiesRegistrator.php:12 +#: Doer/WordPressEntitiesRegistrator.php:21 +msgid "Tests" +msgstr "Тесты" + +#: Doer/WordPressEntitiesRegistrator.php:13 +msgid "Test" +msgstr "Тест" + +#: Doer/WordPressEntitiesRegistrator.php:14 +msgctxt "test" +msgid "Add New" +msgstr "Добавить новый" + +#: Doer/WordPressEntitiesRegistrator.php:15 +msgid "Add New Test" +msgstr "Добавить новый тест" + +#: Doer/WordPressEntitiesRegistrator.php:16 +msgid "Edit Test" +msgstr "Редактировать тест" + +#: Doer/WordPressEntitiesRegistrator.php:17 +msgid "View Test" +msgstr "Просмотреть тест" + +#: Doer/WordPressEntitiesRegistrator.php:18 +msgid "Search Tests" +msgstr "Поиск тестов" + +#: Doer/WordPressEntitiesRegistrator.php:19 +msgid "Parent Test:" +msgstr "Родительский тест" + +#: Doer/WordPressEntitiesRegistrator.php:22 +msgid "All Tests" +msgstr "Все тесты" + +#: Doer/WordPressEntitiesRegistrator.php:23 +msgid "Update Test" +msgstr "Обновить тест" + +#: Doer/WordPressEntitiesRegistrator.php:24 +msgid "New Test Name" +msgstr "Имя нового теста" + +#: Doer/WordPressEntitiesRegistrator.php:25 +msgid "Parent Test" +msgstr "Родительский тест" + +#: Doer/WordPressEntitiesRegistrator.php:27 +msgid "New Test" +msgstr "Новый тест" + +#: Doer/WordPressEntitiesRegistrator.php:28 +msgid "No Tests found" +msgstr "Тестов не найдено" + +#: Doer/WordPressEntitiesRegistrator.php:29 +msgid "No Tests found in Trash" +msgstr "Тестов в корзине не найдено" + +#: Doer/WordPressEntitiesRegistrator.php:31 +msgid "" +"Instrument to measure unobserved constructs (latent variables). Typically it" +" is a series of tasks or problems that the respondent has to solve." +msgstr "Стандартизированное задание, по результатам выполнения которого судят о психофизиологических и личностных характеристиках, знаниях, умениях и навыках испытуемого." + +#: Doer/WordPressEntitiesRegistrator.php:58 +msgid "Test Answers" +msgstr "Ответы теста" + +#: Doer/WordPressEntitiesRegistrator.php:59 +msgid "Test Answer" +msgstr "Ответ теста" + +#: Doer/WordPressEntitiesRegistrator.php:60 +msgid "Add New Answer" +msgstr "Добавить новый ответ" + +#: Doer/WordPressEntitiesRegistrator.php:61 +msgid "Edit Answer" +msgstr "Редактировать ответ" + +#: Doer/WordPressEntitiesRegistrator.php:62 +msgid "View Answer" +msgstr "Просмотреть ответ" + +#: Doer/WordPressEntitiesRegistrator.php:63 +msgid "Search Answers" +msgstr "Поиск ответов" + +#: Doer/WordPressEntitiesRegistrator.php:64 +msgid "Parent Answer:" +msgstr "Родительский ответ:" + +#: Doer/WordPressEntitiesRegistrator.php:66 +msgid "Answers" +msgstr "Ответы" + +#: Doer/WordPressEntitiesRegistrator.php:67 +msgid "All Answers" +msgstr "Все ответы" + +#: Doer/WordPressEntitiesRegistrator.php:68 +msgid "Update Answer" +msgstr "Обновить ответ" + +#: Doer/WordPressEntitiesRegistrator.php:69 +msgid "New Answer Name" +msgstr "Имя нового ответа" + +#: Doer/WordPressEntitiesRegistrator.php:70 +msgid "Parent Answer" +msgstr "Родительский ответ" + +#: Doer/WordPressEntitiesRegistrator.php:72 +msgid "New Answer" +msgstr "Новый ответ" + +#: Doer/WordPressEntitiesRegistrator.php:73 +msgid "No Answers found" +msgstr "Ответов не найдено" + +#: Doer/WordPressEntitiesRegistrator.php:74 +msgid "No Answers found in Trash" +msgstr "Ответов в корзине не найдено" + +#: Doer/WordPressEntitiesRegistrator.php:79 +msgid "Test Scales" +msgstr "Шкалы теста" + +#: Doer/WordPressEntitiesRegistrator.php:80 +msgid "Test Scale" +msgstr "Шкала теста" + +#: Doer/WordPressEntitiesRegistrator.php:81 +msgid "Add New Scale" +msgstr "Добавить новую шкалу" + +#: Doer/WordPressEntitiesRegistrator.php:82 +msgid "Edit Scale" +msgstr "Редактировать шкалу" + +#: Doer/WordPressEntitiesRegistrator.php:83 +msgid "View Scale" +msgstr "Просмотреть шкалу" + +#: Doer/WordPressEntitiesRegistrator.php:84 +msgid "Search Scales" +msgstr "Поиск шкал" + +#: Doer/WordPressEntitiesRegistrator.php:85 +msgid "Parent Scale:" +msgstr "Родительская шкала:" + +#: Doer/WordPressEntitiesRegistrator.php:87 +msgid "Scales" +msgstr "Шкалы" + +#: Doer/WordPressEntitiesRegistrator.php:88 +msgid "All Scales" +msgstr "Все шкалы" + +#: Doer/WordPressEntitiesRegistrator.php:89 +msgid "Update Scale" +msgstr "Обновить шкалу" + +#: Doer/WordPressEntitiesRegistrator.php:90 +msgid "New Scale Name" +msgstr "Имя новой шкалы" + +#: Doer/WordPressEntitiesRegistrator.php:91 +msgid "Parent Scale" +msgstr "Родительская шкала" + +#: Doer/WordPressEntitiesRegistrator.php:93 +msgid "New Scale" +msgstr "Новая шкала" + +#: Doer/WordPressEntitiesRegistrator.php:94 +msgid "No Scales found" +msgstr "Шкал не найдено" + +#: Doer/WordPressEntitiesRegistrator.php:95 +msgid "No Scales found in Trash" +msgstr "Шкал в корзине не найдено" + +#: Doer/WordPressEntitiesRegistrator.php:100 +msgid "Test Results" +msgstr "Результаты теста" + +#: Doer/WordPressEntitiesRegistrator.php:101 +msgid "Test Result" +msgstr "Результат теста" + +#: Doer/WordPressEntitiesRegistrator.php:102 +msgid "Add New Result" +msgstr "Добавить новый результат" + +#: Doer/WordPressEntitiesRegistrator.php:103 +msgid "Edit Result" +msgstr "Редактировать результат" + +#: Doer/WordPressEntitiesRegistrator.php:104 +msgid "View Result" +msgstr "Просмотреть результат" + +#: Doer/WordPressEntitiesRegistrator.php:105 +msgid "Search Results" +msgstr "Поиск результатов" + +#: Doer/WordPressEntitiesRegistrator.php:106 +msgid "Parent Result:" +msgstr "Родительский результат:" + +#: Doer/WordPressEntitiesRegistrator.php:108 +msgid "Results" +msgstr "Результаты" + +#: Doer/WordPressEntitiesRegistrator.php:109 +msgid "All Results" +msgstr "Все результаты" + +#: Doer/WordPressEntitiesRegistrator.php:110 +msgid "Update Result" +msgstr "Обновить результат" + +#: Doer/WordPressEntitiesRegistrator.php:111 +msgid "New Result Name" +msgstr "Имя нового результата" + +#: Doer/WordPressEntitiesRegistrator.php:112 +msgid "Parent Result" +msgstr "Родительский результат" + +#: Doer/WordPressEntitiesRegistrator.php:114 +msgid "New Result" +msgstr "Новый результат" + +#: Doer/WordPressEntitiesRegistrator.php:115 +msgid "No Results found" +msgstr "Результатов не найдено" + +#: Doer/WordPressEntitiesRegistrator.php:116 +msgid "No Results found in Trash" +msgstr "Результатов в корзине не найдено" + +#: Doer/WordPressEntitiesRegistrator.php:121 +msgid "Test Categories" +msgstr "Категории тестов" + +#: Doer/WordPressEntitiesRegistrator.php:122 +msgid "Test Category" +msgstr "Категория теста" + +#: Doer/WordPressEntitiesRegistrator.php:123 +msgid "Add New Category" +msgstr "Добавить новую категорию" + +#: Doer/WordPressEntitiesRegistrator.php:124 +msgid "Edit Category" +msgstr "Редактировать категорию" + +#: Doer/WordPressEntitiesRegistrator.php:125 +msgid "View Category" +msgstr "Просмотреть категорию" + +#: Doer/WordPressEntitiesRegistrator.php:126 +msgid "Search Categories" +msgstr "Поиск категорий" + +#: Doer/WordPressEntitiesRegistrator.php:127 +msgid "Parent Category:" +msgstr "Родительская категория:" + +#: Doer/WordPressEntitiesRegistrator.php:129 +msgid "Categories" +msgstr "Категории" + +#: Doer/WordPressEntitiesRegistrator.php:130 +msgid "All Categories" +msgstr "Все категории" + +#: Doer/WordPressEntitiesRegistrator.php:131 +msgid "Update Category" +msgstr "Обновить категорию" + +#: Doer/WordPressEntitiesRegistrator.php:132 +msgid "New Category Name" +msgstr "Имя новой категории" + +#: Doer/WordPressEntitiesRegistrator.php:133 +msgid "Parent Category" +msgstr "Родительская категория" + +#: Doer/WordPressEntitiesRegistrator.php:135 +msgid "New Category" +msgstr "Новая категория" + +#: Doer/WordPressEntitiesRegistrator.php:136 +msgid "No Categories found" +msgstr "Категорий не найдено" + +#: Doer/WordPressEntitiesRegistrator.php:137 +msgid "No Categories found in Trash" +msgstr "Категорий в корзине не найдено" + +#: Model/Formula.php:217 +#, php-format +msgid "Formula for %s has error" +msgstr "Ошибка в формуле результата «%s»" + +#: Model/FormulaVariable.php:17 +#, php-format +msgid "%1$s, ∑ %2$d" +msgstr "%1$s, ∑ %2$d" + +#: Model/FormulaVariable.php:26 +msgid "Scale Variable" +msgstr "Переменная из шкалы" + +#: Model/FormulaVariable.php:28 +msgid "Variable" +msgstr "Переменная" + +#: Template/Test/Editor/edit-formulas.php:3 +msgid "Result" +msgstr "Результат" + +#: Template/Test/Editor/edit-formulas.php:4 +msgid "Formula" +msgstr "Формула" + +#: Template/Test/Editor/edit-formulas.php:29 +msgid "No formulas to edit. To edit formulas you must have results selected." +msgstr "Формулы отсутствуют. Чтобы редактировать формулы вы должны выбрать результаты." + +#: Template/Test/Editor/edit-formulas.php:38 +msgid "Variables" +msgstr "Переменные" + +#: Template/Test/Editor/edit-formulas.php:39 +msgid "Comparisions" +msgstr "Сравнения" + +#: Template/Test/Editor/edit-formulas.php:49 +msgid "Comparision" +msgstr "Сравнение" + +#: Template/Test/Editor/edit-formulas.php:57 +msgid "" +"No variables for formulas available. To use variables you must have scales " +"selected." +msgstr "Переменные для формул не доступны. Чтобы использовать переменные вы должны выбрать шкалы." + +#: Template/Test/Editor/edit-formulas.php:66 +msgid "" +"Both numbers and percents allowed. For example \"scale-bla\" has total 30, " +"then \"scale-bla > 15\" and \"scale-bla > 50%\" are same." +msgstr "Разрешены как числа, так и проценты. Например всего по шкале «scale-bla» 30, тогда «scale-bla > 15» и «scale-bla > 50%» будет идентично." + +#: Template/Test/Editor/add-questions.php:4 +#: Template/Test/Editor/add-questions.php:9 +msgid "Quick Fill From Text" +msgstr "Быстро заполнить из текста" + +#: Template/Test/Editor/add-questions.php:8 +msgid "" +"Paste here your questions and they will fill fields below. Numbers and other" +" indexes will be stripped automatically." +msgstr "Вставьте сюда ваши вопросы и они появятся в полях ниже. Цифры и прочие индексы будут удалены автоматически." + +#: Template/Test/Editor/submit-misc-actions.php:6 +msgid "Publish on the home page" +msgstr "Публиковать на начальной странице" + +#: Template/Test/Editor/edit-questions.php:29 +#: Template/Test/Editor/edit-questions.php:65 +msgid "Quick Fill Scores" +msgstr "Быстро заполнить баллы" + +#: Template/Test/Editor/edit-questions.php:37 +msgid "Scale" +msgstr "Шкала" + +#: Template/Test/Editor/edit-questions.php:38 +msgid "Score" +msgstr "Балл" + +#: Template/Test/Editor/edit-questions.php:39 +msgid "Answer" +msgstr "Ответ" + +#: Template/Test/Editor/edit-questions.php:40 +msgid "Questions" +msgstr "Вопросы" + +#: Template/Test/Editor/edit-questions.php:86 +msgid "" +"No questions to edit. Add new questions and then they will appear here." +msgstr "Вопросы отсутствуют. Добавьте новые вопросы и они появятся здесь." + +#: Template/Test/Editor/edit-questions.php:94 +msgid "" +"No scores to edit. To edit scores you must have both answers and scales " +"selected." +msgstr "Баллы отсутствуют. Чтобы редактировать баллы у вас должны быть выбраны ответы и шкалы." + +#: Template/Test/Passer/get-results.php:33 +#, php-format +msgid "%1$d out of %2$d" +msgstr "%1$d из %2$d" + +#: Template/Test/Passer/fill-form.php:45 +msgid "Get Test Results" +msgstr "Узнать результаты" + +#: Template/Test/Passer/fill-form.php:48 +msgid "Test is under construction" +msgstr "Тест в процессе разработки" + +#: Template/Test/Passer/fill-form.php:49 +msgid "You can not get any results from it yet." +msgstr "Пока вы не можете получить из него результаты." diff --git a/languages/wp-testing-sv_SE.mo b/languages/wp-testing-sv_SE.mo new file mode 100644 index 00000000..d1c8dc40 Binary files /dev/null and b/languages/wp-testing-sv_SE.mo differ diff --git a/languages/wp-testing-sv_SE.po b/languages/wp-testing-sv_SE.po new file mode 100644 index 00000000..e7952f92 --- /dev/null +++ b/languages/wp-testing-sv_SE.po @@ -0,0 +1,464 @@ +# Copyright (C) 2014 Alexander Ustimenko +# This file is distrubuted under the GPL-3.0+ +# Translators: +# Alexander Ustimenko , 2014 +msgid "" +msgstr "" +"Project-Id-Version: WP testing\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-16 06:37+0700\n" +"PO-Revision-Date: 2014-11-16 00:56+0000\n" +"Last-Translator: Alexander Ustimenko \n" +"Language-Team: Swedish (Sweden) (http://www.transifex.com/projects/p/wp-testing/language/sv_SE/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: sv_SE\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-Basepath: ../src/\n" +"X-Poedit-KeywordsList: __;_e;_x;esc_html_e;esc_html__;esc_attr_e;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n" +"X-Poedit-SearchPath-0: .\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n" + +#: Doer/TestEditor.php:24 +msgid "Edit Questions and Scores" +msgstr "Redigera frågor och poäng" + +#: Doer/TestEditor.php:25 +msgid "Add New Questions" +msgstr "Lägg till nya frågor" + +#: Doer/TestEditor.php:26 +msgid "Edit Formulas" +msgstr "Redigera formler" + +#: Doer/TestEditor.php:121 +msgid "Test data not saved" +msgstr "Testdata sparas inte" + +#: Doer/WordPressEntitiesRegistrator.php:12 +#: Doer/WordPressEntitiesRegistrator.php:21 +msgid "Tests" +msgstr "Tester" + +#: Doer/WordPressEntitiesRegistrator.php:13 +msgid "Test" +msgstr "Test" + +#: Doer/WordPressEntitiesRegistrator.php:14 +msgctxt "test" +msgid "Add New" +msgstr "Skapa ny" + +#: Doer/WordPressEntitiesRegistrator.php:15 +msgid "Add New Test" +msgstr "Lägg till nytt Test" + +#: Doer/WordPressEntitiesRegistrator.php:16 +msgid "Edit Test" +msgstr "Redigera Test" + +#: Doer/WordPressEntitiesRegistrator.php:17 +msgid "View Test" +msgstr "Visa Test" + +#: Doer/WordPressEntitiesRegistrator.php:18 +msgid "Search Tests" +msgstr "Sök tester" + +#: Doer/WordPressEntitiesRegistrator.php:19 +msgid "Parent Test:" +msgstr "Överordnad Test:" + +#: Doer/WordPressEntitiesRegistrator.php:22 +msgid "All Tests" +msgstr "Alla tester" + +#: Doer/WordPressEntitiesRegistrator.php:23 +msgid "Update Test" +msgstr "Uppdatera Test" + +#: Doer/WordPressEntitiesRegistrator.php:24 +msgid "New Test Name" +msgstr "Nytt Test namn" + +#: Doer/WordPressEntitiesRegistrator.php:25 +msgid "Parent Test" +msgstr "Överordnad Test" + +#: Doer/WordPressEntitiesRegistrator.php:27 +msgid "New Test" +msgstr "Nytt Test" + +#: Doer/WordPressEntitiesRegistrator.php:28 +msgid "No Tests found" +msgstr "Inga tester fann" + +#: Doer/WordPressEntitiesRegistrator.php:29 +msgid "No Tests found in Trash" +msgstr "Inga tester finns i papperskorgen" + +#: Doer/WordPressEntitiesRegistrator.php:31 +msgid "" +"Instrument to measure unobserved constructs (latent variables). Typically it" +" is a series of tasks or problems that the respondent has to solve." +msgstr "Ett psykologiskt test är en standardiserad mätning av olika aspekter av mänskligt beteende, till exempel intelligens eller personlighet." + +#: Doer/WordPressEntitiesRegistrator.php:58 +msgid "Test Answers" +msgstr "Test svar" + +#: Doer/WordPressEntitiesRegistrator.php:59 +msgid "Test Answer" +msgstr "Test svar" + +#: Doer/WordPressEntitiesRegistrator.php:60 +msgid "Add New Answer" +msgstr "Lägg till nya svar" + +#: Doer/WordPressEntitiesRegistrator.php:61 +msgid "Edit Answer" +msgstr "Redigera svaret" + +#: Doer/WordPressEntitiesRegistrator.php:62 +msgid "View Answer" +msgstr "Visa svar" + +#: Doer/WordPressEntitiesRegistrator.php:63 +msgid "Search Answers" +msgstr "Sök svar" + +#: Doer/WordPressEntitiesRegistrator.php:64 +msgid "Parent Answer:" +msgstr "Överordnade svar:" + +#: Doer/WordPressEntitiesRegistrator.php:66 +msgid "Answers" +msgstr "Svar" + +#: Doer/WordPressEntitiesRegistrator.php:67 +msgid "All Answers" +msgstr "Alla svar" + +#: Doer/WordPressEntitiesRegistrator.php:68 +msgid "Update Answer" +msgstr "Uppdatera svar" + +#: Doer/WordPressEntitiesRegistrator.php:69 +msgid "New Answer Name" +msgstr "Nytt svar namn" + +#: Doer/WordPressEntitiesRegistrator.php:70 +msgid "Parent Answer" +msgstr "Överordnade svar" + +#: Doer/WordPressEntitiesRegistrator.php:72 +msgid "New Answer" +msgstr "Neue Antwort" + +#: Doer/WordPressEntitiesRegistrator.php:73 +msgid "No Answers found" +msgstr "Inga svar hittade" + +#: Doer/WordPressEntitiesRegistrator.php:74 +msgid "No Answers found in Trash" +msgstr "Några svar finns i papperskorgen" + +#: Doer/WordPressEntitiesRegistrator.php:79 +msgid "Test Scales" +msgstr "Testa skalor" + +#: Doer/WordPressEntitiesRegistrator.php:80 +msgid "Test Scale" +msgstr "Testa skala" + +#: Doer/WordPressEntitiesRegistrator.php:81 +msgid "Add New Scale" +msgstr "Lägg till ny skala" + +#: Doer/WordPressEntitiesRegistrator.php:82 +msgid "Edit Scale" +msgstr "Redigera skala" + +#: Doer/WordPressEntitiesRegistrator.php:83 +msgid "View Scale" +msgstr "Visa skala" + +#: Doer/WordPressEntitiesRegistrator.php:84 +msgid "Search Scales" +msgstr "Sök skalor" + +#: Doer/WordPressEntitiesRegistrator.php:85 +msgid "Parent Scale:" +msgstr "Överordnade skala:" + +#: Doer/WordPressEntitiesRegistrator.php:87 +msgid "Scales" +msgstr "Skalor" + +#: Doer/WordPressEntitiesRegistrator.php:88 +msgid "All Scales" +msgstr "Alla skalor" + +#: Doer/WordPressEntitiesRegistrator.php:89 +msgid "Update Scale" +msgstr "Uppdatera skala" + +#: Doer/WordPressEntitiesRegistrator.php:90 +msgid "New Scale Name" +msgstr "Nya skala namn" + +#: Doer/WordPressEntitiesRegistrator.php:91 +msgid "Parent Scale" +msgstr "Överordnade skala" + +#: Doer/WordPressEntitiesRegistrator.php:93 +msgid "New Scale" +msgstr "Ny skala" + +#: Doer/WordPressEntitiesRegistrator.php:94 +msgid "No Scales found" +msgstr "Ingen vågar hittade" + +#: Doer/WordPressEntitiesRegistrator.php:95 +msgid "No Scales found in Trash" +msgstr "Ingen vågar Funna i papperskorgen" + +#: Doer/WordPressEntitiesRegistrator.php:100 +msgid "Test Results" +msgstr "Testresultat" + +#: Doer/WordPressEntitiesRegistrator.php:101 +msgid "Test Result" +msgstr "Testresultatet" + +#: Doer/WordPressEntitiesRegistrator.php:102 +msgid "Add New Result" +msgstr "Lägg till nya resultat" + +#: Doer/WordPressEntitiesRegistrator.php:103 +msgid "Edit Result" +msgstr "Redigera resultat" + +#: Doer/WordPressEntitiesRegistrator.php:104 +msgid "View Result" +msgstr "Visa resultatet" + +#: Doer/WordPressEntitiesRegistrator.php:105 +msgid "Search Results" +msgstr "Sökresultat" + +#: Doer/WordPressEntitiesRegistrator.php:106 +msgid "Parent Result:" +msgstr "Förälder resultat:" + +#: Doer/WordPressEntitiesRegistrator.php:108 +msgid "Results" +msgstr "Resultat" + +#: Doer/WordPressEntitiesRegistrator.php:109 +msgid "All Results" +msgstr "Alla resultat" + +#: Doer/WordPressEntitiesRegistrator.php:110 +msgid "Update Result" +msgstr "Uppdatera resultatet" + +#: Doer/WordPressEntitiesRegistrator.php:111 +msgid "New Result Name" +msgstr "Nytt resultat namn" + +#: Doer/WordPressEntitiesRegistrator.php:112 +msgid "Parent Result" +msgstr "Förälder resultat" + +#: Doer/WordPressEntitiesRegistrator.php:114 +msgid "New Result" +msgstr "Nya resultat" + +#: Doer/WordPressEntitiesRegistrator.php:115 +msgid "No Results found" +msgstr "Inga resultat hittades" + +#: Doer/WordPressEntitiesRegistrator.php:116 +msgid "No Results found in Trash" +msgstr "Inga resultat hittades i papperskorgen" + +#: Doer/WordPressEntitiesRegistrator.php:121 +msgid "Test Categories" +msgstr "Testa kategorier" + +#: Doer/WordPressEntitiesRegistrator.php:122 +msgid "Test Category" +msgstr "Test kategori" + +#: Doer/WordPressEntitiesRegistrator.php:123 +msgid "Add New Category" +msgstr "Skapa ny nedladdningskategori" + +#: Doer/WordPressEntitiesRegistrator.php:124 +msgid "Edit Category" +msgstr "Ändra kategori" + +#: Doer/WordPressEntitiesRegistrator.php:125 +msgid "View Category" +msgstr "Visa kategori" + +#: Doer/WordPressEntitiesRegistrator.php:126 +msgid "Search Categories" +msgstr "Sök kategorier" + +#: Doer/WordPressEntitiesRegistrator.php:127 +msgid "Parent Category:" +msgstr "Huvudkategori:" + +#: Doer/WordPressEntitiesRegistrator.php:129 +msgid "Categories" +msgstr "Kategorier" + +#: Doer/WordPressEntitiesRegistrator.php:130 +msgid "All Categories" +msgstr "Alla kategorier" + +#: Doer/WordPressEntitiesRegistrator.php:131 +msgid "Update Category" +msgstr "Uppdatera kategori" + +#: Doer/WordPressEntitiesRegistrator.php:132 +msgid "New Category Name" +msgstr "Namn" + +#: Doer/WordPressEntitiesRegistrator.php:133 +msgid "Parent Category" +msgstr "Huvudkategori" + +#: Doer/WordPressEntitiesRegistrator.php:135 +msgid "New Category" +msgstr "Ny kategori" + +#: Doer/WordPressEntitiesRegistrator.php:136 +msgid "No Categories found" +msgstr "Inga kategorier hittades" + +#: Doer/WordPressEntitiesRegistrator.php:137 +msgid "No Categories found in Trash" +msgstr "Inga kategorier Funna i papperskorgen" + +#: Model/Formula.php:217 +#, php-format +msgid "Formula for %s has error" +msgstr "Formel för %s har fel" + +#: Model/FormulaVariable.php:17 +#, php-format +msgid "%1$s, ∑ %2$d" +msgstr "%1$s, ∑ %2$d" + +#: Model/FormulaVariable.php:26 +msgid "Scale Variable" +msgstr "Skala variabel" + +#: Model/FormulaVariable.php:28 +msgid "Variable" +msgstr "Variabel" + +#: Template/Test/Editor/edit-formulas.php:3 +msgid "Result" +msgstr "Resultat" + +#: Template/Test/Editor/edit-formulas.php:4 +msgid "Formula" +msgstr "Formel" + +#: Template/Test/Editor/edit-formulas.php:29 +msgid "No formulas to edit. To edit formulas you must have results selected." +msgstr "Inga formler att redigera. Om du vill redigera formler måste du ha resultat markerade." + +#: Template/Test/Editor/edit-formulas.php:38 +msgid "Variables" +msgstr "Variabler" + +#: Template/Test/Editor/edit-formulas.php:39 +msgid "Comparisions" +msgstr "Jämförelser" + +#: Template/Test/Editor/edit-formulas.php:49 +msgid "Comparision" +msgstr "Jämförelse" + +#: Template/Test/Editor/edit-formulas.php:57 +msgid "" +"No variables for formulas available. To use variables you must have scales " +"selected." +msgstr "Inga variabler för formler tillgängliga. Om du vill använda variabler måste du ha skalar markerade." + +#: Template/Test/Editor/edit-formulas.php:66 +msgid "" +"Both numbers and percents allowed. For example \"scale-bla\" has total 30, " +"then \"scale-bla > 15\" and \"scale-bla > 50%\" are same." +msgstr "Både siffror och procent tillåtna. Till exempel \"scale-bla\" har totalt 30, sedan \"scale-bla > 15\" och \"scale-bla > 50%\" är desamma." + +#: Template/Test/Editor/add-questions.php:4 +#: Template/Test/Editor/add-questions.php:9 +msgid "Quick Fill From Text" +msgstr "Snabb Fyllning från Text" + +#: Template/Test/Editor/add-questions.php:8 +msgid "" +"Paste here your questions and they will fill fields below. Numbers and other" +" indexes will be stripped automatically." +msgstr "Klistra här dina frågor och de kommer att fylla fälten nedan. Siffror och andra index kommer att demonteras automatiskt." + +#: Template/Test/Editor/submit-misc-actions.php:6 +msgid "Publish on the home page" +msgstr "Publicera på hemsidan" + +#: Template/Test/Editor/edit-questions.php:29 +#: Template/Test/Editor/edit-questions.php:65 +msgid "Quick Fill Scores" +msgstr "Snabbt fylla punkter" + +#: Template/Test/Editor/edit-questions.php:37 +msgid "Scale" +msgstr "Skala" + +#: Template/Test/Editor/edit-questions.php:38 +msgid "Score" +msgstr "Score" + +#: Template/Test/Editor/edit-questions.php:39 +msgid "Answer" +msgstr "Svara" + +#: Template/Test/Editor/edit-questions.php:40 +msgid "Questions" +msgstr "Frågor" + +#: Template/Test/Editor/edit-questions.php:86 +msgid "" +"No questions to edit. Add new questions and then they will appear here." +msgstr "Inga frågor att redigera. Lägg till nya frågor och sedan visas de här." + +#: Template/Test/Editor/edit-questions.php:94 +msgid "" +"No scores to edit. To edit scores you must have both answers and scales " +"selected." +msgstr "Ingen poäng att redigera. Om du vill redigera poäng måste du ha både svar och skalor som valts." + +#: Template/Test/Passer/get-results.php:33 +#, php-format +msgid "%1$d out of %2$d" +msgstr "%1$d av %2$d" + +#: Template/Test/Passer/fill-form.php:45 +msgid "Get Test Results" +msgstr "Få testresultat" + +#: Template/Test/Passer/fill-form.php:48 +msgid "Test is under construction" +msgstr "Testet är under konstruktion" + +#: Template/Test/Passer/fill-form.php:49 +msgid "You can not get any results from it yet." +msgstr "Du kan inte få några resultat från det ännu." diff --git a/languages/wp-testing.pot b/languages/wp-testing.pot new file mode 100644 index 00000000..4fa7a33c --- /dev/null +++ b/languages/wp-testing.pot @@ -0,0 +1,452 @@ +# Copyright (C) 2014 Alexander Ustimenko +# This file is distrubuted under the GPL-3.0+ +msgid "" +msgstr "" +"Project-Id-Version: Psychological tests & quizes\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-16 06:37+0700\n" +"PO-Revision-Date: \n" +"Last-Translator: Alexander Ustimenko \n" +"Language-Team: Your Team \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: __;_e;_x;esc_html_e;esc_html__;esc_attr_e;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n" +"X-Poedit-Basepath: ../src/\n" +"X-Poedit-SearchPath-0: .\n" + +#: Doer/TestEditor.php:24 +msgid "Edit Questions and Scores" +msgstr "" + +#: Doer/TestEditor.php:25 +msgid "Add New Questions" +msgstr "" + +#: Doer/TestEditor.php:26 +msgid "Edit Formulas" +msgstr "" + +#: Doer/TestEditor.php:121 +msgid "Test data not saved" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:12 +#: Doer/WordPressEntitiesRegistrator.php:21 +msgid "Tests" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:13 +msgid "Test" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:14 +msgctxt "test" +msgid "Add New" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:15 +msgid "Add New Test" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:16 +msgid "Edit Test" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:17 +msgid "View Test" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:18 +msgid "Search Tests" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:19 +msgid "Parent Test:" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:22 +msgid "All Tests" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:23 +msgid "Update Test" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:24 +msgid "New Test Name" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:25 +msgid "Parent Test" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:27 +msgid "New Test" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:28 +msgid "No Tests found" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:29 +msgid "No Tests found in Trash" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:31 +msgid "Instrument to measure unobserved constructs (latent variables). Typically it is a series of tasks or problems that the respondent has to solve." +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:58 +msgid "Test Answers" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:59 +msgid "Test Answer" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:60 +msgid "Add New Answer" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:61 +msgid "Edit Answer" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:62 +msgid "View Answer" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:63 +msgid "Search Answers" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:64 +msgid "Parent Answer:" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:66 +msgid "Answers" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:67 +msgid "All Answers" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:68 +msgid "Update Answer" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:69 +msgid "New Answer Name" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:70 +msgid "Parent Answer" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:72 +msgid "New Answer" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:73 +msgid "No Answers found" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:74 +msgid "No Answers found in Trash" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:79 +msgid "Test Scales" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:80 +msgid "Test Scale" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:81 +msgid "Add New Scale" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:82 +msgid "Edit Scale" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:83 +msgid "View Scale" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:84 +msgid "Search Scales" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:85 +msgid "Parent Scale:" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:87 +msgid "Scales" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:88 +msgid "All Scales" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:89 +msgid "Update Scale" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:90 +msgid "New Scale Name" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:91 +msgid "Parent Scale" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:93 +msgid "New Scale" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:94 +msgid "No Scales found" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:95 +msgid "No Scales found in Trash" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:100 +msgid "Test Results" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:101 +msgid "Test Result" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:102 +msgid "Add New Result" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:103 +msgid "Edit Result" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:104 +msgid "View Result" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:105 +msgid "Search Results" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:106 +msgid "Parent Result:" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:108 +msgid "Results" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:109 +msgid "All Results" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:110 +msgid "Update Result" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:111 +msgid "New Result Name" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:112 +msgid "Parent Result" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:114 +msgid "New Result" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:115 +msgid "No Results found" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:116 +msgid "No Results found in Trash" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:121 +msgid "Test Categories" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:122 +msgid "Test Category" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:123 +msgid "Add New Category" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:124 +msgid "Edit Category" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:125 +msgid "View Category" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:126 +msgid "Search Categories" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:127 +msgid "Parent Category:" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:129 +msgid "Categories" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:130 +msgid "All Categories" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:131 +msgid "Update Category" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:132 +msgid "New Category Name" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:133 +msgid "Parent Category" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:135 +msgid "New Category" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:136 +msgid "No Categories found" +msgstr "" + +#: Doer/WordPressEntitiesRegistrator.php:137 +msgid "No Categories found in Trash" +msgstr "" + +#: Model/Formula.php:217 +#, php-format +msgid "Formula for %s has error" +msgstr "" + +#: Model/FormulaVariable.php:17 +#, php-format +msgid "%1$s, ∑ %2$d" +msgstr "" + +#: Model/FormulaVariable.php:26 +msgid "Scale Variable" +msgstr "" + +#: Model/FormulaVariable.php:28 +msgid "Variable" +msgstr "" + +#: Template/Test/Editor/edit-formulas.php:3 +msgid "Result" +msgstr "" + +#: Template/Test/Editor/edit-formulas.php:4 +msgid "Formula" +msgstr "" + +#: Template/Test/Editor/edit-formulas.php:29 +msgid "No formulas to edit. To edit formulas you must have results selected." +msgstr "" + +#: Template/Test/Editor/edit-formulas.php:38 +msgid "Variables" +msgstr "" + +#: Template/Test/Editor/edit-formulas.php:39 +msgid "Comparisions" +msgstr "" + +#: Template/Test/Editor/edit-formulas.php:49 +msgid "Comparision" +msgstr "" + +#: Template/Test/Editor/edit-formulas.php:57 +msgid "No variables for formulas available. To use variables you must have scales selected." +msgstr "" + +#: Template/Test/Editor/edit-formulas.php:66 +msgid "Both numbers and percents allowed. For example \"scale-bla\" has total 30, then \"scale-bla > 15\" and \"scale-bla > 50%\" are same." +msgstr "" + +#: Template/Test/Editor/add-questions.php:4 +#: Template/Test/Editor/add-questions.php:9 +msgid "Quick Fill From Text" +msgstr "" + +#: Template/Test/Editor/add-questions.php:8 +msgid "Paste here your questions and they will fill fields below. Numbers and other indexes will be stripped automatically." +msgstr "" + +#: Template/Test/Editor/submit-misc-actions.php:6 +msgid "Publish on the home page" +msgstr "" + +#: Template/Test/Editor/edit-questions.php:29 +#: Template/Test/Editor/edit-questions.php:65 +msgid "Quick Fill Scores" +msgstr "" + +#: Template/Test/Editor/edit-questions.php:37 +msgid "Scale" +msgstr "" + +#: Template/Test/Editor/edit-questions.php:38 +msgid "Score" +msgstr "" + +#: Template/Test/Editor/edit-questions.php:39 +msgid "Answer" +msgstr "" + +#: Template/Test/Editor/edit-questions.php:40 +msgid "Questions" +msgstr "" + +#: Template/Test/Editor/edit-questions.php:86 +msgid "No questions to edit. Add new questions and then they will appear here." +msgstr "" + +#: Template/Test/Editor/edit-questions.php:94 +msgid "No scores to edit. To edit scores you must have both answers and scales selected." +msgstr "" + +#: Template/Test/Passer/get-results.php:33 +#, php-format +msgid "%1$d out of %2$d" +msgstr "" + +#: Template/Test/Passer/fill-form.php:45 +msgid "Get Test Results" +msgstr "" + +#: Template/Test/Passer/fill-form.php:48 +msgid "Test is under construction" +msgstr "" + +#: Template/Test/Passer/fill-form.php:49 +msgid "You can not get any results from it yet." +msgstr "" + diff --git a/src/Doer/TestEditor.php b/src/Doer/TestEditor.php index a210e041..676f7db9 100644 --- a/src/Doer/TestEditor.php +++ b/src/Doer/TestEditor.php @@ -14,13 +14,16 @@ public function customizeUi($screen) $this->sessionInit(__CLASS__)->wp ->enqueuePluginStyle('wpt_admin', 'css/admin.css') ->enqueuePluginScript('wpt_test_edit_fix_styles', 'js/test-edit-fix-styles.js', array('jquery'), false, true) - ->enqueuePluginScript('field_selection', 'js/vendor/kof/field-selection.js', array('jquery'), false, true) - ->enqueuePluginScript('wpt_test_edit_formulas', 'js/test-edit-formulas.js', array('jquery'), false, true) + ->enqueuePluginScript('field_selection', 'js/vendor/kof/field-selection.js', array(), false, true) + ->enqueuePluginScript('wpt_test_edit_formulas', 'js/test-edit-formulas.js', array('jquery', 'field_selection'), false, true) + ->enqueuePluginScript('json3', 'js/vendor/bestiejs/json3.min.js', array(), false, true) + ->enqueuePluginScript('wpt_test_quick_scores', 'js/test-quick-scores.js', array('jquery', 'lodash'), false, true) + ->enqueuePluginScript('wpt_test_quick_questions', 'js/test-quick-questions.js', array('jquery', 'json3'), false, true) ->addAction('post_submitbox_misc_actions', array($this, 'renderSubmitMiscActions')) ->addAction('media_buttons', array($this, 'renderContentEditorButtons')) - ->addMetaBox('wpt_edit_questions', 'Edit Questions', array($this, 'renderEditQuestions'), 'wpt_test') - ->addMetaBox('wpt_add_questions', 'Add New Questions', array($this, 'renderAddQuestions'), 'wpt_test') - ->addMetaBox('wpt_edit_formulas', 'Edit Formulas', array($this, 'renderEditFormulas'), 'wpt_test') + ->addMetaBox('wpt_edit_questions', __('Edit Questions and Scores', 'wp-testing'), array($this, 'renderEditQuestions'), 'wpt_test') + ->addMetaBox('wpt_add_questions', __('Add New Questions', 'wp-testing'), array($this, 'renderAddQuestions'), 'wpt_test') + ->addMetaBox('wpt_edit_formulas', __('Edit Formulas', 'wp-testing'), array($this, 'renderEditFormulas'), 'wpt_test') ->addAction('admin_notices', array($this, 'printAdminMessages')) ->addAction('save_post', array($this, 'saveTest'), 10, 2) ; @@ -54,10 +57,12 @@ public function renderEditQuestions($item) $test = new WpTesting_Model_Test($item); $this->output('Test/Editor/edit-questions', array( 'scales' => $test->buildScalesWithRange(), + 'answers' => $test->buildAnswers(), 'questions' => $test->buildQuestions(), 'isWarnOfSettings' => $test->isWarnOfSettings(), 'memoryWarnSettings' => $test->getMemoryWarnSettings(), 'isUnderApache' => $this->isUnderApache(), + 'canEditScores' => $test->canEditScores(), )); } @@ -70,7 +75,6 @@ public function renderAddQuestions($item) $this->output('Test/Editor/add-questions', array( 'addNewCount' => WpTesting_Model_Question::ADD_NEW_COUNT, 'startFrom' => $test->buildQuestions()->count(), - 'scales' => $test->buildScales(), )); } @@ -114,7 +118,7 @@ public function saveTest($id, $item) $problems = $test->validate(); $test->store(true); } catch (fValidationException $e) { - $title = 'Test data not saved'; + $title = __('Test data not saved', 'wp-testing'); $this->wp->dieMessage( $this->render('Test/Editor/admin-message', array( 'title' => $title, diff --git a/src/Doer/TestPasser.php b/src/Doer/TestPasser.php index 10400bce..d0af9a58 100644 --- a/src/Doer/TestPasser.php +++ b/src/Doer/TestPasser.php @@ -46,6 +46,7 @@ public function renderTestContent($content) 'content' => $content, 'test' => $this->test, 'questions' => $this->test->buildQuestions(), + 'isFinal' => $this->test->isFinal(), ); } elseif (self::ACTION_GET_RESULTS == $action) { $passing = new WpTesting_Model_Passing(); diff --git a/src/Doer/WordPressEntitiesRegistrator.php b/src/Doer/WordPressEntitiesRegistrator.php index 833a7088..cbf5e876 100644 --- a/src/Doer/WordPressEntitiesRegistrator.php +++ b/src/Doer/WordPressEntitiesRegistrator.php @@ -8,8 +8,27 @@ public function __construct(WpTesting_WordPressFacade $wp) parent::__construct($wp); $wp->registerPostType('wpt_test', array( - 'labels' => $this->generateLabels('test'), - 'description' => 'Instrument to measure unobserved constructs (latent variables). Typically it is a series of tasks or problems that the respondent has to solve.', + 'labels' => array( + 'name' => __('Tests', 'wp-testing'), + 'singular_name' => __('Test', 'wp-testing'), + 'add_new' => _x('Add New', 'test', 'wp-testing'), + 'add_new_item' => __('Add New Test', 'wp-testing'), + 'edit_item' => __('Edit Test', 'wp-testing'), + 'view_item' => __('View Test', 'wp-testing'), + 'search_items' => __('Search Tests', 'wp-testing'), + 'parent_item_colon' => __('Parent Test:', 'wp-testing'), + + 'menu_name' => __('Tests', 'wp-testing'), + 'all_items' => __('All Tests', 'wp-testing'), + 'update_item' => __('Update Test', 'wp-testing'), + 'new_item_name' => __('New Test Name', 'wp-testing'), + 'parent_item' => __('Parent Test', 'wp-testing'), + + 'new_item' => __('New Test', 'wp-testing'), + 'not_found' => __('No Tests found', 'wp-testing'), + 'not_found_in_trash' => __('No Tests found in Trash', 'wp-testing'), + ), + 'description' => __('Instrument to measure unobserved constructs (latent variables). Typically it is a series of tasks or problems that the respondent has to solve.', 'wp-testing'), 'public' => true, 'menu_position' => 5, 'menu_icon' => $this->isWordPressAlready('3.8') ? 'dashicons-editor-paste-text' : null, @@ -34,11 +53,89 @@ public function __construct(WpTesting_WordPressFacade $wp) )); $this - ->addTaxonomy('answer') - ->addTaxonomy('scale') - ->addTaxonomy('result') + ->addTaxonomy('answer', array( + 'labels' => array( + 'name' => __('Test Answers', 'wp-testing'), + 'singular_name' => __('Test Answer', 'wp-testing'), + 'add_new_item' => __('Add New Answer', 'wp-testing'), + 'edit_item' => __('Edit Answer', 'wp-testing'), + 'view_item' => __('View Answer', 'wp-testing'), + 'search_items' => __('Search Answers', 'wp-testing'), + 'parent_item_colon' => __('Parent Answer:', 'wp-testing'), + + 'menu_name' => __('Answers', 'wp-testing'), + 'all_items' => __('All Answers', 'wp-testing'), + 'update_item' => __('Update Answer', 'wp-testing'), + 'new_item_name' => __('New Answer Name', 'wp-testing'), + 'parent_item' => __('Parent Answer', 'wp-testing'), + + 'new_item' => __('New Answer', 'wp-testing'), + 'not_found' => __('No Answers found', 'wp-testing'), + 'not_found_in_trash' => __('No Answers found in Trash', 'wp-testing'), + ), + )) + ->addTaxonomy('scale', array( + 'labels' => array( + 'name' => __('Test Scales', 'wp-testing'), + 'singular_name' => __('Test Scale', 'wp-testing'), + 'add_new_item' => __('Add New Scale', 'wp-testing'), + 'edit_item' => __('Edit Scale', 'wp-testing'), + 'view_item' => __('View Scale', 'wp-testing'), + 'search_items' => __('Search Scales', 'wp-testing'), + 'parent_item_colon' => __('Parent Scale:', 'wp-testing'), + + 'menu_name' => __('Scales', 'wp-testing'), + 'all_items' => __('All Scales', 'wp-testing'), + 'update_item' => __('Update Scale', 'wp-testing'), + 'new_item_name' => __('New Scale Name', 'wp-testing'), + 'parent_item' => __('Parent Scale', 'wp-testing'), + + 'new_item' => __('New Scale', 'wp-testing'), + 'not_found' => __('No Scales found', 'wp-testing'), + 'not_found_in_trash' => __('No Scales found in Trash', 'wp-testing'), + ), + )) + ->addTaxonomy('result', array( + 'labels' => array( + 'name' => __('Test Results', 'wp-testing'), + 'singular_name' => __('Test Result', 'wp-testing'), + 'add_new_item' => __('Add New Result', 'wp-testing'), + 'edit_item' => __('Edit Result', 'wp-testing'), + 'view_item' => __('View Result', 'wp-testing'), + 'search_items' => __('Search Results', 'wp-testing'), + 'parent_item_colon' => __('Parent Result:', 'wp-testing'), + + 'menu_name' => __('Results', 'wp-testing'), + 'all_items' => __('All Results', 'wp-testing'), + 'update_item' => __('Update Result', 'wp-testing'), + 'new_item_name' => __('New Result Name', 'wp-testing'), + 'parent_item' => __('Parent Result', 'wp-testing'), + + 'new_item' => __('New Result', 'wp-testing'), + 'not_found' => __('No Results found', 'wp-testing'), + 'not_found_in_trash' => __('No Results found in Trash', 'wp-testing'), + ), + )) ->addTaxonomy('category', array( - 'labels' => $this->generateLabels('category', 'categories'), + 'labels' => array( + 'name' => __('Test Categories', 'wp-testing'), + 'singular_name' => __('Test Category', 'wp-testing'), + 'add_new_item' => __('Add New Category', 'wp-testing'), + 'edit_item' => __('Edit Category', 'wp-testing'), + 'view_item' => __('View Category', 'wp-testing'), + 'search_items' => __('Search Categories', 'wp-testing'), + 'parent_item_colon' => __('Parent Category:', 'wp-testing'), + + 'menu_name' => __('Categories', 'wp-testing'), + 'all_items' => __('All Categories', 'wp-testing'), + 'update_item' => __('Update Category', 'wp-testing'), + 'new_item_name' => __('New Category Name', 'wp-testing'), + 'parent_item' => __('Parent Category', 'wp-testing'), + + 'new_item' => __('New Category', 'wp-testing'), + 'not_found' => __('No Categories found', 'wp-testing'), + 'not_found_in_trash' => __('No Categories found in Trash', 'wp-testing'), + ), 'public' => true, 'show_in_nav_menus' => true, 'rewrite' => array( @@ -78,9 +175,11 @@ protected function generateLabels($name, $pluralName = null) protected function addTaxonomy($name, $parameters = array()) { + if (empty($parameters['labels'])) { + $parameters['labels'] = $this->generateLabels($name); + } $this->wp->registerTaxonomy('wpt_' . $name, array('wpt_test'), $parameters + array( 'hierarchical' => true, - 'labels' => $this->generateLabels($name), 'public' => false, 'show_ui' => true, 'show_admin_column' => true, diff --git a/src/Facade.php b/src/Facade.php index 6d58cb07..c441a2de 100644 --- a/src/Facade.php +++ b/src/Facade.php @@ -71,6 +71,7 @@ protected function registerWordPressHooks() ->registerDeactivationHook( array($this, 'onPluginDeactivate')) ->registerUninstallHook( array($class, 'onPluginUninstall')) ->addAction('init', array($this, 'registerWordPressEntities')) + ->addAction('plugins_loaded', array($this, 'loadLocale')) ->addShortcode('wptlist', array($this, 'shortcodeList')) ; @@ -98,6 +99,13 @@ public function registerWordPressEntities() $this->isWordPressEntitiesRegistered = true; } + public function loadLocale() + { + $pluginDirectory = basename(dirname(dirname(__FILE__))); + $languages = $pluginDirectory . DIRECTORY_SEPARATOR . 'languages' . DIRECTORY_SEPARATOR; + $this->wp->loadPluginTextdomain('wp-testing', false, $languages); + } + /** * @param WP_Screen $screen */ diff --git a/src/Model/Formula.php b/src/Model/Formula.php index e4f66f37..d8ffe2c4 100644 --- a/src/Model/Formula.php +++ b/src/Model/Formula.php @@ -214,7 +214,7 @@ public function validateSource(WpTesting_Model_Formula $me, &$values, &$oldValue } /* @var $result WpTesting_Model_Result */ $result = $me->createWpTesting_Model_Result(); - $validationMessages['formula_source'] = 'Formula for ' . $result->getTitle() . ' has error'; + $validationMessages['formula_source'] = sprintf(__('Formula for %s has error', 'wp-testing'), $result->getTitle()); } protected function configure() diff --git a/src/Model/FormulaVariable.php b/src/Model/FormulaVariable.php index 6c668c8a..32d3dab4 100644 --- a/src/Model/FormulaVariable.php +++ b/src/Model/FormulaVariable.php @@ -14,7 +14,7 @@ public function getTitle() { $model = $this->model; if ($model instanceof WpTesting_Model_AbstractTerm) { - return $model->getTitle() . ', ∑ ' . $model->getMaximum(); + return sprintf(__('%1$s, ∑ %2$d', 'wp-testing'), $model->getTitle(), $model->getSum()); } return null; } @@ -23,9 +23,9 @@ public function getTypeLabel() { $model = $this->model; if ($model instanceof WpTesting_Model_Scale) { - return 'Scale Variable'; + return __('Scale Variable', 'wp-testing'); } - return 'Variable'; + return __('Variable', 'wp-testing'); } public function getSource() diff --git a/src/Model/Scale.php b/src/Model/Scale.php index a3fc9c04..2d6d6c54 100644 --- a/src/Model/Scale.php +++ b/src/Model/Scale.php @@ -73,6 +73,17 @@ public function getMaximum() return $this->maximum; } + /** + * @return number + */ + public function getSum() + { + if (is_null($this->maximum)) { + return null; + } + return $this->maximum + min(array($this->minimum, 0)); + } + /** * @return float */ diff --git a/src/Model/Test.php b/src/Model/Test.php index 435a214d..7d22847e 100644 --- a/src/Model/Test.php +++ b/src/Model/Test.php @@ -81,16 +81,19 @@ public function buildScalesWithRange() /* @var $db fDatabase */ $db = fORMDatabase::retrieve('WpTesting_Model_Score', 'read'); $result = $db->translatedQuery(' - SELECT SUM(score_value) FROM ' . $scoresTable . ' - WHERE question_id IN (' . $questionIds . ') AND scale_id = ' . intval($scale->getId()) . ' + SELECT + SUM(IF(score_value > 0, 0, score_value)) AS total_negative, + SUM(IF(score_value > 0, score_value, 0)) AS total_positive + FROM ' . $scoresTable . ' + WHERE TRUE + AND question_id IN (' . $questionIds . ') + AND scale_id = ' . intval($scale->getId()) . ' GROUP BY scale_id + HAVING total_negative < total_positive '); if ($result->countReturnedRows()) { - $sum = $result->fetchScalar(); - if ($sum) { - $range = array(0, $sum); - $scale->setRange(min($range), max($range)); - } + $values = $result->fetchRow(); + $scale->setRange($values['total_negative'], $values['total_positive']); } } return $scales; @@ -139,7 +142,7 @@ public function buildFormulas() /** * @return WpTesting_Model_Answer[] */ - protected function buildAnswers() + public function buildAnswers() { return fRecordSet::build('WpTesting_Model_Answer', array( 'term_id=' => $this->getTermIdFromFilteredTaxonomies('wpt_answer'), @@ -195,6 +198,60 @@ protected function getFormulasPrefix() return fORMRelated::determineRequestFilter('WpTesting_Model_Test', 'WpTesting_Model_Formula', 'test_id'); } + /** + * Can respondent use this test to get results? + * + * Final test is test, that have scores. + * Scores can be only, when test have questions, answers and scales. + * Results are good to have but not required: they are humanize "scientific" language + * of scales to more understandable words. + * + * @return boolean + */ + public function isFinal() + { + foreach ($this->buildScalesWithRange() as $scale) { + if ($scale->getMaximum()) { + return true; + } + } + return false; + } + + protected function hasAnswers() + { + return $this->buildAnswers()->count() > 0; + } + + protected function hasScales() + { + return $this->buildScales()->count() > 0; + } + + /** + * Can scores be editable? + * + * @return boolean + */ + public function canEditScores() + { + return true + && $this->hasAnswers() + && $this->hasScales() + && $this->hasWpTesting_Model_Questions() + ; + + $questions = fRecordSet::build('WpTesting_Model_Question', array( + 'test_id=' => $this->getId(), + )); + if (!$questions->count()) { + return false; + } + /* @var $question WpTesting_Model_Question */ + $question = $questions->getRecord(0); + return $question->hasWpTesting_Model_Scores(); + } + /** * @return array */ diff --git a/src/Template/Test/Editor/add-questions.php b/src/Template/Test/Editor/add-questions.php index 08e01a61..81b9fe3b 100644 --- a/src/Template/Test/Editor/add-questions.php +++ b/src/Template/Test/Editor/add-questions.php @@ -1,18 +1,23 @@ - - - - $scale): /* @var $scale WpTesting_Model_Scale */ ?> - - - +
+ +

+ +

+ +
+ + +
+ +
+ +
- getTitle() ?> -
- -
* + $startFrom + $i, 'id' => '', @@ -20,4 +25,4 @@
\ No newline at end of file + diff --git a/src/Template/Test/Editor/content-editor-buttons.php b/src/Template/Test/Editor/content-editor-buttons.php index 1a97b3e1..559d70ca 100644 --- a/src/Template/Test/Editor/content-editor-buttons.php +++ b/src/Template/Test/Editor/content-editor-buttons.php @@ -1,12 +1,12 @@ - + - + - + diff --git a/src/Template/Test/Editor/edit-formulas.php b/src/Template/Test/Editor/edit-formulas.php index c997b6b8..d9e7b34d 100644 --- a/src/Template/Test/Editor/edit-formulas.php +++ b/src/Template/Test/Editor/edit-formulas.php @@ -1,7 +1,7 @@ - - + + $result): /* @var $result WpTesting_Model_Result */ ?> @@ -22,12 +22,21 @@ + + + + +
+

+ +

+
- - + + + + + + +
@@ -37,13 +46,25 @@ , <=, =>, <>, AND, OR, (, )') as $operator): ?> - +
+

+ +

+
-
15" and "Scale 1 > 50%" are same.'?>
+
15" and "scale-bla > 50%" are same.', 'wp-testing'); + ?>
diff --git a/src/Template/Test/Editor/edit-questions.php b/src/Template/Test/Editor/edit-questions.php index ada7b548..36072eb2 100644 --- a/src/Template/Test/Editor/edit-questions.php +++ b/src/Template/Test/Editor/edit-questions.php @@ -22,16 +22,82 @@ .. and reload (restart) server. + +
+ +

+ +

+ +
+ + + + + + + + + + + + $scale): /* @var $scale WpTesting_Model_Scale */ ?> + $answer): /* @var $answer WpTesting_Model_Answer */ ?> + + + + + + + + + + + +
getTitle() ?> + + getTitle() ?> + +
+ + +
+
+ + $scale): /* @var $scale WpTesting_Model_Scale */ ?> + + + + + + + + + + + $question): /* @var $question WpTesting_Model_Question */ ?> $scale): /* @var $scale WpTesting_Model_Scale */ ?> getScoreByAnswerAndScale($answer, $scale) ?> - +
getTitle() ?> - getMaximum() ?> + getSum() ?>
+

+ +

+
+

+ +

+
@@ -53,7 +119,7 @@ getTitle() ?> + $answer->getId(), 'scale_id' => $scale->getId(), )) ?>]' + data-question-number="" + class="quick-score-getId() ?>-getId() ?> question-" id="wpt_score_value__" value="getValueWithoutZeros() ?>" title="getTitle() . ', ' . $answer->getTitle()) ?>" /> @@ -71,4 +139,5 @@
\ No newline at end of file diff --git a/src/Template/Test/Editor/submit-misc-actions.php b/src/Template/Test/Editor/submit-misc-actions.php index 351c0dca..33598065 100644 --- a/src/Template/Test/Editor/submit-misc-actions.php +++ b/src/Template/Test/Editor/submit-misc-actions.php @@ -3,6 +3,6 @@ /> - + \ No newline at end of file diff --git a/src/Template/Test/Passer/fill-form.php b/src/Template/Test/Passer/fill-form.php index db79fc71..3edfd82d 100644 --- a/src/Template/Test/Passer/fill-form.php +++ b/src/Template/Test/Passer/fill-form.php @@ -4,6 +4,7 @@ /* @var $content string */ /* @var $test WpTesting_Model_Test */ /* @var $questions WpTesting_Model_Question[] */ +/* @var $isFinal boolean */ ?>
@@ -40,7 +41,14 @@ -

+ +

+ +
+

+

+
+ diff --git a/src/Template/Test/Passer/get-results.php b/src/Template/Test/Passer/get-results.php index 9597824e..a2b74deb 100644 --- a/src/Template/Test/Passer/get-results.php +++ b/src/Template/Test/Passer/get-results.php @@ -11,7 +11,7 @@
-

+

@@ -21,7 +21,7 @@ - +
@@ -30,7 +30,7 @@

getTitle() ?>

- getValue() ?> getMaximum() ?> + getValue(), $scale->getMaximum()), 'wp-testing') ?>
diff --git a/src/WordPressFacade.php b/src/WordPressFacade.php index a77a7c82..216df816 100644 --- a/src/WordPressFacade.php +++ b/src/WordPressFacade.php @@ -269,6 +269,25 @@ public function registerPluginScript($name, $pluginRelatedPath, array $dependenc return $this; } + /** + * Loads the plugin's translated strings. + * + * If the path is not given then it will be the root of the plugin directory. + * The .mo file should be named based on the domain with a dash, and then the locale exactly. + * + * @since 1.5.0 + * + * @param string $domain Unique identifier for retrieving translated strings + * @param string $absoluteRelativePath Optional. Relative path to ABSPATH of a folder, + * where the .mo file resides. Deprecated, but still functional until 2.7 + * @param string $pluginsRelativePath Optional. Relative path to WP_PLUGIN_DIR. This is the preferred argument to use. It takes precendence over $abs_rel_path + * @return boolean + */ + public function loadPluginTextdomain($domain, $absoluteRelativePath = false, $pluginsRelativePath = false) + { + return load_plugin_textdomain($domain, $absoluteRelativePath, $pluginsRelativePath); + } + /** * Retrieve the name of the highest priority template file that exists. * diff --git a/tests/integration-environment/create.sh b/tests/integration-environment/create.sh index c67d99dc..bc361cfa 100755 --- a/tests/integration-environment/create.sh +++ b/tests/integration-environment/create.sh @@ -9,7 +9,8 @@ WP_VERSION=${WP_VERSION:-4.0} function init { log 'Define vars' - sudo apt-get install realpath mutt + sudo apt-get install realpath + # sudo apt-get install mutt HERE=$(dirname $(realpath $0)) } diff --git a/tests/mocha/test/page.js b/tests/mocha/test/page.js new file mode 100644 index 00000000..dedef322 --- /dev/null +++ b/tests/mocha/test/page.js @@ -0,0 +1,47 @@ +describe('Page', function() { + + before(function () { + this.timeout(3600000) + casper.start('http://wpti.dev/wp-admin/').thenOpen('http://wpti.dev/wp-login.php', { + method: 'post', + data : { + log: 'wpti', + pwd: 'wpti' + } + }) + }) + + it('should not disappear when plugin activated', function() { + casper.thenOpen('http://wpti.dev/wp-admin/post-new.php?post_type=page', function() { + 'Fatal'.should.not.be.textInDOM + 'Add New Page'.should.be.inTitle + + this.evaluate(function() { + jQuery('#post-body-content a').filter(':contains("Visual")').prev().addClass('__text_tab_here') + }) + this.click('a.__text_tab_here') + + this.fill('form#post', { + 'post_title' : 'Simple Page That Not Disappear!', + 'content' : 'Because some plugin have bug somedays ago.' + }) + + this.click('#publish') + }) + + casper.waitForUrl(/message/, function() { + 'Fatal'.should.not.be.textInDOM + '#message'.should.be.inDOM + + this.evaluate(function() { + document.location = jQuery('#view-post-btn a').attr('href') + }) + }) + + casper.waitForUrl(/page_id/, function() { + 'Fatal'.should.not.be.textInDOM + 'Disappear'.should.be.textInDOM + '404'.should.not.be.textInDOM + }) + }) +}) diff --git a/tests/mocha/test/questions.js b/tests/mocha/test/questions.js index f528f786..96bf9ae6 100644 --- a/tests/mocha/test/questions.js +++ b/tests/mocha/test/questions.js @@ -66,6 +66,34 @@ describe('Questions', function() { }) }) + it('should be added from quick fill', function() { + casper.then(function() { + this.clickLabel('All Tests', '*[@id="menu-posts-wpt_test"]/*//a') + }) + + casper.then(function() { + this.clickLabel('To Be or Not to Be?', 'a') + }) + + casper.then(function() { + this.clickLabel('Quick Fill From Text', 'a') + this.fillSelectors('form#post', { + '#wpt_quick_fill_questions textarea': '1. Cool. \n2. Quick\n3. Question\n' + }) + this.click('#wpt_quick_fill_questions .button') + this.fill('form#post', {}, true) + }) + + casper.waitForUrl(/message/, function() { + 'Fatal'.should.not.be.textInDOM + '#message'.should.be.inDOM + 'wpt_question_title_2.value'.should.evaluate.to.be.equal('Cool.') + 'wpt_question_title_3.value'.should.evaluate.to.be.equal('Quick') + 'wpt_question_title_4.value'.should.evaluate.to.be.equal('Question') + 'wpt_question_title_5.value'.should.evaluate.to.be.equal('') + }) + }) + it('should be then shown in test', function() { casper.evaluate(function() { document.location = jQuery('#view-post-btn a').attr('href') @@ -74,7 +102,14 @@ describe('Questions', function() { casper.waitForUrl(/wpt_test/, function() { 'Fatal'.should.not.be.textInDOM '.wpt_test.fill_form'.should.be.inDOM - 'document.querySelectorAll(".wpt_test.fill_form .question").length'.should.evaluate.to.equal(2) + 'document.querySelectorAll(".wpt_test.fill_form .question").length'.should.evaluate.to.equal(5) + }) + }) + + it('should be in non-final test', function() { + casper.then(function() { + 'Test is under construction'.should.be.textInDOM + '#wpt-test-form input[type=submit]'.should.not.be.inDOM }) }) }) diff --git a/tests/mocha/test/scores.js b/tests/mocha/test/scores.js index 29ce7eb8..840a5352 100644 --- a/tests/mocha/test/scores.js +++ b/tests/mocha/test/scores.js @@ -34,7 +34,7 @@ describe('Scores', function() { casper.waitForUrl(/message/, function() { 'Fatal'.should.not.be.textInDOM '#message'.should.be.inDOM - '#wpt_edit_formulas input[value="Lie, ∑ "]'.should.be.inDOM + '#wpt_edit_formulas input[value="Lie, ∑ 0"]'.should.be.inDOM this.fillSelectors('form#post', { '#wpt_score_value_0_0': '-1', '#wpt_score_value_1_0': '5', @@ -107,7 +107,28 @@ describe('Scores', function() { casper.waitForUrl(/message/, function() { 'Fatal'.should.not.be.textInDOM '#message'.should.be.inDOM - '#wpt_edit_formulas input[value="Lie, ∑ "]'.should.be.inDOM + '#wpt_edit_formulas input[value="Lie, ∑ 0"]'.should.be.inDOM + }) + }) + + it('should be filled from quick fill', function() { + casper.then(function() { + this.clickLabel('Quick Fill Scores', 'a') + this.fillSelectors('form#post', { + '#wpt_quick_fill_scores .score input' : '2', + '#wpt_quick_fill_scores .questions input' : ' 1, 2, 3, 4,wow' + }) + this.click('#wpt_quick_fill_scores input[type=button]') + }) + casper.then(function() { + 'wpt_score_value_0_0.value'.should.evaluate.to.be.equal('2') + 'wpt_score_value_1_0.value'.should.evaluate.to.be.equal('2') + 'wpt_score_value_2_0.value'.should.evaluate.to.be.equal('2') + }) + casper.then(function() { + this.clickLabel('Quick Fill Scores', 'a') + 'wpt_quick_fill_scores_score_0_0.value'.should.evaluate.to.be.equal('2') + 'wpt_quick_fill_scores_questions_0_0.value'.should.evaluate.to.be.equal('1, 2, 3') }) }) }) diff --git a/wp-testing.php b/wp-testing.php index 68c967f3..7d497893 100644 --- a/wp-testing.php +++ b/wp-testing.php @@ -3,10 +3,12 @@ * Plugin Name: Wp-testing * Plugin URI: http://wordpress.org/extend/plugins/wp-testing/ * Description: Helps to create psychological tests. - * Version: 0.4.2 + * Version: 0.5 * Author: Alexander Ustimenko * Author URI: http://ustimen.co * License: GPL3 + * Text Domain: wp-testing + * Domain Path: /languages */ require_once dirname(__FILE__) . '/src/WordPressFacade.php';