Thursday, September 17, 2009

Adding a multi-lingual link to Header or Footer in Lotus Connections 2.5

According to the InfoCenter, it is quite simple to add additional content such as links to the header of the footer. What the InfoCenter doesn't mention, how you could have the labels of these links multilangual. But fortunately, that's not very complicated.

For editing the header or footer itself, follow the instructions in the InfoCenter. But instead of writing the label of a link directly to the file, use a placeholder similar to the existing ones, like {{ label.header.mylink }}.

To add the label: for each component, locate the lc.util.web-2.5.jar file - should be in the WEB-INF/lib of the the web modules. This jar file contains the resource files. Open the file for edit (use a proper archive tool*) and search for the package/path That path contains the resource files. Edit the resource files for your language and add the label (i.e. label.header.mylink) and a value in the proper language. Important: add the label you are using at least to the file, that is used as fallback if a label is not defined in the localized properties file.

*: If you have no tool to edit the files directly in the jar file, you could also rename the .jar file to a .zip file, extract it, edit the files, compress it again as .zip and rename it back to .jar

No comments: