Skip to content
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

Global search missing in languages other than English on MacOS (regression) #5657

Open
rolandlo opened this issue May 2, 2024 · 2 comments

Comments

@rolandlo
Copy link
Member

rolandlo commented May 2, 2024

Operating System

Mac OS

(Linux only) Distribution

No response

(Linux only) Desktop Environment

No response

(Linux Only) Display Server

None

Installation Method

built from source

Xournal++ Version

master

libgtk Version

3.24.38

Bug Description

On MacOS there is a global search in the help menu.
grafik
Since commit 2cc386f Merge Crowdin updates however the global search is only available when the language is set to English, not with other languages.

Interestingly when I change the menu name in another language from the translated string back to "_Help" it works again.
So this patch fixes the issue (not in the desired way, but anyway) for the German language.

diff --git a/po/de.po b/po/de.po
index eb0cfc7f9..1a9688abc 100644
--- a/po/de.po
+++ b/po/de.po
@@ -4132,7 +4132,7 @@ msgstr "Pausieren"
 
 #: ../ui/mainmenubar.xml:855
 msgid "_Help"
-msgstr "_Hilfe"
+msgstr "_Help"
 
 #: ../ui/mainmenubar.xml:859
 msgid "Help"

Expected Behaviour

I would expect global search for all languages on MacOS.

Steps to Reproduce

  1. Run xournalpp on MacOS
  2. Open menu Help (translated) and observe that it only shows the global search if the menu is called "Help" (i.e. it is not translated)

Additional Context

No response

@rolandlo rolandlo added bug merge proposed Merge was proposed by maintainer labels May 2, 2024
@bhennion bhennion added os::mac and removed merge proposed Merge was proposed by maintainer labels May 3, 2024
@bhennion
Copy link
Contributor

bhennion commented May 3, 2024

Just out of curiosity, what does this searchbar allow you to search for?

@rolandlo
Copy link
Member Author

rolandlo commented May 3, 2024

It allows to search for menu entries in first place (kind of like HUD). See https://support.apple.com/de-ch/guide/mac-help/hlpvw003/mac
We could also create and install an Apple help book for further help, see https://wiki.lazarus.freepascal.org/Add_an_Apple_Help_Book_to_your_macOS_app and https://www.youtube.com/watch?v=8fxCR7WaMWQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants