How does this solve the i18n problem?

<snip>
On Mon, 17 Jan 2005 03:07:27 -0600, Kishore Senji <[EMAIL PROTECTED]> wrote:
> On Mon, 17 Jan 2005 17:54:55 +0900, Sylvain ~ <[EMAIL PROTECTED]> wrote:
> > By the way, I don"t want to have ONE internationilized title for all
> > my pages, so I can't do that, it would have been too simple !!
> > I have many pages, having different i18n titles,
> 
> You can extend the main.layout and override the title for the
> different pages like so
> 
> <definition name="main.layout" path="/WEB-INF/jsp/layout_main.jsp">
>            <put name="title" value="main.title" />
>            <put name="header" value="/WEB-INF/jsp/layout_header.jsp" />
>            <put name="footer" value="/WEB-INF/jsp/layout_footer.jsp" />
>    </definition>
>    <definition name="login.layout" extends="main.layout">
>        <put name="title" value="login.title"/>
>        <put name="body" value="/WEB-INF/jsp/loginform.jsp" />
>    </definition>
> 
</snip>

If you have different pages and want different results by overriding,
that is a different issue altogether.  Overriding does not solve the
i18n problem at all so far as I can see.  I really prefer Lesaint's
solution to mine.  I do something entirely different than either of
them but different than your approach too.  I make the title tag's
value dynamic in the layout, e.g. <title><c:out
value='${state.title}'/></title>.  I like this because it does not tie
itself to Tiles, although maybe I should switch to what Lesaint is
doing.  How come the French seem to be so adept at GUIs?  Maybe there
is just a deep sense of style in the French psyche?

Jack

-- 
------------------------------

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

-----------------------------------------------

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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

Reply via email to