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

(Translation) Add notice if to be translated entity is not found #3015

Closed
Seikilos opened this issue Jan 2, 2012 · 4 comments

Comments

Projects
None yet
5 participants
@Seikilos
Copy link

commented Jan 2, 2012

Hello,
I would like to have (a configurable?) feature where trying to translate something via the translator that does not exist for the current language result in a warning or notice in the log files.
Sometimes a translation slip through because of typos and it would be handy if I could see all the missed ones in the log when used.

Thanks

@alexandresalome

This comment has been minimized.

Copy link
Contributor

commented Jan 29, 2012

It's not an issue, it's a feature request. Address it to the user group or development group for a clue.

Quickly, you need to override the translator class to add the custom translation method.

@meandmymonkey

This comment has been minimized.

Copy link

commented Mar 12, 2012

Working on PR (guess since this ticket is listed in the blog post, the basic idea is accepted)

@stof

This comment has been minimized.

Copy link
Member

commented Apr 4, 2012

@meandmymonkey what about the PR ?

@meandmymonkey

This comment has been minimized.

Copy link

commented Apr 4, 2012

Will probably take until end of the week.

fabpot added a commit that referenced this issue Sep 24, 2014

feature #10887 [Translation] added LoggingTranslator. (aitboudad)
This PR was squashed before being merged into the 2.6-dev branch (closes #10887).

Discussion
----------

[Translation] added LoggingTranslator.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #3015, #2435
| License       | MIT
| Doc PR       | symfony/symfony-docs/pull/4050

Commits
-------

b7770bc [Translation] added LoggingTranslator.

@fabpot fabpot closed this Sep 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.