Skip to content

Fixed translations and Blackbytes QR code #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

CorePrime95
Copy link
Contributor

Some texts related to payments and contracts did not use translations. Also fixed that a payment request for Blackbytes did not show the QR code.

@@ -42,25 +44,8 @@ angular.module('copayApp.controllers').controller('inviteCorrespondentDeviceCont
correspondentListService.startWaitingForPairing(function(pairingInfo){
console.log("beginAddCorrespondent " + pairingInfo.pairing_secret);
$scope.code = pairingInfo.device_pubkey + "@" + pairingInfo.hub + "#" + pairingInfo.pairing_secret;

function determineQRcodeVersionFromString( inputtext ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what was the point of moving the function to the service?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because the function is now used in both wallethome.js and invitecorrespondentDevice.js

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wallethome.js is not included in the diff

@@ -16,10 +16,10 @@ <h1 class="title ellipsis" ng-style="{'color':color}" translate>
<h4 class="title m0" translate>QR Code</h4>
<ul class="no-bullet size-14 m0">
<li class="line-b p10 oh text-center">
<qrcode size="220" version="6" data="{{protocol}}:{{addr + '?amount=' + amountInSmallestUnits + asset_param}}"></qrcode>
<qrcode size="220" version="{{qr_version}}" data="{{protocol}}:{{code}}"></qrcode>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I din't find where code is set

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its in wallethome.js @ line 446

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wallethome.js is not even in the diff

@@ -358,7 +358,7 @@ <h1 class="title ellipsis" ng-style="{'color': noColor ? '#4A90E2' : index.backg
</div>
<div class="large-4 medium-4 small-4 columns adaptive">
<button type="button"
class="button expand round outline dark-gray tiny"
class="button expand translate round outline dark-gray tiny"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe outside the class?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@@ -262,13 +262,13 @@ angular.module('copayApp.controllers').controller('correspondentDeviceController
if (contract.peerAsset === "base")
peer_amount *= walletSettings.unitValue;
if (contract.peerAsset === constants.BLACKBYTES_ASSET)
throw Error("peer asset cannot be blackbytes");
throw Error(gettext("peer asset cannot be blackbytes"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to translate exceptions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@@ -16,10 +16,10 @@ <h1 class="title ellipsis" ng-style="{'color':color}" translate>
<h4 class="title m0" translate>QR Code</h4>
<ul class="no-bullet size-14 m0">
<li class="line-b p10 oh text-center">
<qrcode size="220" version="6" data="{{protocol}}:{{addr + '?amount=' + amountInSmallestUnits + asset_param}}"></qrcode>
<qrcode size="220" version="{{qr_version}}" data="{{protocol}}:{{code}}"></qrcode>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wallethome.js is not even in the diff

@@ -42,25 +44,8 @@ angular.module('copayApp.controllers').controller('inviteCorrespondentDeviceCont
correspondentListService.startWaitingForPairing(function(pairingInfo){
console.log("beginAddCorrespondent " + pairingInfo.pairing_secret);
$scope.code = pairingInfo.device_pubkey + "@" + pairingInfo.hub + "#" + pairingInfo.pairing_secret;

function determineQRcodeVersionFromString( inputtext ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wallethome.js is not included in the diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants