diff --git a/pegasus/sites.v3/hourofcode.com/i18n/en.yml b/pegasus/sites.v3/hourofcode.com/i18n/en.yml index a3539f042a401..7ad85f9989312 100644 --- a/pegasus/sites.v3/hourofcode.com/i18n/en.yml +++ b/pegasus/sites.v3/hourofcode.com/i18n/en.yml @@ -317,6 +317,7 @@ meta_tag_twitter_description: 'The Hour of Code is a global movement reaching tens of millions of students of all ages in 180+ countries and over 45 languages.' twitter_default_text: "I'm participating in this year's #HourOfCode, are you? @codeorg" + twitter_donor_text: "I'm participating in this year's #HourOfCode, are you? (Thanks %{random_donor} for supporting @codeorg)" hoc_faq_title: 'FAQs' hoc_faq_what_is_hoc_q: 'What is the Hour of Code?' diff --git a/pegasus/sites.v3/hourofcode.com/public/promote/index.md b/pegasus/sites.v3/hourofcode.com/public/promote/index.md index 919d01fb0d6ac..76d2a42a5f9a7 100644 --- a/pegasus/sites.v3/hourofcode.com/public/promote/index.md +++ b/pegasus/sites.v3/hourofcode.com/public/promote/index.md @@ -9,8 +9,8 @@ nav: promote_nav <% facebook = {:u=>"http://#{request.host}/us"} - twitter = {:url=>"http://hourofcode.com", :related=>'codeorg', :hashtags=>'', :text=>hoc_s(:twitter_default_text)} - twitter[:hashtags] = 'HourOfCode' unless hoc_s(:twitter_default_text).include? '#HourOfCode' + twitter = {:url=>"http://hourofcode.com", :related=>'codeorg', :hashtags=>'', :text=>hoc_s(:twitter_donor_text).gsub(/%{random_donor}/, get_random_donor_twitter)} + twitter[:hashtags] = 'HourOfCode' unless hoc_s(:twitter_donor_text).include? '#HourOfCode' %> # Get your community involved in the Hour of Code diff --git a/pegasus/sites.v3/hourofcode.com/public/thanks.md b/pegasus/sites.v3/hourofcode.com/public/thanks.md index 726a9164880fb..cce9488a68537 100644 --- a/pegasus/sites.v3/hourofcode.com/public/thanks.md +++ b/pegasus/sites.v3/hourofcode.com/public/thanks.md @@ -21,8 +21,8 @@ social: <% facebook = {:u=>"http://#{request.host}/us"} - twitter = {:url=>"http://hourofcode.com", :related=>'codeorg', :hashtags=>'', :text=>hoc_s(:twitter_default_text)} - twitter[:hashtags] = 'HourOfCode' unless hoc_s(:twitter_default_text).include? '#HourOfCode' + twitter = {:url=>"http://hourofcode.com", :related=>'codeorg', :hashtags=>'', :text=>hoc_s(:twitter_donor_text).gsub(/%{random_donor}/, get_random_donor_twitter)} + twitter[:hashtags] = 'HourOfCode' unless hoc_s(:twitter_donor_text).include? '#HourOfCode' %> # Thanks for signing up to host an Hour of Code!