Thank you for the helt.. it works But where is the path for myapp.css ? I put myapp.css in WEB-INF/skins/myapp.css and not works.
Thanks _________________ Att, Leandro Oliveira de Andrade 2011/4/1 Cédric Durmont <[email protected]> > Hello, > > You have to write a java class similar to the example below. The > "CONTENTS" list contains a pair of Strings : the first is the key to > the element to rename, the second is the new name. > To enable this class, you have to declare it in your skin definition > (WEB-INF/trinidad-skins.xml ). The relevant part is the <bundle-name> > tag : > ... > <skin> > <id>myapp.desktop</id> > <family>myapp</family> > <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id> > <style-sheet-name>skins/myapp/myapp.css</style-sheet-name> > <bundle-name>somepackage.Translation</bundle-name> > </skin> > ... > > The hardest part IMHO is to find the keys for the labels you want to > change, since it's not documented anywhere (that I know of). Luckily > for you, I also changed the "Move" and "Move All" labels in my app, so > the keys you're looking for are included in the example below ! > > Regards, > Cedric Durmont > > ===== Translation class ===== > package somepackage; > > import java.util.ListResourceBundle; > > public class MyTranslation extends ListResourceBundle > { > > @Override > protected Object[][] getContents() > { > // TODO Auto-generated method stub > return _CONTENTS; > } > static private final Object[][] _CONTENTS = > { > {"af_tableSelectMany.SELECT_COLUMN_HEADER", ""}, > {"af_tableSelectOne.SELECT_COLUMN_HEADER", ""}, > {"af_selectOrderShuttle.MOVE_ALL", ""}, > {"af_selectOrderShuttle.MOVE", ""}, > {"af_selectOrderShuttle.REMOVE", ""}, > {"af_selectOrderShuttle.REMOVE_ALL", ""}, > {"af_selectManyShuttle.MOVE_ALL", ""}, > {"af_selectManyShuttle.MOVE", ""}, > {"af_selectManyShuttle.REMOVE", ""}, > {"af_selectManyShuttle.REMOVE_ALL", ""}, > > {"af_selectOrderShuttle.REORDER_UP_ALL", ""}, > {"af_selectOrderShuttle.REORDER_UP", ""}, > {"af_selectOrderShuttle.REORDER_DOWN", ""}, > {"af_selectOrderShuttle.REORDER_DOWN_ALL", ""}, > > {"af_panelAccordion.DISCLOSED_TIP", ""}, > {"af_panelAccordion.UNDISCLOSED_TIP", ""}, > > {"af_showDetail.DISCLOSED_TIP", "Masquer"} > }; > } > > > 2011/3/30 Leandro Andrade <[email protected]>: > > Hi, > > > > i want to change the text "Move" and "Move All" to another text. > > > > How can i do this ? > > > > Thanks > > _________________ > > Att, > > Leandro Oliveira de Andrade > > >

