translate hat bubble
This commit is contained in:
parent
6d13022d9b
commit
74cd3c4827
|
@ -21,10 +21,7 @@ class Hat < ActiveRecord::Base
|
|||
def to_html_label
|
||||
hl = (self.link.present? && self.link.match(/^https?:\/\//))
|
||||
|
||||
h = "<span class=\"hat " <<
|
||||
"hat_#{self.hat.gsub(/[^A-Za-z0-9]/, "_").downcase}\" " <<
|
||||
"title=\"Granted by " << "#{self.granted_by_user.username} on " <<
|
||||
"#{self.created_at.strftime("%Y-%m-%d")}"
|
||||
h =raw(t('.grantedby', :hat => "#{self.hat.gsub(/[^A-Za-z0-9]/, \"_\").downcase}", :inviteuser => "#{t('.inviteuser')}", "#{self.created_at.strftime("%Y-%m-%d")}"))
|
||||
|
||||
if !hl && self.link.present?
|
||||
h << " - #{ERB::Util.html_escape(self.link)}"
|
||||
|
|
|
@ -25,6 +25,8 @@ en:
|
|||
turnedintodragon: "turned into a dragon"
|
||||
slayeddragon: "slayed dragon"
|
||||
metooerror: "Please just upvote the parent post instead."
|
||||
hat:
|
||||
grantedby: "<span class=\"hat hat_%{hat}\" title=\"Granted by %{inviteuser} on %{invitedate}\""
|
||||
moderation:
|
||||
storyeditedby: "Your story has been edited by "
|
||||
usersuggestions: "user suggestions"
|
||||
|
|
|
@ -44,6 +44,8 @@ fr:
|
|||
turnedintodragon: "transformé en dragon"
|
||||
slayeddragon: "le dragon a été terrassé"
|
||||
metooerror: "Merci de voter pour le commentaire à la place."
|
||||
hat:
|
||||
grantedby: "<span class=\"hat hat_%{hat}\" title=\"Accordé par %{inviteuser} le %{invitedate}\""
|
||||
moderation:
|
||||
storyeditedby: "Votre info a été éditée par "
|
||||
usersuggestions: "suggestions d'utilisateur"
|
||||
|
|
Loading…
Reference in a new issue