Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Translate sign in page
Browse files Browse the repository at this point in the history
  • Loading branch information
billybonks committed Dec 27, 2015
1 parent d69540e commit a31a659
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 10 additions & 0 deletions app/locales/en/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ export default {
notes: 'Notes',
edit: 'Edit'
},
login: {
messages: {
sign_in: 'please sign in'
},
labels: {
password: 'Password',
username: 'Username',
sign_in: 'sign in'
}
},
inventory: {
messages: {
no_requests: 'No requests found.',
Expand Down
10 changes: 5 additions & 5 deletions app/templates/login.hbs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<div class="container">
<form class="form-signin" role="form" {{action 'authenticate' on='submit'}}>
<h2 class="form-signin-heading">Please sign in</h2>
<h2 class="form-signin-heading">{{t 'login.messages.sign_in'}}</h2>
<div class="form-group">
{{input id='identification' value=identification placeholder='Username' class='form-control'}}
{{input id='identification' value=identification placeholder=(t 'login.labels.username') class='form-control'}}
</div>
<div class="form-group">
{{input id='password' type='password' value=password placeholder='Password' class='form-control'}}
{{input id='password' type='password' value=password placeholder=(t 'login.labels.password') class='form-control'}}
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
<button class="btn btn-lg btn-primary btn-block" type="submit">{{t 'login.labels.sign_in'}}</button>
</form>
</div> <!-- /container -->
</div> <!-- /container -->

0 comments on commit a31a659

Please sign in to comment.