standalone-forms icon indicating copy to clipboard operation
standalone-forms copied to clipboard

Translation component not working

Open keldrox opened this issue 9 years ago • 3 comments

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');

keldrox avatar Nov 03 '15 09:11 keldrox

Hi @keldrox, thank you for the fix! Could you submit a PR?

webmozart avatar Nov 03 '15 16:11 webmozart

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

keldrox avatar Nov 03 '15 18:11 keldrox

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.

webmozart avatar Nov 03 '15 23:11 webmozart