Skip to content

Commit f4e5f65

Browse files
monkeyiqtvdijen
authored andcommitted
add fallback for attributes.po to match current 2.2 head output
1 parent ce744e2 commit f4e5f65

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/SimpleSAML/Locale/Translate.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ public static function translateSingularGettext(?string $original): string
8484
$text = TranslatorFunctions::getTranslator()->dgettext("core", $original);
8585
if ($text === $original) {
8686
$text = TranslatorFunctions::getTranslator()->dgettext("messages", $original);
87+
// try attributes.po
88+
if ($text === $original) {
89+
$text = TranslatorFunctions::getTranslator()->dgettext("", $original);
90+
}
8791
}
8892
}
8993
if (func_num_args() === 1) {

0 commit comments

Comments
 (0)