Add translations for the data view
This commit is contained in:
parent
072c86a011
commit
2d63a80761
|
@ -1,73 +1,73 @@
|
||||||
.card
|
.card
|
||||||
.card-body
|
.card-body
|
||||||
%h2 Your Profile Data
|
%h2= t(".heading")
|
||||||
%p Everything we have about you! Really, not that much as you might expect.
|
%p= t(".body")
|
||||||
|
|
||||||
%h3 General
|
%h3= t(".section.general")
|
||||||
.row
|
.row
|
||||||
.col-md-6.col-sm-6.col-xs-12
|
.col-md-6.col-sm-6.col-xs-12
|
||||||
%h4 Profile
|
%h4= t(".section.profile")
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 User name
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.screen_name")
|
||||||
%p.text-muted= current_user.screen_name
|
%p.text-muted= current_user.screen_name
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Display name
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.display_name")
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
- if current_user.profile.display_name.blank?
|
- if current_user.profile.display_name.blank?
|
||||||
None set!
|
None set!
|
||||||
- else
|
- else
|
||||||
= current_user.profile.display_name
|
= current_user.profile.display_name
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Bio
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.description")
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
- if current_user.profile.description.blank?
|
- if current_user.profile.description.blank?
|
||||||
None set!
|
None set!
|
||||||
- else
|
- else
|
||||||
= current_user.profile.description
|
= current_user.profile.description
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Location
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.location")
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
- if current_user.profile.location.blank?
|
- if current_user.profile.location.blank?
|
||||||
None set!
|
None set!
|
||||||
- else
|
- else
|
||||||
= current_user.profile.location
|
= current_user.profile.location
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Website
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.website")
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
- if current_user.profile.website.blank?
|
- if current_user.profile.website.blank?
|
||||||
None set!
|
None set!
|
||||||
- else
|
- else
|
||||||
= current_user.profile.website
|
= current_user.profile.website
|
||||||
.col-md-6.col-sm-6.col-xs-12
|
.col-md-6.col-sm-6.col-xs-12
|
||||||
%h4 Pictures
|
%h4= t(".section.pictures")
|
||||||
%p.font-weight-bold.mb-0 Profile picture
|
%p.font-weight-bold.mb-0= t(".pictures.profile_picture.heading")
|
||||||
.media
|
.media
|
||||||
.pull-left
|
.pull-left
|
||||||
%img.profile--img{ src: current_user.profile_picture.url(:medium) }
|
%img.profile--img{ src: current_user.profile_picture.url(:medium) }
|
||||||
.media-body
|
.media-body
|
||||||
%ul
|
%ul
|
||||||
%li
|
%li
|
||||||
%a{ href: current_user.profile_picture.url(:small) } Small
|
%a{ href: current_user.profile_picture.url(:small) }= t(".pictures.profile_picture.size.small")
|
||||||
%li
|
%li
|
||||||
%a{ href: current_user.profile_picture.url(:medium) } Medium
|
%a{ href: current_user.profile_picture.url(:medium) }= t(".pictures.profile_picture.size.medium")
|
||||||
%li
|
%li
|
||||||
%a{ href: current_user.profile_picture.url(:large) } Large
|
%a{ href: current_user.profile_picture.url(:large) }= t(".pictures.profile_picture.size.large")
|
||||||
%li
|
%li
|
||||||
%a{ href: current_user.profile_picture.url(:original) } Original image
|
%a{ href: current_user.profile_picture.url(:original) }= t(".pictures.profile_picture.size.original")
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Header picture
|
%p.font-weight-bold.mb-0= t(".pictures.profile_header.heading")
|
||||||
%img{ src: current_user.profile_header.url(:mobile), style: 'width: 100%' }
|
%img{ src: current_user.profile_header.url(:mobile), style: 'width: 100%' }
|
||||||
%p
|
%p
|
||||||
%a{ href: current_user.profile_header.url(:mobile) } Mobile
|
%a{ href: current_user.profile_header.url(:mobile) }= t(".pictures.profile_header.size.mobile")
|
||||||
|
|
|
|
||||||
%a{ href: current_user.profile_header.url(:web) } Web
|
%a{ href: current_user.profile_header.url(:web) }= t(".pictures.profile_header.size.web")
|
||||||
|
|
|
|
||||||
%a{ href: current_user.profile_header.url(:retina) } Retina
|
%a{ href: current_user.profile_header.url(:retina) }= t(".pictures.profile_header.size.retina")
|
||||||
|
|
|
|
||||||
%a{ href: current_user.profile_header.url(:original) } Original image
|
%a{ href: current_user.profile_header.url(:original) }= t(".pictures.profile_header.size.original")
|
||||||
.row
|
.row
|
||||||
.col-md-6.col-sm-6.col-xs-12
|
.col-md-6.col-sm-6.col-xs-12
|
||||||
%h4 Statistics
|
%h4= t(".section.statistics")
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Answers
|
%p.font-weight-bold.mb-0 Answers
|
||||||
%p.text-muted= current_user.answered_count
|
%p.text-muted= current_user.answered_count
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
%p.font-weight-bold.mb-0 Comments
|
%p.font-weight-bold.mb-0 Comments
|
||||||
%p.text-muted= current_user.commented_count
|
%p.text-muted= current_user.commented_count
|
||||||
.col-md-6.col-sm-6.col-xs-12
|
.col-md-6.col-sm-6.col-xs-12
|
||||||
%h4 Badges
|
%h4= t(".section.badges")
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Admin
|
%p.font-weight-bold.mb-0 Admin
|
||||||
%p
|
%p
|
||||||
|
@ -108,41 +108,41 @@
|
||||||
%i.fa.fa-fw.fa-close
|
%i.fa.fa-fw.fa-close
|
||||||
.row
|
.row
|
||||||
.col-md-6.col-sm-6.col-xs-12
|
.col-md-6.col-sm-6.col-xs-12
|
||||||
%h3 IP
|
%h3= t(".section.ip")
|
||||||
%p.font-weight-bold.mb-0 Current Sign In
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.current_sign_in_ip")
|
||||||
%p.text-muted= current_user.current_sign_in_ip
|
%p.text-muted= current_user.current_sign_in_ip
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Last Sign In
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.last_sign_in_ip")
|
||||||
%p.text-muted= current_user.last_sign_in_ip
|
%p.text-muted= current_user.last_sign_in_ip
|
||||||
.col-md-6.col-sm-6.col-xs-12
|
.col-md-6.col-sm-6.col-xs-12
|
||||||
%h3 Miscellaneous
|
%h3= t(".section.miscellaneous")
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Locale
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.locale")
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
- if current_user.locale.blank?
|
- if current_user.locale.blank?
|
||||||
None set!
|
None set!
|
||||||
- else
|
- else
|
||||||
= current_user.locale
|
= current_user.locale
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Sign In count
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.sign_in_count")
|
||||||
%p.text-muted= current_user.sign_in_count
|
%p.text-muted= current_user.sign_in_count
|
||||||
%h3 Dates
|
%h3= t(".section.dates")
|
||||||
.row
|
.row
|
||||||
.col-md-6.col-sm-6.col-xs-12
|
.col-md-6.col-sm-6.col-xs-12
|
||||||
%h4 Sign In
|
%h4= t(".section.sign_in")
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Current Sign In
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.current_sign_in_at")
|
||||||
%p.text-muted= current_user.current_sign_in_at ? localize(current_user.current_sign_in_at) : 'Not set'
|
%p.text-muted= current_user.current_sign_in_at ? localize(current_user.current_sign_in_at) : 'Not set'
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Last Sign In
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.last_sign_in_at")
|
||||||
%p.text-muted= current_user.last_sign_in_at ? localize(current_user.last_sign_in_at) : 'Not set'
|
%p.text-muted= current_user.last_sign_in_at ? localize(current_user.last_sign_in_at) : 'Not set'
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Remember me set at
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.remember_created_at")
|
||||||
%p.text-muted= current_user.remember_created_at ? localize(current_user.remember_created_at) : 'Not set'
|
%p.text-muted= current_user.remember_created_at ? localize(current_user.remember_created_at) : 'Not set'
|
||||||
.col-md-6.col-sm-6.col-xs-12
|
.col-md-6.col-sm-6.col-xs-12
|
||||||
%h4 Create/Update
|
%h4= t(".section.create_update")
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Account created
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.created_at")
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
- if current_user.created_at
|
- if current_user.created_at
|
||||||
= localize(current_user.created_at)
|
= localize(current_user.created_at)
|
||||||
|
@ -150,7 +150,7 @@
|
||||||
- else
|
- else
|
||||||
Not set
|
Not set
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Account last updated
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.updated at")
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
- if current_user.created_at
|
- if current_user.created_at
|
||||||
= localize(current_user.updated_at)
|
= localize(current_user.updated_at)
|
||||||
|
|
|
@ -43,6 +43,33 @@ en:
|
||||||
delete:
|
delete:
|
||||||
action: "Delete my account"
|
action: "Delete my account"
|
||||||
heading: "Unsatisfied?"
|
heading: "Unsatisfied?"
|
||||||
|
data:
|
||||||
|
heading: "Your Profile Data"
|
||||||
|
body: "Everything we have about you! Really, not that much as you might expect."
|
||||||
|
section:
|
||||||
|
general: "General"
|
||||||
|
profile: "Profile"
|
||||||
|
pictures: "Pictures"
|
||||||
|
ip: "IP"
|
||||||
|
miscellaneous: "Miscellaneous"
|
||||||
|
dates: "Dates"
|
||||||
|
sign_in: "Sign In"
|
||||||
|
create_update: "Create/Update"
|
||||||
|
pictures:
|
||||||
|
profile_picture:
|
||||||
|
heading: "Profile picture"
|
||||||
|
size:
|
||||||
|
small: "Small"
|
||||||
|
medium: "Medium"
|
||||||
|
large: "Large"
|
||||||
|
original: "Original image"
|
||||||
|
profile_header:
|
||||||
|
heading: "Profile header"
|
||||||
|
size:
|
||||||
|
mobile: "Mobile"
|
||||||
|
web: "Web"
|
||||||
|
retina: "Retina"
|
||||||
|
original: "Original image"
|
||||||
export:
|
export:
|
||||||
heading: "Export your data"
|
heading: "Export your data"
|
||||||
body_html: |
|
body_html: |
|
||||||
|
@ -147,6 +174,8 @@ en:
|
||||||
accent:
|
accent:
|
||||||
example: "Some text on top of a accented area on a raised element!"
|
example: "Some text on top of a accented area on a raised element!"
|
||||||
user:
|
user:
|
||||||
|
data:
|
||||||
|
title: "Your Data"
|
||||||
edit:
|
edit:
|
||||||
title: "Profile Settings"
|
title: "Profile Settings"
|
||||||
edit_mute:
|
edit_mute:
|
||||||
|
|
Loading…
Reference in New Issue