A platform for community discussion. Free, open, simple.
FIX: Correct description for out of love badge (#8615)
Krzysztof Kotlarek9e4fcb1a0a3c
diff --git a/app/models/badge.rb b/app/models/badge.rbindex 4db471bcbeb..091d080dc86 100644--- a/app/models/badge.rb+++ b/app/models/badge.rb@@ -223,7 +223,7 @@ class Badge < ActiveRecord::Basedef long_descriptionkey = "badges.#{i18n_name}.long_description"- I18n.t(key, default: self[:long_description] || '', base_uri: Discourse.base_uri)+ I18n.t(key, default: self[:long_description] || '', base_uri: Discourse.base_uri, max_likes_per_day: SiteSetting.max_likes_per_day)enddef long_description=(val)@@ -233,7 +233,7 @@ class Badge < ActiveRecord::Basedef descriptionkey = "badges.#{i18n_name}.description"- I18n.t(key, default: self[:description] || '', base_uri: Discourse.base_uri)+ I18n.t(key, default: self[:description] || '', base_uri: Discourse.base_uri, max_likes_per_day: SiteSetting.max_likes_per_day)enddef description=(val)diff --git a/config/locales/server.en.yml b/config/locales/server.en.ymlindex 2f1cf679582..9cc4d0ace8a 100644--- a/config/locales/server.en.yml+++ b/config/locales/server.en.yml@@ -4298,19 +4298,19 @@ en:This badge is granted when you receive at least 5 likes on 300 different posts. Wow! The community admires your frequent, high quality contributions to the conversations here.out_of_love:name: Out of Love- description: Used 50 likes in a day+ description: Used %{max_likes_per_day} likes in a daylong_description: |- This badge is granted when you use all 50 of your daily likes. Remembering to take a moment and like the posts you enjoy and appreciate encourages your fellow community members to create even more great discussions in the future.+ This badge is granted when you use all %{max_likes_per_day} of your daily likes. Remembering to take a moment and like the posts you enjoy and appreciate encourages your fellow community members to create even more great discussions in the future.higher_love:name: Higher Love- description: Used 50 likes in a day 5 times+ description: Used %{max_likes_per_day} likes in a day 5 timeslong_description: |- This badge is granted when you use all 50 of your daily likes for 5 days. Thanks for taking the time actively encouraging the best conversations every day!+ This badge is granted when you use all %{max_likes_per_day} of your daily likes for 5 days. Thanks for taking the time actively encouraging the best conversations every day!crazy_in_love:name: Crazy in Lovedescription: Used 50 likes in a day 20 timeslong_description: |- This badge is granted when you use all 50 of your daily likes for 20 days. Wow! You’re a role model for encouraging your fellow community members!+ This badge is granted when you use all %{max_likes_per_day} of your daily likes for 20 days. Wow! You’re a role model for encouraging your fellow community members!thank_you:name: Thank Youdescription: Has 20 liked posts and gave 10 likes