It does. We'll name it JyveLocalization then. In your system that's a +1, I
guess :-).


>
> > If there is no such possibility (like Bookmarking a FAQ directly), this
> > would enable us to create a static resource object in MainMenu (Jyve's
> > main class, isn't it), so we don't have to load all resources again and
> > again in each class.
> >
> > like:
> > public static ResourceBundle JyveResources =
> > ResourceBundle.getBundle("JyveResources",
> > LocaleChosenByUserInConfigFile);
>
> You could do it as a singleton so that it is only loaded once. Singleton's
> are your friends. Get to love them and know them. ;-)
>
> More like:
>
> JyveLocalization.getInstance().getString("identifier")
>
> In getInstance() you could execute the code you wrote above in order to
> define the name of the resources file. That name could be retrieved from the
> TurbineResources.properties file.
>
> Also, I use the word JyveLocalization (or JyveLocal) in order to make the
> difference between resources (which should be defined in
> TurbineResources.properties) and your localization efforts which would
> reside in different files.
>
> Make sense?
>


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to