You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by David Uebelacker <da...@uebelacker.eu> on 2007/10/30 14:18:47 UTC

[Trinidad] Change Translation / Resource Bundle

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

Re: [Trinidad] Change Translation / Resource Bundle

Posted by Matthias Wessendorf <ma...@apache.org>.
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 <da...@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