From fecf25d72c8395612555ae2176921bdb40707b05 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sat, 9 Oct 2021 15:05:45 +0200 Subject: [PATCH] Add translation option to MDResearchStatusSet --- l18n | 2 +- src/MDResearchStatusSet.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/l18n b/l18n index 04ac0c5..d4d4a36 160000 --- a/l18n +++ b/l18n @@ -1 +1 @@ -Subproject commit 04ac0c5474c30f3ed76eea24260e67d993ae6e4e +Subproject commit d4d4a3601d482a0262ca766f5fe7c0c670e07dd8 diff --git a/src/MDResearchStatusSet.php b/src/MDResearchStatusSet.php index bd51e42..7fa61be 100644 --- a/src/MDResearchStatusSet.php +++ b/src/MDResearchStatusSet.php @@ -20,4 +20,15 @@ final class MDResearchStatusSet extends MDValueSet { 'good', ]; + /** + * Returns a translated list of research status. + * + * @param MDTlLoader $tlLoader Translation loader. + * + * @return array + */ + public static function getResearchStatusTLed(MDTlLoader $tlLoader):array { + return parent::getTlUnsortedList($tlLoader, self::RESEARCH_STATUS, "research_status", "research_status"); + + } }