Skip to content

Conversation

@Computerdores
Copy link
Collaborator

@Computerdores Computerdores commented Sep 1, 2025

Summary

Reimplement KDE's system for autogenerating mnemonics1 which also incorporates & markings when present, but doesn't require them to be present.

Currently only works for the drop downs but could probably be adopted for the menu bar as well.

Example - File menu with all & removed from translations:
grafik

Possible Future PRs:

  • removing & from translations where now unnecessary
  • adopting it for the QMenuBar at the top
  • adopting it for buttons in windows and the like

Tasks Completed

  • Platforms Tested:
    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested For:
    • Basic functionality
    • PyInstaller executable

Footnotes

  1. See Wiki, Headerfile and Source Code

@CyanVoxel CyanVoxel added Type: Enhancement New feature or request Type: UI/UX User interface and/or user experience Type: Translations Modifies translation keys or translation capabilities. labels Sep 1, 2025
@CyanVoxel CyanVoxel moved this to 👀 In review in TagStudio Development Sep 1, 2025
Copy link
Member

@CyanVoxel CyanVoxel left a comment

Choose a reason for hiding this comment

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

Looks good on Fedora 42 KDE and doesn't intrude on macOS 15 👍
Might be good to move this to a separate file rather than keep it in the main_window.py one, but like you said that can be for a future PR.

logger = structlog.get_logger(__name__)


def remove_accelerator_marker(label: str) -> str:
Copy link
Member

Choose a reason for hiding this comment

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

Just a note, not requiring a change here: There's some similar functionality in change_language() of translations.py that's currently only targeting macOS

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

give me a sec to fix that

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nvm, separate pr in a sec ^^

Copy link
Member

Choose a reason for hiding this comment

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

Whoops, just now saw this

@CyanVoxel CyanVoxel added this to the Alpha v9.5.4 milestone Sep 1, 2025
@CyanVoxel CyanVoxel moved this from 👀 In review to 🍃 Pending Merge in TagStudio Development Sep 1, 2025
@CyanVoxel CyanVoxel merged commit c16445f into TagStudioDev:main Sep 1, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from 🍃 Pending Merge to ✅ Done in TagStudio Development Sep 1, 2025
@Computerdores Computerdores deleted the feat/auto-mnemonics branch September 1, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement New feature or request Type: Translations Modifies translation keys or translation capabilities. Type: UI/UX User interface and/or user experience

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants