AW: [opencms-dev] NewsModule again / Localisation

Oppermann, Joerg Joerg.Oppermann at t-systems.com
Tue Mar 11 15:54:06 CET 2003


Hallo Felix,

I investigated some time too and can confirm your results. There was a major change between rc1 and rc2 in the language resource handling. 
To support old resource handling you have to set compatibility.support.oldlocales=true in the opencms.properties. But that not enough to do - unfortunately  there was a bug in the new implementation. I have reported it in bugzilla and should be fixed in next version.

http://www.opencms.com/cgi-bin/bugzilla/show_bug.cgi?id=55

I have fixed it for myself too, as workaround you can extract the attached file to the classes dir of your webapp or checkout a new version of com/opencms/workplace/CmsXmlLanguageFile from CVS.

best regards 
Joerg


-----Ursprungliche Nachricht-----
Von: Felix Engel [mailto:flixflax at gmx.net]
Gesendet: Dienstag, 11. Marz 2003 15:26
An: Opencms Development list
Betreff: [opencms-dev] NewsModule again / Localisation


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: CmsXmlLanguageFile_fix.zip
Type: application/octet-stream
Size: 3449 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030311/8ffb9f46/attachment.obj>


More information about the opencms-dev mailing list