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

refactor: improve translation handling #434

Merged
merged 8 commits into from
Nov 27, 2024

Conversation

Soare-Robert-Daniel
Copy link
Contributor

@Soare-Robert-Daniel Soare-Robert-Daniel commented Nov 12, 2024

Summary

  • Move HTML and spaces out of the translate strings.
  • Refactor untranslatable strings.
  • Add translator comments.
  • Remove some deadlines.

Pot file: woocommerce-product-addon.pot.zip

Will affect visual aspect of the product

NO

Screenshots

Test instructions

  • Check the strings in the plugin and .pot file

Check before Pull Request is ready:

Closes #433

@Soare-Robert-Daniel Soare-Robert-Daniel self-assigned this Nov 12, 2024
@Soare-Robert-Daniel Soare-Robert-Daniel linked an issue Nov 12, 2024 that may be closed by this pull request
@Soare-Robert-Daniel Soare-Robert-Daniel marked this pull request as ready for review November 18, 2024 10:14
@pirate-bot
Copy link
Contributor

pirate-bot commented Nov 18, 2024

Plugin build for e86d469 is ready 🛎️!

@pirate-bot pirate-bot added the pr-checklist-incomplete The Pull Request checklist is incomplete. (automatic label) label Nov 18, 2024
@Soare-Robert-Daniel Soare-Robert-Daniel added the pr-checklist-skip Allow this Pull Request to skip checklist. label Nov 18, 2024
@pirate-bot pirate-bot added pr-checklist-complete The Pull Request checklist is complete. (automatic label) and removed pr-checklist-incomplete The Pull Request checklist is incomplete. (automatic label) labels Nov 18, 2024
Copy link
Contributor

@abaicus abaicus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Soare-Robert-Daniel I left some comments regarding how placeholders are treated. Let me know if you have any questions.

backend/templates/admin-settings.php Outdated Show resolved Hide resolved
backend/templates/admin-settings.php Outdated Show resolved Hide resolved
classes/admin.class.php Outdated Show resolved Hide resolved
inc/admin.php Outdated Show resolved Hide resolved
inc/arrays.php Outdated Show resolved Hide resolved
inc/files.php Outdated Show resolved Hide resolved
inc/files.php Outdated Show resolved Hide resolved
inc/prices.php Outdated Show resolved Hide resolved
templates/admin/ppom-fields.php Outdated Show resolved Hide resolved
templates/render-fields.php Outdated Show resolved Hide resolved
@Soare-Robert-Daniel Soare-Robert-Daniel merged commit 6dd414f into development Nov 27, 2024
5 checks passed
@Soare-Robert-Daniel Soare-Robert-Daniel deleted the fix/translations branch November 27, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prepare the plugin for localization
3 participants