You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The special menus on OS X are only handled properly if one uses the english names, the comment in the source describes this as a hack. I made another hack ;-) which instead uses the 'sublabel'-property to detect those menus. sublabel seems to do nothing on OS X, so it's maybe a viable solution before a real localization mechanism is available for Electron.
If you like, I'll submit a PR.
The text was updated successfully, but these errors were encountered:
The modification I made is only in code for OSX , so other platforms aren't affected. I have also documented this in the section for building menus on OS X, which already mentions those specal menus.
Of course if you are using 'Windows' and 'Help' as a label (there is no equivalent for 'Services' on Windows, for example) the this could be a problem, but in my opionion making a multi-platform app always involves creating appropriate menus for each platform separately.
The sublabel shows on Windows and Linux, so if you reuse the same menu on different platforms you will see OSX_WINDOW_MENU appearing on Windows and Linux. I agree with you that apps should create different menus for different platforms, but on Electron's side we have to ensure things work when user reuses one menu for all platforms.
Also I think though it is OK to use hacks in implementations, we should not make the API look like a hack.
The special menus on OS X are only handled properly if one uses the english names, the comment in the source describes this as a hack. I made another hack ;-) which instead uses the 'sublabel'-property to detect those menus.
sublabel
seems to do nothing on OS X, so it's maybe a viable solution before a real localization mechanism is available for Electron.If you like, I'll submit a PR.
The text was updated successfully, but these errors were encountered: