google-code-export / swtxml

Automatically exported from code.google.com/p/swtxml
1 stars 1 forks source link

I18N Package is internal in the SwtXml-Plugin #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Extend SWTXML-Parser in a subclass
2. Try to write a new ILabelTranslator

What is the expected output? What do you see instead?
Creating of a specific LabelTranslator should be possible. But it isn't.
The interface in internal. 

What version of the product are you using? On what operating system?
0.0.5

Please provide any additional information below.

I need this feature to support inheritance. I.e: extend a layouted screen
with a sub class and use the layout of the superclass. (This is a standard
feature in the scope of code generation.) The SwtXmlParser class should use
classes to read the layout and i18n definitions. (The API should have a
better granularity.) I can't change this without access to the I18N package.

Original issue reported on code.google.com by ssu...@inteio.com on 12 Nov 2008 at 3:47

GoogleCodeExporter commented 9 years ago
Ok, good suggestion. I'll try to provide a way to use your own ILabelTranslator 
in
0.0.6. But, may I ask what's the use case is for this feature? Why not use plain
ResourceBundles for this as already supported? Your description sounds a bit 
like
you're trying to do more than translating captions to different languages... 

Original comment by ralf.ebert on 22 Nov 2008 at 6:49

GoogleCodeExporter commented 9 years ago
We have alot of UI plugins where we have plugin.properties for the plugin.xml 
translations, and we use message.properties for the rest, however the location 
is 
always under plugin name + /internal so it would be very nice if you could 
specify 
resourceBundle for all translations. Maybe even for each widget, if you have an 
enum 
where you don't want to have the translation spread across multiple translation 
files.

Original comment by mikkel.t...@gmail.com on 1 Jan 2009 at 6:07