feat(i18n): translate auth

feat807-i18n
Anthony Lapenna 2017-08-20 08:30:20 +02:00
parent 67e7f8ce9e
commit e03340272a
3 changed files with 10 additions and 2 deletions

View File

@ -71,7 +71,7 @@
<!-- username input --> <!-- username input -->
<div class="input-group"> <div class="input-group">
<span class="input-group-addon"><i class="fa fa-user" aria-hidden="true"></i></span> <span class="input-group-addon"><i class="fa fa-user" aria-hidden="true"></i></span>
<input id="username" type="text" class="form-control" name="username" ng-model="authData.username" placeholder="Username"> <input id="username" type="text" class="form-control" name="username" ng-model="authData.username" placeholder="Username" translate translate-attr-placeholder="COMMON.PLACEHOLDERS.USERNAME">
</div> </div>
<!-- !username input --> <!-- !username input -->
<!-- password input --> <!-- password input -->
@ -86,7 +86,7 @@
<p class="pull-left text-danger" ng-if="authData.error" style="margin: 5px;"> <p class="pull-left text-danger" ng-if="authData.error" style="margin: 5px;">
<i class="fa fa-exclamation-circle" aria-hidden="true"></i> {{ authData.error }} <i class="fa fa-exclamation-circle" aria-hidden="true"></i> {{ authData.error }}
</p> </p>
<button type="submit" class="btn btn-primary pull-right" ng-click="authenticateUser()"><i class="fa fa-sign-in" aria-hidden="true"></i> Login</button> <button type="submit" class="btn btn-primary pull-right" ng-click="authenticateUser()"><i class="fa fa-sign-in" aria-hidden="true"></i> <por-translation key="AUTH.LOGIN"></por-translation></button>
</div> </div>
</div> </div>
<!-- !login button --> <!-- !login button -->

View File

@ -16,6 +16,7 @@
"ALL": "All" "ALL": "All"
}, },
"PLACEHOLDERS": { "PLACEHOLDERS": {
"USERNAME": "Username",
"CONTAINER_NAME": "e.g. web (optional)", "CONTAINER_NAME": "e.g. web (optional)",
"CONTAINER_HOST_PORT": "e.g. 80 or 1.2.3.4:80 (optional)" "CONTAINER_HOST_PORT": "e.g. 80 or 1.2.3.4:80 (optional)"
} }
@ -29,6 +30,9 @@
"TEXT": "Items per page:" "TEXT": "Items per page:"
} }
}, },
"AUTH": {
"LOGIN": "Login"
},
"SIDEBAR": { "SIDEBAR": {
"ACTIVE_ENDPOINT": { "ACTIVE_ENDPOINT": {
"TITLE": "Active endpoint" "TITLE": "Active endpoint"

View File

@ -16,6 +16,7 @@
"ALL": "Tous" "ALL": "Tous"
}, },
"PLACEHOLDERS": { "PLACEHOLDERS": {
"USERNAME": "Utilisateur",
"CONTAINER_NAME": "e.g. web (optionnel)", "CONTAINER_NAME": "e.g. web (optionnel)",
"CONTAINER_HOST_PORT": "e.g. 80 or 1.2.3.4:80 (optionnel)" "CONTAINER_HOST_PORT": "e.g. 80 or 1.2.3.4:80 (optionnel)"
} }
@ -29,6 +30,9 @@
"TEXT": "Objets par page:" "TEXT": "Objets par page:"
} }
}, },
"AUTH": {
"LOGIN": "S'authentifier"
},
"SIDEBAR": { "SIDEBAR": {
"ACTIVE_ENDPOINT": { "ACTIVE_ENDPOINT": {
"TITLE": "Environnement actif" "TITLE": "Environnement actif"