-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Locale Support #26
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AviGawande I just reviewed the PR, added some comments over there. Kindly check and address the issues.
locale/hyperswitch-checkout.pot
Outdated
@@ -0,0 +1,268 @@ | |||
# Copyright (C) 2024 Hyperswitch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we are having 2 different pot files, generally it is preferred to have a single pot file across plugin to ensure consistency and simplicity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes will fix that and commit changes.
if (!empty($missing)) { | ||
echo "Found translation functions missing 'hyperswitch' text domain:\n\n"; | ||
foreach ($missing as $item) { | ||
echo "File: {$item['file']}\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't it be better to log the results to a file, or at least printing the output in a more structured format (JSON, CSV, etc.) to make it easier to review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you plz explain me what change to implement.
Hey @AviGawande Any updates? |
yes @gorakhnathy7 working on it |
@AviGawande why are we still keeping .po~ files ? possible to remove these and keeping only .po ones ? |
@vaibhavjuspay done, Pls Review. |
This PR fixes #6170 and added the locale support to WooCommerce Plugin.