Recent

Author Topic: HowTo: MacOS AppMenu multilingual?  (Read 82 times)

wittbo

  • Jr. Member
  • **
  • Posts: 67
HowTo: MacOS AppMenu multilingual?
« on: November 18, 2019, 01:16:25 pm »
As described on this platform, I added a MacOS specific "Apple" menu as first menu in the menu bar. Everything works as expected, but: those items, which are added automatically (s. screenshot) are always in english language. Does anyone know, how to get them multilingual, i.e. german?

-wittbo-
Lazarus 2.0.4  with FPC 3.0.4a
MBAir with MacOS 10.14.5
iMac with MacOS 10.13.6

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2283
    • havefunsoft.com
Re: HowTo: MacOS AppMenu multilingual?
« Reply #1 on: November 18, 2019, 05:48:52 pm »
There was a request to add support for resource strings in Application menu.

I did insist though that macOS would automatically translate menus (which it seemed to be doing for Carbon).
After some research, the automatic translation turned out not to be the truth.

so the plan is to make captions as a resource strings for Cocoa.
This will leave an option for a developer to control the strings.

Translations are available here: https://wiki.freepascal.org/macOS_Translation
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz