Skip to content

Commit

Permalink
Update banner message (#479)
Browse files Browse the repository at this point in the history
* Update banner message

* change require_once to require in block.

* Add Japanese translation.

* generate .mo file from .jo file
  • Loading branch information
aashishgurung authored Oct 1, 2024
1 parent f7b235c commit aa34827
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion includes/blocks/gateways/abstract-omise-block-apm.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function is_active() {
*/
public function get_payment_method_script_handles() {
if ( ! wp_script_is( 'wc-omise-one-click-apms-payments-blocks', 'enqueued' ) ) {
$script_asset = require_once __DIR__ . '/../assets/js/build/omise-one-click-apms.asset.php';
$script_asset = require __DIR__ . '/../assets/js/build/omise-one-click-apms.asset.php';
wp_enqueue_script(
"wc-omise-one-click-apms-payments-blocks",
plugin_dir_url( __DIR__ ) . 'assets/js/build/omise-one-click-apms.js',
Expand Down
2 changes: 1 addition & 1 deletion includes/blocks/gateways/omise-block-credit-card.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function get_payment_method_script_handles() {
if ($this->is_active()) {
$script_asset_path = __DIR__ . '/../assets/js/build/credit_card.asset.php';
$script_asset = file_exists( $script_asset_path )
? require_once( $script_asset_path )
? require $script_asset_path
: [
'dependencies' => [],
'version' => '1.0.0'
Expand Down
Binary file modified languages/omise-ja.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions languages/omise-ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -587,5 +587,5 @@ msgid "Please select bank below"
msgstr "以下から銀行をお選びください"

#: omise-woocommerce.php:66
msgid "Update your plugin to the latest version to enable Secure Form and maximize the security of your customers’ information. You will need to re-customize the credit card checkout form after the upgrade. <a target='_blank' href='https://www.omise.co/woocommerce-plugin'>Learn how to enable Secure Form</a>."
msgstr "プラグインを最新バージョンにアップデートし、顧客情報の安全な管理に必要なSecure Formを有効にしてください。アップデート後、クレジットカードの決済フォームを再度カスタマイズする必要があります。<a target='_blank' href='https://www.omise.co/woocommerce-plugin'>Secure Formを有効にする方法はこちらをご確認ください</a>。"
msgid "Critical plugin update released: Now compatible with WooCommerce block, and enforces mandatory secure form checkout. Upgrade immediately and re-customize your credit card form to ensure compliance and enhanced customer data protection."
msgstr "重要なプラグインのアップデートがリリースされました:WooCommerce Blockと互換性があり、セキュアなフォームでの決済が必須になりました。すぐに更新し、クレジットカードのフォームを再設定することで、コンプライアンスと顧客データ保護を強化しましょう。"
2 changes: 1 addition & 1 deletion omise-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function embedded_form_notice()

// hide if user enables the embedded form.
if (!(bool)$secure_form_enabled) {
$translation = __('Update your plugin to the latest version to enable Secure Form and maximize the security of your customers’ information. You will need to re-customize the credit card checkout form after the upgrade. <a target="_blank" href="https://www.omise.co/woocommerce-plugin">Learn how to enable Secure Form</a>.', 'omise');
$translation = __('Critical plugin update released: Now compatible with WooCommerce block, and enforces mandatory secure form checkout. Upgrade immediately and re-customize your credit card form to ensure compliance and enhanced customer data protection.', 'omise');
echo "<div class='notice notice-warning is-dismissible'><p><strong>Opn Payments:</strong> $translation</p></div>";
}
}
Expand Down

0 comments on commit aa34827

Please sign in to comment.