Add translation for none-placeholder

This commit is contained in:
Andreas Nedbal 2022-02-19 00:36:20 +01:00 committed by Andreas Nedbal
parent a182f05996
commit ebaa7bfa87
2 changed files with 8 additions and 7 deletions

View File

@ -14,28 +14,28 @@
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.display_name")
%p.text-muted
- if current_user.profile.display_name.blank?
None set!
= t(".none")
- else
= current_user.profile.display_name
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.description")
%p.text-muted
- if current_user.profile.description.blank?
None set!
= t(".none")
- else
= current_user.profile.description
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.location")
%p.text-muted
- if current_user.profile.location.blank?
None set!
= t(".none")
- else
= current_user.profile.location
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.website")
%p.text-muted
- if current_user.profile.website.blank?
None set!
= t(".none")
- else
= current_user.profile.website
.col-md-6.col-sm-6.col-xs-12.mb-3
@ -79,7 +79,7 @@
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.locale")
%p.text-muted
- if current_user.locale.blank?
None set!
= t(".none")
- else
= current_user.locale
@ -107,7 +107,7 @@
= localize(current_user.created_at)
= " (#{time_ago_in_words(current_user.created_at)} ago)"
- else
Not set
= t(".none")
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.updated at")
%p.text-muted
@ -115,4 +115,4 @@
= localize(current_user.updated_at)
= " (#{time_ago_in_words(current_user.updated_at)} ago)"
- else
Not set
= t(".none")

View File

@ -46,6 +46,7 @@ en:
data:
heading: "Your Profile Data"
body: "Everything we have about you! Really, not that much as you might expect."
none: "None set!"
section:
general: "General"
profile: "Profile"