Change augmentTitle property pattern

Hi everbody! I've got a table named "Clientes" in a jsp page. If I tick the table augmentTitle property, its title appears as "Clientes (1-20 of 32)". The thing is that I want the title to say the same, but in spanish. So it should be "Clientes (1-20 de 32)". How could I change the world "of" to "de"? Is there any hard coded javascript function that I can rewrite?

I'm using the "defaulttheme_es.jar" theme, that's one that is in spanish. But they haven't translated the augmentTitle property.

Thanks in advance.

[537 byte] By [linuc@] at [2007-11-26 8:35:23]
# 1

You should be able to create your own defaulttheme_es.jar with this modification. See

http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/the mes.html

and

http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/comp onents/theme_structure.html

Creating a Theme

The themes that ship with the components should not be altered. To change theme elements for your application, you should create a new theme, as described below:

1. Undeploy the application that will use the theme.

2.

Copy the defaulttheme to a subdirectory of the themes directory.

3.

Within the new theme directory, you can:

* Add images to the images directory and remap the appropriate image keys to point to the new images in images.properties. See Theme Images and The images.properties file for more information.

*

Edit the messages.properties to change text produced by the components. See Theme Messages for more information.

* Make changes to the styles in the CSS stylesheets, noting that only color changes are recommended.

If you are adding new styles, you must add the style selectors and definitions to the CSS stylesheets. See Theme Stylesheets and Manifest File for more information.

4.

Build your customtheme JAR file by using the modified theme files such as additional images, styles, js, messages, etc.

5.

Update the new theme's MANIFEST.MF appropriately for the theme.

For example, if your theme is called customtheme:

* Specify the theme name

X-SJWUIC-Theme-Name: customtheme # Theme name.

* Specify the paths to the theme, messages, images, JavaScript, and stylesheets.

X-SJWUIC-Theme-Prefix: /theme # Relative path to the theme.

X-SJWUIC-Theme-Messages: com.sun.web.ui.customtheme.messages.messages

# Location of messages.properties file.

X-SJWUIC-Theme-Images: com.sun.web.ui.customtheme.properties.images

# Location of image.properties file.

X-SJWUIC-Theme-JavaScript: com.sun.web.ui.customtheme.properties.JavaScript

# Location of javascript.properties file.

X-SJWUIC-Theme-Stylesheets: com.sun.web.ui.customtheme.properties.stylesheets

# Location of stylesheet.properties file.

# Edit the application's web.xml to specify the theme name to enable the application to use the theme. For example:

<context-param>

<param-name>com.sun.web.ui.DEFAULT_THEME</param-name>

<param-value>customtheme</param-value>

</context-param>

# Build your application with the new theme.

# Deploy your application.

utsukushii at 2007-7-6 22:04:26 > top of Java-index,Development Tools,Java Tools...
# 2
Thanks! It worked great!
linuc@ at 2007-7-6 22:04:26 > top of Java-index,Development Tools,Java Tools...