Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

AviGawande
Copy link

@AviGawande AviGawande commented Oct 6, 2024

This PR fixes #6170 and added the locale support to WooCommerce Plugin.

Copy link

@vaibhavjuspay vaibhavjuspay left a 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.

@@ -0,0 +1,268 @@
# Copyright (C) 2024 Hyperswitch

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.

Copy link
Author

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";

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.

Copy link
Author

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.

@gorakhnathy7
Copy link
Collaborator

gorakhnathy7 commented Oct 31, 2024

Hey @AviGawande Any updates?

@AviGawande
Copy link
Author

yes @gorakhnathy7 working on it

@vaibhavjuspay
Copy link

@AviGawande why are we still keeping .po~ files ? possible to remove these and keeping only .po ones ?

@AviGawande
Copy link
Author

@vaibhavjuspay done, Pls Review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants