-
Notifications
You must be signed in to change notification settings - Fork 216
Twitter labels updated to 'X' #2914
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
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughChanged the vendor social field label from “Twitter” to “X” across backend export (privacy), social profile fields, and the admin UI. No data structures, logic, or signatures were modified. Input keys and models remain “twitter”; only the displayed/translated label text changed. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
includes/Privacy.php (1)
200-208: Add translator context for "X" (formerly Twitter) and regenerate POT/PO.Replace all __("X", "dokan-lite") uses with _x("X", "social network name (formerly Twitter)", "dokan-lite") and add a translators comment so exported labels aren't mistranslated.
Locations:
- includes/Privacy.php (around lines 200-202)
- includes/functions.php (around line 2287)
Suggested diffs:
- 'twitter' => __( 'X', 'dokan-lite' ), + /* translators: Social network name (formerly Twitter). */ + 'twitter' => _x( 'X', 'social network name (formerly Twitter)', 'dokan-lite' ),- 'title' => __( 'X', 'dokan-lite' ), + /* translators: Social network name (formerly Twitter). */ + 'title' => _x( 'X', 'social network name (formerly Twitter)', 'dokan-lite' ),Regenerate POT/PO so translators receive the new string/context.
🧹 Nitpick comments (1)
src/admin/pages/VendorSocialFields.vue (1)
20-23: LGTM; optional UX clarity.Label change is consistent. Optionally show “X (Twitter)” to aid recognition.
- <label for="twitter">{{ __( 'X', 'dokan-lite' ) }}</label> + <label for="twitter">{{ __( 'X (Twitter)', 'dokan-lite' ) }}</label>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
includes/Privacy.php(1 hunks)includes/functions.php(1 hunks)src/admin/pages/VendorSocialFields.vue(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: e2e tests (2, 3)
- GitHub Check: api tests (1, 1)
- GitHub Check: e2e tests (3, 3)
- GitHub Check: e2e tests (1, 3)
🔇 Additional comments (1)
includes/functions.php (1)
2285-2288: Add translator context for "X" (formerly Twitter) and verify Font Awesome icon
- Replace plain __('X', 'dokan-lite') with a contexted _x and translators comment; apply across the codebase. Example diff for includes/functions.php:
'twitter' => [ 'icon' => 'fa-brands fa-square-x-twitter', - 'title' => __( 'X', 'dokan-lite' ), + /* translators: Social network name (formerly Twitter). */ + 'title' => _x( 'X', 'social network name (formerly Twitter)', 'dokan-lite' ), ],
- Update all occurrences found: includes/functions.php (2286), includes/Privacy.php (202), src/admin/pages/VendorSocialFields.vue (21), tests/pw/pages/selectors.ts (7618), and ensure translation usage is consistent in any other files.
- Confirm fa-square-x-twitter is provided by your Font Awesome integration (CDN/package/WordPress admin). If not supported, replace or fallback (e.g., fa-twitter) and make icon classes consistent (VendorSingle.vue currently uses fa-twitter).
All Submissions:
Changes proposed in this Pull Request:
Related Pull Request(s)
https://github.com/getdokan/dokan-pro/pull/4531
Closes
How to test the changes in this Pull Request:
Changelog entry
Title
Detailed Description of the pull request. What was previous behaviour
and what will be changed in this PR.
Before Changes
Describe the issue before changes with screenshots(s).
After Changes
Describe the issue after changes with screenshot(s).
Feature Video (optional)
Link of detailed video if this PR is for a feature.
PR Self Review Checklist:
FOR PR REVIEWER ONLY:
Summary by CodeRabbit