Skip to content

Commit

Permalink
Merge pull request #25427 from code-dot-org/add-pt-pt-to-latam-videos
Browse files Browse the repository at this point in the history
Add Portuguese(Portugal) to LATAM video languages
  • Loading branch information
Erin007 committed Oct 16, 2018
2 parents d21e6bb + fd7f481 commit 698c3bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pegasus/sites.v3/hourofcode.com/public/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ social:
-# whenever we change the hoc_mode, to make sure we're still testing what we'll see on production.
-hoc_mode = DCDO.get("hoc_mode", CDO.default_hoc_mode)

-# Spanish(Mexico), Spanish(Spain), and Portuguese(Brazil)
-latam_language_codes = ["la", "es", "pt"]
-# Spanish and Portuguese
-latam_language_codes = ["la", "es", "pt", "po"]
-show_latam_videos = DCDO.get("show_latam_videos", nil)

:ruby
Expand Down
4 changes: 2 additions & 2 deletions pegasus/src/homepage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def self.get_heroes

def self.get_actions
# Show a Latin American specific video to users browsing in Spanish or
# Portuguese(Brazil) to promote LATAM HOC.
latam_language_codes = [:"es-MX", :"es-ES", :"pt-BR"]
# Portuguese to promote LATAM HOC.
latam_language_codes = [:"es-MX", :"es-ES", :"pt-BR", :"pt-PT"]
show_latam_videos = DCDO.get("show_latam_videos", nil)
if latam_language_codes.include?(I18n.locale) && show_latam_videos
youtube_id = "EGgdCryC8Uo"
Expand Down

0 comments on commit 698c3bc

Please sign in to comment.