Skip to content

A platform for community discussion. Free, open, simple.

FIX: Incorrect title on new user narrative cert.

Guo Xiang Tan038de4e03719
diff --git a/plugins/discourse-narrative-bot/config/locales/server.en.yml b/plugins/discourse-narrative-bot/config/locales/server.en.yml
index 05a5c72b2f2..221c81d7e83 100644
--- a/plugins/discourse-narrative-bot/config/locales/server.en.yml
+++ b/plugins/discourse-narrative-bot/config/locales/server.en.yml
@@ -145,6 +145,7 @@ en:
new_user_narrative:
reset_trigger: "new user"
+ title: "New user narrative completetion certificate"
cert_title: "In recognition of successful completion of the new user tutorial"
hello:
diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/certificate_generator.rb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/certificate_generator.rb
index 2fad2f84776..656505dcff7 100644
--- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/certificate_generator.rb
+++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/certificate_generator.rb
@@ -72,7 +72,7 @@ module DiscourseNarrativeBot
</linearGradient>
</defs>
<title>
- test_cert
+ #{I18n.t('discourse_narrative_bot.new_user_narrative.title')}
</title>
<g id="Layer_1" data-name="Layer 1">
<path fill="url(#GradientFill_1)" d="M0 0h538.583v384.97H0z"/>