Hi, Joe.

I'd rather not add any non breaking spaces to the messages. You don't know how long a 
message might become (typically each language needs another amount of words to express 
the same, and english is pretty short compared to others). The problem you actually 
have is a layout problem, and it should be dealt with in the UI.

So you better leave that problem to your HTML designer, who may choose to
- make a layout that allows long messages
- hack all the JSPs
- delegate the problem to the browser that tries to word wrap everything so it fits on 
the user's screen.

I prefer the last one, since a user with bad eyes may choose to use bigger fonts and 
accepts to read more lines of text. Personally I use such features when I present some 
web application on a beamer....

Hiran

-----------------------------------------
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße 11
80867 München
Phone +49-89-54 74 21 34
Fax   +49-89-54 74 21 99


 

> -----Original Message-----
> From: Joe Hertz [mailto:[EMAIL PROTECTED] 
> Sent: Mittwoch, 13. Oktober 2004 23:12
> To: 'Struts Users Mailing List'
> Subject: i18n and  
> 
> I have a number of property values that will be 
> internationalized and need non-breaking spaces between each 
> word in them.
> 
> I could put   into each space, but that
> 
> 1) is going to confuse my native language translators who 
> know nothing of HTML. 2 words in english could be 3 in language-x).
> 
> 2) would be wrong.
> 
> There doesn't appear to be any built in method of handling 
> this with bean:message or anything else, so I'm about to 
> write a custom configuration class for a separate Message 
> Resource Bundle that will contain the properties where I want 
> spaces displayed as " "'s
> 
> I have a hard time believing no one else has run into 
> this...so I ask the
> following:
> 
> Do I need to do this? Is there a way of doing it without 
> writing a custom handler? or a better way of doing it? And if 
> not, who wants to see the code when it's done? :-)
> 
> -Joe
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to