diff --git a/endpoints/_includes/functions.php b/endpoints/_includes/functions.php index a8484441a..3bdff0120 100644 --- a/endpoints/_includes/functions.php +++ b/endpoints/_includes/functions.php @@ -10,7 +10,7 @@ class VolunteerLanguage { const UNSPECIFIED = 0; - const DEFAULT = "en"; + const COMMON = "en"; } static $settings_whitelist = [ 'blocklist' => [ 'description' => '' , 'default' => '', 'overridable' => true, 'hidden' => false], @@ -31,7 +31,7 @@ class VolunteerLanguage 'include_map_link' => [ 'description' => '' , 'default' => false, 'overridable' => true, 'hidden' => false], 'infinite_searching' => [ 'description' => '' , 'default' => false, 'overridable' => true, 'hidden' => false], 'jft_option' => [ 'description' => '' , 'default' => false, 'overridable' => true, 'hidden' => false], - 'language' => [ 'description' => '' , 'default' => VolunteerLanguage::DEFAULT, 'overridable' => true, 'hidden' => false], + 'language' => [ 'description' => '' , 'default' => VolunteerLanguage::COMMON, 'overridable' => true, 'hidden' => false], 'language_selections' => [ 'description' => '', 'default' => null, 'overridable' => true, 'hidden' => false], 'location_lookup_bias' => [ 'description' => '' , 'default' => 'country:us', 'overridable' => true, 'hidden' => false], 'meeting_result_sort' => [ 'description' => '' , 'default' => MeetingResultSort::TODAY, 'overridable' => true, 'hidden' => false], diff --git a/endpoints/helpline-dialer.php b/endpoints/helpline-dialer.php index f05fddc3b..1c13224d0 100644 --- a/endpoints/helpline-dialer.php +++ b/endpoints/helpline-dialer.php @@ -32,7 +32,7 @@ function getCallConfig($twilioClient, $serviceBodyCallHandling, $tandem = Volunt $volunteer_routing_parameters->volunteer_gender = isset($_SESSION['Gender']) ? $_SESSION['Gender'] : VolunteerGender::UNSPECIFIED; $volunteer_routing_parameters->volunteer_shadow = $tandem == VolunteerShadowOption::TRAINEE ? VolunteerShadowOption::TRAINER : VolunteerShadowOption::UNSPECIFIED; $volunteer_routing_parameters->volunteer_responder = VolunteerResponderOption::UNSPECIFIED; - $volunteer_routing_parameters->volunteer_language = setting('language') == VolunteerLanguage::DEFAULT ? VolunteerLanguage::UNSPECIFIED : setting("language"); + $volunteer_routing_parameters->volunteer_language = setting('language') == VolunteerLanguage::COMMON ? VolunteerLanguage::UNSPECIFIED : setting("language"); if ($tandem == VolunteerShadowOption::UNSPECIFIED) { $_SESSION["volunteer_routing_parameters"] = $volunteer_routing_parameters; }