You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by struts lover <st...@yahoo.com> on 2004/08/23 17:19:45 UTC

localizing the browse button

Hi,
I am using the <html:file> tag for file upload. It has
a button whose text displays Browse in English. Is
there any way of localizing the Browse button, so that
it displays the text from the properties file
depending on the locale selected by the user.

Thanks


		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: localizing the browse button

Posted by Guillermo Meyer <gm...@fibertel.com.ar>.
ups!
No, you are right, sorry!!! I have this code in one of our pages (the one
that uploads a file) but it doesn't work. It is just ignored and use the
browser's locale texto of "Browse".

In other thread ( image button for file upload ) there could be a solution
for this issue.

Sorry for the misunderstanding.
Cheers.
Guillermo.

>-- Mensaje original --
>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>Date:	Mon, 23 Aug 2004 09:28:09 -0700 (PDT)
>From:	struts lover <st...@yahoo.com>
>Subject: RE: localizing the browse button
>To:	Struts Users Mailing List <us...@struts.apache.org>
>
>
>Wont work !!!! Does this work for you ??
>
>
>
>--- Guillermo Meyer <gm...@fibertel.com.ar> wrote:
>
>> Try this:
>> 
>>                 <html:file property="file">
>>                     <bean:message
>> key="button.find"/>
>>                 </html:file>
>> 
>> This will get the button.find property from
>> ApplicationResources.properties
>> (or whatever acording to Locale) and set this
>> literal to the browse button.
>> 
>> Cheers.
>> 
>> >-- Mensaje original --
>> >Reply-To: "Struts Users Mailing List"
>> <us...@struts.apache.org>
>> >Date:	Mon, 23 Aug 2004 08:19:45 -0700 (PDT)
>> >From:	struts lover <st...@yahoo.com>
>> >Subject: localizing the browse button
>> >To:	user@struts.apache.org
>> >
>> >
>> >Hi,
>> >I am using the <html:file> tag for file upload. It
>> has
>> >a button whose text displays Browse in English. Is
>> >there any way of localizing the Browse button, so
>> that
>> >it displays the text from the properties file
>> >depending on the locale selected by the user.
>> >
>> >Thanks
>> >
>> >
>> >		
>> >_______________________________
>> >Do you Yahoo!?
>> >Win 1 of 4,000 free domain names from Yahoo! Enter
>> now.
>> >http://promotions.yahoo.com/goldrush
>> >
>>
>>---------------------------------------------------------------------
>> >To unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org
>> >For additional commands, e-mail:
>> user-help@struts.apache.org
>> >
>> 
>> 
>> ________________________________________
>> FiberTel, el nombre de la banda ancha
>> http://www.fibertel.com.ar
>> 
>> 
>> 
>>
>---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org
>> For additional commands, e-mail:
>> user-help@struts.apache.org
>> 
>> 
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>


________________________________________
FiberTel, el nombre de la banda ancha http://www.fibertel.com.ar



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: localizing the browse button

Posted by struts lover <st...@yahoo.com>.
Wont work !!!! Does this work for you ??



--- Guillermo Meyer <gm...@fibertel.com.ar> wrote:

> Try this:
> 
>                 <html:file property="file">
>                     <bean:message
> key="button.find"/>
>                 </html:file>
> 
> This will get the button.find property from
> ApplicationResources.properties
> (or whatever acording to Locale) and set this
> literal to the browse button.
> 
> Cheers.
> 
> >-- Mensaje original --
> >Reply-To: "Struts Users Mailing List"
> <us...@struts.apache.org>
> >Date:	Mon, 23 Aug 2004 08:19:45 -0700 (PDT)
> >From:	struts lover <st...@yahoo.com>
> >Subject: localizing the browse button
> >To:	user@struts.apache.org
> >
> >
> >Hi,
> >I am using the <html:file> tag for file upload. It
> has
> >a button whose text displays Browse in English. Is
> >there any way of localizing the Browse button, so
> that
> >it displays the text from the properties file
> >depending on the locale selected by the user.
> >
> >Thanks
> >
> >
> >		
> >_______________________________
> >Do you Yahoo!?
> >Win 1 of 4,000 free domain names from Yahoo! Enter
> now.
> >http://promotions.yahoo.com/goldrush
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> >For additional commands, e-mail:
> user-help@struts.apache.org
> >
> 
> 
> ________________________________________
> FiberTel, el nombre de la banda ancha
> http://www.fibertel.com.ar
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: localizing the browse button

Posted by Guillermo Meyer <gm...@fibertel.com.ar>.
Try this:

                <html:file property="file">
                    <bean:message key="button.find"/>
                </html:file>

This will get the button.find property from ApplicationResources.properties
(or whatever acording to Locale) and set this literal to the browse button.

Cheers.

>-- Mensaje original --
>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>Date:	Mon, 23 Aug 2004 08:19:45 -0700 (PDT)
>From:	struts lover <st...@yahoo.com>
>Subject: localizing the browse button
>To:	user@struts.apache.org
>
>
>Hi,
>I am using the <html:file> tag for file upload. It has
>a button whose text displays Browse in English. Is
>there any way of localizing the Browse button, so that
>it displays the text from the properties file
>depending on the locale selected by the user.
>
>Thanks
>
>
>		
>_______________________________
>Do you Yahoo!?
>Win 1 of 4,000 free domain names from Yahoo! Enter now.
>http://promotions.yahoo.com/goldrush
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>


________________________________________
FiberTel, el nombre de la banda ancha http://www.fibertel.com.ar



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org