Skip to content
Snippets Groups Projects
Commit 4adfee4e authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

avoid translating title twice, fixes #990

Closes #990
parent 22094d29
No related branches found
No related tags found
No related merge requests found
......@@ -1172,16 +1172,17 @@ function get_title_for_status($type, $count, $sem_type = NULL)
}
$atype = 'title_'.$type;
$index = $count == 1 ? 0 : 1;
if (is_array($SEM_TYPE[$sem_type][$atype])) {
$title = $SEM_TYPE[$sem_type][$atype];
} else if (isset($DEFAULT_TITLE_FOR_STATUS[$type])) {
$title = $DEFAULT_TITLE_FOR_STATUS[$type];
if (isset($SEM_TYPE[$sem_type][$atype][$index])) {
$title = $SEM_TYPE[$sem_type][$atype][$index];
} else if (isset($DEFAULT_TITLE_FOR_STATUS[$type][$index])) {
$title = $DEFAULT_TITLE_FOR_STATUS[$type][$index];
} else {
$title = ['unbekannt', 'unbekannt'];
$title = _('unbekannt');
}
return ngettext($title[0], $title[1], $count);
return $title;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment