[opencms-dev] NewsModule again / Localisation

Felix Engel flixflax at gmx.net
Tue Mar 11 15:25:33 CET 2003


Hello,

I took some more time to investigate the missing labels that occur
when installing NewsModule V4 on an V5.0_rc2 server.
The problem seems to be located in the localisation, which has changed
from the proprietary XML Format used in pre V5.0 versions to a
standard java.util.Resource Bundle technology. A <LABEL .../> tag is
resolved by the function

/**
 * Returns the language value of the requested label key.<p>
 *
 * @param keyName the key for the desired string
 * @return the resource string for the given key
 */
 public String getLanguageValue(String keyName)

The Bundle is, in my understanding, initialized in

 /**
   * Gathers all localization files for the workplace from the
	* different modules.<p>
	*
   * For a module named "my.module.name" the locale file
	* must be named
	* "my.module.name.workplace" and be located in
	* the classpath so that the resource loader
   * can find it.<p>
   *
   * @param cms for accessing system
   * resources
   */
private synchronized Set collectModuleMessages(CmsObject cms, String locale)

If I understood something wrongly, pleas correct me.

I have then tried to create a resource file and make it available to 
the system, however I did not find a combination where the system was
able to correctly resolve the given Resources.
Especially I am not sure what "classpath" refers to in the above
comment. Is it on the server Filesystem or in the VFS ?
And how do I find out the "classpath", if it is in the vfs.

Any ideas will be greatly apreciated.

Regards, Felix


		 


-- 
Fourth Law of Revision:
	It is usually impractical to worry beforehand about
interferences -- if you have none, someone will make one for you.




More information about the opencms-dev mailing list