diff --git a/modules/timepoint_list/test/TimepointListIntegrationTest.php b/modules/timepoint_list/test/TimepointListIntegrationTest.php index 126e8d7ef0..b98b65cdf3 100644 --- a/modules/timepoint_list/test/TimepointListIntegrationTest.php +++ b/modules/timepoint_list/test/TimepointListIntegrationTest.php @@ -41,7 +41,7 @@ class TimepointListIntegrationTest extends LorisIntegrationTestWithCandidate '', '', '', - 'Unknown', + 'unknown', ]; /** diff --git a/php/libraries/TimePoint.class.inc b/php/libraries/TimePoint.class.inc index 9a718a26b3..0e5e18c455 100644 --- a/php/libraries/TimePoint.class.inc +++ b/php/libraries/TimePoint.class.inc @@ -1447,7 +1447,7 @@ class TimePoint implements \LORIS\StudyEntities\AccessibleResource, { $lang = $this->getData('Language'); if ($lang === null) { - return new \Language("Unknown", "en_CA"); + return new \Language(dgettext("loris", "unknown"), "en_CA"); } return $lang; }