Bug 874342
Summary: | TM "number of times a translation has been used" is wrong | ||
---|---|---|---|
Product: | [Retired] Zanata | Reporter: | Hedda Peters <hpeters> |
Component: | Component-Logic | Assignee: | Alex Eng <aeng> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sean Flanigan <sflaniga> |
Severity: | unspecified | Docs Contact: | |
Priority: | high | ||
Version: | 2.0 | CC: | aeng, sflaniga, ykatabam, zanata-bugs |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | 2.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 2.0.3-SNAPSHOT (20121128-1124) | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-26 03:46:08 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 877848 |
Description
Hedda Peters
2012-11-08 00:33:16 UTC
And just a question: How is this supposed to be calculated? Do re-uses from copytrans and TMmerge count towards it, or just manual re-use by translators via TM? *** This bug has been marked as a duplicate of bug 872040 *** This is a known bug. See https://bugzilla.redhat.com/show_bug.cgi?id=872040 *** Bug 872040 has been marked as a duplicate of this bug. *** The number is supposed to indicate the number of identical translations in the current locale (from any source, including copytrans and TM merge), for that string, but the problem is that it is actually counting across all languages. The underlying bug has a more serious effect, because we limit TM matches to 10 in the initial query, then we post-process the results to remove matches for obsolete projects and wrong languages. If the top 10 matches are all taken from different translations of the same string, Zanata will only show one TM match, or perhaps none at all. It may not be easy to change the initial query to filter out obsolete projects, but we should at least fix the query to make sure the top 10 matches are coming from the correct locale. Fixed in 2.0 branch and merged to 2.1. Locale is now included in the query so results should only count translations for the current workspace locale. Pre-aggregation result limit has also been increased to 25, i.e. numbers in the '#' column of TM results can now total up to 25. See: https://github.com/zanata/zanata/commit/c19e6ef43aba690a21d7d64966731684a0745b88 https://github.com/zanata/zanata/commit/2e0c96104769d8c4113f1ea0d10667a7b312d2ba Implemented fix and merged into master branch. See https://github.com/zanata/zanata/commit/07113abf7fcf6110f06ec25ef83d32684a5f3f9b https://github.com/zanata/zanata/commit/2ac22b3f3ea1271acd886c6fa6210032b4612334 Commits are shown (rolled up) here: https://github.com/zanata/zanata/compare/950ed6efbf...rhbz874342 VERIFIED on 2.1-SNAPSHOT (20121128-1048). Please merge the feature branch into 'release' as well. Deployed to 2.0.3-SNAPSHOT test machine. *** Bug 877848 has been marked as a duplicate of this bug. *** |