Skip to content

Add Locale Support #26

Open
AviGawande wants to merge 3 commits intojuspay:mainfrom
AviGawande:locale-support
Open

Add Locale Support #26
AviGawande wants to merge 3 commits intojuspay:mainfrom
AviGawande:locale-support

Conversation

@AviGawande
Copy link
Copy Markdown

@AviGawande AviGawande commented Oct 6, 2024

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

Copy link
Copy Markdown

@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
Copy link
Copy Markdown

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
Copy Markdown
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";
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

gorakhnathy7 commented Oct 31, 2024

Hey @AviGawande Any updates?

@AviGawande
Copy link
Copy Markdown
Author

yes @gorakhnathy7 working on it

@vaibhavjuspay
Copy link
Copy Markdown

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

@AviGawande
Copy link
Copy Markdown
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