Updated the translation files omise-ja.po and omise.mo with new Japanese traslation.
Updated the assets/javascripts/omise-payment-form-handler.js to converted the message received as API response to the Japanese language.
In includes/class-omise-wc-myaccount.php and includes/gateway/abstract-omise-payment-base-card.php, we added the required translation texts to the variable that needs to be passed to the JS file.
3. Quality assurance
First, change site language to Japanese. You can follow this link for assistance. Now, you must replace the omise-ja.po and omise-ja.mo present in the container's folder var/www/html/wp-content/languages/plugins. Assuming you are in the root of our omise-woocommerce plugin, use the following command to copy omise-ja.po and omise-mo inside docker container.
1. Objective
Add Japanese translation for the error messages due to invalid card info. Added some other missing translation as well.
Jira Ticket: #324
2. Description of change
assets/javascripts/omise-payment-form-handler.js
to converted the message received as API response to the Japanese language.includes/class-omise-wc-myaccount.php
andincludes/gateway/abstract-omise-payment-base-card.php
, we added the required translation texts to the variable that needs to be passed to the JS file.3. Quality assurance
First, change site language to Japanese. You can follow this link for assistance. Now, you must replace the
omise-ja.po
andomise-ja.mo
present in the container's foldervar/www/html/wp-content/languages/plugins
. Assuming you are in the root of our omise-woocommerce plugin, use the following command to copyomise-ja.po
andomise-mo
inside docker container.🔧 Environments: