From 4a09fa581d5eb24d94e616be65055688854a92a7 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Tue, 1 Sep 2020 14:40:41 +0100 Subject: [PATCH] Add application management localization options --- resources/lang/en/messages.php | 99 ++++++++++++++++++- .../application-rendering/apply.blade.php | 30 +++--- .../dashboard/appmanagement/all.blade.php | 57 ++++++----- .../appmanagement/interview.blade.php | 55 +++++------ .../appmanagement/outstandingapps.blade.php | 30 +++--- .../appmanagement/peerreview.blade.php | 31 +++--- 6 files changed, 198 insertions(+), 104 deletions(-) diff --git a/resources/lang/en/messages.php b/resources/lang/en/messages.php index a90f5db..7319863 100644 --- a/resources/lang/en/messages.php +++ b/resources/lang/en/messages.php @@ -24,10 +24,19 @@ return [ 'actions' => 'Actions', 'delete' => 'Delete', 'status' => 'Status', + 'view' => 'View', + 'view_c' => 'View Details', 'no_access' => 'Application Access Denied', 'validation_err' => 'Validation error!', 'description' => 'Description', - 'join_date' => 'Join Date' + 'join_date' => 'Join Date', + 'my_acc' => 'My Account', + 'confirm' => 'Please Confirm', + 'confirm_plain' => 'Confirm', + 'date' => 'Date', + 'datetime' => 'Time & Date', + 'location' => 'Location', + 'none_yet' => 'None yet' ], @@ -55,6 +64,7 @@ return [ 'open_position_count' => '{1} There is :count open position!|[2,*] There are :count open positions!', 'ineligible_days_remaining' => 'Ineligible (:days) day(s) remaining', 'txt_apply' => 'Apply', // Context: Apply as in applying for a "job", e.g. registering for a job + 'txt_application' => 'Application', 'application_closed' => 'Applications Closed', 'application_closed_intro' => 'Hello there!', 'application_closed_intro_line2' => << [ + 'appl_submit_warn' => 'Are you sure you want to submit your application? Please review each of your answers carefully before doing so.', + 'appl_submit_doublewarn' => 'Please note: Applications CANNOT be modified once they\'re submitted!', + 'acceptsend' => 'Accept & Send', + 'review' => 'Review', + 'applying_for' => 'You are applying for: :name', + 'welcome' => [ + 'yrs_old' => 'Years old', // Context: "years old" as in: Tom is 24 years old + 'line1' => 'We\'re glad you\'ve decided to apply. Generally, applications take 48 hours to be processed and reviewed. Depending on the circumstances and the volume of applications, you may receive an answer in a shorter time.', + 'line2' => 'Please fill out the form below. Keep all answers concise and complete. Please keep in mind that the age requirement is at least :agerqr.', + 'line3' => 'Asking about your application will result in instant denial. Everything you need to know is here.' + ], + 'app_timeout' => 'Your account is not permitted to submit another application. Please wait :days more days before trying to submit an application.' + ], + + + 'application_m' => [ + 'title' => 'Application Management', + 'all_apps' => 'All Applications', + 'modal_confirm' => 'Are you sure?', + 'really_delete' => 'Really delete this?', + + + 'outstanding_sm' => 'Outstanding', + 'outstanding_apps' => 'Outstanding applications', + 'outstanding_subm' => 'Outstanding (Submitted)', + + 'interview_q' => 'Interview Queue', + 'interview_p' => 'Interview', + 'interview_s' => 'Interview Scheduled', + 'finished_int' => 'Finished Interviews', + 'schedule_int' => 'Schedule Interviews', + 'p_review' => 'Peer Review', + 'applicant' => 'Applicant', + 'interviewee' => 'Interviewee', + 'pending_int' => 'Pending Interview', + 'schedule' => 'Schedule', + + 'view_interview_queue' => 'View Interview Queue', + 'view_approval_queue' => 'View Approval Queue', + 'view_outstanding_queue' => 'View Outstanding Queue', + + 'approved' => 'Approved', + 'denied' => 'Denied', + 'unknown_stat' => 'Unknown', + + 'consequence_irreversible' => 'IRREVERSIBLE', + 'delete_action_warning' => 'This action is :consequence.', + 'delete_explainer' => 'Comments, appointments and any votes attached to this application WILL be deleted too. Please make sure this application really needs to be deleted.', + + 'all_apps_header' => 'You\'re looking at all applications ever received', + 'all_apps_exp' => 'Here, you have quick and easy access to all applications ever received by the system.', + + 'no_apps' => 'There are no applications here', + 'no_apps_exp' => 'We couldn\'t find any applications. Maybe no one has applied yet? Please try again later.', + 'int_applications' => 'Applications', + + 'no_apps_pending_int' => 'No Applications Pending Interview', + 'no_apps_pending_int_exp' => 'There are no applications that have been moved up to the Interview stage. Please check the outstanding queue.There are no applications that have been moved up to the Interview stage. Please check the outstanding queue.', + 'upcoming_int' => 'My Upcoming Interviews', + 'pending_schedule' => 'Pending Schedule', + + 'no_upcoming' => 'There are no upcoming interviews', + 'no_upcoming_exp' => 'Please check other queues down in the application process. Applicants here may have already been interviewed.', + + 'no_outstanding' => 'Seeing no applications? Check with an Administrator to make sure that there are available open positions.', + 'no_outstanding_exp' => 'Advertising on relevant forums made for this purpose is also a good idea.', + + 'applicant_name' => 'Applicant Name', + 'application_date' => 'Application Date', + + 'no_pending' => 'There are no pending applications', + 'no_pending_exp' => 'It seems like no one new has applied yet. Checkout the interview and approval queues for applications that might have moved up the ladder by now.', + + 'voting_reminder' => [ + + 'title' => 'Voting Reminder', + 'line1' => 'Applications which gain more than 50% of positive votes are automatically approved after one day.', + 'line2' => 'Conversely, applications that do not reach this number are automatically denied.', + 'line3' => 'Please note that the vote system can be overridden' + + ], + + 'no_pending_review' => 'There are no applications pending review', + 'no_pending_review_exp' => 'Check the other queues for any applications! Applications will be shown here as soon as their interview is completed. You\'ll be able to view meeting notes and vote based on your observations.', + + ] ]; diff --git a/resources/views/dashboard/application-rendering/apply.blade.php b/resources/views/dashboard/application-rendering/apply.blade.php index b516063..7c0aa0c 100644 --- a/resources/views/dashboard/application-rendering/apply.blade.php +++ b/resources/views/dashboard/application-rendering/apply.blade.php @@ -1,9 +1,9 @@ @extends('adminlte::page') -@section('title', 'Raspberry Network Team Management') +@section('title', config('app.name') . ' | ' . __('messages.txt_apply')) @section('content_header') -

My Account / Apply / {{$vacancy->vacancyName}} Application

+

{{__('messages.reusable.my_acc')}} / {{__('messages.txt_apply')}} / {{$vacancy->vacancyName}} {{__('messages.txt_application')}}

@stop @section('js') @@ -24,7 +24,7 @@ @if(!$isEligibleForApplication) - + @endif @@ -38,20 +38,20 @@ @@ -63,11 +63,11 @@
-

You are applying for: {{$vacancy->vacancyName}}

+

{{__('messages.application_r.applying_for', ['name' => $vacancy->vacancyName])}}

-

We're glad you've decided to apply. Generally, applications take 48 hours to be processed and reviewed. Depending on the circumstances and the volume of applications, you may receive an answer in a shorter time.

-

Please fill out the form below. Keep all answers concise and complete. Please keep in mind that the age requirement is at least 18 years old.

-

Asking about your application will result in instant denial. Everything you need to know is here.

+

{{__('messages.application_r.welcome.line1')}}

+

{{__('messages.application_r.welcome.line2', ['agerqr' => '18 ' . __('messages.application_r.welcome.yrs_old')])}}.

+

{{__('messages.application_r.welcome.line3')}}.

@@ -104,7 +104,7 @@ @@ -118,9 +118,9 @@
-

Access denied

+

{{__('messages.reusable.no_access')}}

-

Your account is not permitted to submit another application. Please wait {{$eligibilityDaysRemaining}} more days before trying to submit an application.

+

{{__('messages.application_r.app_timeout', ['days' => $eligibilityDaysRemaining])}}

@endif diff --git a/resources/views/dashboard/appmanagement/all.blade.php b/resources/views/dashboard/appmanagement/all.blade.php index 16322ac..194ea91 100644 --- a/resources/views/dashboard/appmanagement/all.blade.php +++ b/resources/views/dashboard/appmanagement/all.blade.php @@ -1,10 +1,10 @@ @extends('adminlte::page') -@section('title', 'Raspberry Network | Profile') +@section('title', config('app.name') . ' | ' . __('messages.application_m.all_apps')) @section('content_header') -

Application Management / All Applications

+

{{__('messages.application_m.title')}} / {{__('messages.application_m.all_apps')}}

@stop @@ -20,20 +20,20 @@ @foreach($applications as $application) - + -

Really delete this?

+

{{__('messages.application_m.really_delete')}}

- This action is IRREVERSBILE. + {{__('messages.application_m.delete_action_warning', ['consequence' => '' . __('messages.application_m.consequence_irreversible') .''])}}

-

Comments, appointments and any votes attached to this application WILL be deleted too. Please make sure this application really needs to be deleted.

+

{{__('messages.application_m.delete_explainer')}}

@csrf @method('DELETE') - +
@@ -61,9 +61,9 @@
-

You're looking at all applications ever received

+

{{__('messages.application_m.all_apps_header')}}

- Here, you have quick and easy access to all applications ever received by the system. + {{__('messages.application_m.all_apps_exp')}}

@@ -90,16 +90,16 @@
-

All applications

+

{{__('messages.application_m.all_apps')}}

@@ -131,10 +131,10 @@ # - Applicant - Status - Date - Actions + {{__('messages.application_m.applicant')}} + {{__('messages.reusable.status')}} + {{__('messages.reusable.date')}} + {{__('messages.reusable.actions')}} @@ -151,48 +151,48 @@ @case('STAGE_SUBMITTED') - Outstanding (Submitted) + {{__('messages.application_m.outstanding_subm')}} @break @case('STAGE_PEERAPPROVAL') - Peer Approval + {{__('messages.application_m.p_review')}} @break @case('STAGE_INTERVIEW') - Interview + {{__('messages.application_m.interview_p')}} @break @case('STAGE_INTERVIEW_SCHEDULED') - Interview Scheduled + {{__('messages.application_m.interview_s')}} @break @case('APPROVED') - Approved + {{__('messages.application_m.approved')}} @break @case('DENIED') - Denied + {{__('messages.application_m.denied')}} @break; @default - Unknown + {{__('messages.application_m.denied')}} @endswitch {{ $application->created_at }} - - + + @@ -206,10 +206,9 @@
-

There are no applications here

+

{{__('messages.application_m.no_apps')}}

- We couldn't find any applications. Maybe no one has applied yet? - Please try again later. + {{__('messages.application_m.no_apps_exp')}}

diff --git a/resources/views/dashboard/appmanagement/interview.blade.php b/resources/views/dashboard/appmanagement/interview.blade.php index 7b704a5..209d5f0 100644 --- a/resources/views/dashboard/appmanagement/interview.blade.php +++ b/resources/views/dashboard/appmanagement/interview.blade.php @@ -1,10 +1,10 @@ @extends('adminlte::page') -@section('title', 'Raspberry Network | Applications') +@section('title', config('app.name') . ' | ' . __('messages.application_m.int_applications')) @section('content_header') -

Application Management / Pending Interviews

+

{{__('messages.application_m.title')}} / {{__('messages.application_m.interview_q')}}

@stop @@ -17,7 +17,7 @@

{{$applications->count()}}

-

Pending Interviews

+

{{__('messages.application_m.interview_q')}}

@@ -31,7 +31,7 @@

{{$finishedCount}}

-

Finished Interviews

+

{{__('messages.application_m.finished_int')}}

@@ -48,7 +48,7 @@
-

Schedule Interviews

+

{{__('messages.application_m.schedule_int')}}

@@ -61,9 +61,9 @@ # - Interviewee - Status - Actions + {{__('messages.application_m.interviewee')}} + {{__('messages.reusable.status')}} + {{__('messages.reusable.actions')}} @@ -75,10 +75,10 @@ {{$application->id}} {{$application->user->name}} - {{($application->applicationStatus == 'STAGE_INTERVIEW') ? 'Pending Interview' : 'Unknown Status'}} + {{($application->applicationStatus == 'STAGE_INTERVIEW') ? __('messages.application_m.pending_int') : __('messages.application_m.unknown_stat')}} - - + + @@ -92,8 +92,8 @@
- No Applications Pending Interview -

There are no applications that have been moved up to the Interview stage. Please check the outstanding queue.

+ {{__('messages.application_m.no_apps_pending_int')}} +

{{__('messages.application_m.no_apps_pending_int_exp')}}

@endif @@ -110,7 +110,7 @@
-

My Upcoming Interviews

+

{{__('messages.application_m.upcoming_int')}}

@@ -124,11 +124,11 @@ # - Interviewee - Status - Time & Date - Location - Actions + {{__('messages.application_m.interviewee')}} + {{__('messages.reusable.status')}} + {{__('messages.reusable.datetime')}} + {{__('messages.reusable.location')}} + {{__('messages.reusable.actions')}} @@ -142,16 +142,16 @@ {{$upcomingApp->id}} {{$upcomingApp->user->name}} @if (is_null($upcomingApp->appointment)) - Pending Schedule - None yet - Pending Schedule + {{__('messages.application_m.pending_schedule')}} + {{__('messages.reusable.none_yet')}} + {{__('messages.application_m.pending_int')}} @else {{ucfirst(strtolower($upcomingApp->appointment->appointmentStatus))}} {{$upcomingApp->appointment->appointmentDate}} {{ucfirst(strtolower($upcomingApp->appointment->appointmentLocation))}} @endif - + @@ -164,9 +164,8 @@ @else -

There are no upcoming interviews

- - Please check other queues down in the application process. Applicants here may have already been interviewed. +

{{__('messages.application_m.no_upcoming')}}

+ {{__('messages.application_m.no_upcoming_exp')}}
@endif @@ -183,8 +182,8 @@
- - + +
diff --git a/resources/views/dashboard/appmanagement/outstandingapps.blade.php b/resources/views/dashboard/appmanagement/outstandingapps.blade.php index 5fba004..e231318 100644 --- a/resources/views/dashboard/appmanagement/outstandingapps.blade.php +++ b/resources/views/dashboard/appmanagement/outstandingapps.blade.php @@ -1,10 +1,10 @@ @extends('adminlte::page') -@section('title', 'Raspberry Network | Profile') +@section('title', config('app.name') . ' | ' . __('messages.application_m.title')) @section('content_header') -

Application Management / Outstanding Applications

+

{{__('messages.application_m.title')}} / {{__('messages.application_m.outstanding_apps')}}

@stop @@ -21,8 +21,8 @@
-

Seeing no applications? Check with an Administrator to make sure that there are available open positions.

-

Advertising on relevant forums made for this purpose is also a good idea.

+

{{__('messages.application_m.no_outstanding')}}

+

{{__('messages.application_m.no_outstanding_exp')}}

@@ -36,7 +36,7 @@
-

Outstanding Applications

+

{{__('messages.application_m.outstanding_apps')}}

@@ -49,11 +49,11 @@ # - Applicant Name - Status - Application Date - Last Updated - Actions + {{__('messages.application_m.applicant_name')}} + {{__('messages.reusable.status')}} + {{__('messages.application_m.application_date')}} + {{__('messages.last_updated')}} + {{__('messages.reusable.status')}} @@ -66,11 +66,11 @@ {{$application->id}} {{$application->user->name}} - {{($application->applicationStatus == 'STAGE_SUBMITTED') ? 'Outstanding' : 'Unknown Status'}} + {{($application->applicationStatus == 'STAGE_SUBMITTED') ? __('messages.application_m.outstanding_sm') : __('messages.application_m.unknown_stat')}} {{$application->created_at}} {{$application->updated_at}} - + @@ -83,8 +83,8 @@ @else
- There are no pending applications -

It seems like no one new has applied yet. Checkout the interview and approval queues for applications that might have moved up the ladder by now.

+ {{__('messages.application_m.no_pending')}} +

{{__('messages.application_m.no_pending_exp')}}

@endif @@ -93,7 +93,7 @@ diff --git a/resources/views/dashboard/appmanagement/peerreview.blade.php b/resources/views/dashboard/appmanagement/peerreview.blade.php index 10d4968..5b56f56 100644 --- a/resources/views/dashboard/appmanagement/peerreview.blade.php +++ b/resources/views/dashboard/appmanagement/peerreview.blade.php @@ -1,10 +1,10 @@ @extends('adminlte::page') -@section('title', 'Raspberry Network | Applications') +@section('title', config('app.name') . ' | ' . __('messages.application_m.p_review')) @section('content_header') -

Application Management / Peer Review

+

{{__('messages.application_m.title')}} / {{__('messages.application_m.p_review')}}

@stop @@ -16,12 +16,12 @@
-

Voting Reminder

+

{{__('messages.application_m.voting_reminder.title')}}

-

Applications which gain more than 50% of positive votes are automatically approved after one day.

-

Conversely, applications that do not reach this number are automatically denied.

+

{{__('messages.application_m.voting_reminder.line1')}}

+

{{__('messages.application_m.voting_reminder.line2')}}

-

Please note that the vote system can be overriden.

+

{{__('messages.application_m.voting_reminder.line3')}}

@@ -36,7 +36,7 @@
-

Vote Backlog

+

{{__('messages.v_backlog')}}

@@ -48,10 +48,10 @@ # - Applicant Name - Last Acted On - Status - Actions + {{__('messages.application_m.applicant_name')}} + {{__('messages.last_updated')}} + {{__('messages.reusable.status')}} + {{__('messages.reusable.actions')}} @@ -64,9 +64,9 @@ {{$application->id}} {{$application->user->name}} {{$application->created_at}} - {{($application->applicationStatus == 'STAGE_PEERAPPROVAL') ? 'Peer Review' : 'Unknown'}} + {{($application->applicationStatus == 'STAGE_PEERAPPROVAL') ? __('messages.application_m.p_review') : __('messages.application_m.unknown_stat')}} - + @endforeach @@ -76,10 +76,9 @@ @else -

There are no applications pending review

+

{{__('messages.application_m.no_pending_review')}}

- Check the other queues for any applications! Applications will be shown here as soon as their interview is completed. - You'll be able to view meeting notes and vote based on your observations. + {{__('messages.application_m.no_pending_review_exp')}}
@endif