Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] How to make the Mac generated menu entries language specific in RCP?

Hello,

We tried Alex suggestions with the help of the
https://github.com/buchen/fix-info-plist-maven-plugin plug-in and the
generated info.plist contains the following entries:

<key>CFBundleLocalizations</key>
    <array>
        <string>English</string>
        <string>French</string>
        <string>German</string>
    </array>

See attachment for the complete file.

We also tried with the language keys, as we saw that
https://www.portfolio-performance.info/ uses these keys. Unfortunately
this app also does not translate the About, Preferences, Hide, Show
all, Services. See attached screenshot.

<key>CFBundleLocalizations</key>
    <array>
        <string>en</string>
        <string>fr</string>
        <string>de</string>
    </array>

For testing we added the "-nl de" as a fixed program argument.

Does anyone know what we are missing?

Best regards, Lars

On Wed, Jan 19, 2022 at 12:02 PM Lars Vogel <lars.vogel@xxxxxxxxxxx> wrote:
>
> HI Martin,
>
> thanks, I also found it and I testing it, see my note from my previous email.
>
> > 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 Wed, Jan 19, 2022 at 11:21 AM Martin Lippert <mlippert@xxxxxxxxx> wrote:
> >
> > Hey Lars,
> >
> > Maybe this helps?
> > https://github.com/buchen/fix-info-plist-maven-plugin
> >
> > 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@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

Attachment: Info.plist
Description: Binary data

Attachment: portfolio.PNG
Description: PNG image


Back to the top