Open keldrox opened 8 years ago
Hi @keldrox, thank you for the fix! Could you submit a PR?
Sorry, git and I where are not friends, but with this update works fine for me: https://github.com/keldrox/standalone-forms/blob/patch-1/src/setup.php
If you open a PR through GitHub, I can directly merge your changes :) If you go to your branch, you should find a "Create PR" button. See here for instructions.
Change: es|en|it|
// Set up the Translation component $translator = new Translator('es'); $translator->addLoader('xlf', new XliffFileLoader()); $translator->addResource('xlf', VENDOR_FORM_DIR . '/Resources/translations/validators.es.xlf', 'es', 'validators'); $translator->addResource('xlf', VENDOR_VALIDATOR_DIR . '/Resources/translations/validators.es.xlf', 'es', 'validators');