Re: i18n

"Nitin Gaur" <[email protected]>
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
Hi Berny,
Thanks for reply!

couple of queries:
1)When I set the my web browser's language to German,
your example application still shows locale as "en"
instead it should be "de"...right?
You set locale=xx to HttpRequest, to set different locale.
Aren't you detecting browser's locale???

2)When I create new ActionErrors object,
Previously I did

errors.add("loginError",new ActionError("errors.username.notfound"));

where "errors.username.notfound" is key in ApplicationResouces.properties
How to access the Element in variables_xx.xml (where I defined the error)?

Of course I add the error object to request, It gets serialized,
and  I get
<error>
    <loginError />
</error>

TIA
-Nitin

----- Original Message ----- 
From: "Bernhard Woehrlin" <[email protected]>
To: "'Nitin Gaur'" <[email protected]>
Sent: Thursday, July 17, 2003 4:12 AM
Subject: AW: [Strutscx-user] i18n


> Hi Nitin,
>
> Please, check out the prototype sample application carefully. It
> contains almost everything you need to know to work with StrutsCX. This
> and the StrutsCX website should provide you with all the answers to your
> question.  - Let me know, if this won't help you to get into the
> StrutsCX concepts. Hopefully I will have than a bit more time...
>
>
>
> Regards,
>
> Berny
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von Nitin
> Gaur
> Gesendet: Mittwoch, 16. Juli 2003 14:49
> An: [email protected]
> Betreff: Re: [Strutscx-user] i18n
>
> how to achieve i18n in strutscx
> does the library handle it and ll pick up the corresponding
> variables_xx.xml
> or I need to do it anything for it?
>
> The example Action
> com\cappuccinonet\strutscx\prototype\presentation\action\InfoIntroAction
> also not picking up german language when set on client side??
>
> -Nitin
> ----- Original Message ----- 
> From: Nitin Gaur
> To: [email protected]
> Sent: Wednesday, July 16, 2003 4:52 PM
> Subject: [Strutscx-user] i18n
>
> Do I need to set
> StrutsCXConstants.LOCALE
> in Action to get the correct locale?
>
> If it is so then what other constants I need to set?
> ANd do I need to set these in each and evry ACtion?
>
> help
> -Nitin
>



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.