Add translation option to MDResearchStatusSet

This commit is contained in:
Joshua Ramon Enslin 2021-10-09 15:05:45 +02:00
parent 35b713f1c9
commit fecf25d72c
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 12 additions and 1 deletions

2
l18n

@ -1 +1 @@
Subproject commit 04ac0c5474c30f3ed76eea24260e67d993ae6e4e
Subproject commit d4d4a3601d482a0262ca766f5fe7c0c670e07dd8

View File

@ -20,4 +20,15 @@ final class MDResearchStatusSet extends MDValueSet {
'good',
];
/**
* Returns a translated list of research status.
*
* @param MDTlLoader $tlLoader Translation loader.
*
* @return array<string>
*/
public static function getResearchStatusTLed(MDTlLoader $tlLoader):array {
return parent::getTlUnsortedList($tlLoader, self::RESEARCH_STATUS, "research_status", "research_status");
}
}