Empty translations are counted as completed translations

Bug #165218 reported by Steven Harper
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Carlos Perelló Marín

Bug Description

As seen in Italian's entry at https://translations.launchpad.net/easycrypt/trunk/+pots/easycrypt

statistics doesn't match because we are counting empty translations coming from .po files as messages completely translated.

Revision history for this message
Carlos Perelló Marín (carlos) wrote :

This is a regression with our recent refactoring

Changed in launchpad:
importance: Undecided → Critical
milestone: none → 1.1.11
status: New → Confirmed
Changed in launchpad:
milestone: 1.1.11 → none
Changed in rosetta:
milestone: none → 1.1.11
Changed in rosetta:
status: Confirmed → In Progress
assignee: nobody → carlos
description: updated
Revision history for this message
Данило Шеган (danilo) wrote :

Carlos, I think the problem is a bit different here: the fix should be as simple as https://pastebin.canonical.com/1195/ (note that the count of 'changed in launchpad' is exactly 60, and untranslated is calculated as "total - imported (currentCount) - new (rosettaCount)" without taking "changed in LP" (updatesCount) into account).

Revision history for this message
Carlos Perelló Marín (carlos) wrote :

Hmm, that seems to fix part of the problem but not the whole one.

If you browse the Italian translations: https://translations.launchpad.net/easycrypt/trunk/+pots/easycrypt/it/+translate you can see how we are showing that we diverged completely from what upstream had, although those translations from upstream is the empty string...

Revision history for this message
Данило Шеган (danilo) wrote :

Things to fix for this:
 - Use is_empty before displaying 'Packaged' suggestion
 - Fix getPOTMsgSetsChangedInLaunchpad to not return is_empty translation messages
 - Fix RosettaStats translatedCount method to take updatesCount into account
 - Do not create is_empty imported messages (they are useful only for translations through LP), if we're overriding existing imported message, just unset the is_imported flag

Revision history for this message
Carlos Perelló Marín (carlos) wrote :

Fixed in RF 5253

Changed in rosetta:
status: In Progress → Fix Committed
Revision history for this message
Carlos Perelló Marín (carlos) wrote :

Moved back to 'Confirmed' so we implement a proper fix, prevent any TranslationMessage created with all msgstr? as NULL for is_imported ones. If we get that situation, instead of create an empty one, we should unset the is_imported flag.

Changed in rosetta:
status: Fix Committed → In Progress
milestone: 1.1.11 → 1.1.12
Revision history for this message
Carlos Perelló Marín (carlos) wrote :

Also, once the fix lands, we should execute: https://pastebin.canonical.com/1234/ in production to clean the database.

Changed in rosetta:
assignee: carlos → nobody
status: In Progress → Confirmed
Changed in rosetta:
status: Confirmed → In Progress
Changed in rosetta:
importance: Critical → High
Revision history for this message
Данило Шеган (danilo) wrote :

Ok, so this is how it's working out:
 - not showing packaged is_empty translations is now #173928 (to be in review shortly)
 - stats problem is actually not what I described above, but rather #173527 (description still says the same thing, but look at the comment below): to be in review shortly as well
 - Carlos has already fixed the changed-in-LP filter with RF 5253.
 - creating empty translationmessages for imported messages needs more discussion (i.e. I think we should still create them if previous import had something translated, and now it's being unset, so we can log whose import [last-translator, uploader] actually did this).

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

The user-visible issues here have been addressed individually. Downgrading the rest to Medium and moving into 2008.

Changed in rosetta:
importance: High → Medium
milestone: 1.1.12 → 1.2.1
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

The only thing left to address is exactly what empty translation messages are worth keeping in the database, and to get rid of the rest. That's in bug 183491.

Changed in rosetta:
status: In Progress → Fix Released
Joey Stanford (joey)
Changed in rosetta:
assignee: nobody → carlos
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.