Make remove_translations side aware.

Bug #705652 reported by Henning Eggers
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Abel Deuring

Bug Description

The script in lib/lp/translations/scripts/remove_translations.py is not yet side-aware. It needs to be looked at and most likely fixed before it can be run again.

Related branches

Deryck Hodge (deryck)
Changed in launchpad:
assignee: nobody → Abel Deuring (adeuring)
status: Triaged → In Progress
Revision history for this message
Abel Deuring (adeuring) wrote :

I discussed this with Danilo yesterday. Our conclusion:

In its current state, the script "substitutes" a deleted message if deleted_message.is_current_ubuntu == True, and if another message exists for the same potemplate and same language where other_message.is_current_upstream == True. (Where "same potemplate" means that both message.potemplate IS NULL for both messages or deleted_message.potemplate==replacement_message.potemplate).

If such a message exists, its is_current_ubuntu flag will be set to True.

For all other cases, like deleting a message where is_current_upstream == True, or deleting a diverged message which is current in Ubuntu and where a shared message being current in Ubuntu exists, are not handled.

This _could_ probably be extended so that the deletion of a current message works more like an "undo" feature (based on the date_reviewed value of other translation messages for the same POTMsgSet and language).

But since the srcipt is used so rarely, it is not worth the implementation effort.

It might make sense though to report in the script which of the deleted messages had the flags is_current_(ubuntu|upstream) set. After all, this means that some POTMsgSets are suddenly untranslated.

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
milestone: none → 11.02
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad:
status: Fix Committed → Fix Released
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.