webmozart / standalone-forms

139 stars 30 forks source link

Translation component not working #12

Open keldrox opened 9 years ago

keldrox commented 9 years ago

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

webmozart commented 9 years ago

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

keldrox commented 9 years ago

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

webmozart commented 9 years ago

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.