More organizing for translations
This commit is contained in:
@@ -14,7 +14,7 @@ class ActiveState extends Enum
|
||||
public const ACTIVE = 1;
|
||||
|
||||
public static $labels = [
|
||||
ActiveState::ACTIVE => 'system.global.active',
|
||||
ActiveState::INACTIVE => 'system.global.inactive',
|
||||
ActiveState::ACTIVE => 'common.active',
|
||||
ActiveState::INACTIVE => 'common.inactive',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -17,10 +17,10 @@ class AircraftStatus extends Enum
|
||||
public const WRITTEN_OFF = 'W';
|
||||
|
||||
public static $labels = [
|
||||
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',
|
||||
AircraftStatus::ACTIVE => 'aircraft.status.active',
|
||||
AircraftStatus::STORED => 'aircraft.status.stored',
|
||||
AircraftStatus::RETIRED => 'aircraft.status.retired',
|
||||
AircraftStatus::SCRAPPED => 'aircraft.status.scrapped',
|
||||
AircraftStatus::WRITTEN_OFF => 'aircraft.status.written',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -20,13 +20,13 @@ class Days extends Enum
|
||||
public const SUNDAY = 1 << 6;
|
||||
|
||||
public static $labels = [
|
||||
Days::MONDAY => 'system.days.mon',
|
||||
Days::TUESDAY => 'system.days.tues',
|
||||
Days::WEDNESDAY => 'system.days.wed',
|
||||
Days::THURSDAY => 'system.days.thurs',
|
||||
Days::FRIDAY => 'system.days.fri',
|
||||
Days::SATURDAY => 'system.days.sat',
|
||||
Days::SUNDAY => 'system.days.sun',
|
||||
Days::MONDAY => 'common.days.mon',
|
||||
Days::TUESDAY => 'common.days.tues',
|
||||
Days::WEDNESDAY => 'common.days.wed',
|
||||
Days::THURSDAY => 'common.days.thurs',
|
||||
Days::FRIDAY => 'common.days.fri',
|
||||
Days::SATURDAY => 'common.days.sat',
|
||||
Days::SUNDAY => 'common.days.sun',
|
||||
];
|
||||
|
||||
public static $codes = [
|
||||
|
||||
@@ -15,9 +15,9 @@ class ExpenseType extends Enum
|
||||
public const MONTHLY = 'M';
|
||||
|
||||
protected static $labels = [
|
||||
ExpenseType::FLIGHT => 'system.expenses.type.flight',
|
||||
ExpenseType::DAILY => 'system.expenses.type.daily',
|
||||
ExpenseType::MONTHLY => 'system.expenses.type.monthly',
|
||||
ExpenseType::FLIGHT => 'expenses.type.flight',
|
||||
ExpenseType::DAILY => 'expenses.type.daily',
|
||||
ExpenseType::MONTHLY => 'expenses.type.monthly',
|
||||
];
|
||||
|
||||
protected static $codes = [
|
||||
|
||||
@@ -27,20 +27,20 @@ class FlightType extends Enum
|
||||
public const TECHNICAL_STOP = 'X';
|
||||
|
||||
protected static $labels = [
|
||||
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',
|
||||
FlightType::SCHED_PAX => 'flights.type.pass_scheduled',
|
||||
FlightType::SCHED_CARGO => 'flights.type.cargo_scheduled',
|
||||
FlightType::CHARTER_PAX_ONLY => 'flights.type.charter_pass_only',
|
||||
FlightType::ADDITIONAL_CARGO => 'flights.type.addtl_cargo_mail',
|
||||
FlightType::VIP => 'flights.type.special_vip',
|
||||
FlightType::ADDTL_PAX => 'flights.type.pass_addtl',
|
||||
FlightType::CHARTER_CARGO_MAIL => 'flights.type.charter_cargo',
|
||||
FlightType::AMBULANCE => 'flights.type.ambulance',
|
||||
FlightType::TRAINING => 'flights.type.training_flight',
|
||||
FlightType::MAIL_SERVICE => 'flights.type.mail_service',
|
||||
FlightType::CHARTER_SPECIAL => 'flights.type.charter_special',
|
||||
FlightType::POSITIONING => 'flights.type.positioning',
|
||||
FlightType::TECHNICAL_TEST => 'flights.type.technical_test',
|
||||
FlightType::MILITARY => 'flights.type.military',
|
||||
FlightType::TECHNICAL_STOP => 'flights.type.technical_stop',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ class PirepSource extends Enum
|
||||
public const ACARS = 1;
|
||||
|
||||
protected static $labels = [
|
||||
PirepSource::MANUAL => 'system.pireps.source.manual',
|
||||
PirepSource::ACARS => 'system.pireps.source.acars',
|
||||
PirepSource::MANUAL => 'pireps.source_types.manual',
|
||||
PirepSource::ACARS => 'pireps.source_types.acars',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -19,12 +19,12 @@ class PirepState extends Enum
|
||||
public const DRAFT = 5;
|
||||
|
||||
protected static $labels = [
|
||||
PirepState::REJECTED => 'system.pireps.state.rejected',
|
||||
PirepState::IN_PROGRESS => 'system.pireps.state.in_progress',
|
||||
PirepState::PENDING => 'system.pireps.state.pending',
|
||||
PirepState::ACCEPTED => 'system.pireps.state.accepted',
|
||||
PirepState::CANCELLED => 'system.pireps.state.cancelled',
|
||||
PirepState::DELETED => 'system.pireps.state.deleted',
|
||||
PirepState::DRAFT => 'system.pireps.state.draft',
|
||||
PirepState::REJECTED => 'pireps.state.rejected',
|
||||
PirepState::IN_PROGRESS => 'pireps.state.in_progress',
|
||||
PirepState::PENDING => 'pireps.state.pending',
|
||||
PirepState::ACCEPTED => 'pireps.state.accepted',
|
||||
PirepState::CANCELLED => 'pireps.state.cancelled',
|
||||
PirepState::DELETED => 'pireps.state.deleted',
|
||||
PirepState::DRAFT => 'pireps.state.draft',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -37,28 +37,28 @@ class PirepStatus extends Enum
|
||||
public const EMERG_DECENT = 'EMG';
|
||||
|
||||
protected static $labels = [
|
||||
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::PUSHBACK_TOW => 'system.pireps.status.push_tow',
|
||||
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::TAXI => 'system.pireps.status.taxi',
|
||||
PirepStatus::TAKEOFF => 'system.pireps.status.takeoff',
|
||||
PirepStatus::INIT_CLIM => 'system.pireps.status.initial_clb',
|
||||
PirepStatus::AIRBORNE => 'system.pireps.status.enroute',
|
||||
PirepStatus::ENROUTE => 'system.pireps.status.enroute',
|
||||
PirepStatus::DIVERTED => 'system.pireps.status.diverted',
|
||||
PirepStatus::APPROACH => 'system.pireps.status.approach',
|
||||
PirepStatus::APPROACH_ICAO => 'system.pireps.status.approach',
|
||||
PirepStatus::ON_FINAL => 'system.pireps.status.final_appr',
|
||||
PirepStatus::LANDING => 'system.pireps.status.landing',
|
||||
PirepStatus::LANDED => 'system.pireps.status.landed',
|
||||
PirepStatus::ARRIVED => 'system.pireps.status.arrived',
|
||||
PirepStatus::CANCELLED => 'system.pireps.status.cancelled',
|
||||
PirepStatus::EMERG_DECENT => 'system.pireps.status.emerg_decent',
|
||||
PirepStatus::INITIATED => 'pireps.status.initialized',
|
||||
PirepStatus::SCHEDULED => 'pireps.status.scheduled',
|
||||
PirepStatus::BOARDING => 'pireps.status.boarding',
|
||||
PirepStatus::RDY_START => 'pireps.status.ready_start',
|
||||
PirepStatus::PUSHBACK_TOW => 'pireps.status.push_tow',
|
||||
PirepStatus::DEPARTED => 'pireps.status.departed',
|
||||
PirepStatus::RDY_DEICE => 'pireps.status.ready_deice',
|
||||
PirepStatus::STRT_DEICE => 'pireps.status.deicing',
|
||||
PirepStatus::GRND_RTRN => 'pireps.status.ground_ret',
|
||||
PirepStatus::TAXI => 'pireps.status.taxi',
|
||||
PirepStatus::TAKEOFF => 'pireps.status.takeoff',
|
||||
PirepStatus::INIT_CLIM => 'pireps.status.initial_clb',
|
||||
PirepStatus::AIRBORNE => 'pireps.status.enroute',
|
||||
PirepStatus::ENROUTE => 'pireps.status.enroute',
|
||||
PirepStatus::DIVERTED => 'pireps.status.diverted',
|
||||
PirepStatus::APPROACH => 'pireps.status.approach',
|
||||
PirepStatus::APPROACH_ICAO => 'pireps.status.approach',
|
||||
PirepStatus::ON_FINAL => 'pireps.status.final_appr',
|
||||
PirepStatus::LANDING => 'pireps.status.landing',
|
||||
PirepStatus::LANDED => 'pireps.status.landed',
|
||||
PirepStatus::ARRIVED => 'pireps.status.arrived',
|
||||
PirepStatus::CANCELLED => 'pireps.status.cancelled',
|
||||
PirepStatus::EMERG_DECENT => 'pireps.status.emerg_decent',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -17,10 +17,10 @@ class UserState extends Enum
|
||||
public const SUSPENDED = 4;
|
||||
|
||||
protected static $labels = [
|
||||
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',
|
||||
UserState::PENDING => 'users.state.pending',
|
||||
UserState::ACTIVE => 'users.state.active',
|
||||
UserState::REJECTED => 'users.state.rejected',
|
||||
UserState::ON_LEAVE => 'users.state.on_leave',
|
||||
UserState::SUSPENDED => 'users.state.suspended',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user