You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Project language search does not include shared components, while its statistics do #22916
Since #15603 (fixed in 5.13.1), project and project-language statistics include shared components. The search behind those statistics does not, so the counts and the lists they link to disagree.
On a project's language page (/projects//-//), the "Strings status" table counts the strings of a glossary shared into the project: "All strings" includes them, and a "Read-only strings" row appears for the glossary's read-only terms. The links behind these rows (/translate//-//?q=state:read-only, and the matching Browse and Zen links) search only the project's own components. "Read-only strings" then returns "No strings found!", and "All strings" lists fewer strings than its count.
In the code, parse_path_units filters a ProjectLanguage's units on translation__component__project=obj.project, which leaves out shared components.
@dirkjanfaber The changed string status looks nice. Inspired by that, I implemented 3d89c82. Do you have some other customizations that could be contributed back?
@dirkjanfaber The changed string status looks nice. Inspired by that, I implemented 3d89c82. Do you have some other customizations that could be contributed back?
Thanks @nijel, nice to see the tiles upstream already!
Our deployment repo is private, so I've put a snapshot of the customizations in https://github.com/dirkjanfaber/weblate-customize. It's a CSS and JS file loaded through WEBLATE_EXTRA_HTML_HEAD, plus a small apps.py in the customize app. The README lists what each change does. They aim to make things calmer for translators coming from POEditor, and these are the ones I think would make the most sense in Weblate itself:
Zen as a list to scan and edit. Both layouts show a plain list of texts with the context below each one, and a translation turns into a field when clicked. With a search you see about ten strings per screen. Zen also shows the screenshots and translation memory matches for the string being edited.
Search matches in the translation. A plain word also matches the translation, but only the source text is highlighted, so those results look wrong. We highlight the match in the translation too.
"Search where" in the Filters menu. Entries for everywhere, source only and translation only, which rewrite the query with source: or target:, so translators don't need to know the prefixes.
Defaults for new users. A site-wide default for the editor mode (we use Zen, side by side). New users also watch every project they can see, because until their first translation their dashboard is empty.
I've linked 2 screenshots in the README of the repo.
If any of these sound useful, I'm happy to turn them into a PR, or into separate issues if you'd rather discuss them first.
Thanks for sharing that. The search highlighting should be properly handled since #23005. @KarenKonou might actually be in a better position to say which of these UI changes would be useful to submit back.
For this particular issue, I believe the solution is close: #22974 (comment)
Activity
fix(search): make shared components opt-in with include_shared
fix(search): use the owning project's source workflow for shared units
nijel commentedon Nov 20, 2026
@dirkjanfaber The changed string status looks nice. Inspired by that, I implemented 3d89c82. Do you have some other customizations that could be contributed back?
dirkjanfaber commentedon Nov 20, 2026
Thanks @nijel, nice to see the tiles upstream already!
Our deployment repo is private, so I've put a snapshot of the customizations in https://github.com/dirkjanfaber/weblate-customize. It's a CSS and JS file loaded through
WEBLATE_EXTRA_HTML_HEAD, plus a smallapps.pyin the customize app. The README lists what each change does. They aim to make things calmer for translators coming from POEditor, and these are the ones I think would make the most sense in Weblate itself:source:ortarget:, so translators don't need to know the prefixes.I've linked 2 screenshots in the README of the repo.
If any of these sound useful, I'm happy to turn them into a PR, or into separate issues if you'd rather discuss them first.
nijel commentedon Nov 29, 2026
Thanks for sharing that. The search highlighting should be properly handled since #23005. @KarenKonou might actually be in a better position to say which of these UI changes would be useful to submit back.
For this particular issue, I believe the solution is close: #22974 (comment)