Software Center's upstream project and Ubuntu source package need to share translations

Asked by David Planella

Last week I noticed that in Software Center, the upstream and downstream templates were not sharing translations.

Upstream: https://translations.launchpad.net/software-center/trunk/+pots/software-center
Downstream: https://translations.launchpad.net/ubuntu/oneiric/+source/software-center/+pots/software-center

The issue seemed to be that the templates did not have the same name, which was sorted out at that point. Another issue was that even after that, messages did not seem to be marked as shared. The advice there was to export translations from the upstream project and upload them to the downstream source package.

They just got imported today, and I'm still seeing translations not being marked as shared. In this particular message, I did a translation in Ubuntu this morning:

https://translations.launchpad.net/ubuntu/oneiric/+source/software-center/+pots/software-center/ca/+translate?batch=10&show=all&search=connected

And I would have expected it to be propagated to upstream, which didn't seem to happen:

https://translations.launchpad.net/software-center/trunk/+pots/software-center/ca/+translate?batch=10&show=all&search=connected

Notice the Ubuntu translation appearing as a global suggestion instead of just getting applied.

Could someone shed some light on why messages are not being shared and help marking them as such?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
Данило Шеган Edit question
Last query:
Last reply:
Whiteboard:
Assigned to Danilo per his instructions.
Revision history for this message
Данило Шеган (danilo) said :
#1

Staging is supposed to be last updated on July 23rd, so after you filed your question. I've tested there, and it seems that these are not sharing internally. For instance, for message 1 in the two templates:

lpmain_staging=> select tti.potemplate, potemplate.name, potemplate.productseries, potemplate.sourcepackagename, tti.sequence, tti.potmsgset from potmsgset join pomsgid on potmsgset.msgid_singular=pomsgid.id join translationtemplateitem tti on tti.potmsgset=potmsgset.id join potemplate on tti.potemplate=potemplate.id where pomsgid.msgid='Failed to delete review';
 potemplate | name | productseries | sourcepackagename | sequence | potmsgset
------------+-----------------+---------------+-------------------+----------+-----------
      45141 | software-center | | 69751 | 1 | 10296893
      30838 | software-center | 24590 | | 1 | 10296958
(2 rows)

This means that there are two distinct potmsgsets for the "Failed to delete review" message internally (and similarly for other messages I tried). This translates to "migration was never done". Until migration is done, there is nothing we can do. I'll see how can we easily schedule a migration for software-center.

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

A query to get all the shared messages in a template (by template name): https://pastebin.canonical.com/50451/

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

Btw, there should be an easy way to trigger the migration: remove the packaging link, then re-add it. Not sure if that will have any other bad side effects.

Can you help with this problem?

Provide an answer of your own, or ask David Planella for more information if necessary.

To post a message you must log in.