Skip to content
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

1.5.2 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

1.5.2 #5

wants to merge 1 commit into from

Conversation

bakkbone
Copy link

Bring readme up to WP standards, fix internationalization strings to allow translation via translate.wp.org

Bring readme up to WP standards, fix internationalization strings to allow translation via translate.wp.org
@@ -32,7 +32,7 @@ public function __construct()

$this->id = 'opennode';
$this->has_fields = false;
$this->method_title = 'OpenNode';
$this->method_title = __('OpenNode','opennode-for-woocommerce');
Copy link
Author

Choose a reason for hiding this comment

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

Should be translatable

break;
case 'underpaid':
$missing_amt = number_format($cgOrder->missing_amt/100000000, 8, '.', '');
$order->add_order_note(__('Customer has paid via standard on-Chain, but has underpaid by ' . $missing_amt . ' BTC. Waiting on user to send the remainder before marking as PAID.', 'opennode'));
$order->add_order_note(__('Customer has paid via standard on-Chain, but has underpaid by ','opennode-for-woocommerce') . $missing_amt . __(' BTC. Waiting on user to send the remainder before marking as PAID.', 'opennode-for-woocommerce'));
Copy link
Author

Choose a reason for hiding this comment

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

Should either be 2 strings like this, or a sprintf()

$order->update_status('cancelled');
break;
case 'refunded':
$refund_id = $cgOrder->refund['id'];
$order->add_order_note(__('Customer has canceled the payment. Refund ID - ' . $refund_id . ' .', 'opennode'));
Copy link
Author

Choose a reason for hiding this comment

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

with text-domain being anything other than opennode-for-woocommerce, translate.wp.org does not pick up string as translatable

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.

1 participant