1
0
Fork 0

Fix translations

This commit is contained in:
Alex Kotov 2018-12-02 22:43:09 +05:00
parent dc6a7f4439
commit ce716f39f2
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
5 changed files with 30 additions and 30 deletions

View File

@ -10,7 +10,7 @@
as: :radio_buttons, as: :radio_buttons,
wrapper: :horizontal_collection_inline, wrapper: :horizontal_collection_inline,
collection: PassportMap.sexes.keys.map { |sex| collection: PassportMap.sexes.keys.map { |sex|
[Passport.human_attribute_name("sex.#{sex}"), sex] [PassportMap.human_attribute_name("sex.#{sex}"), sex]
} %> } %>
<%= ff.input :date_of_birth, <%= ff.input :date_of_birth,

View File

@ -6,19 +6,19 @@
<%= Passport.human_attribute_name :id %> <%= Passport.human_attribute_name :id %>
</th> </th>
<th scope="col"> <th scope="col">
<%= Passport.human_attribute_name :surname %> <%= PassportMap.human_attribute_name :surname %>
</th> </th>
<th scope="col"> <th scope="col">
<%= Passport.human_attribute_name :given_name %> <%= PassportMap.human_attribute_name :given_name %>
</th> </th>
<th scope="col"> <th scope="col">
<%= Passport.human_attribute_name :patronymic %> <%= PassportMap.human_attribute_name :patronymic %>
</th> </th>
<th scope="col" class="d-none d-md-table-cell"> <th scope="col" class="d-none d-md-table-cell">
<%= Passport.human_attribute_name :date_of_birth %> <%= PassportMap.human_attribute_name :date_of_birth %>
</th> </th>
<th scope="col" class="d-none d-lg-table-cell"> <th scope="col" class="d-none d-lg-table-cell">
<%= Passport.human_attribute_name :place_of_birth %> <%= PassportMap.human_attribute_name :place_of_birth %>
</th> </th>
<th scope="col"></th> <th scope="col"></th>
</tr> </tr>

View File

@ -51,37 +51,37 @@
</dd> </dd>
<dt class="col-lg-4"> <dt class="col-lg-4">
<%= Passport.human_attribute_name :surname %> <%= PassportMap.human_attribute_name :surname %>
</dt> </dt>
<dd class="col-lg-8"> <dd class="col-lg-8">
<%= @passport.passport_map&.surname %> <%= @passport.passport_map&.surname %>
</dd> </dd>
<dt class="col-lg-4"> <dt class="col-lg-4">
<%= Passport.human_attribute_name :given_name %> <%= PassportMap.human_attribute_name :given_name %>
</dt> </dt>
<dd class="col-lg-8"> <dd class="col-lg-8">
<%= @passport.passport_map&.given_name %> <%= @passport.passport_map&.given_name %>
</dd> </dd>
<dt class="col-lg-4"> <dt class="col-lg-4">
<%= Passport.human_attribute_name :patronymic %> <%= PassportMap.human_attribute_name :patronymic %>
</dt> </dt>
<dd class="col-lg-8"> <dd class="col-lg-8">
<%= @passport.passport_map&.patronymic %> <%= @passport.passport_map&.patronymic %>
</dd> </dd>
<dt class="col-lg-4"> <dt class="col-lg-4">
<%= Passport.human_attribute_name :sex %> <%= PassportMap.human_attribute_name :sex %>
</dt> </dt>
<dd class="col-lg-8"> <dd class="col-lg-8">
<% if @passport.passport_map %> <% if @passport.passport_map %>
<%= Passport.human_attribute_name "sex.#{@passport.passport_map.sex}" %> <%= PassportMap.human_attribute_name "sex.#{@passport.passport_map.sex}" %>
<% end %> <% end %>
</dd> </dd>
<dt class="col-lg-4"> <dt class="col-lg-4">
<%= Passport.human_attribute_name :date_of_birth %> <%= PassportMap.human_attribute_name :date_of_birth %>
</dt> </dt>
<dd class="col-lg-8"> <dd class="col-lg-8">
<% if @passport.passport_map %> <% if @passport.passport_map %>
@ -90,14 +90,14 @@
</dd> </dd>
<dt class="col-lg-4"> <dt class="col-lg-4">
<%= Passport.human_attribute_name :place_of_birth %> <%= PassportMap.human_attribute_name :place_of_birth %>
</dt> </dt>
<dd class="col-lg-8"> <dd class="col-lg-8">
<%= @passport.passport_map&.place_of_birth %> <%= @passport.passport_map&.place_of_birth %>
</dd> </dd>
<dt class="col-lg-4"> <dt class="col-lg-4">
<%= Passport.human_attribute_name :series %> <%= PassportMap.human_attribute_name :series %>
</dt> </dt>
<dd class="col-lg-8"> <dd class="col-lg-8">
<% if @passport.passport_map %> <% if @passport.passport_map %>
@ -106,7 +106,7 @@
</dd> </dd>
<dt class="col-lg-4"> <dt class="col-lg-4">
<%= Passport.human_attribute_name :number %> <%= PassportMap.human_attribute_name :number %>
</dt> </dt>
<dd class="col-lg-8"> <dd class="col-lg-8">
<% if @passport.passport_map %> <% if @passport.passport_map %>
@ -115,21 +115,21 @@
</dd> </dd>
<dt class="col-lg-4"> <dt class="col-lg-4">
<%= Passport.human_attribute_name :issued_by %> <%= PassportMap.human_attribute_name :issued_by %>
</dt> </dt>
<dd class="col-lg-8"> <dd class="col-lg-8">
<%= @passport.passport_map&.issued_by %> <%= @passport.passport_map&.issued_by %>
</dd> </dd>
<dt class="col-lg-4"> <dt class="col-lg-4">
<%= Passport.human_attribute_name :unit_code %> <%= PassportMap.human_attribute_name :unit_code %>
</dt> </dt>
<dd class="col-lg-8"> <dd class="col-lg-8">
<%= @passport.passport_map&.unit_code %> <%= @passport.passport_map&.unit_code %>
</dd> </dd>
<dt class="col-lg-4"> <dt class="col-lg-4">
<%= Passport.human_attribute_name :date_of_issue %> <%= PassportMap.human_attribute_name :date_of_issue %>
</dt> </dt>
<dd class="col-lg-8"> <dd class="col-lg-8">
<% if @passport.passport_map %> <% if @passport.passport_map %>

View File

@ -35,6 +35,9 @@ en:
confirmed: Confirmed? confirmed: Confirmed?
passport_confirmations_count: Confirmations count passport_confirmations_count: Confirmations count
images: Images images: Images
passport/confirmed:
'true': Confirmed
'false': Unconfirmed
passport_map: passport_map:
id: ID id: ID
surname: Surname surname: Surname
@ -48,16 +51,13 @@ en:
issued_by: Issued by issued_by: Issued by
unit_code: Unit code unit_code: Unit code
date_of_issue: Date of issue date_of_issue: Date of issue
passport_map/sex:
male: Male
female: Female
country_state: country_state:
id: ID id: ID
membership_applications: Membership applications membership_applications: Membership applications
name: Name name: Name
passport/confirmed:
'true': Confirmed
'false': Unconfirmed
passport/sex:
male: Male
female: Female
user: user:
id: ID id: ID
confirmation_sent_at: Confirmation sent at confirmation_sent_at: Confirmation sent at

View File

@ -35,6 +35,9 @@ ru:
confirmed: Подтверждён? confirmed: Подтверждён?
passport_confirmations_count: Количество подтверждений passport_confirmations_count: Количество подтверждений
images: Изображения images: Изображения
passport/confirmed:
'true': Подтверждён
'false': Не подтверждён
passport_map: passport_map:
id: ID id: ID
surname: Фамилия surname: Фамилия
@ -48,16 +51,13 @@ ru:
issued_by: Кем выдан issued_by: Кем выдан
unit_code: Код подразделения unit_code: Код подразделения
date_of_issue: Дата выдачи date_of_issue: Дата выдачи
passport_map/sex:
male: Мужской
female: Женский
country_state: country_state:
id: ID id: ID
membership_applications: Заявления на вступление membership_applications: Заявления на вступление
name: Название name: Название
passport/confirmed:
'true': Подтверждён
'false': Не подтверждён
passport/sex:
male: Мужской
female: Женский
user: user:
id: ID id: ID
confirmation_sent_at: Дата отправки подтверждения confirmation_sent_at: Дата отправки подтверждения