-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
1.5.2 #5
Conversation
@@ -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'); |
There was a problem hiding this comment.
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')); |
There was a problem hiding this comment.
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')); |
There was a problem hiding this comment.
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
Bring readme up to WP standards, fix internationalization strings to allow translation via translate.wp.org