From e19168c8fb2a8d661a700eaf4da4c3374bc455d1 Mon Sep 17 00:00:00 2001 From: billybonks Date: Sun, 27 Dec 2015 13:43:20 +0800 Subject: [PATCH] Translate sign in page --- app/locales/en/translations.js | 10 ++++++++++ app/templates/login.hbs | 10 +++++----- tests/acceptance/login-test.js | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/app/locales/en/translations.js b/app/locales/en/translations.js index eebd37ee16..2e63dc634b 100644 --- a/app/locales/en/translations.js +++ b/app/locales/en/translations.js @@ -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.', diff --git a/app/templates/login.hbs b/app/templates/login.hbs index a04a99b7dc..9a214f10cc 100644 --- a/app/templates/login.hbs +++ b/app/templates/login.hbs @@ -1,12 +1,12 @@
-
\ No newline at end of file + diff --git a/tests/acceptance/login-test.js b/tests/acceptance/login-test.js index acc5ef8f89..0f99541ab0 100644 --- a/tests/acceptance/login-test.js +++ b/tests/acceptance/login-test.js @@ -36,6 +36,6 @@ test('visiting / redirects user to login', function(assert) { fillIn('#identification', 'hradmin'); fillIn('#password', 'test'); - click('button:contains(Sign in)'); + click('button:contains(sign in)'); }); });