[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] externalized strings

Hi, Helmut.
The helper method you want is in
org.eclipse.equinox.internal.provisional.p2.ui.IUPropertyUtils.

There is also a bug report open about moving this class to the core.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=253203

There can be a performance hit (esp if the localization files are on the network), so the standard property retrieval methods do not assume you want the localized versions of the properties.

susan
Inactive hide details for "Haigermoser, Helmut" <Helmut.Haigermoser@xxxxxxxxxxxxx>"Haigermoser, Helmut" <Helmut.Haigermoser@xxxxxxxxxxxxx>




          "Haigermoser, Helmut" <Helmut.Haigermoser@xxxxxxxxxxxxx>
          Sent by: p2-dev-bounces@xxxxxxxxxxx

          05/19/2009 07:54 AM
          Please respond to P2 developer discussions



To: "P2 developer discussions" <p2-dev@xxxxxxxxxxx>
cc:
Subject: [p2-dev] externalized strings


Hi @ll :)
I've had some issues displaying my available updates, thought I'd ask
the experts before filing a bz.

Basically, what I'm struggling with is externalized strings, once in my
product and all the time for my bundles.

In my product, the name is in the .product file is "%productName", with
the real name being stored in the "Bundle-Externalization" file.
Looks like pde/p2 does not translate that string at all, guess that's
either my fault or a real bug...

Also, when trying to display bundles' names I am only getting the
externalization keys when trying to look up the IU-Name property, a nice
feature there would be a method, maybe in ProvisioningHelper, that gets
the real name back to me, (getExternalizedString(String property, Locale
locale) or something)...

Any comments?
TIA,
Ciao, hh
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev

GIF image

GIF image

GIF image