Skip to content

Commit

Permalink
#7 add translations click for retry
Browse files Browse the repository at this point in the history
  • Loading branch information
BioQwer committed Apr 10, 2016
1 parent fc3b8bc commit 332d7af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
10 changes: 4 additions & 6 deletions app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
WIN_MESSAGE: 'Это снимок сделан при помощи EzSensor от VATECH!',
ACTION_MESSAGE: 'Пожалуйста, заполните форму и получите подарок',
FAIL_MESSAGE: 'Попробуйте еще раз…',
CHANGE_LANGUAGE_BUTTON: 'English'
CHANGE_LANGUAGE_BUTTON: 'English',
CLICK_FOR_AGAIN:' Нажми, чтобы попробовать еще раз'
};

var tableEnglish = {
Expand All @@ -48,18 +49,15 @@
WIN_MESSAGE: 'That\'s The VATECH EzSensor Image!',
ACTION_MESSAGE: 'Please Fill The Form And Collect Your Gift',
FAIL_MESSAGE: 'You have 1 more chance…',
CHANGE_LANGUAGE_BUTTON: 'Русский язык'
CHANGE_LANGUAGE_BUTTON: 'Русский язык',
CLICK_FOR_AGAIN:'Click to try again'
};

var app = angular.module('app', ['ngRoute', 'ng', 'ngAnimate', 'ngAudio', 'pascalprecht.translate']);

app.run(['$rootScope', '$location', '$templateCache', function ($rootScope, $location, $templateCache) {

$location.path('/');
$templateCache.put('templates/welcome.html');
$templateCache.put('templates/game.html');
$templateCache.put('templates/fail.html');
$templateCache.put('templates/win.html');
$rootScope.appInitialized = true;
}]);

Expand Down
2 changes: 1 addition & 1 deletion app/templates/fail.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1 class="text-center nav">{{'FAIL_MESSAGE'|translate}}</h1>
<br>
<div class="col-md-4"></div>
<div class="col-md-4">
<button class="btn btn-default btn-lg btn-block" ng-click="redirect()">Click to try again</button>
<button class="btn btn-default btn-lg btn-block" ng-click="redirect()">{{'CLICK_FOR_AGAIN'|translate}}</button>
</div>
<div class="col-md-4"></div>
</div>
3 changes: 1 addition & 2 deletions app/templates/win.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ <h2 class="text-center nav " style="color: white;">{{'ACTION_MESSAGE'|translate}
</div>

<div class="col-md-6">
<button class="btn btn-default btn-lg btn-block" ng-click="redirect()" style="height: 100%">Click to try again
</button>
<button class="btn btn-default btn-lg btn-block" ng-click="redirect()" style="height: 100%">{{'CLICK_FOR_AGAIN'|translate}}</button>
</div>
</div>
</div>

0 comments on commit 332d7af

Please sign in to comment.