-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Filter translation keys #13177
Comments
You can configure which keys to filter using https://docs.weblate.org/en/latest/admin/projects.html#key-filter |
This issue has been marked as a question by a Weblate team member. Why? Because it belongs more to the professional Weblate Care or community Discussions than here. We strive to answer these reasonably fast here, too, but purchasing the support subscription is more responsible and faster for your business. And it makes Weblate stronger as well. Thanks! In case your question is already answered, making a donation is the right way to say thank you! |
Where to configure? |
In component configuration... |
Looks like that (I don't speak German). |
The option was introduced in Weblate 5.8 (as https://docs.weblate.org/en/latest/admin/projects.html#key-filter describes) and you are using 5.7.2, so you need to upgrade Weblate to see it. |
Oof 😅! Now I've got it! But how do I write that keys should be ignored? The function says that the regex only shows those keys, not hidden this |
You can use negative lookaheads, there are some examples in the language filter docs: https://docs.weblate.org/en/latest/admin/projects.html#language-filter |
I've addeed some examples in #13206 |
What with subkeys (key.subkey)? |
And will this be applied to existing keys? |
It's a regular expression, so you can be pretty creative there.
Yes, it is applied when parsing the file and AFAIK changing this should force parsing the files. |
Describe the problem
Keys with values are also released for translation, which are not actually translated
Describe the solution you would like
That keys of values to be translated can be ignored
Describe alternatives you have considered
No response
Screenshots
Additional context
From the screenshot, for example, the keys
timestamp
andcolor
should be ignored, i.e. not displayed for translationThe text was updated successfully, but these errors were encountered: