From 3b9dc447427bdbb8d7e4ef3840e3d5e8aafd7b0f Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 7 Oct 2018 17:20:03 -0600 Subject: [PATCH] Missing scheduler lang strings --- languages/en.yaml | 5 +++++ themes/grav/templates/partials/tools-scheduler.html.twig | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/languages/en.yaml b/languages/en.yaml index 80c1f577..8a15346c 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -354,6 +354,7 @@ PLUGIN_ADMIN: ETAG_HELP: "Sets the etag header to help identify when a page has been modified" VARY_ACCEPT_ENCODING: "Vary accept encoding" VARY_ACCEPT_ENCODING_HELP: "Sets the `Vary: Accept Encoding` header to help with proxy and CDN caching" + VARY_ACCEPT_ENCODING_HELP: "Sets the `Vary: Accept Encoding` header to help with proxy and CDN caching" MARKDOWN: "Markdown" MARKDOWN_EXTRA: "Markdown extra" MARKDOWN_EXTRA_HELP: "Enable default support for Markdown Extra - https://michelf.ca/projects/php-markdown/extra/" @@ -749,6 +750,10 @@ PLUGIN_ADMIN: STRICT_TWIG_COMPAT: "Twig Compatibility" STRICT_TWIG_COMPAT_HELP: "Enables deprecated Twig autoescape setting. When disabled, |raw filter is required to output HTML as Twig will autoescape output" SCHEDULER: "Scheduler" + SCHEDULER_INSTALL_INSTRUCTIONS: "Install Instructions" + SCHEDULER_INSTALLED_READY: "Installed and Ready" + SCHEDULER_CRON_NA: "Cron Not Available" + SCHEDULER_NOT_ENABLED: "Not Enabled" SCHEDULER_SETUP: "Scheduler Setup" SCHEDULER_INSTRUCTIONS: "The Grav Scheduler allow you to create and schedule custom jobs. It also provides a method for Grav plugins to integrate programatically and dynamically add jobs to be run periodically." SCHEDULER_POST_INSTRUCTIONS: "To enable the Scheduler's functionality, you must add the Grav Scheduler to your system's crontab file. Run the command above from the terminal to add it automatically. Once saved, refresh this page to see the status Ready." diff --git a/themes/grav/templates/partials/tools-scheduler.html.twig b/themes/grav/templates/partials/tools-scheduler.html.twig index 3dc63865..28b76e4f 100644 --- a/themes/grav/templates/partials/tools-scheduler.html.twig +++ b/themes/grav/templates/partials/tools-scheduler.html.twig @@ -8,13 +8,13 @@ {% if cron_status == 1 %}
-
Display Instructions
- Installed and Ready +
{{ "PLUGIN_ADMIN.SCHEDULER_INSTALL_INSTRUCTIONS"|tu }}
+ {{ "PLUGIN_ADMIN.SCHEDULER_INSTALLED_READY"|tu }}
{% elseif cron_status == 2 %} -
Cron Not Available
+
{{ "PLUGIN_ADMIN.SCHEDULER_CRON_NA"|tu }}
{% else %} -
Not Enabled
+
{{ "PLUGIN_ADMIN.SCHEDULER_NOT_ENABLED"|tu }}
{% endif %}