Greetings,
I am having a problem with LocalizedErrors.
The default bundle has a property
ott.mismatch=Sorry, the code that you have entered does not match. Please
try again. (You have {2} attempts remaining)
while the French bundle's property is
ott.mismatch=D\u00e9sol\u00e9! Le code que vous avez entr\u00e9 n'est pas
valide. Veuillez r\u00e9essayer. (Il vous reste {2} tentatives)
The validation method has the code
@ValidationMethod(on = "validate", priority = 1)
public void verify(final ValidationErrors errors) {
....
errors.add("ott", new LocalizableError("ott.mismatch",
attemptsLeft));
...
}
When the locale is en_US, all is fine but when the Locale is set to fr_CA,
no parameter substitution takes place and the message rendered is
Désolé! Le code que vous avez entré nest pas valide. Veuillez réessayer.
(Il vous reste {2} tentatives)
Any ideas of why this is happening and how to get it corrected?
Thanks in advance,
--
Aaron Stromas
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users