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