Skip to content

Commit 24e842e

Browse files
author
Benjamin Mosior
committed
Updated more interface components that need to be run through the translator.
1 parent 4650934 commit 24e842e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pwpusher_private/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
$title = 'PHPassword Pusher';
5959

6060
//Site Language (corresponds to $language.php)
61-
$language = 'en';
61+
$language = 'es';
6262

6363
//Enable display of the URL to the user.
6464
$displayURL = true;

pwpusher_private/input.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ function checkInput($arguments)
8484
//Apply unit conversion
8585
if (isset($arguments['units'])) {
8686
switch ($arguments['units']) {
87-
case "minutes":
87+
case translate('minutes'):
8888
//Do nothing, as time is already stored in minutes.
8989
break;
90-
case "hours":
90+
case translate('hours'):
9191
//Convert hours to minutes
9292
$arguments['time'] = ($arguments['time'] * 60);
9393
break;
94-
case "days":
94+
case translate('days'):
9595
//Convert days to minutes
9696
$arguments['time'] = ($arguments['time'] * 60 * 24);
9797
break;

pwpusher_private/interface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ function getFormElements()
154154
$expirationTimeDefault .
155155
'" name="time" />
156156
<select name="units" style="width:90px; background-color:#eee;">
157-
<option>minutes</option>
158-
<option>hours</option>
159-
<option>days</option>
157+
<option>' . translate('minutes') . '</option>
158+
<option>' . translate('hours') . '</option>
159+
<option>' . translate('days') . '</option>
160160
</select>
161161
162162
</div>
@@ -168,7 +168,7 @@ function getFormElements()
168168
<input class="span1" type="text" ' . 'placeholder="' .
169169
$expirationViewsDefault .
170170
'" name="views" />
171-
<span class="add-on">views</span>
171+
<span class="add-on">' . translate('views') . '</span>
172172
</div>
173173
</div>';
174174

0 commit comments

Comments
 (0)