Fix issue where sample variants were being created without stock levels
Include jquery.validate localization messages when the locale is not :en

Fixes #3794
Add a test for #3494