Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translating messages from validation.yml #33

Closed
auss opened this issue Mar 26, 2012 · 4 comments
Closed

translating messages from validation.yml #33

auss opened this issue Mar 26, 2012 · 4 comments

Comments

@auss
Copy link

auss commented Mar 26, 2012

Is there a way to translate messages from validation.yml file ? ( http://symfony.com/doc/current/book/validation.html#getters )

For example constraint:

Domeny\CertyfikatyBundle\Model\CMS\NewsComment:
  properties:
    name:
      - NotNull: { message: "Należy podać imię i nazwisko" }

is not visible in any of translation files. Am I doing something wrong ?

@schmittjoh
Copy link
Owner

Is this constraint used somewhere in your code?

On Mon, Mar 26, 2012 at 7:48 AM, auss <
reply@reply.github.com

wrote:

Is there a way to translate messages from validation.yml file ? (
http://symfony.com/doc/current/book/validation.html#getters )

For example constraint:

Domeny\CertyfikatyBundle\Model\CMS\NewsComment:
 properties:
   name:
     - NotNull: { message: "Naley poda imi i nazwisko" }\

is not visible in any of translation files. Am I doing something wrong ?


Reply to this email directly or view it on GitHub:
#33

@auss
Copy link
Author

auss commented Mar 26, 2012

Not directly, symfony uses this validation.yml file while validating forms.

@schmittjoh
Copy link
Owner

What I meant is whether the path for the class file
"Domeny\CertyfikatyBundle\Model\CMS\NewsComment"
is being searched by the "translation:extract" command.

If you are not sure, you can run the command with "--verbose" to see all
files that are being scanned.

On Mon, Mar 26, 2012 at 8:45 AM, auss <
reply@reply.github.com

wrote:

Not directly, symfony uses this validation.yml file while validating forms.


Reply to this email directly or view it on GitHub:

#33 (comment)

@schmittjoh
Copy link
Owner

Closing as this is already supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants