A quick and dirty localizable template. It uses a resource bundle to retrieve the several language-dependend terms of the Wiki-webapplication. To find the right one, it tries to resolve the browsers prefered language and falls back to a default language, if no matching special resource bundle was found.

The look and feel of the Default Template has not been changed in any way.

Supported languages:

  • English (the original language of JSPWiki)
  • German
  • Spanish (contributed by Ascander Suarez, via email)

Created by Olaf K.

Screenshot#

todo

Comments/Discussion#


I installed the i18n template into JSPWiki v2.0.52. and followed the install by install.txt. I copied JSPWiki_en.properties to JSPWiki_ko.properties in the i18n directory.

But it doesn't work at all.

The screen message was

"Can't find bundle for base name i18n.JSPWiki, locale ko "

Am I something missing or is it doesn't work the current version ?

Thanks.

youngho


I think you should move JSPWiki_ko.properties into JSPWiki.properties.

Besides I noticed a bug in install.txt: template i18n should go into templates/default/i18n instead of WEB-INF/templates/default/i18n

Regards,

Siaco


Siaco is right, It really should go into templates/default/i18n instead of WEB-INF/templates/default/i18n.

Regards,

Turbo, 05-01-21


Olaf, all,

I believe i18n is an old library. It was not working with the stable version of JSPWiki (error when accessing the edit template). Fortunately, it is now working with the fmt taglibg.

I replaced i18n it with fmt doing the following: At the begginig, replace i18n wit the newer fmt library and declare the resource bundle.

<%@ taglib uri="/WEB-INF/fmt.tld" prefix="i18n" %>

...

<i18n:setBundle basename="ApplicationsResources" /> } Daniel danielfaria18@gmail.com

How do put JSPWikki in portuguese?

Eventually, you could rename every i18n tag to fmt ... because it is somewhat confusing the use of i18n iso. fmt

Regards,

--mariano

Mariano Barcia

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
zip
jspwiki-template-i18n.zip 51.1 kB 1 05-Mar-2004 04:20 JohnVolkar
« This page (revision-12) was last changed on 10-Oct-2007 17:11 by JanneJalkanen