Admin: Settings/Docs plugin row links + pin Settings first#30
Conversation
Re-applies feat/settings-additions (PR #6) onto post-rename admin class.
📝 WalkthroughWalkthroughThis PR adds custom plugin row action links (Settings and Docs) to the WordPress admin plugins page, adjusts the Settings submenu positioning to appear above CPT submenus, and updates translation catalogs to reflect the new and modified UI strings. ChangesPlugin action links and menu positioning
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@languages/open-trust-center-by-ettic-nl_NL.po`:
- Around line 1092-1094: The Dutch translation for the new "Docs" admin label is
missing (msgid "Docs") in languages/open-trust-center-by-ettic-nl_NL.po; add the
appropriate Dutch string to msgstr (e.g., "Documentatie" or preferred term) so
nl_NL users see the localized label; this message is used from
includes/class-ettic-otc-admin.php (reference at line where __("Docs") is
registered) so update msgstr for msgid "Docs" accordingly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: c27ca320-7062-47a6-a2b3-19e4b6f2dfff
📒 Files selected for processing (3)
includes/class-ettic-otc-admin.phplanguages/open-trust-center-by-ettic-nl_NL.polanguages/open-trust-center-by-ettic.pot
| #: includes/class-ettic-otc-admin.php:104 | ||
| msgid "Docs" | ||
| msgstr "" |
There was a problem hiding this comment.
Add Dutch translation for the new “Docs” label.
msgstr is empty for the new string, so nl_NL users will see the English label in the plugin row.
💡 Proposed fix
#: includes/class-ettic-otc-admin.php:104
msgid "Docs"
-msgstr ""
+msgstr "Documentatie"📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| #: includes/class-ettic-otc-admin.php:104 | |
| msgid "Docs" | |
| msgstr "" | |
| #: includes/class-ettic-otc-admin.php:104 | |
| msgid "Docs" | |
| msgstr "Documentatie" |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@languages/open-trust-center-by-ettic-nl_NL.po` around lines 1092 - 1094, The
Dutch translation for the new "Docs" admin label is missing (msgid "Docs") in
languages/open-trust-center-by-ettic-nl_NL.po; add the appropriate Dutch string
to msgstr (e.g., "Documentatie" or preferred term) so nl_NL users see the
localized label; this message is used from includes/class-ettic-otc-admin.php
(reference at line where __("Docs") is registered) so update msgstr for msgid
"Docs" accordingly.
Supersedes #6, which was branched pre-rename and edits files the rename deleted (
class-opentrust-admin.php,opentrust.pot), so it can no longer merge. This re-applies the same two tweaks onto the currentclass-ettic-otc-admin.php:show_in_menu.Docs link URL is carried over unchanged from #6.
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
New Features
Localization