Skip to content

Commit 227e1f4

Browse files
author
Dave MacFarlane
committed
[candidate_list] Add ability to translate visit filters
1 parent 32213db commit 227e1f4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

modules/candidate_list/jsx/candidateListIndex.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ class CandidateListIndex extends Component {
239239
name: 'visitLabel',
240240
type: 'multiselect',
241241
options: options.visitlabel,
242+
sortByValue: false,
242243
},
243244
},
244245
{

php/libraries/User.class.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ class User extends UserPermissions implements
362362
if (in_array(\ProjectID::singleton($projectID), $userProjectIDs)) {
363363
$visitLabel = $visit->getName();
364364
if (!in_array($visitLabel, $visit_labels)) {
365-
$visit_labels[$visitLabel] = $visitLabel;
365+
$visit_labels[$visitLabel] = dgettext('visit', $visitLabel);
366366
}
367367
}
368368
}

0 commit comments

Comments
 (0)