- Timestamp:
- May 13, 2016, 10:04:12 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/login.php
r1055 r1512 38 38 </head> 39 39 <body> 40 41 <?php 42 function gt($text){ 43 $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); 44 switch ($lang){ 45 case "en": 46 if ($text=="Authentication") return "Authentication"; 47 else if ($text=="Username") return "Username"; 48 else if ($text=="login") return "Login"; 49 else return "Password"; 50 break; 51 case "es": 52 if ($text=="Authentication") return "Autenticación"; 53 else if ($text=="Username") return "Usuario"; 54 else if ($text=="login") return "Entrar"; 55 else return "Contraseña"; 56 break; 57 default: 58 if ($text=="Authentication") return "Autenticació"; 59 else if ($text=="Username") return "Usuari"; 60 else if ($text=="login") return "Entra"; 61 else return "Contrassenya"; 62 break; 63 } 64 } 65 ?> 40 66 41 67 <div id="login" class="jumbotron col-lg-4 col-lg-offset-4" style="margin-top: 200px;"> 42 <h3> Authentication</h3>68 <h3><?php echo (gt("Authentication")); ?></h3> 43 69 <div id="loginform" class="form-group"> 44 70 45 <label for="input_username" class="control-label" i18n>Usuari</label>46 <input type="text" id="input_username" class="form-control" i18n></input>47 <label for="input_username" class="control-label"> Password</label>71 <label for="input_username" class="control-label"><?php echo (gt("Username")); ?></label> 72 <input type="text" id="input_username" class="form-control"></input> 73 <label for="input_username" class="control-label"><?php echo (gt("Password")); ?></label> 48 74 <input type="password" id="input_password" class="form-control"></input> 49 75 50 76 51 77 <div style="margin-top: 10px; margin-left: 100px;"> 52 <button id="LoginButton" class="btn btn-primary btn-lg" value=" login"></button>78 <button id="LoginButton" class="btn btn-primary btn-lg" value="<?php gt("login");?>"></button> 53 79 </div> 54 80 </div></div>
Note: See TracChangeset
for help on using the changeset viewer.