You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Silva, Luiz" <lu...@eds.com> on 2009/07/29 21:53:17 UTC

[Trinidad] A question regarding text translations

Hello all.

I'm trying to change the translations used by Trinidad components (like
table "Next", "Previous" messages, the WARNING and  ERROR header
messages, etc.) 

I tried the steps here:
http://marc.info/?l=myfaces-user&m=119375075319737&w=2 
but it didn't work.

We are currently using the default (English) and we need to change it to
Portuguese (pt_BR)
My configuration files are bellow.

trinidad-config.xml
		<trinidad-config
xmlns="http://myfaces.apache.org/trinidad/config">
		  <client-validation>DISABLED</client-validation>
		  <acessibility-mode>inaccessible</accessibility-mode>	
		 <skin-family>skin-eds-default</skin-family>
		</trinidad-config>

trinidad-skins.xml
		    <skin>
		        <id>skin-eds-default.desktop</id>
		        <family>skin-eds-default</family>
	
<render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
	
<style-sheet-name>resources/skins/eds-default/skin-eds-default.css</styl
e-sheet-name>
	
<bundle-name>org.apache.myfaces.trinidad.resource.MessageBundle_pt_BR</b
undle-name> 
		    </skin>

Is this the correct class? MessageBundle_pt_BR - or should I create a
new one?

Trinidad jars trinidad-api-1.0.10.jar and trinidad-impl-1.0.10.jar are
present in web-inf/lib folder

Any help will be very appreciated.

Thanks!

Luiz



Re: [Trinidad] A question regarding text translations

Posted by "Glauco P. Gomes" <gl...@yahoo.com.br>.
Trinidad nativelly supports pt_BR, but you need to configure JSF to use 
it, put this in your faces-config.xml:

    <locale-config>
      <default-locale>pt_BR</default-locale>
      <supported-locale>pt_BR</supported-locale>
    </locale-config>

Se você for brasileiro entra no grupo JavaSF[1], é o grupo oficial do 
Brasil sobre JSF.

[1] http://groups.google.com/group/javasf/

Glauco P. Gomes

Silva, Luiz escreveu:
>
> Hello all.
>
> I'm trying to change the translations used by Trinidad components 
> (like table "Next", "Previous" messages, the WARNING and  ERROR header 
> messages, etc.)
>
> I tried the steps here: 
> _http://marc.info/?l=myfaces-user&m=119375075319737&w=2_ 
> <http://marc.info/?l=myfaces-user&m=119375075319737&w=2>
>
> but it didn't work.
>
> We are currently using the default (English) and we need to change it 
> to Portuguese (pt_BR)
>
> My configuration files are bellow.
>
> trinidad-config.xml
>
>             <trinidad-config
>             xmlns="http://myfaces.apache.org/trinidad/config">
>
>               <client-validation>DISABLED</client-validation>
>
>               <acessibility-mode>inaccessible</accessibility-mode> 
>
>              <skin-family>skin-eds-default</skin-family>
>
>             </trinidad-config>
>
> trinidad-skins.xml
>
>                 <skin>
>
>                     <id>skin-eds-default.desktop</id>
>
>                     <family>skin-eds-default</family>
>
>                    
>             <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
>
>                    
>             <style-sheet-name>resources/skins/eds-default/skin-eds-default.css</style-sheet-name>
>
>                    
>             <bundle-name>org.apache.myfaces.trinidad.resource.MessageBundle_pt_BR</bundle-name>
>
>
>                 </skin>
>
> Is this the correct class? MessageBundle_pt_BR -- or should I create a 
> new one?
>
> Trinidad jars trinidad-api-1.0.10.jar and trinidad-impl-1.0.10.jar are 
> present in web-inf/lib folder
>
> Any help will be very appreciated.
>
> Thanks!
>
> Luiz
>