diff --git a/changelog.txt b/changelog.txt
index af701cf..9ae89e1 100755
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,5 +1,11 @@
*** Sensei Course Participants Changelog ***
+2020.11.19 - version 2.0.2
+
+* Tweak: Ensure course participants count displays on single course page that is not using Sensei custom template - #69, #70, #71
+* Tweak: Add missing translator comments - #66
+* Tweak: Switch to webpack via wordpress-scripts and simplify build - #60
+
2020.04.08 - version 2.0.1
* New: Add Hungarian translation - #49
* Tweak: Change to get enrolled participants instead of in progress - #53
diff --git a/languages/sensei-course-participants.pot b/languages/sensei-course-participants.pot
index 6a0c0ec..a6a8769 100644
--- a/languages/sensei-course-participants.pot
+++ b/languages/sensei-course-participants.pot
@@ -2,16 +2,16 @@
# This file is distributed under the same license as the Sensei Course Participants plugin.
msgid ""
msgstr ""
-"Project-Id-Version: Sensei Course Participants 2.0.1\n"
+"Project-Id-Version: Sensei Course Participants 2.0.2\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sensei-course-participants\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2020-08-26T17:07:03+00:00\n"
+"POT-Creation-Date: 2020-11-18T19:28:59+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"X-Generator: WP-CLI 2.4.0\n"
+"X-Generator: WP-CLI 2.5.0-alpha-75cb7e3\n"
"X-Domain: sensei-course-participants\n"
#. Plugin Name of the plugin
@@ -35,114 +35,146 @@ msgid "https://automattic.com/"
msgstr ""
#. translators: %1$s is version of PHP that this plugin requires; %2$s is the version of PHP WordPress is running on.
+#: build/sensei-course-participants/includes/class-sensei-course-participants-dependency-checker.php:91
#: includes/class-sensei-course-participants-dependency-checker.php:91
msgid "Sensei Course Participants requires a minimum PHP version of %1$s, but you are running %2$s."
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-dependency-checker.php:101
#: includes/class-sensei-course-participants-dependency-checker.php:101
msgid "Learn more about updating PHP"
msgstr ""
#. translators: accessibility text
+#: build/sensei-course-participants/includes/class-sensei-course-participants-dependency-checker.php:103
#: includes/class-sensei-course-participants-dependency-checker.php:103
msgid "(opens in a new tab)"
msgstr ""
#. translators: %1$s is the minimum version number of Sensei that is required.
+#: build/sensei-course-participants/includes/class-sensei-course-participants-dependency-checker.php:122
#: includes/class-sensei-course-participants-dependency-checker.php:122
msgid "Sensei Course Participants requires that the plugin Sensei (minimum version: %1$s) is installed and activated."
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:58
#: includes/class-sensei-course-participants-widget.php:58
msgid "Displays a list of learners taking the current course, with links to their profiles (if public)."
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:60
#: includes/class-sensei-course-participants-widget.php:60
msgid "Sensei - Course Participants"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:153
#: includes/class-sensei-course-participants-widget.php:153
msgid "There are no other learners currently taking this course. Be the first!"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:176
#: includes/class-sensei-course-participants-widget.php:176
msgid "You"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:201
#: includes/class-sensei-course-participants-widget.php:201
msgid "View public learner profile"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:218
#: includes/class-sensei-course-participants-widget.php:218
msgid "View all"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:280
#: includes/class-sensei-course-participants-widget.php:280
msgid "Title (optional):"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:285
#: includes/class-sensei-course-participants-widget.php:285
msgid "Number of Learners (optional):"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:290
#: includes/class-sensei-course-participants-widget.php:290
msgid "Image Size (in pixels):"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:295
#: includes/class-sensei-course-participants-widget.php:295
msgid "Order By:"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:304
#: includes/class-sensei-course-participants-widget.php:304
msgid "Order Direction:"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:313
#: includes/class-sensei-course-participants-widget.php:313
msgid "Display:"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:332
#: includes/class-sensei-course-participants-widget.php:332
msgid "Date Registered"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:333
#: includes/class-sensei-course-participants-widget.php:333
msgid "Name"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:334
#: includes/class-sensei-course-participants-widget.php:334
msgid "Random Order"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:346
#: includes/class-sensei-course-participants-widget.php:346
msgid "Ascending"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:347
#: includes/class-sensei-course-participants-widget.php:347
msgid "Descending"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:359
#: includes/class-sensei-course-participants-widget.php:359
msgid "List"
msgstr ""
+#: build/sensei-course-participants/includes/class-sensei-course-participants-widget.php:360
#: includes/class-sensei-course-participants-widget.php:360
msgid "Grid"
msgstr ""
-#: includes/class-sensei-course-participants.php:134
+#: build/sensei-course-participants/includes/class-sensei-course-participants.php:134
msgid "%s %s taking this course"
msgstr ""
-#: includes/class-sensei-course-participants.php:136
+#: build/sensei-course-participants/includes/class-sensei-course-participants.php:136
msgid "learner"
msgid_plural "learners"
msgstr[0] ""
msgstr[1] ""
-#: includes/class-sensei-course-participants.php:371
+#: build/sensei-course-participants/includes/class-sensei-course-participants.php:371
+#: includes/class-sensei-course-participants.php:454
msgid "View All"
msgstr ""
-#: includes/class-sensei-course-participants.php:372
+#: build/sensei-course-participants/includes/class-sensei-course-participants.php:372
+#: includes/class-sensei-course-participants.php:455
msgid "Close"
msgstr ""
+
+#. translators: %d is replaced with the number of learners in the course
+#: includes/class-sensei-course-participants.php:180
+msgid "%d learner taking this course"
+msgid_plural "%d learners taking this course"
+msgstr[0] ""
+msgstr[1] ""
diff --git a/package-lock.json b/package-lock.json
index ba460f8..e3bc905 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "sensei-course-participants",
- "version": "2.0.1",
+ "version": "2.0.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -2724,6 +2724,12 @@
"requires": {
"type-fest": "^0.8.1"
}
+ },
+ "prettier": {
+ "version": "npm:wp-prettier@2.0.5",
+ "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.0.5.tgz",
+ "integrity": "sha512-5GCgdeevIXwR3cW4Qj5XWC5MO1iSCz8+IPn0mMw6awAt/PBiey8yyO7MhePRsaMqghJAhg6Q3QLYWSnUHWkG6A==",
+ "dev": true
}
}
},
@@ -2834,6 +2840,43 @@
"webpack-bundle-analyzer": "^3.6.1",
"webpack-cli": "^3.3.11",
"webpack-livereload-plugin": "^2.3.0"
+ },
+ "dependencies": {
+ "prettier": {
+ "version": "npm:wp-prettier@2.0.5",
+ "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.0.5.tgz",
+ "integrity": "sha512-5GCgdeevIXwR3cW4Qj5XWC5MO1iSCz8+IPn0mMw6awAt/PBiey8yyO7MhePRsaMqghJAhg6Q3QLYWSnUHWkG6A==",
+ "dev": true
+ },
+ "puppeteer": {
+ "version": "npm:puppeteer-core@3.0.0",
+ "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-3.0.0.tgz",
+ "integrity": "sha512-oWjZFGMc0q2ak+8OxdmMffS79LIT0UEtmpV4h1/AARvESIqqKljf8mrfP+dQ2kas7XttsAZIxRBuWu7Y5JH8KQ==",
+ "dev": true,
+ "requires": {
+ "@types/mime-types": "^2.1.0",
+ "debug": "^4.1.0",
+ "extract-zip": "^2.0.0",
+ "https-proxy-agent": "^4.0.0",
+ "mime": "^2.0.3",
+ "mime-types": "^2.1.25",
+ "progress": "^2.0.1",
+ "proxy-from-env": "^1.0.0",
+ "rimraf": "^3.0.2",
+ "tar-fs": "^2.0.0",
+ "unbzip2-stream": "^1.3.3",
+ "ws": "^7.2.3"
+ }
+ },
+ "rimraf": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ }
}
},
"@wordpress/warning": {
@@ -12490,12 +12533,6 @@
"integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=",
"dev": true
},
- "prettier": {
- "version": "npm:wp-prettier@2.0.5",
- "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.0.5.tgz",
- "integrity": "sha512-5GCgdeevIXwR3cW4Qj5XWC5MO1iSCz8+IPn0mMw6awAt/PBiey8yyO7MhePRsaMqghJAhg6Q3QLYWSnUHWkG6A==",
- "dev": true
- },
"prettier-linter-helpers": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",
@@ -12701,37 +12738,6 @@
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
"dev": true
},
- "puppeteer": {
- "version": "npm:puppeteer-core@3.0.0",
- "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-3.0.0.tgz",
- "integrity": "sha512-oWjZFGMc0q2ak+8OxdmMffS79LIT0UEtmpV4h1/AARvESIqqKljf8mrfP+dQ2kas7XttsAZIxRBuWu7Y5JH8KQ==",
- "dev": true,
- "requires": {
- "@types/mime-types": "^2.1.0",
- "debug": "^4.1.0",
- "extract-zip": "^2.0.0",
- "https-proxy-agent": "^4.0.0",
- "mime": "^2.0.3",
- "mime-types": "^2.1.25",
- "progress": "^2.0.1",
- "proxy-from-env": "^1.0.0",
- "rimraf": "^3.0.2",
- "tar-fs": "^2.0.0",
- "unbzip2-stream": "^1.3.3",
- "ws": "^7.2.3"
- },
- "dependencies": {
- "rimraf": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
- "dev": true,
- "requires": {
- "glob": "^7.1.3"
- }
- }
- }
- },
"q": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz",
diff --git a/package.json b/package.json
index 439d4ea..e316ff1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "sensei-course-participants",
- "version": "2.0.1",
+ "version": "2.0.2",
"description": "Sensei LMS Course Participants",
"author": "Automattic",
"license": "GPL-2.0-or-later",
diff --git a/sensei-course-participants.php b/sensei-course-participants.php
index 68585f8..2452f9b 100755
--- a/sensei-course-participants.php
+++ b/sensei-course-participants.php
@@ -1,12 +1,12 @@