| Summary: | [poextractor] Lokalize counts fuzzy untranslated po strings as both fuzzy and untranslated | ||
|---|---|---|---|
| Product: | [Applications] lokalize | Reporter: | Lasse Liehu <lasse.liehu> |
| Component: | general | Assignee: | Simon Depiets <sdepiets> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | karl, sdepiets |
| Priority: | NOR | ||
| Version First Reported In: | 1.5 | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/lokalize/617c5313ec5f2652c5bbcb70e8e591305171208e | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Lasse Liehu
2012-12-01 21:17:10 UTC
I can partly confirm with the latest Git version of Lokalize. If you fuzzy an empty string, the number of ‘Not Ready’ strings (‘fuzzy’ has unfortunately been renamed to ‘not ready’ in recent Lokalize versions, something which IMHO is just confusing) in the editor is increased, which seems like a bug, since the numbers are no longer consistent. In the project overview, there is no change. In ‘msgfmt --statistics’, there is no change, while in Pology, the number of fuzzy strings is increased by 1 and the number of untranslated strings is decreased by 1. I don’t know which of these ways of counting is best, but they’re at least both consistent (i.e. the number of strings of various types sum to the total number of strings). I think the simplest solution would be to change the numbers in the editor to be the same as the numbers in the project overview (which are the same as the msgfmt numbers). Here are some example numbers from a test I just ran: Before fuzzying empty string: Project Overview ---------------- Total: 97 Translated: 90 Not ready: 3 Untranslated: 4 Incomplete: 7 Editor ------ Total: 97 Not ready: 3 Untranslated: 4 Pology ------ total: 97 translated: 90 fuzzy: 3 untranslated: 4 msgfmt --statistics ------------------- translated: 90 fuzzy: 3 untranslated: 4 *After* fuzzying empty string: Project Overview: no change msgfmt --statistics: no change Editor (‘Not ready’ changed) ---------------------------- Total: 97 Not ready: 4 (before: 3) Untranslated: 4 Pology (‘fuzzy’ and ‘untranslated’ changed) ------------------------------------------- total: 97 translated: 90 fuzzy: 4 (before: 3) untranslated: 3 (before: 4) BTW, for the Pology tests, I used ‘posieve stats’. Git commit 617c5313ec5f2652c5bbcb70e8e591305171208e by Simon Depiets. Committed on 08/03/2019 at 08:03. Pushed by sdepiets into branch 'master'. Count empty fuzzy as empty only (not as fuzzy too) M +17 -3 src/catalog/catalog.cpp M +1 -1 src/catalog/catalog.h M +1 -0 src/catalog/catalog_private.h https://commits.kde.org/lokalize/617c5313ec5f2652c5bbcb70e8e591305171208e |