Commit bbaa2dd90a3069c1b1839e789ecac67865e68136

Authored by Dylan Guedes
1 parent f61b7cc9
Exists in signup_page

Translates messages of the signup page.

Signed-off-by: DylanGuedes <djmgguedes@gmail.com>
Signed-off-by: Sabryna Sousa <sabryna.sousa1323@gmail.com>
Signed-off-by: Victor Arnaud <victorhad@gmail.com>
src/app/account/register-component.html
1 1 <div class="register-page">
2 2 <div class="welcome-message">
3   - <h1>{{"Nice to have you there!" | translate }}</h1>
  3 + <h1>{{"account.register.welcomeMessage" | translate }}</h1>
4 4 <p>
5 5 "Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
6 6 "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."
7 7 </p>
8   - <p>{{"See more" | translate}}<a href="#">{{"informations" | translate}}</a></p>
  8 + <p>{{"account.register.seeMoreMessage" | translate}}<a href="#">{{"account.register.informationsMessage" | translate}}</a></p>
9 9 </div>
10 10 <form>
11 11 <div class="row">
12 12 <div class="col-md-6 register-field">
13   - <label for="name">{{"First Name" | translate }}</label>
  13 + <label for="name">{{"account.register.firstNameLabel" | translate }}</label>
14 14 <input type="text" class="form-control" id="name" placeholder="joao" ng-model="ctrl.account.name">
15 15 </div>
16 16  
17 17 <div class="col-md-6 register-field">
18   - <label for="lastName">{{"Last Name" | translate }}</label>
  18 + <label for="lastName">{{"account.register.lastNameLabel" | translate }}</label>
19 19 <input type="text" class="form-control" id="lastName" placeholder="silva" ng-model="ctrl.account.lastName">
20 20 </div>
21 21  
22 22 <div class="col-md-12 register-field">
23   - <label for="login">{{"Username" | translate }}</label>
  23 + <label for="login">{{"account.register.usernameLabel" | translate }}</label>
24 24 <input type="text" class="form-control" id="login" placeholder="username" ng-model="ctrl.account.login">
25 25 <p class="light-text">ex: ola.coop.br/joaosilva</p>
26 26 </div>
27 27  
28 28 <div class="col-md-12 register-field">
29   - <label for="email">{{"Email" | translate }}</label>
  29 + <label for="email">{{"account.register.emailLabel" | translate }}</label>
30 30 <input type="text" class="form-control" id="email" placeholder="Email" ng-model="ctrl.account.email">
31 31 </div>
32 32  
33 33 <div class="col-md-6 register-field">
34   - <label for="password">{{"Password" | translate }}</label>
  34 + <label for="password">{{"account.register.passwordLabel" | translate }}</label>
35 35 <input type="password" class="form-control" id="password" placeholder="Password" ng-model="ctrl.account.password">
36 36 </div>
37 37  
38 38 <div class="col-md-6 register-field">
39   - <label for="password-confirmation">{{"Password Confirmation" | translate}}</label>
  39 + <label for="password-confirmation">{{"account.register.passwordConfirmationLabel" | translate}}</label>
40 40 <input type="password" class="form-control" id="passwordConfirmation" placeholder="Password Confirmation" ng-model="ctrl.account.passwordConfirmation">
41 41 </div>
42 42  
43 43 <div class="col-md-12">
44   - <p class="terms-info">{{"Creating an account, you are agreeing with " | translate}} <a href="#">{{"terms of use" | translate}}</a>.</p>
  44 + <p class="terms-info">{{"account.register.accountCreatingMessage" | translate}} <a href="#">{{"account.register.termsOfUseMessage" | translate}}</a>.</p>
45 45 </div>
46 46  
47 47 <div class="col-md-12">
48   - <button type="submit" class="btn btn-default" ng-click="ctrl.signup(ctrl.account)">{{"SignUp" | translate}}</button>
  48 + <button type="submit" class="btn btn-default" ng-click="ctrl.signup(ctrl.account)">{{"account.register.signupMessage" | translate}}</button>
49 49 </div>
50 50  
51 51 </div>
52 52 </form>
53 53  
54   - <p class="already-registered-message">{{"Have an account?" | translate}}</p>
  54 + <p class="already-registered-message">{{"account.register.haveAccountMessage" | translate}}</p>
55 55  
56 56 </div>
... ...
src/languages/en.json
... ... @@ -24,6 +24,19 @@
24 24 "auth.form.login": "Login / Email address",
25 25 "auth.form.password": "Password",
26 26 "auth.form.login_button": "Login",
  27 + "account.register.welcomeMessage": "Nice to have you there!",
  28 + "account.register.seeMoreMessage": "See more ",
  29 + "account.register.informationsMessage": "informations",
  30 + "account.register.firstNameLabel": "First Name",
  31 + "account.register.lastNameLabel": "Last Name",
  32 + "account.register.usernameLabel": "Username",
  33 + "account.register.emailLabel": "Email",
  34 + "account.register.passwordLabel": "Password",
  35 + "account.register.passwordConfirmationLabel": "Password Confirmation",
  36 + "account.register.accountCreatingMessage": "By creating an account, you are agreeing with the ",
  37 + "account.register.signupMessage": "Create Account",
  38 + "account.register.haveAccountMessage": "Already have an account?",
  39 + "account.register.termsOfUseMessage": "terms of use",
27 40 "navbar.content_viewer_actions.new_post": "New Post",
28 41 "notification.error.default.message": "Something went wrong!",
29 42 "notification.error.default.title": "Oops...",
... ...
src/languages/pt.json
... ... @@ -22,19 +22,21 @@
22 22 "activities.new_friendship.description": "fez {friends, plural, one{um novo amigo} other{# novos amigos}}:",
23 23 "auth.title": "Login",
24 24 "auth.form.login": "Login / Email",
25   - "Nice to have you there!": "Ótimo ter você aqui!",
26   - "informations": "informações",
27   - "First Name": "Primeiro Nome",
28   - "Last Name": "Ultimo Nome",
29   - "Username": "Nome de usuário",
30   - "Email": "Email",
31   - "Password": "Senha",
32   - "Password Confirmation": "Confirmação de Senha",
33   - "terms of use": "termos de uso",
34   - "SignUp": "Cadastrar",
35   - "Have an account?": "Já tem conta?",
36 25 "auth.form.password": "Senha",
37 26 "auth.form.login_button": "Login",
  27 + "account.register.welcomeMessage": "Ótimo ter você aqui!",
  28 + "account.register.seeMoreMessage": "Saiba mais ",
  29 + "account.register.informationsMessage": "informações",
  30 + "account.register.firstNameLabel": "Nome",
  31 + "account.register.lastNameLabel": "Sobrenome",
  32 + "account.register.usernameLabel": "Nome de usuário",
  33 + "account.register.emailLabel": "Email",
  34 + "account.register.passwordLabel": "Senha",
  35 + "account.register.passwordConfirmationLabel": "Confirmar senha",
  36 + "account.register.accountCreatingMessage": "Ao criar uma conta, você está concordando com os ",
  37 + "account.register.termsOfUseMessage": "termos de uso",
  38 + "account.register.signupMessage": "Criar Conta",
  39 + "account.register.haveAccountMessage": "Já possui uma conta?",
38 40 "navbar.content_viewer_actions.new_post": "Novo Artigo",
39 41 "notification.error.default.message": "Algo deu errado!",
40 42 "notification.error.default.title": "Oops...",
... ...