omise / omise-woocommerce

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

[FRON-1472]: Japanese translation text added. #276

Closed aashishgurung closed 2 years ago

aashishgurung commented 2 years ago

1. Objective

Change the English text in the error message and the email to Japanese text.

Jira Ticket #1472

2. Description of change

Updated the translation files omise-ja.po and omise.pot include missing Japanese translation. The file omise-ja.mo is updated accordingly. Some files are updated to use the __() to get the translated text.

https://developer.wordpress.org/plugins/internationalization/localization/#command-line

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.

% 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

For error message

Case 1: All fields empty

all-empty

Case 2: Blank name field

empty-name

Case 3: Blank email field

empty-email

Case 4: Blank phone number field

empty-phone-number

Case 5: Blank email and phone number fields

email-phone-no-empty

Case 6: Blank name and phone number fields

name-phone-empty

Case 7: Blank name and email fields

name-email-empty

For email

Thank you page

thank-you-page

Email

email

🔧 Environments: