File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments