[prev in list] [next in list] [prev in thread] [next in thread]
List: myfaces-user
Subject: Re: [Trinidad] Change Translation / Resource Bundle
From: "Matthias Wessendorf" <matzew () apache ! org>
Date: 2007-10-30 13:25:11
Message-ID: 71235db40710300625t2696f75j26de30af5eab063d () mail ! gmail ! com
[Download RAW message or body]
Hi David,
you can replace those "words" with a custom skinning.
You can see in the trinidad-skins.xml in the demo bundle how you can add
a resource bundle name:
<skin>
<id>
purple.desktop
</id>
<family>
purple
</family>
<render-kit-id>
org.apache.myfaces.trinidad.desktop
</render-kit-id>
<style-sheet-name>
skins/purple/purpleSkin.css
</style-sheet-name>
<bundle-name>
org.apache.myfaces.trinidaddemo.resource.SkinBundle
</bundle-name>
</skin>
And the resource bundle code looks like this:
package org.apache.myfaces.trinidaddemo.resource;
import java.util.ListResourceBundle;
public class SkinBundle extends ListResourceBundle
{
@Override
public Object[][] getContents()
{
return _CONTENTS;
}
static private final Object[][] _CONTENTS =
{
{"af_tableSelectMany.SELECT_COLUMN_HEADER", "Select A Lot"},
{"af_tableSelectOne.SELECT_COLUMN_HEADER", "Select Just One"},
...,
};
HTH,
Matthias
On 10/30/07, David Uebelacker <david@uebelacker.eu> wrote:
> Hi,
>
> is there a way to change the translations used by trinidad ?
> In detail i want to change the translation of the selection column
> header ("Auswählen" in the german bundle).
>
> Thanks,
>
> David
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic