Hi Fabrice,

This methode is used in the templates. Check this in file include/declarations.inc

public String getResourceBundle (String resourceName, String defaultValue, JahiaData jData){
    String resourceBundle = "jahiatemplates.Corporate_portal_templates";
     ResourceBundle res = null;
     String resValue = null;
     try {
res = ResourceBundle.getBundle(resourceBundle,jData.params().getLocale());
          resValue = res.getString(resourceName);
     } catch ( MissingResourceException mre ) {
     }
     if ( resValue == null ){
          resValue = defaultValue;
     }
     return resValue;
} // getResourceBundle

Cheers,

Philipoe

At 11.07.2005 11:25, you wrote:
Hi all,

I'm currently trying to translate some parts of the potlets's (bookmark portlet ) source code
 using getResourceBundle method.

I have seen that this method works well in the jahia portail's context.
But my page included a porlet wich the .jsp files work in another context (located in another directory) in which, of course, this method doesn't work.

My probleme is that i don't find the getResourceBundle method (with 3 parameters ) declaration in the Javadoc.

I find only methods with one or two parameters.

example getResourceBundle("user","user",jData)


Can you tell me where this method is defined ?

Thanks a lot in advance!
Fabrice


Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
<http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com>Téléchargez le ici !

-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company

Reply via email to