From 02e7b52fbf1dd780406900b251236d2b9614369c Mon Sep 17 00:00:00 2001 From: NotGonnaGitUs Date: Fri, 1 May 2015 20:14:19 +0530 Subject: [PATCH] Adding environment variables to the static front page for translation. - Halfway done. --- common/locales/en/front.json | 16 +++++++++++++- website/views/static/front.jade | 37 ++++++++++++++++----------------- 2 files changed, 33 insertions(+), 20 deletions(-) diff --git a/common/locales/en/front.json b/common/locales/en/front.json index 232c6eb51b..6bc0c43641 100644 --- a/common/locales/en/front.json +++ b/common/locales/en/front.json @@ -96,5 +96,19 @@ "watchVideos": "Watch Videos", "presskit": "Press Kit", "presskitText": "Thanks for your interest in HabitRPG! The following images can be used for articles or videos about HabitRPG. For more information, please contact Siena Leslie at leslie@habitrpg.com.", - "presskitDownload": "Download all images:" + "presskitDownload": "Download all images:", + "motivate": "Motivate yourself and your team!", + "joinOthers": "Join 200,000 people making it fun to achieve goals!", + "free": "Play for free", + "featuredIn": "Featured in", + "playButtonFull": "Play HabitRPG", + "leadText": "HabitRPG is a free habit building and productivity app that treats your real life like a game. With in-game rewards and punishments to motivate you and a strong social network to inspire you, HabitRPG can help you achieve your goals to become healthy, hard-working, and happy.", + "testimonialHeading": "What people say...", + "dragonsilverQuote": "I can't tell you how many time and task tracking systems I've tried over the decades... HRPG is the only thing I've used that actually helps me get things done rather than just list them.", + "frabjabulousQuote": "HabitRPG is the reason I got a killer, high-paying job... and even more miraculous, I'm now a daily flosser!", + "andeeliaoQuote": "Awesome product, just started a few days ago and already more conscious and productive with my time!", + "alexandraQuote": "Couldn't NOT talk about HabitRPG during my speech in Madrid. Must-have tool for freelancers who still need a boss.", + "gamifyButton": "Gamify your life today!" + + } diff --git a/website/views/static/front.jade b/website/views/static/front.jade index 51634464ef..339fa98e86 100644 --- a/website/views/static/front.jade +++ b/website/views/static/front.jade @@ -63,18 +63,17 @@ html(ng-app='habitrpg', ng-controller='RootCtrl') li a(href='/static/contact')=env.t('contactUs') li - button#header-play-button.btn.btn-primary.navbar-btn.navbar-right(ng-click='playButtonClick()') Play HabitRPG + button#header-play-button.btn.btn-primary.navbar-btn.navbar-right(ng-click='playButtonClick()')= env.t('playButtonFull') #intro - h1 Motivate yourself and your team! + h1= env.t('motivate') img.center-block.img-responsive(src='https://s3.amazonaws.com/habitrpg-assets/front/images/intro.png') // insert intro images .introcall.bg-success - h4 - | Join 200,000 players making it fun to achieve goals! + h4= env.t('joinOthers') small - button#play-btn.btn.btn-primary.btn-lg.gamifybutton(ng-click='playButtonClick()') Play for free + button#play-btn.btn.btn-primary.btn-lg.gamifybutton(ng-click='playButtonClick()')= env.t('free') .presslogos.text-center - | Featured in + = env.t('featuredIn') br img(src='https://s3.amazonaws.com/habitrpg-assets/front/images/presslogos/lifehacker.png') img(src='https://s3.amazonaws.com/habitrpg-assets/front/images/presslogos/nyt-logo.png') @@ -88,12 +87,12 @@ html(ng-app='habitrpg', ng-controller='RootCtrl') .row .col-md-8.col-md-offset-2 p.lead.text-center - | HabitRPG is a free habit building and productivity app that treats your real life like a game. With in-game rewards and punishments to motivate you and a strong social network to inspire you, HabitRPG can help you achieve your goals to become healthy, hard-working, and happy. + = env.t('leadText') section#testimonial-carousel.bg-info .container-fluid .row .col-md-3.col-md-offset-1 - h2 What people say... + h2= env.t('testimonialHeading') img.img-say.img-responsive.visible-lg-block(src='https://s3.amazonaws.com/habitrpg-assets/front/images/uses/publicSpaces.png') // Testimonials .col-md-8.col-sm-10.col-sx-10 @@ -116,7 +115,7 @@ html(ng-app='habitrpg', ng-controller='RootCtrl') .row .col-sm-8.col-sm-offset-2 p - | I can't tell you how many time and task tracking systems I've tried over the decades... HRPG is the only thing I've used that actually helps me get things done rather than just list them. + = env.t('dragonsilverQuote') small Drag0nsilver // Quote 2 .item @@ -124,7 +123,7 @@ html(ng-app='habitrpg', ng-controller='RootCtrl') .row .col-sm-8.col-sm-offset-2 p - | HabitRPG is the reason I got a killer, high-paying job... and even more miraculous, I'm now a daily flosser! + = env.t('frabjabulousQuote') small frabjabulous // Quote 3 .item @@ -132,21 +131,21 @@ html(ng-app='habitrpg', ng-controller='RootCtrl') .row .col-sm-8.col-sm-offset-2 p - | Awesome product, just started a few days ago and already more conscious and productive with my time! + = env.t('andeeliaoQuote') small AndeeLiao .item blockquote .row .col-sm-8.col-sm-offset-2 p - | Couldn't NOT talk about HabitRPG during my speech in Madrid. Must-have tool for freelancers who still need a boss. + = env.t('alexandraQuote') small _AlexandraSo_ // Carousel Buttons Next/Prev a.left.carousel-control(data-slide='prev', href='#quote-carousel') i.fa.fa-chevron-left a.right.carousel-control(data-slide='next', href='#quote-carousel') i.fa.fa-chevron-right - button.btn.btn-primary.btn-lg.gamifybutton.fixedcta(ng-click='playButtonClick()') Gamify your life today! + button.btn.btn-primary.btn-lg.gamifybutton.fixedcta(ng-click='playButtonClick()')= env.t('gamifyButton') section#uses h2 Players use HabitRPG to manage... .container-fluid @@ -415,7 +414,7 @@ html(ng-app='habitrpg', ng-controller='RootCtrl') | I've had horrible habits with clearing my place completely after meals and leaving cups all over the place. HabitRPG has cured that! // End Item // End Carousel - button.btn.btn-primary.btn-lg.gamifybutton.fixedcta(ng-click='playButtonClick()') Gamify your life today! + button.btn.btn-primary.btn-lg.gamifybutton.fixedcta(ng-click='playButtonClick()')= env.t('gamifyButton') section#rewards.bg-warning.container-fluid .row .col-lg-5.col-lg-offset-1.col-md-5.col-sm-12 @@ -444,7 +443,7 @@ html(ng-app='habitrpg', ng-controller='RootCtrl') h2 span.glyphicon.glyphicon-arrow-down img.img-responsive(src='https://s3.amazonaws.com/habitrpg-assets/front/images/TVreward.png') - button.btn.btn-primary.btn-lg.fixedcta.gamifybutton(ng-click='playButtonClick()') Gamify your life today! + button.btn.btn-primary.btn-lg.fixedcta.gamifybutton(ng-click='playButtonClick()')= env.t('gamifyButton') section#levels.container-fluid .row .col-lg-5.col-lg-offset-1.col-md-5.col-sm-12 @@ -468,7 +467,7 @@ html(ng-app='habitrpg', ng-controller='RootCtrl') h2 span.glyphicon.glyphicon-arrow-down img.img-responsive(src='https://s3.amazonaws.com/habitrpg-assets/front/images/SAMPLEadventurers.png') - button.btn.btn-primary.btn-lg.fixedcta.gamifybutton(ng-click='playButtonClick()') Gamify your life today! + button.btn.btn-primary.btn-lg.fixedcta.gamifybutton(ng-click='playButtonClick()')= env.t('gamifyButton') section#health.bg-danger.container-fluid .row .col-lg-5.col-lg-offset-1.col-md-5.col-sm-12 @@ -500,7 +499,7 @@ html(ng-app='habitrpg', ng-controller='RootCtrl') .meter.health .bar div(style='width:50%;')   - button.btn.btn-primary.btn-lg.fixedcta.gamifybutton(ng-click='playButtonClick()') Gamify your life today! + button.btn.btn-primary.btn-lg.fixedcta.gamifybutton(ng-click='playButtonClick()')= env.t('gamifyButton') section#quest.container-fluid .row .col-lg-5.col-lg-offset-1.col-md-5.col-sm-12 @@ -542,7 +541,7 @@ html(ng-app='habitrpg', ng-controller='RootCtrl') div(style='width:0%;')   .quest-friend-img img(src='https://s3.amazonaws.com/habitrpg-assets/front/images/party/GrimReaper.png') - button.btn.btn-primary.btn-lg.fixedcta.gamifybutton(ng-click='playButtonClick()') Gamify your life today! + button.btn.btn-primary.btn-lg.fixedcta.gamifybutton(ng-click='playButtonClick()')= env.t('gamifyButton') section#features.bg-info.container-fluid .row h2 We also feature... @@ -576,7 +575,7 @@ html(ng-app='habitrpg', ng-controller='RootCtrl') h4 Social play p | Join common-interest groups with like-minded people. Create Challenges to compete against other users. - button.btn.btn-primary.btn-lg.fixedcta.gamifybutton(ng-click='playButtonClick()') Gamify your life today! + button.btn.btn-primary.btn-lg.fixedcta.gamifybutton(ng-click='playButtonClick()')= env.t('gamifyButton') #footercall .container-fluid .row