Hello Enrico!
I don't understand your first problem. My only suggestion is that you could
try to singlestep through the ResourceLoaderWrapper to see what it is trying
to do.
For your second problem, that is just the way it is. All translations are
required to be located in similar files like:
<package>.<resourcefile>.properties
<package>.<resourcefile>_fr.properties
<package>.<resourcefile>_es.properties
<package>.<resourcefile>_it.properties
<package>.<resourcefile>_ru.properties
We have chosen org.argouml.i18n as the package for all ArgoUML localized
strings so as long as the code uses the ArgoUML translator
(org.argouml.i18n.Translator.localize(String)) the files must have that
package.
/Linus
2009/10/22 Enrico Da Ros <[email protected]>
> Hi!
>
> Since i'm working on modules i faced a couple of brand new "problems" about
> resources, and i don't know if it's a choice made by design or simpy
> something
> that was born like this. I'm working on 0.28.1
>
> *) The first problem is that to add icons to my module i would like to rely
> on
> the ResourceLoaderWrapper. To accomplish this i added a new HashMap to
> store the
> custom id/base name couples and some function to use them while ArgoUML
> loads
> them into the iconCache. BUT i tryed at the same time to add a resource
> path
> through ResourceLoaderWrapper.addResourceLocation.. and it doesn't work...
> or
> better i can't get the resource... the only mean i have is to add inside my
> module the package "org.argouml.Images" filling it with my images. Why i
> can't
> add my custom package?
> *) The second problem is about internationalization. The only way i founded
> to
> let the various ResourceLoaders see my resources was to put my files in my
> module under "org.argouml.i18n", is there a reason for this?
>
> Thank you to all!
>
> EnDaRos
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
> ------------------------------------------------------
>
> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2410116
>
> To unsubscribe from this discussion, e-mail: [
> [email protected]].
> To be allowed to post to the list contact the mailing list moderator,
> email: [[email protected]]
>
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2412934
To unsubscribe from this discussion, e-mail:
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email:
[[email protected]]