Skip to content

Commit 2351c07

Browse files
author
Saket Hatwar
committed
translate template
1 parent 9aac006 commit 2351c07

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

modules/survey_accounts/templates/form_addSurvey.tpl

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{if $success}
2-
<p>Survey was added successfully.<br/> Click here to go back to view the list of survey's created : <a href="{$baseurl}/survey_accounts/">Survey List</a><br /></p>
2+
<p>
3+
{dgettext("survey_accounts", "Survey was added successfully.")}<br/>
4+
{dgettext("survey_accounts", "Click here to go back to view the list of survey's created")} :
5+
<a href="{$baseurl}/survey_accounts/">{dgettext("survey_accounts", "Survey List")}</a><br />
6+
</p>
37
<br />
48
{/if}
59
<br />
@@ -9,16 +13,16 @@
913
{if not $success}
1014
<table class="table table-primary table-bordered" border="0">
1115
<!-- table title -->
12-
<tr class="info"><th colspan="2">Usage</th></tr>
16+
<tr class="info"><th colspan="2">{dgettext("survey_accounts", "Usage")}</th></tr>
1317

1418
<tr>
1519
<td colspan="2">
16-
Use this form to create a link for a study participant to use in order to directly enter a form/data into Loris.
20+
{dgettext("survey_accounts", "Use this form to create a link for a study participant to use in order to directly enter a form/data into Loris.")}
1721
</td>
1822
</tr>
1923

2024
<!-- table title -->
21-
<tr class="info"><th colspan="2">Add Survey</th></tr>
25+
<tr class="info"><th colspan="2">{dgettext("survey_accounts", "Add Survey")}</th></tr>
2226

2327
{foreach from=$form.errors item=error}
2428
<tr>
@@ -50,14 +54,14 @@
5054
<td nowrap="nowrap">{$form.Email.label}</td>
5155
<td nowrap="nowrap" id="Email">{$form.Email.html}</td>
5256
</tr>
53-
<tr>
57+
<tr>
5458
<td nowrap="nowrap">{$form.Email2.label}</td>
5559
<td nowrap="nowrap" id="Email2">{$form.Email2.html}</td>
5660
</tr>
5761
<tr>
5862
<td nowrap="nowrap" colspan="2">
59-
<input class="btn btn-sm btn-primary" name="fire_away" value="Create survey" id="create_survey" type="submit" />
60-
<input class="btn btn-sm btn-primary email" name="fire_away" value="Email survey" id="email_survey" type="submit" />
63+
<input class="btn btn-sm btn-primary" name="fire_away" value="{dgettext("survey_accounts", "Create survey")}" id="create_survey" type="submit" />
64+
<input class="btn btn-sm btn-primary email" name="fire_away" value="{dgettext("survey_accounts", "Email survey")}" id="email_survey" type="submit" />
6165
{/if}
6266
</td>
6367
</tr>
@@ -67,15 +71,21 @@
6771
<div class="modal-dialog">
6872
<div class="modal-content">
6973
<div class="modal-header">
70-
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
71-
<h3 class="modal-title">Email to Study Participant</h3>
74+
<button type="button" class="close" data-dismiss="modal">
75+
<span aria-hidden="true">&times;</span>
76+
<span class="sr-only">{dgettext("survey_accounts", "Close")}</span>
77+
</button>
78+
<h3 class="modal-title">{dgettext("survey_accounts", "Email to Study Participant")}</h3>
7279
</div>
7380
<div class="modal-body">
74-
<textarea class="form-control" id="emailContent" name="email_dialog" rows="24" cols="80" placeholder="Optionally enter a customized message here. A default email will be sent if left blank.">This is where your message goes.</textarea>
81+
<textarea class="form-control" id="emailContent" name="email_dialog" rows="24" cols="80"
82+
placeholder="{dgettext("survey_accounts", "Optionally enter a customized message here. A default email will be sent if left blank.")}">
83+
{dgettext("survey_accounts", "This is where your message goes.")}
84+
</textarea>
7585
</div>
7686
<div class="modal-footer">
77-
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
78-
<button type="button" id="emailData" class="btn btn-primary">Email</button>
87+
<button type="button" class="btn btn-default" data-dismiss="modal">{dgettext("survey_accounts", "Close")}</button>
88+
<button type="button" id="emailData" class="btn btn-primary">{dgettext("survey_accounts", "Email")}</button>
7989
</div>
8090
</div>
8191
</div>

0 commit comments

Comments
 (0)