Skip to content

Project language search does not include shared components, while its statistics do #22916

Description

@dirkjanfaber

Describe the issue

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.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

  1. In project A, create a glossary component with a few read-only (untranslatable) terms.
  2. Share that component into project B.
  3. Open project B's language page: "Read-only strings" shows a count.
  4. Click it: "No strings found!".

Expected behavior

The counts and the search cover the same components: either the search includes shared components, or the statistics leave them out.

Screenshots

The Dutch language page with "Read-only strings: 75":
shot-101147

"No strings found!" after clicking it:
shot-101240

Exception traceback

How do you run Weblate?

Docker container

Weblate version

2026.10.1.4

Weblate deploy checks

Additional context

No response

Activity

  1. added
    Waiting for: Triage
    on Nov 18, 2026
  2. added theissue type on Nov 20, 2026
  3. added
    Area: UX
    Waiting for: Demand
    on Nov 20, 2026
  4. removed
    Waiting for: Triage
    on Nov 20, 2026
  5. added 2 commits that reference this issue on Nov 20, 2026
    6e99e39
    cde447a
  6. added this to the 2026.12 milestone on Nov 20, 2026
  7. added
    Waiting for: Implementation
    and removed
    Waiting for: Demand
    on Nov 20, 2026
  8. nijel commented on Nov 20, 2026

    @nijel
    Member

    @dirkjanfaber The changed string status looks nice. Inspired by that, I implemented 3d89c82. Do you have some other customizations that could be contributed back?

  9. dirkjanfaber commented on Nov 20, 2026

    @dirkjanfaber
    Author

    @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.

  10. nijel commented on Nov 29, 2026

    @nijel
    Member

    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: UXWaiting for: Implementation

    Type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions