struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu MARC <matthieu.m...@angers.ensam.fr>
Subject Internationalization and EL
Date Thu, 05 Jun 2008 08:56:43 GMT
Hi everybody,

I'm trying to play with internationalization but I have a small problem. 
Here is my code :

<s:iterator value="week.semaine">

        <s:label labelposition="top" value="%{displayName}" />

        <s:select name="week.semaine[%{index}].am" onchange="countHour();" id="am%{index}"
key="timetable.morning" list="heures" value="%{am}" />

        <s:select name="week.semaine[%{index}].pm" onchange="countHour();" id="pm%{index}"
key="timetable.afternoon" list="heures" value="%{pm}" />

</s:iterator>


My problem is in the label. %{displayName} return monday, tuesday, 
wednesday.... and I want to translate the label value.

I tried :
 

key="%{displayName}"

key="timetable.%{displayName}"


I wrote a package.properties file :

timetable.monday=lundi

monday=lundi


But nothing is working.

Is someone have an idea to help me ?

thank in advance.

Matthieu MARC

-- 
Matthieu MARC
matthieu.marc@angers.ensam.fr


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message