[MenuIcons] Stripping ... in German locale doesn't work any more
Closed this issue · 14 comments
I have created icons for the German locale. There the menu entries with "..." have a blank between the text and the "...", e.g. "Speichern unter ..." ("Save as...").
Therefore I have named the respective files with a blank at the end (Speichern unter .ico). That worked well for a long time. Now it doesn't any more.
I see that it still works for the provided files for English locale which don't have this blank.
I restored MenuIcons v1.2.2 and it still does not work.
So maybe it is related to the update of NPP from v7 to v8?
I understand your issue. In the future I will consider moving the images into a en-us folder.
Thank you for your answer, this seems to be related to the other issue I created.
Do you have an idea for a solution for this issue?
Please test the new version 1.24 of MenuIcons. The icon folder has been localized to EN-US.
Please, read my first post again. This issue is different from #9, it is not about the localized folder but about "Menu item to file name mapping".
The second option "Plain text match (strip '&' and '...') does not work with German locale with menu items that contain '...'.
Here are two examples:
MenuIcons.txt: &Öffnen ? 41002 ==> C:\Program Files\Notepad++\Plugins\MenuIcons\DE\Datei\Öffnen ?.ico
&Drucken ? 41010 ==> C:\Program Files\Notepad++\Plugins\MenuIcons\DE\Datei\Drucken ?.ico
In MenuIcons.txt there is a "?" at the place of the "...", which I think is wrong because adding it to the file name does not help.
Maybe related but different issues:
- The menu item names don't show the underlined letter marked with "&" in MenuIcons.txt.
- Do you know why most icons vanish after a few actions in Notepad++?
Thank you very much! The icons are back.
Now I understand why it even did not work with older MenuIcons versions: They must have changed the "..." in the German locale together with the wording of several menu items with a Notepad++ update some time ago.
BTW: Why don't you use the option "Command ID match" for the icons that come with the plugin? Wouldn't that work with any locale and prevent problems with such changes in the wording of menu items?
Regarding: - Do you know why most icons vanish after a few actions in Notepad++?
Unfortunately it's a known issue related to the use of an older menu update function in N++ code. Last time it was discussed, it is related to a change to the recent file list... that triggers some menu updates... that erase the icons.
There are more actions than this: Open file from workspace window (sometimes) and open configuration file of any plugin from within the plugins menu.
So maybe the trigger is to open any file from within NPP.
The trigger is related to a menu change by NPP due to a user action. Opening/closing a file will probably alter the recent file list as well.
You are right, it does alter the file list.
Did you see this question above?
BTW: Why don't you use the option "Command ID match" for the icons that come with the plugin? Wouldn't that work with any locale and prevent problems with such changes in the wording of menu items?
I believe the crash issue was resolved in the latest version 1v25.
There was no crash but the icons simply were not displayed. But this issue is solved, indeed. Thank you very much!