A quick look at the source code suggests that the locale used is either the
loacle of the request (set by your browser) or some locale object in some
scope. You need to tell the <menu:useMenuDisplayer> tag how to access your
locale object.

If for instance you put the user's locale in session scope with a key
"user.locale" then you should use the tag like:


<menu:useMenuDisplayer name="listMenu"
bundle="org.apache.struts.action.MESSAGE"
locale="user.locale"
>

Disclaimer: I don't use this functionality - I've just had a quick look at
the code.

Paul

-----Original Message-----
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: 06 November 2003 13:35
To: Struts Users Mailing List
Subject: RE: struts-menu and internationalization


When a user logs in, I give him a default language, e.g. English, and create
the appropriate Locale.  This user sees the menu in the correct language.
When this user switches his language, by clicking an image, I create another
Locale, e.g. French. All the other labels I use, change into the wright
language, but the menulabels stay in the original language.

Thanks in advance 
Koen
--

--------- Original Message ---------

DATE: Thu, 6 Nov 2003 12:46:13 
From: Paul McCulloch <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Cc: 

>I use struts menu, with the CoolMenu displayer, and everything works fine.
>Your config looks ok. 
>
>What exactly isn't working?
>
>There is a struts-menu specific mailing list, which would be a more
>approriate place to ask for help.
>
>Paul
>
>-----Original Message-----
>From: koen boutsen [mailto:[EMAIL PROTECTED]
>Sent: 06 November 2003 10:44
>To: [EMAIL PROTECTED]
>Subject: struts-menu and internationalization
>
>
>Has anyone used internationalization in the struts-menu ?
>
>If so, could you explain me how I can do it.
>
>I tried the following : 
>
>menu-config.xml:
><Menu name="organisation" title="label.logout">
>       <Item name="organisationOverview" title="label.overview"
>forward="/organisation/searchFirstLetter" />
></Menu>
>
>and in listMenu.jsp:
><menu:useMenuDisplayer name="listMenu"
>bundle="org.apache.struts.action.MESSAGE">
>    <menu:displayMenu name="organisation"/>
>    <menu:displayMenu name="salesrep"/>
>    <menu:displayMenu name="logout"/>   
></menu:useMenuDisplayer>
>
>but this did not work.
>
>any help is very appreciated
>
>Koen Boutsen
>
>
>____________________________________________________________
>FREE ADHD DVD or CD-Rom (your choice) - click here!
>http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/56363
2
>/131726/311392/311392
>AOL users go here:
>http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/56363
2
>/131726/311392/311392
>This offer applies to U.S. Residents Only
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>**************************************
>Axios Email Confidentiality Footer
>Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message, and notify
us immediately. If you or your employer does not consent to Internet email
messages of this kind, please advise us immediately. Opinions, conclusions
and other information expressed in this message are not given or endorsed by
my Company or employer unless otherwise indicated by an authorised
representative independent of this message.
>WARNING:
>While Axios Systems Ltd takes steps to prevent computer viruses from being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You are therefore strongly
advised to undertake anti virus checks prior to accessing the attachment to
this electronic mail.  Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for
loss or damage howsoever caused.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>



____________________________________________________________
FREE ADHD DVD or CD-Rom (your choice) - click here!
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
AOL users go here:
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
This offer applies to U.S. Residents Only

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**************************************
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to