WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.34k stars 971 forks source link

Show string/word numbers on search results #11853

Open nijel opened 2 weeks ago

nijel commented 2 weeks ago

Discussed in https://github.com/WeblateOrg/weblate/discussions/11770

Originally posted by **emmapeel2** June 3, 2024 I am still looking for numbers, and generating some stats with the api and gitlabci. I think it would be great to provide the number of strings and words on the results of the search interface, for example here: https://hosted.weblate.org/search/tor/community-portal/?q=+added%3A2024-03-06+AND+language%3Aen In the top we could show '37 strings / 300 words' This will help evaluate changes in a quicker and more organic way than elaborating reports, and will be available for translators without admin rights.
github-actions[bot] commented 2 weeks ago

This issue seems to be a good fit for newbie contributors. You are welcome to contribute to Weblate! Don't hesitate to ask any questions you would have while implementing this.

You can learn about how to get started in our contributors documentation.

DevanshArora312 commented 2 weeks ago

Hello, I am quite new to Open source and I do want to contribute to this issue. Can you please give some basic ideas to what does a string and word mean in the context of this issue. I get the gist that we need to quantize the results , but what would be the results and inputs still remain a bit confusing. Thanks!

nijel commented 1 week ago

String is the number of results, the number of words is available for each string in the database:

https://github.com/WeblateOrg/weblate/blob/dbbb708f457e94d5753767f8cd1fadd4eb8410ef/weblate/trans/models/unit.py#L367

amkarn258 commented 1 week ago

Hi @nijel ,

Can you please assign it to me if no one is assigned yet. I would like to work on this.

nijel commented 1 week ago

You're welcome to work on this, no need to assign.