remove unnecessary translators view

This commit is contained in:
Gabriel Bazán 2017-02-21 17:09:07 -05:00
parent 0e8af84ddc
commit 9e0766a257
4 changed files with 155 additions and 201 deletions

View File

@ -1,14 +0,0 @@
'use strict';
angular.module('copayApp.controllers').controller('translatorsController',
function($scope, externalLinkService, gettextCatalog) {
$scope.openExternalLink = function() {
var url = 'https://crowdin.com/project/copay';
var optIn = true;
var title = gettextCatalog.getString('Open Translation Community');
var message = gettextCatalog.getString('You can make contributions by signing up on our Crowdin community translation website. Were looking forward to hearing from you!');
var okText = gettextCatalog.getString('Open Crowdin');
var cancelText = gettextCatalog.getString('Go Back');
externalLinkService.open(url, optIn, title, message, okText, cancelText);
};
});

View File

@ -99,33 +99,33 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
$stateProvider
/*
*
* Other pages
*
*/
/*
*
* Other pages
*
*/
.state('unsupported', {
url: '/unsupported',
templateUrl: 'views/unsupported.html'
})
url: '/unsupported',
templateUrl: 'views/unsupported.html'
})
.state('starting', {
url: '/starting',
template: '<ion-view id="starting"><ion-content>{{starting}}</ion-content></ion-view>',
controller: function($scope, $log, gettextCatalog) {
$log.info('Starting...');
$scope.starting = gettextCatalog.getString('Starting...');
}
})
.state('starting', {
url: '/starting',
template: '<ion-view id="starting"><ion-content>{{starting}}</ion-content></ion-view>',
controller: function($scope, $log, gettextCatalog) {
$log.info('Starting...');
$scope.starting = gettextCatalog.getString('Starting...');
}
})
/*
*
* URI
*
*/
/*
*
* URI
*
*/
.state('uri', {
.state('uri', {
url: '/uri/:url',
controller: function($stateParams, $log, openURLService, profileService) {
profileService.whenAvailable(function() {
@ -141,13 +141,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
templateUrl: 'views/paymentUri.html'
})
/*
*
* Wallet
*
*/
/*
*
* Wallet
*
*/
.state('tabs.wallet', {
.state('tabs.wallet', {
url: '/wallet/:walletId/:fromOnboarding',
views: {
'tab-home@tabs': {
@ -201,13 +201,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Tabs
*
*/
/*
*
* Tabs
*
*/
.state('tabs', {
.state('tabs', {
url: '/tabs',
abstract: true,
controller: 'tabsController',
@ -267,13 +267,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Send
*
*/
/*
*
* Send
*
*/
.state('tabs.send.amount', {
.state('tabs.send.amount', {
url: '/amount/:recipientType/:toAddress/:toName/:toEmail/:toColor',
views: {
'tab-send@tabs': {
@ -304,13 +304,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Add
*
*/
/*
*
* Add
*
*/
.state('tabs.add', {
.state('tabs.add', {
url: '/add',
views: {
'tab-home@tabs': {
@ -352,13 +352,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Global Settings
*
*/
/*
*
* Global Settings
*
*/
.state('tabs.notifications', {
.state('tabs.notifications', {
url: '/notifications',
views: {
'tab-settings@tabs': {
@ -429,15 +429,6 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
}
})
.state('tabs.about.translators', {
url: '/translators',
views: {
'tab-settings@tabs': {
controller: 'translatorsController',
templateUrl: 'views/translators.html'
}
}
})
.state('tabs.advanced', {
url: '/advanced',
views: {
@ -448,13 +439,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Wallet preferences
*
*/
/*
*
* Wallet preferences
*
*/
.state('tabs.preferences', {
.state('tabs.preferences', {
url: '/preferences/:walletId',
views: {
'tab-settings@tabs': {
@ -553,14 +544,14 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Addressbook
*
*/
/*
*
* Addressbook
*
*/
.state('tabs.addressbook', {
.state('tabs.addressbook', {
url: '/addressbook',
views: {
'tab-settings@tabs': {
@ -588,29 +579,29 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Copayers
*
*/
/*
*
* Copayers
*
*/
.state('tabs.copayers', {
url: '/copayers/:walletId',
views: {
'tab-home': {
templateUrl: 'views/copayers.html',
controller: 'copayersController'
}
.state('tabs.copayers', {
url: '/copayers/:walletId',
views: {
'tab-home': {
templateUrl: 'views/copayers.html',
controller: 'copayersController'
}
})
}
})
/*
*
* Addresses
*
*/
/*
*
* Addresses
*
*/
.state('tabs.receive.addresses', {
.state('tabs.receive.addresses', {
url: '/addresses/:walletId/:toAddress',
views: {
'tab-receive@tabs': {
@ -629,13 +620,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Request Specific amount
*
*/
/*
*
* Request Specific amount
*
*/
.state('tabs.receive.amount', {
.state('tabs.receive.amount', {
url: '/amount/:customAmount/:toAddress',
views: {
'tab-receive@tabs': {
@ -654,13 +645,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Init backup flow
*
*/
/*
*
* Init backup flow
*
*/
.state('tabs.receive.backupWarning', {
.state('tabs.receive.backupWarning', {
url: '/backupWarning/:from/:walletId',
views: {
'tab-receive@tabs': {
@ -678,13 +669,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Paper Wallet
*
*/
/*
*
* Paper Wallet
*
*/
.state('tabs.home.paperWallet', {
.state('tabs.home.paperWallet', {
url: '/paperWallet/:privateKey',
views: {
'tab-home@tabs': {
@ -699,7 +690,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
*
*/
.state('onboarding', {
.state('onboarding', {
url: '/onboarding',
abstract: true,
template: '<ion-nav-view name="onboarding"></ion-nav-view>'
@ -792,13 +783,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
},
})
/*
*
* Feedback
*
*/
/*
*
* Feedback
*
*/
.state('tabs.feedback', {
.state('tabs.feedback', {
url: '/feedback',
views: {
'tab-settings@tabs': {
@ -854,30 +845,30 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Buy or Sell Bitcoin
*
*/
/*
*
* Buy or Sell Bitcoin
*
*/
.state('tabs.buyandsell', {
url: '/buyandsell',
views: {
'tab-home': {
controller: 'buyandsellController',
templateUrl: 'views/buyandsell.html'
}
.state('tabs.buyandsell', {
url: '/buyandsell',
views: {
'tab-home': {
controller: 'buyandsellController',
templateUrl: 'views/buyandsell.html'
}
})
}
})
/*
*
* Glidera
*
*
*/
/*
*
* Glidera
*
*
*/
.state('tabs.buyandsell.glidera', {
.state('tabs.buyandsell.glidera', {
url: '/glidera/:code',
views: {
'tab-home@tabs': {
@ -924,13 +915,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Coinbase
*
*/
/*
*
* Coinbase
*
*/
.state('tabs.buyandsell.coinbase', {
.state('tabs.buyandsell.coinbase', {
url: '/coinbase/:code',
views: {
'tab-home@tabs': {
@ -977,24 +968,24 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* Gift Cards
*
*/
/*
*
* Gift Cards
*
*/
.state('tabs.giftcards', {
url: '/giftcards',
abstract: true
})
.state('tabs.giftcards', {
url: '/giftcards',
abstract: true
})
/*
*
* Amazon.com Gift Card
*
*/
/*
*
* Amazon.com Gift Card
*
*/
.state('tabs.giftcards.amazon', {
.state('tabs.giftcards.amazon', {
url: '/amazon',
views: {
'tab-home@tabs': {
@ -1039,13 +1030,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
})
/*
*
* BitPay Card
*
*/
/*
*
* BitPay Card
*
*/
.state('tabs.bitpayCardIntro', {
.state('tabs.bitpayCardIntro', {
url: '/bitpay-card-intro/:secret/:email/:otp',
views: {
'tab-home@tabs': {

View File

@ -30,11 +30,6 @@
<span translate>Terms of Use</span>
<i class="icon bp-arrow-right"></i>
</a>
<a class="item item-icon-left item-icon-right" ui-sref="tabs.about.translators">
<i class="icon ion-ios-people-outline"></i>
<span translate>Translators</span>
<i class="icon bp-arrow-right"></i>
</a>
<a class="item item-icon-left item-icon-right" ui-sref="tabs.about.logs">
<i class="icon ion-ios-copy-outline"></i>
<span translate>Session log</span>

View File

@ -1,18 +0,0 @@
<ion-view class="settings">
<ion-nav-bar class="bar-royal">
<ion-nav-title>{{'Translators' | translate}}</ion-nav-title>
<ion-nav-back-button>
</ion-nav-back-button>
</ion-nav-bar>
<ion-content>
<div class="settings-explanation">
<div class="settings-description" translate>
Were always looking for translation contributions! You can make corrections or help to make this app available in your native language by joining our community on Crowdin.
</div>
</div>
<div class="padding">
<a class="button button-standard button-primary" ng-click="openExternalLink()" translate>Contribute Translations</a>
</div>
</ion-content>
</ion-view>