WICKET-5668 StringResourceModel with custom locale

(cherry picked from commit 98404f5541fee8064ff01dee7ff7f4209669245c)