-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
"Missing translation" annotation shown even though key is known #195
Comments
should be fixed. |
|
there is atleast some logging in "Help > Show log in explorer?" > log.txt. currently there first matched file in translation fodler is used for extract (with regular expressions :( ) the keys. in generally every file should hold every key. can u pls search in translation folder for the not working key? i also need to invest some time to make it more stable in non commen use cases |
grep shows the keys in messages.de.xliff and catalogue.de.php. The log is quite boring. Is there any Open Source project for which the "Missing translation" annotation works correctly and which I could compare to mine? |
can you recheck on latest release? |
With PhpStorm 7.1 and Symfony Plugin 0.10.37 I do get:
The behavior for 4. is not really that important, but 1.+2. really shouldn't show missing translation (completing 'foo.bar' still works). I still don't know why the plugin thinks that the translations are missing. Does it try to check multiple files? My project doesn't contain any other translations and de is the default. |
i did a complete translation rewrite today. so we dont need the compiled file at all. if you need an example checkout http://www.orocrm.com. its my test case |
When using code such as
$translator->trans(...)
autocompletion works for keys, but keys are always being annotated with "Missing translation". Clearing Symfony and PhpStorm caches did not help.Additionally, keys with interpolated variables (such as
"foo$bar"
) are being annotated with "Missing translation", even though this probably does not make much sense.The project is based on Symfony 2.4.0, one translation file in
src/Foo/BarBundle/Resources/translations/messages.de.xliff
and the filescatalogue.de.php
andcatalogue.de.php.meta
being generated inapp/cache/dev/translations
Are additional translations (e.g. en) needed or any further configuration?The platform is PhpStorm 133.214 with Symfony 2 plugin 0.10.34 (if I recall correctly the same happened for all previous versions that were installed).
The text was updated successfully, but these errors were encountered: