Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to externalize strings for fragment's resources
How to externalize strings for fragment's resources [message #559230] Thu, 16 September 2010 02:21 Go to next message
Ralf Zahn is currently offline Ralf Zahn
Messages: 32
Registered: July 2009
Member
Hi,

I know that fragments can be used to create language packs for plugins, but how can I externalize strings in the manifest and the fragment.xml?

A possibility would be to create a language pack for both plugin and fragment, but this would make the language pack dependent of the fragment.

Any hints?
Re: How to externalize strings for fragment's resources [message #559341 is a reply to message #559230] Thu, 16 September 2010 07:50 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Ralf Zahn wrote:
> Hi,
>
> I know that fragments can be used to create language packs for plugins,
> but how can I externalize strings in the manifest and the fragment.xml?

In your fragment you still use something like:
Bundle-Localization: fragment-win32

and then you can use keys in your fragment.xml and Bundle-Name:
%fragmentName just like in a real bundle.

To provide a new language pack for it, you either include your other
properties files in your host plugin language pack, or you provide a
different fragment to the same host plugin.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Possible to avoid loading images twice?
Next Topic:Copy and paste problems in ToolBar Text widget
Goto Forum:
  


Current Time: Thu Aug 28 23:34:05 EDT 2014

Powered by FUDForum. Page generated in 0.04052 seconds