From bb1d94f84f6ce80e704c544d6402f9fe63dcc3cc Mon Sep 17 00:00:00 2001 From: Paul Isaris Date: Thu, 12 Dec 2024 12:07:37 +0200 Subject: [PATCH] Changed some texts --- resources/lang/en/questionnaire.php | 10 +++++----- .../crowdsourcing-project/partials/about.blade.php | 2 +- .../partials/external-url.blade.php | 2 +- .../CrowdSourcingProjectControllerTest.php | 4 ++-- .../CrowdSourcingProjectLandingPageTest.php | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/resources/lang/en/questionnaire.php b/resources/lang/en/questionnaire.php index 8f9338a2c..5b32b5e34 100644 --- a/resources/lang/en/questionnaire.php +++ b/resources/lang/en/questionnaire.php @@ -16,7 +16,7 @@ 'name_and_date_of_last_contributors' => ':name responded at :date', 'answers_left_to_goal' => ':count answers left to reach our goal', //1002 answers left to reach our goal 'newsletter' => 'Newsletter', - 'learn_about_new_projects' => 'Learn about all our new projects, get updates on active ones and contribute where it is most needed!', + 'learn_about_new_projects' => 'Learn about all our new campaigns, get updates on active ones and contribute where it is most needed!', 'sign_in' => 'Sign in', 'sign_up' => 'Sign up', 'thank_you' => 'Thank you!', @@ -26,7 +26,7 @@ 'by_registering_you' => 'Register as a platform user*:', 'filter_spammers' => 'You’ll see your answers!', 'view_your_contribution' => 'You can see the answers of others.', - 'vote_thumbs_up' => 'You can be informed about the further activities and results of the project.', + 'vote_thumbs_up' => 'You can be informed about the further activities and results of the campaign.', 'no_share_information' => 'We don’t share your information to 3rd parties.', 'during_registration' => 'During registration you are asked for an email and a nickname.', 'already_answered' => 'You have already answered this questionnaire.', @@ -36,12 +36,12 @@ 'give_us_feedback' => 'Give us feedback', 'zero_answers' => 'Zero people have spoken up so far. Be the first!', 'no_recent_activity' => 'No recent activity found', - 'visit_projects_site' => 'Visit project’s site', - 'project_finalized' => 'This project has been finalized.', + 'visit_projects_site' => 'Visit campaign’s site', + 'project_finalized' => 'This campaign has been finalized.', 'no_active_questionnaires' => 'No active questionnaires', 'next_questionnaire' => 'Our next questionnaire is on its way: stay tuned!', 'answer_the_questionnaire' => 'Answer the questionnaire', - 'project_no_active_questionnaire' => 'This project does not have an active questionnaire yet.', + 'project_no_active_questionnaire' => 'This campaign does not have an active questionnaire yet.', 'check_what_other_respondents' => 'Before answering to the questionnaire, you can check what the other respondents have said by clicking', 'here' => 'here', 'select_language' => 'Select language', diff --git a/resources/views/crowdsourcing-project/partials/about.blade.php b/resources/views/crowdsourcing-project/partials/about.blade.php index dbef1479b..53652934f 100644 --- a/resources/views/crowdsourcing-project/partials/about.blade.php +++ b/resources/views/crowdsourcing-project/partials/about.blade.php @@ -22,7 +22,7 @@ class="h-0 hidden"
- {{ __("questionnaire.visit_projects_site") }} + {{ __("project.visit_project_webpage_link_text") }}
diff --git a/resources/views/crowdsourcing-project/partials/external-url.blade.php b/resources/views/crowdsourcing-project/partials/external-url.blade.php index 66fff6d1c..8b4c9fde8 100644 --- a/resources/views/crowdsourcing-project/partials/external-url.blade.php +++ b/resources/views/crowdsourcing-project/partials/external-url.blade.php @@ -1,7 +1,7 @@ @if($viewModel->projectHasExternalURL())
- {{ __("questionnaire.visit_projects_site") }} + {{ __("project.visit_project_webpage_link_text") }}
@endif diff --git a/tests/Feature/Controllers/CrowdSourcingProject/CrowdSourcingProjectControllerTest.php b/tests/Feature/Controllers/CrowdSourcingProject/CrowdSourcingProjectControllerTest.php index 6ece2e504..b54e334a4 100644 --- a/tests/Feature/Controllers/CrowdSourcingProject/CrowdSourcingProjectControllerTest.php +++ b/tests/Feature/Controllers/CrowdSourcingProject/CrowdSourcingProjectControllerTest.php @@ -46,7 +46,7 @@ public function guestViewsFinalizedProjectLandingPage() { $response = $this->get(route('project.landing-page', ['locale' => 'en', 'slug' => $project->slug])); $response->assertStatus(200); - $response->assertSee('This project is finalized.
Thank you for your contribution!', false); + $response->assertSee('This campaign is finalized.
Thank you for your contribution!', false); $response->assertViewIs('crowdsourcing-project.project-unavailable'); } @@ -65,7 +65,7 @@ public function authenticatedUserCannotViewNonPublishedProjectLandingPage() { $response = $this->get(route('project.landing-page', ['locale' => 'en', 'slug' => $project->slug])); $response->assertStatus(200); - $response->assertSee('This project is unpublished.', false); + $response->assertSee('This campaign is not published yet.', false); $response->assertViewIs('crowdsourcing-project.project-unavailable'); } diff --git a/tests/Feature/Controllers/CrowdSourcingProject/CrowdSourcingProjectLandingPageTest.php b/tests/Feature/Controllers/CrowdSourcingProject/CrowdSourcingProjectLandingPageTest.php index 192af496f..712cb436b 100644 --- a/tests/Feature/Controllers/CrowdSourcingProject/CrowdSourcingProjectLandingPageTest.php +++ b/tests/Feature/Controllers/CrowdSourcingProject/CrowdSourcingProjectLandingPageTest.php @@ -348,7 +348,7 @@ public function test_user_should_see_cta_for_external_link_without_answering_com $response = $this->get(route('project.landing-page', ['locale' => 'en', 'slug' => $project->slug])); // We need to assert that the page has the external link Call-to-Action (CTA) button - $response->assertSee('Visit project’s site'); + $response->assertSee('Visit campaign webpage'); } /** @@ -506,7 +506,7 @@ public function test_user_should_see_cta_for_external_link_after_answering_quest $response = $this->get(route('project.landing-page', ['locale' => 'en', 'slug' => $project->slug])); // We need to assert that the page has the external link Call-to-Action (CTA) button - $response->assertSee(__('questionnaire.visit_projects_site')); + $response->assertSee(__('project.visit_project_webpage_link_text')); } /**