From f33e751fbd4b1cee7cd1871d401680eeb8aa2244 Mon Sep 17 00:00:00 2001
From: Justus Dieckmann <justusdieckmann@wwu.de>
Date: Sun, 29 Sep 2019 21:43:37 +0200
Subject: [PATCH] Additional string capitalization fixes

---
 lang/en/tool_lifecycle.php                         |  2 +-
 step/duplicate/lang/en/lifecyclestep_duplicate.php |  4 ++--
 tests/behat/interaction_forms.feature              | 12 ++++++------
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/lang/en/tool_lifecycle.php b/lang/en/tool_lifecycle.php
index ec2d15e..2254025 100644
--- a/lang/en/tool_lifecycle.php
+++ b/lang/en/tool_lifecycle.php
@@ -42,7 +42,7 @@ $string['workflow_definition_heading'] = 'Workflow definitions';
 $string['adminsettings_edit_workflow_definition_heading'] = 'Workflow definition';
 $string['adminsettings_workflow_definition_steps_heading'] = 'Workflow steps';
 $string['adminsettings_edit_trigger_instance_heading'] = 'Trigger for workflow \'{$a}\'';
-$string['adminsettings_edit_step_instance_heading'] = 'Step Instance for workflow \'{$a}\'';
+$string['adminsettings_edit_step_instance_heading'] = 'Step instance for workflow \'{$a}\'';
 $string['add_new_step_instance'] = 'Add new step instance...';
 $string['add_new_trigger_instance'] = 'Add new trigger instance...';
 $string['step_settings_header'] = 'Specific settings of the step type';
diff --git a/step/duplicate/lang/en/lifecyclestep_duplicate.php b/step/duplicate/lang/en/lifecyclestep_duplicate.php
index cf90c5d..3eb2e06 100644
--- a/step/duplicate/lang/en/lifecyclestep_duplicate.php
+++ b/step/duplicate/lang/en/lifecyclestep_duplicate.php
@@ -22,11 +22,11 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-$string['pluginname'] = 'Duplicate Step';
+$string['pluginname'] = 'Duplicate step';
 
 $string['duplicate_form'] = 'Enter data';
 
-$string['duplicate_course_header'] = 'Duplicate Course';
+$string['duplicate_course_header'] = 'Duplicate course';
 $string['status_message_duplication'] = 'Duplicated course will be available shortly.';
 $string['status_message_form'] = 'Additional information required';
 $string['action_new_course_data'] = '{$a} supplied new course name';
diff --git a/tests/behat/interaction_forms.feature b/tests/behat/interaction_forms.feature
index b571013..1d564fa 100644
--- a/tests/behat/interaction_forms.feature
+++ b/tests/behat/interaction_forms.feature
@@ -25,9 +25,9 @@ Feature: Add a workflow with a manual trigger and a duplicate step and test the
       | Action name                | Duplicate course                          |
       | Capability                 | moodle/course:manageactivities            |
     And I press "Save changes"
-    And I select "Duplicate Step" from the "stepname" singleselect
+    And I select "Duplicate step" from the "stepname" singleselect
     And I set the following fields to these values:
-      | Instance name              | Duplicate Step                  |
+      | Instance name              | Duplicate step                  |
     And I press "Save changes"
     And I press "Back"
     And I press "Activate"
@@ -39,7 +39,7 @@ Feature: Add a workflow with a manual trigger and a duplicate step and test the
     Then I should see "Course 1" in the "tool_lifecycle_remaining" "table"
     And I should see the tool "Duplicate course" in the "Course 1" row of the "tool_lifecycle_remaining" table
     When I click on the tool "Duplicate course" in the "Course 1" row of the "tool_lifecycle_remaining" table
-    Then I should see "Duplicate Course"
+    Then I should see "Duplicate course"
     When I set the following fields to these values:
       | Course short name          | C2                                 |
       | Course full name           | Course 2                           |
@@ -60,11 +60,11 @@ Feature: Add a workflow with a manual trigger and a duplicate step and test the
     Then I should see "Course 1" in the "tool_lifecycle_remaining" "table"
     And I should see the tool "Duplicate course" in the "Course 1" row of the "tool_lifecycle_remaining" table
     When I click on the tool "Duplicate course" in the "Course 1" row of the "tool_lifecycle_remaining" table
-    Then I should see "Duplicate Course"
+    Then I should see "Duplicate course"
     When I am on lifecycle view
     Then I should see the tool "Enter data" in the "Course 1" row of the "tool_lifecycle_interaction" table
     When I click on the tool "Enter data" in the "Course 1" row of the "tool_lifecycle_interaction" table
-    Then I should see "Duplicate Course"
+    Then I should see "Duplicate course"
     When I set the following fields to these values:
       | Course short name          | C2                                 |
       | Course full name           | Course 2                           |
@@ -85,7 +85,7 @@ Feature: Add a workflow with a manual trigger and a duplicate step and test the
     Then I should see "Course 1" in the "tool_lifecycle_remaining" "table"
     And I should see the tool "Duplicate course" in the "Course 1" row of the "tool_lifecycle_remaining" table
     When I click on the tool "Duplicate course" in the "Course 1" row of the "tool_lifecycle_remaining" table
-    Then I should see "Duplicate Course"
+    Then I should see "Duplicate course"
     When I press "Cancel"
     Then I should not see "Duplicated course will be available shortly." in the "tool_lifecycle_remaining" "table"
     And I should see "Course 1" in the "tool_lifecycle_remaining" "table"
\ No newline at end of file
-- 
GitLab