omise / omise-woocommerce

Omise WooCommerce Plugin
https://docs.opn.ooo/woocommerce-plugin
MIT License
47 stars 27 forks source link

[ENGA3-324]: Added a few missing Japanese translation. #308

Closed aashishgurung closed 2 years ago

aashishgurung commented 2 years ago

Objective

Add a few missing Japanese translation.

Jira Ticket: #324

Description of change

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.

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.

% docker cp languages/omise-ja.po <CONTAINER_ID>:/var/www/html/wp-content/languages/plugins
% docker cp languages/omise-ja.mo <CONTAINER_ID>:/var/www/html/wp-content/languages/plugins

đŸ”§ Environments:

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information