Re: I18N by pages

2005-07-11 Thread Marc Demlenne
Just a small mistake while copying my code here ... I've swapped to things. Sorry It is : On 11/07/05, Marc Demlenne <[EMAIL PROTECTED]> wrote: > Hello, > > Maybe another idea if I understand well what you want. > So you want to include a file, specific

Re: I18N by pages

2005-07-11 Thread Marc Demlenne
Hello, Maybe another idea if I understand well what you want. So you want to include a file, specific to the current locale definition. I need about the same feature, and was looking for a better way than mine to solve this. The only think is that I include a i18n _file_ in a general template, a

Re: I18N by pages

2005-06-29 Thread Jeff Beal
This is just an idea, depending on what sort of differences you have on your JSP pages, it may or not work. As a trite and unrealistic example, let's say that your design team has told you that blue text will work better for your English-speaking audience, but purple text will work better for your

Re: I18N by pages

2005-06-29 Thread Yaroslav Novytskyy
Hello! Jeff Beal wrote: ... Have you considered locale-specific CSS files to give a different presentation to the same JSP page? ... I have no idea of this. Can you, please, comment? Yaroslav Novytskyy. - To unsubscribe, e-m

Re: I18N by pages

2005-06-25 Thread Van
On 6/24/05, Yaroslav Novytskyy <[EMAIL PROTECTED]> wrote: > Wow! > > meanwhile I've had the same idea. Posted simultaniosly :) > > But I doubt, that this solution will be compatible with tiles :( > > What do you think about that? Don't use tiles. :-) I'm serious. I used tiles for several years

Re: I18N by pages

2005-06-24 Thread Ramadi Pearse
Yaroslav, Tiles already contains 18N support. If your tiles config is called tiles-config.xml, the controller will look for tiles named in the user's locale first (tiles-config_fr.xml, tiles-config_de.xml) and then default to the original if cannot be found. Use this as a way of presenting differ

Re: I18N by pages

2005-06-24 Thread Jeff Beal
nts are configured properly in struts-config.xml then > >>>your bean-write will work with > >>>Take a look at this excellent tutorial located at > >>>http://www.systemmobile.com/articles/strutsMessageResources.html#creating-bundle > >>> > >>>Bon

Re: I18N by pages

2005-06-24 Thread Glenn Deschênes
;>>ApplicationResources (properties) file > >>>When these elements are configured properly in struts-config.xml then > >>>your bean-write will work with > >>>Take a look at this excellent tutorial located at > >>>http://www.systemmobile.com/articles

Re: I18N by pages

2005-06-24 Thread Yaroslav Novytskyy
Hi! French is usually more verbose than English. At times the HTML page must be really different to accomodate the French. In general, I always design the page in French first as for it will work out fine in English afterwards. French was only an example, I think of Ukrainian instead, but didn

Re: I18N by pages

2005-06-24 Thread Yaroslav Novytskyy
ge - From: "Glenn Deschênes" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, June 24, 2005 9:52 AM Subject: Re: I18N by pages What you can do is have a jsp for each locale language such as page_fr.jsp and page_en.jsp. Your application can store the

Re: I18N by pages

2005-06-24 Thread Yaroslav Novytskyy
Hi! Yes this is a possibillity. But what if I already have different forwards for my action: "success", "info", "lalala". I will have to change this to "success_en", "info_en", "lalala_en" and to add "success_fr", "info_fr", "lalala_fr" and to include additional logic to action to check what

Re: I18N by pages

2005-06-24 Thread Glenn Deschênes
t; > 001-617-852-7822 > > - Original Message - From: "Glenn Deschênes" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" > > Sent: Friday, June 24, 2005 9:52 AM > > Subject: Re: I18N by pages > > > > > > What yo

Re: I18N by pages

2005-06-24 Thread Jeff Beal
te will work with > > Take a look at this excellent tutorial located at > > http://www.systemmobile.com/articles/strutsMessageResources.html#creating-bundle > > > > Bon Chance, > > Martin- > > Etats Unis > > 001-617-852-7822 > > - Original Mess

Re: I18N by pages

2005-06-24 Thread Yaroslav Novytskyy
ent: Friday, June 24, 2005 9:52 AM Subject: Re: I18N by pages What you can do is have a jsp for each locale language such as page_fr.jsp and page_en.jsp. Your application can store the locale in the user's session object. Your application can update the session locale when the user switches be

Re: I18N by pages

2005-06-24 Thread Martin Gainty
ce, Martin- Etats Unis 001-617-852-7822 - Original Message - From: "Glenn Deschênes" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, June 24, 2005 9:52 AM Subject: Re: I18N by pages What you can do is have a jsp for each locale language such a

Re: I18N by pages

2005-06-24 Thread Glenn Deschênes
What you can do is have a jsp for each locale language such as page_fr.jsp and page_en.jsp. Your application can store the locale in the user's session object. Your application can update the session locale when the user switches between en & fr. You can have the following forwards for the action

I18N by pages

2005-06-24 Thread Yaroslav Novytskyy
Hello, all! I just wonder if there is an existing (tested, prooved) way (a kind of development pattern) for Struts to make internationalization not by message resources but by pages (JSPs, templates)? The point is that using message resources deleloper can only define a string value for diff