Closed sapayth closed 2 weeks ago
The pull request introduces various modifications across multiple files, primarily focusing on enhancing internationalization and localization support. Changes include updating static strings to use translation functions, improving the formatting of messages, and refining HTML output for better readability. These updates aim to ensure that user-facing text is translatable and accessible to a broader audience, while also maintaining code clarity and structure.
File | Change Summary |
---|---|
Lib/WeDevs_Settings_API.php |
Updated placeholder text for wpuf-settings-search input to use esc_attr__() for localization. |
admin/html/form-settings-post.php |
Wrapped static text "Default %s %s" in __() for localization. |
includes/Admin/Admin_Subscription.php |
Modified expiration message display using printf for better localization and clarity. |
includes/Admin/views/support.php |
Replaced static strings with __() and esc_html_e() for translation; improved structure with printf() for dynamic content. |
includes/Ajax/Admin_Form_Builder_Ajax.php |
Adjusted formatting for readability; no functional changes. |
includes/Free/Form_Element.php |
Enhanced HTML output formatting; replaced inline text with localized strings using esc_html_e() . |
includes/Free/Free_Loader.php |
Replaced static description string with sprintf for dynamic content and improved localization. |
includes/Traits/TaxableTrait.php |
Updated localization functions for security and changed text domain for tax-related UI elements. |
wpuf.php |
Changed text domain in wpuf_upgrade_notice function for localization consistency. |
Objective | Addressed | Explanation |
---|---|---|
Frontend JS error fix (#565) | ❌ | Changes do not address JS initialization issues. |
includes/Admin/Admin_Subscription.php
include enhancements related to subscription management, which may relate to the overall user experience improvements targeted in the main PR.includes/Admin/views/support.php
enhance localization, which connects to the main PR's emphasis on improving user interface elements.🐰 In the land of code where changes bloom,
Localization spreads, dispelling the gloom.
With strings now wrapped in a translatable way,
Our plugin shines bright, come what may!
So hop along, dear users, and see,
The magic of updates, as fresh as can be! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
One is not fixed from the sheet.
Steps: Settings >> Tax Settings >> Please refer to the Screenshots to check the unaffected strings
Screenshot: link
fixes #565
Issue: Some strings are not getting translated properly.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores