[ENGA3-324]: Added Japanese translation for the error messages. #301
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: