Hey Lars,
Maybe this helps?
Cheers Martin
Hi Alex, sorry for taking so long to answer, I still don't have a Mac and the client was fighting with other priority issues. Today we looked into this, and AFAICS standard Tycho or Eclipse does not provide a way to provide a custom info.plist or to change it. https://bugs.eclipse.org/bugs/show_bug.cgi?id=339526 was closed as won't fix. Also default Tycho does not seem to support it, we found https://github.com/buchen/fix-info-plist-maven-plugin which might do what we want, once we tried it, I will update this email thread. Best regards, Lars On Thu, Oct 21, 2021 at 6:59 AM Lars Vogel < lars.vogel@xxxxxxxxxxx> wrote: Thanks Alex, I will ask the client (who has the Mac, unfortunately I don't have one), to try that out.
On Wed, Oct 20, 2021 at 5:39 PM Alex Blewitt <alex.blewitt@xxxxxxxxx> wrote:
They are added by the OS rather than the app itself, based on the language of the runtime.
It might be that the generated info.plist has a CFBundleLocalization that only specified English, which would mean that the app works default to that for the OS provided entries.
You can add multiple languages in the info.plist as shown in this answer, and/or change it from English to German.
https://stackoverflow.com/questions/8350151/cfbundlelocalizations-info-plist-how-to-put-multiple-languages#8352129
If the plist isn’t an xml file you can use plutil to convert it from binary format to xml to do the edits. I forget the exact syntax but it’s something like plutil -convert xml1.
There’s also a plistbuddy executable somewhere in /usr/sbin that can help script these edits if you are looking to put it in a pipeline, and it doesn’t need to be in xml form to do that.
Sorry afk so can’t test these out directly now.
Alex
Sent from my iPhone 📱
On 20 Oct 2021, at 08:34, Lars Vogel <lars.vogel@xxxxxxxxxxx> wrote:
Hi Alex,
The Preferences and about menu entries come from us, so we can translate them.
The question is for the other standard menu items, like Hide, Show all, Services which are not contributed by our RCP app.
Best regards, Lars
Alex Blewitt <alex.blewitt@xxxxxxxxx> schrieb am Mi., 20. Okt. 2021, 17:29:
Is this the “standard” menu items like “preferences”, “hide” etc? Or is it all of them?
I think the “standard” names are taken from Mac rather than being provided in an NL file, based on what locale setting the mac is in.
Alex
Sent from my iPhone 📱
On 20 Oct 2021, at 07:53, Lars Vogel <lars.vogel@xxxxxxxxxxx> wrote:
Hi,
in a RCP app, the generated menu entries under Mac are not translated to German even though we start the application with the "-nl de. See rcp.png.
If we check other Mac applications like Safari, see the safari screenshot, these are in the correct language.
Does anyone know how to achieve the same for the RCP application under Mac?
Best regards, Lars
-- Eclipse Platform project co-lead CEO vogella GmbH
Haindaalwisch 17a, 22395 Hamburg Amtsgericht Hamburg: HRB 127058 Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel USt-IdNr.: DE284122352 Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com _______________________________________________ eclipse-dev mailing list eclipse-dev@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/eclipse-dev
_______________________________________________ eclipse-dev mailing list eclipse-dev@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/eclipse-dev
_______________________________________________ eclipse-dev mailing list eclipse-dev@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/eclipse-dev
_______________________________________________ eclipse-dev mailing list eclipse-dev@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/eclipse-dev
-- Eclipse Platform project co-lead CEO vogella GmbH
Haindaalwisch 17a, 22395 Hamburg Amtsgericht Hamburg: HRB 127058 Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel USt-IdNr.: DE284122352 Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com
-- Eclipse Platform project co-lead CEO vogella GmbH Haindaalwisch 17a, 22395 Hamburg Amtsgericht Hamburg: HRB 127058 Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel USt-IdNr.: DE284122352 Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com_______________________________________________ eclipse-dev mailing list eclipse-dev@xxxxxxxxxxxTo unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/eclipse-dev
|