Merge pull request #4379 from gabrielbazan7/fix/UntranslatedTitles

fix untranslated titles
This commit is contained in:
Gustavo Maximiliano Cortez 2016-06-14 12:26:36 -03:00 committed by GitHub
commit d86481e3ed
6 changed files with 14 additions and 10 deletions

View file

@ -1,7 +1,7 @@
<div <div
class="topbar-container" class="topbar-container"
ng-include="'views/includes/topbar.html'" ng-include="'views/includes/topbar.html'"
ng-init="titleSection='Export'; goBackToState = 'preferencesAdvanced'"> ng-init="titleSection='Export Wallet'; goBackToState = 'preferencesAdvanced'">
</div> </div>
<div class="content preferences" ng-controller="exportController as exportC"> <div class="content preferences" ng-controller="exportController as exportC">

View file

@ -2,7 +2,7 @@
<div <div
class="topbar-container" class="topbar-container"
ng-include="'views/includes/topbar.html'" ng-include="'views/includes/topbar.html'"
ng-init="titleSection='Wallet Preferences'; closeToHome = true"> ng-init="titleSection=index.setWalletPreferencesTitle(); closeToHome = true">
</div> </div>

View file

@ -1,7 +1,7 @@
<div <div
class="topbar-container" class="topbar-container"
ng-include="'views/includes/topbar.html'" ng-include="'views/includes/topbar.html'"
ng-init="titleSection='Wallet Alias'; goBackToState = 'preferences'"> ng-init="titleSection='Alias'; goBackToState = 'preferences'">
</div> </div>
<div class="content preferences" ng-controller="preferencesAliasController as prefAlias"> <div class="content preferences" ng-controller="preferencesAliasController as prefAlias">

View file

@ -1,7 +1,7 @@
<div <div
class="topbar-container" class="topbar-container"
ng-include="'views/includes/topbar.html'" ng-include="'views/includes/topbar.html'"
ng-init="titleSection='Transaction history'; goBackToState = 'preferencesAdvanced'"> ng-init="titleSection='Transaction History'; goBackToState = 'preferencesAdvanced'">
</div> </div>
<div class="content preferences" ng-controller="preferencesHistory as history"> <div class="content preferences" ng-controller="preferencesHistory as history">
<h4></h4> <h4></h4>

View file

@ -1,7 +1,7 @@
<div <div
class="topbar-container" class="topbar-container"
ng-include="'views/includes/topbar.html'" ng-include="'views/includes/topbar.html'"
ng-init="titleSection='Terms of use'; goBackToState = 'about'; noColor = true"> ng-init="titleSection='Terms of Use'; goBackToState = 'about'; noColor = true">
</div> </div>
<div ng-controller="termOfUseController" class="content"> <div ng-controller="termOfUseController" class="content">
<p class="enable_text_select m0"> <p class="enable_text_select m0">

View file

@ -80,6 +80,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
storageService.setHideBalanceFlag(self.walletId, self.shouldHideBalance, function() {}); storageService.setHideBalanceFlag(self.walletId, self.shouldHideBalance, function() {});
} }
self.setWalletPreferencesTitle = function() {
return gettext("Wallet Preferences");
}
self.cleanInstance = function() { self.cleanInstance = function() {
$log.debug('Cleaning Index Instance'); $log.debug('Cleaning Index Instance');
lodash.each(self, function(v, k) { lodash.each(self, function(v, k) {