question of resource bundle handling in Eclipse [message #200738] |
Tue, 24 February 2004 04:08 |
Eclipse User |
|
|
|
Originally posted by: kk.dev.null
I'm having this issue with the way Eclipse is handling resource bundles
(i18n
stuff).
For example, I'm developing an app which makes use of a set
of API (provided by someone else). The API comes with its
set of resources in the jar file, and methods to get the localized
strings. If I run an app (using that API) on the command line,
the localized strings are returned correctly.
Now, I write my app as an eclipse plugin, and package the API
in another non-ui plugin. Everthing is working fine,
except the localized strings. In the eclipse environment,
the resource file just can't be loaded normally like
ResourceBundle bundle =
ResourceBundle.getBundle("com.domain.sdk.i18n.resources");
It just couldn't find it, coz the API jar is invoked from my plugin code,
and the path is wrong.
In that case, the localized strings provided by the API are not working
anymore.
Now, we can't ask the vendor to package the SDK so that it knows it
is being invoked in Eclipse, but we need the localized strings.
How do you handle this?
TIA.
kk
|
|
|
Powered by
FUDForum. Page generated in 0.02566 seconds