From 74cd3c48279416b6efd5e5b3cf6aa0b552589dc1 Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Sat, 20 Oct 2018 12:48:02 +0200 Subject: [PATCH] translate hat bubble --- app/models/hat.rb | 5 +---- config/locales/en.yml | 2 ++ config/locales/fr.yml | 2 ++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/models/hat.rb b/app/models/hat.rb index 1185a0d..175a6d3 100644 --- a/app/models/hat.rb +++ b/app/models/hat.rb @@ -21,10 +21,7 @@ class Hat < ActiveRecord::Base def to_html_label hl = (self.link.present? && self.link.match(/^https?:\/\//)) - h = " "#{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)}" diff --git a/config/locales/en.yml b/config/locales/en.yml index 2961b17..f767c7b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -25,6 +25,8 @@ en: turnedintodragon: "turned into a dragon" slayeddragon: "slayed dragon" metooerror: "Please just upvote the parent post instead." + hat: + grantedby: "