Commit 4129defeaea5fb0e26ce2cbfd904396c4dba110c

Authored by Rafael Manzo
2 parents ba131e65 39cd5d9a

Merge pull request #220 from MezuroUNB20151/issue#214

Fixing translations errors for creating new repositories
app/views/repositories/_form.html.erb
... ... @@ -30,7 +30,7 @@
30 30  
31 31 <div class="form-row">
32 32 <div class="field-container">
33   - <%= f.label :license, 'License', class: 'control-label' %>
  33 + <%= f.label :license, class: 'control-label' %>
34 34 <%= f.select( :license, license_options, class: 'text-area form-control' ) %>
35 35 </div>
36 36 <div class="help-container">
... ... @@ -42,7 +42,7 @@
42 42  
43 43 <div class="form-row">
44 44 <div class="field-container">
45   - <%= f.label :scm_type, 'Type', class: 'control-label' %>
  45 + <%= f.label :scm_type, class: 'control-label' %>
46 46 <%= f.select( :scm_type, @repository_types, class: 'tooltip-control' ) %>
47 47 </div>
48 48 <div class="help-container">
... ... @@ -66,7 +66,7 @@
66 66  
67 67 <div class="form-row">
68 68 <div class="field-container">
69   - <%= f.label :period, 'Process Period', class: 'control-label' %>
  69 + <%= f.label :period, class: 'control-label' %>
70 70 <%= f.select( :period, periodicity_options, class: 'tooltip-control' ) %>
71 71 </div>
72 72 <div class="help-container">
... ... @@ -91,6 +91,6 @@
91 91 </div>
92 92 </div>
93 93 <div class="row margin-left-none" style="margin-top: 20px">
94   - <%= f.submit 'Save', class: 'btn btn-primary' %>
95   - <%= link_to 'Back', project_path(@project_id), class: 'btn btn-default' %>
  94 + <%= f.submit t('save'), class: 'btn btn-primary' %>
  95 + <%= link_to t('back'), project_path(@project_id), class: 'btn btn-default' %>
96 96 </div>
... ...
config/locales/views/repository/en.yml
... ... @@ -11,7 +11,7 @@ en:
11 11 license: "License"
12 12 scm_type: "Type"
13 13 address: "Address"
14   - period: "Period"
  14 + period: "Process Period"
15 15 hints:
16 16 repository:
17 17 name: "The name of your Repository."
... ...
config/locales/views/repository/pt.yml
... ... @@ -8,9 +8,9 @@ pt:
8 8 repository:
9 9 name: "Nome"
10 10 description: "Descrição"
11   - license: "Licensa"
  11 + license: "Licença"
12 12 scm_type: "Tipo"
13   - address: "endereço"
  13 + address: "Endereço"
14 14 period: "Período"
15 15 hints:
16 16 repository:
... ...