The <<Pro Wicket>> book has provided a solution:
1)
<input type="submit" wicket:id="save" value="Save"/>

2)
form.add(new Button("save",new ResourceModel("userProfile.save"));

3)
You need to specify the localized message in the properties file
(UserProfilePage.properties, for example):
        userProfile.save = Save

The equivalent Spanish translation in UserProfilePage_es.properties is:
        userProfile.save = Grabar


antonyb wrote:
> 
> Hello,
> 
> Just spent a while reading through the forum archives trying to find out
> how to localize attributes, particularly 
> 
> <input type="submit" value="XXXXXX" />
> 
> There's a couple of very long threads about this, but as far as I can see
> no conclusion was reached!
> 
> So, is there an accepted way of adding an entry to a page.properties file
> and using that entry as the value of a submit button?
> 
> Thanks
> 
> Ant.
> 

-- 
View this message in context: 
http://www.nabble.com/Localized-Attributes-tf4053735.html#a11515288
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to