Fix: Localize 'Preferences' menu item in walkthrough#14829
Conversation
|
Hey @abhishek9773! 👋 Thank you for contributing to JabRef! We have automated checks in place, based on which you will soon get feedback if any of them are failing. We also use Qodo for review assistance. It will update your pull request description with a review help and offer suggestions to improve the pull request. After all automated checks pass, a maintainer will also review your contribution. Once that happens, you can go through their comments in the "Files changed" tab and act on them, or reply to the conversation if you have further inputs. You can read about the whole pull request process in our contribution guide. Please ensure that your pull request is in line with our AI Usage Policy and make necessary disclosures. |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨No code suggestions found for the PR. |
|
|
||
| ### Fixed | ||
|
|
||
| - Fixed localized walkthrough highlight for 'Preferences' menu item in Spanish. [#14822](https://github.com/JabRef/jabref/issues/14822) |
There was a problem hiding this comment.
This applies to all languages not just Spanish
There was a problem hiding this comment.
Hi @Siedlerchr , I have updated the CHANGELOG.md as requested. I moved the entry to the [Unreleased] section and generalized the description to reflect that the fix applies to all languages. My branch is also synced with the latest upstream/main. Ready for another look!
User description
Closes #14822
In the "Entry Table Customization" walkthrough, the highlight for the 'Preferences' menu item was hardcoded in English. I updated
WalkthroughAction.javato use the localization system so the highlight correctly finds the "Preferencias" menu item when the app is in Spanish.Steps to test
VISUAL TEST
Step 1: Start the tutorial from the Spanish Welcome Screen

Step 2: Follow the localized tooltip to open the "Archivo" menu

Step 3: Success - The highlight circle correctly identifies "Preferencias"

Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)PR Type
Bug fix
Description
Localize 'Preferences' menu item lookup in walkthrough
Uses Localization.lang() to find correct translated menu item
Fixes highlight not appearing for non-English languages
Ensures walkthrough works correctly in Spanish and other locales
Diagram Walkthrough
File Walkthrough
WalkthroughAction.java
Localize Preferences menu item resolverjabgui/src/main/java/org/jabref/gui/walkthrough/WalkthroughAction.java
NodeResolver.menuItem("Preferences")toNodeResolver.menuItem(Localization.lang("Preferences"))"Preferencias" menu item in Spanish
Spanish