Skip to content

Commit d5fe95d

Browse files
author
Dave MacFarlane
committed
[timepoint_list] Translate database values on timepoint_list page
This translates all of the database values that appear on the timepoint_list page, using the translations from aces#10466 for testing.
1 parent 3c8955f commit d5fe95d

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

modules/timepoint_list/templates/menu_timepoint_list.tpl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
{$edc_age}
3333
</td>
3434
<td>
35-
{$candidate.Sex}
35+
{dgettext("sex", $candidate.Sex)}
3636
</td>
3737
<td>
38-
{$candidate.ProjectTitle}
38+
{dgettext("Project", $candidate.ProjectTitle)}
3939
</td>
4040
{foreach from=$candidate.DisplayParameters item=value key=name}
4141
<td>
@@ -84,13 +84,13 @@
8484
<tr>
8585
<td>
8686
<a href="{$baseurl|default}/instrument_list/?candID={$candID}&sessionID={$timePoints[timepoint].SessionID}">
87-
{$timePoints[timepoint].Visit_label}
87+
{dgettext("visit", $timePoints[timepoint].Visit_label)}
8888
</a>
8989
</td>
90-
<td>{$timePoints[timepoint].CohortTitle}</td>
90+
<td>{dgettext("cohort", $timePoints[timepoint].CohortTitle)}</td>
9191

92-
<td>{$timePoints[timepoint].SiteAlias}</td>
93-
<td>{$timePoints[timepoint].ProjectName}</td>
92+
<td>{dgettext("psc", $timePoints[timepoint].SiteName)}</td>
93+
<td>{dgettext("Project", $timePoints[timepoint].ProjectName)}</td>
9494

9595
{if $timePoints[timepoint].staticStage|default != "" || $timePoints[timepoint].Current_stage == "Not Started"}
9696
<td colspan="3">{dgettext("loris", $timePoints[timepoint].Current_stage)}</td>
@@ -155,9 +155,9 @@
155155
<td>
156156
{$timePoints[timepoint].Real_name}
157157
</td>
158-
<td>
158+
<td>
159159
{$timePoints[timepoint].language->label}
160-
</td>
160+
</td>
161161
</tr>
162162
{sectionelse}
163163
<tr><td colspan="10">{dgettext("timepoint_list", "You do not have access to any timepoints registered for this candidate.")}</td></tr>

php/libraries/TimePoint.class.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ class TimePoint implements \LORIS\StudyEntities\AccessibleResource,
146146
s.registeredBy, s.UserID, u.Real_name, s.Hardcopy_request,
147147
s.BVLQCStatus, s.BVLQCType, s.BVLQCExclusion, s.Scan_done,
148148
pr.Name as ProjectName, p.Alias as SiteAlias,
149+
p.Name as SiteName,
149150
s.ProjectID as ProjectID,
150151
l.language_code as LanguageCode,
151152
l.language_label as LanguageLabel

0 commit comments

Comments
 (0)