Add enums to language strings file
This commit is contained in:
@@ -17,10 +17,10 @@ class AircraftStatus extends Enum
|
||||
public const WRITTEN_OFF = 'W';
|
||||
|
||||
public static $labels = [
|
||||
AircraftStatus::ACTIVE => 'Active',
|
||||
AircraftStatus::STORED => 'Stored',
|
||||
AircraftStatus::RETIRED => 'Retired',
|
||||
AircraftStatus::SCRAPPED => 'Scrapped',
|
||||
AircraftStatus::WRITTEN_OFF => 'Written Off',
|
||||
AircraftStatus::ACTIVE => 'system.aircraft.status.active',
|
||||
AircraftStatus::STORED => 'system.aircraft.status.stored',
|
||||
AircraftStatus::RETIRED => 'system.aircraft.status.retired',
|
||||
AircraftStatus::SCRAPPED => 'system.aircraft.status.scrapped',
|
||||
AircraftStatus::WRITTEN_OFF => 'system.aircraft.status.written',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -27,37 +27,20 @@ class FlightType extends Enum
|
||||
public const TECHNICAL_STOP = 'X';
|
||||
|
||||
protected static $labels = [
|
||||
FlightType::SCHED_PAX => 'Passenger - Scheduled',
|
||||
FlightType::SCHED_CARGO => 'Cargo - Scheduled',
|
||||
FlightType::CHARTER_PAX_ONLY => 'Charter - Passenger Only',
|
||||
FlightType::ADDITIONAL_CARGO => 'Additional Cargo/Mail',
|
||||
FlightType::VIP => 'Special VIP Flight (FAA/Government)',
|
||||
FlightType::ADDTL_PAX => 'Passenger - Additional',
|
||||
FlightType::CHARTER_CARGO_MAIL => 'Charter - Cargo/Mail',
|
||||
FlightType::AMBULANCE => 'Ambulance Flight',
|
||||
FlightType::TRAINING => 'Training Flight',
|
||||
FlightType::MAIL_SERVICE => 'Mail Service',
|
||||
FlightType::CHARTER_SPECIAL => 'Charter w/ Special Handling',
|
||||
FlightType::POSITIONING => 'Positioning (Ferry/Delivery/Demo)',
|
||||
FlightType::TECHNICAL_TEST => 'Technical Test',
|
||||
FlightType::MILITARY => 'Military',
|
||||
FlightType::TECHNICAL_STOP => 'Technical Stop',
|
||||
];
|
||||
|
||||
protected static $codes = [
|
||||
FlightType::SCHED_PAX => 'J',
|
||||
FlightType::SCHED_CARGO => 'F',
|
||||
FlightType::CHARTER_PAX_ONLY => 'C',
|
||||
FlightType::ADDITIONAL_CARGO => 'A',
|
||||
FlightType::VIP => 'E',
|
||||
FlightType::ADDTL_PAX => 'G',
|
||||
FlightType::CHARTER_CARGO_MAIL => 'H',
|
||||
FlightType::AMBULANCE => 'I',
|
||||
FlightType::TRAINING => 'K',
|
||||
FlightType::MAIL_SERVICE => 'M',
|
||||
FlightType::CHARTER_SPECIAL => 'O',
|
||||
FlightType::TECHNICAL_TEST => 'T',
|
||||
FlightType::MILITARY => 'M',
|
||||
FlightType::TECHNICAL_STOP => 'X',
|
||||
FlightType::SCHED_PAX => 'system.flights.type.pass_scheduled',
|
||||
FlightType::SCHED_CARGO => 'system.flights.type.cargo_scheduled',
|
||||
FlightType::CHARTER_PAX_ONLY => 'system.flights.type.charter_pass_only',
|
||||
FlightType::ADDITIONAL_CARGO => 'system.flights.type.addtl_cargo_mail',
|
||||
FlightType::VIP => 'system.flights.type.special_vip',
|
||||
FlightType::ADDTL_PAX => 'system.flights.type.pass_addtl',
|
||||
FlightType::CHARTER_CARGO_MAIL => 'system.flights.type.charter_cargo',
|
||||
FlightType::AMBULANCE => 'system.flights.type.ambulance',
|
||||
FlightType::TRAINING => 'system.flights.type.training_flight',
|
||||
FlightType::MAIL_SERVICE => 'system.flights.type.mail_service',
|
||||
FlightType::CHARTER_SPECIAL => 'system.flights.type.charter_special',
|
||||
FlightType::POSITIONING => 'system.flights.type.positioning',
|
||||
FlightType::TECHNICAL_TEST => 'system.flights.type.technical_test',
|
||||
FlightType::MILITARY => 'system.flights.type.military',
|
||||
FlightType::TECHNICAL_STOP => 'system.flights.type.technical_stop',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ class PirepSource extends Enum
|
||||
public const ACARS = 1;
|
||||
|
||||
protected static $labels = [
|
||||
PirepSource::MANUAL => 'Manual',
|
||||
PirepSource::ACARS => 'ACARS',
|
||||
PirepSource::MANUAL => 'system.pireps.source.manual',
|
||||
PirepSource::ACARS => 'system.pireps.source.acars',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -28,20 +28,20 @@ class PirepStatus extends Enum
|
||||
public const CANCELLED = 'DX';
|
||||
|
||||
protected static $labels = [
|
||||
PirepStatus::INITIATED => 'Initiated',
|
||||
PirepStatus::SCHEDULED => 'Scheduled',
|
||||
PirepStatus::BOARDING => 'Boarding',
|
||||
PirepStatus::RDY_START => 'Ready for start',
|
||||
PirepStatus::DEPARTED => 'Departed',
|
||||
PirepStatus::RDY_DEICE => 'Ready for de-icing',
|
||||
PirepStatus::STRT_DEICE => 'De-icing in progress',
|
||||
PirepStatus::GRND_RTRN => 'Ground return',
|
||||
PirepStatus::AIRBORNE => 'Enroute',
|
||||
PirepStatus::DIVERTED => 'Diverted',
|
||||
PirepStatus::APPROACH => 'Approach',
|
||||
PirepStatus::ON_FINAL => 'Final approach',
|
||||
PirepStatus::LANDED => 'Landed',
|
||||
PirepStatus::ARRIVED => 'Arrived',
|
||||
PirepStatus::CANCELLED => 'Cancelled',
|
||||
PirepStatus::INITIATED => 'system.pireps.status.initialized',
|
||||
PirepStatus::SCHEDULED => 'system.pireps.status.scheduled',
|
||||
PirepStatus::BOARDING => 'system.pireps.status.boarding',
|
||||
PirepStatus::RDY_START => 'system.pireps.status.ready_start',
|
||||
PirepStatus::DEPARTED => 'system.pireps.status.departed',
|
||||
PirepStatus::RDY_DEICE => 'system.pireps.status.ready_deice',
|
||||
PirepStatus::STRT_DEICE => 'system.pireps.status.deicing',
|
||||
PirepStatus::GRND_RTRN => 'system.pireps.status.ground_ret',
|
||||
PirepStatus::AIRBORNE => 'system.pireps.status.enroute',
|
||||
PirepStatus::DIVERTED => 'system.pireps.status.diverted',
|
||||
PirepStatus::APPROACH => 'system.pireps.status.approach',
|
||||
PirepStatus::ON_FINAL => 'system.pireps.status.final_appr',
|
||||
PirepStatus::LANDED => 'system.pireps.status.landed',
|
||||
PirepStatus::ARRIVED => 'system.pireps.status.arrived',
|
||||
PirepStatus::CANCELLED => 'system.pireps.status.cancelled',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -17,10 +17,10 @@ class UserState extends Enum
|
||||
public const SUSPENDED = 4;
|
||||
|
||||
protected static $labels = [
|
||||
UserState::PENDING => 'Pending',
|
||||
UserState::ACTIVE => 'Active',
|
||||
UserState::REJECTED => 'Rejected',
|
||||
UserState::ON_LEAVE => 'On Leave',
|
||||
UserState::SUSPENDED => 'Suspended',
|
||||
UserState::PENDING => 'system.users.state.pending',
|
||||
UserState::ACTIVE => 'system.users.state.active',
|
||||
UserState::REJECTED => 'system.users.state.rejected',
|
||||
UserState::ON_LEAVE => 'system.users.state.on_leave',
|
||||
UserState::SUSPENDED => 'system.users.state.suspended',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,6 +1,17 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'aircraft' => [
|
||||
'status' => [
|
||||
'active' => 'Active',
|
||||
'stored' => 'Stored',
|
||||
'retired' => 'Retired',
|
||||
'scrapped' => 'Scrapped',
|
||||
'written' => 'Written Off',
|
||||
],
|
||||
],
|
||||
|
||||
'days' => [
|
||||
'mon' => 'Monday',
|
||||
'tues' => 'Tuesday',
|
||||
@@ -11,14 +22,65 @@ return [
|
||||
'sun' => 'Sunday',
|
||||
],
|
||||
|
||||
'flights' => [
|
||||
'type' => [
|
||||
'pass_scheduled' => 'Passenger - Scheduled',
|
||||
'cargo_scheduled' => 'Cargo - Scheduled',
|
||||
'charter_pass_only' => 'Charter - Passenger Only',
|
||||
'addtl_cargo_mail' => 'Additional Cargo/Mail',
|
||||
'special_vip' => 'Special VIP Flight (FAA/Government)',
|
||||
'pass_addtl' => 'Passenger - Additional',
|
||||
'charter_cargo' => 'Charter - Cargo/Mail',
|
||||
'ambulance' => 'Ambulance Flight',
|
||||
'training_flight' => 'Training Flight',
|
||||
'mail_service' => 'Mail Service',
|
||||
'charter_special' => 'Charter w/ Special Handling',
|
||||
'positioning' => 'Positioning (Ferry/Delivery/Demo)',
|
||||
'technical_test' => 'Technical Test',
|
||||
'military' => 'Military',
|
||||
'technical_stop' => 'Technical Stop',
|
||||
],
|
||||
],
|
||||
|
||||
'pireps' => [
|
||||
'source' => [
|
||||
'manual' => 'Manual',
|
||||
'acars' => 'ACARS',
|
||||
],
|
||||
'state' => [
|
||||
'accepted' => 'Accepted',
|
||||
'pending' => 'Pending',
|
||||
'rejected' => 'Rejected',
|
||||
'in_progress' => 'In Progress',
|
||||
'cancelled' => 'Cancelled',
|
||||
'deleted' => 'Deleted',
|
||||
'accepted' => 'Accepted',
|
||||
'pending' => 'Pending',
|
||||
'rejected' => 'Rejected',
|
||||
'in_progress' => 'In Progress',
|
||||
'cancelled' => 'Cancelled',
|
||||
'deleted' => 'Deleted',
|
||||
],
|
||||
'status' => [
|
||||
'initialized' => 'Initiated',
|
||||
'scheduled' => 'Scheduled',
|
||||
'boarding' => 'Boarding',
|
||||
'ready_start' => 'Ready for start',
|
||||
'departed' => 'Departed',
|
||||
'ready_deice' => 'Ready for de-icing',
|
||||
'deicing' => 'De-icing in progress',
|
||||
'ground_ret' => 'Ground return',
|
||||
'enroute' => 'Enroute',
|
||||
'diverted' => 'Diverted',
|
||||
'approach' => 'Approach',
|
||||
'final_appr' => 'Final approach',
|
||||
'landed' => 'Landed',
|
||||
'arrived' => 'Arrived',
|
||||
'cancelled' => 'Cancelled',
|
||||
]
|
||||
],
|
||||
|
||||
'users' => [
|
||||
'state' => [
|
||||
'pending' => 'Pending',
|
||||
'active' => 'Active',
|
||||
'rejected' => 'Rejected',
|
||||
'on_leave' => 'On Leave',
|
||||
'suspended' => 'Suspended',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user