Home > Chromium, Ubuntu > Chromium translations dashboard

Chromium translations dashboard

Two weeks ago, I noticed that the Chromium translations page on Launchpad showed way more green than usual. For me, “green” meant that translations come from the upstream tree. I was quite surprised to see so many strings turned green overnight, even for completely new langs and for templates I knew upstream already said they can’t take.
I quickly checked the output logs of my converter, fearing the worst, fortunately there was nothing wrong with it. I scanned the Launchpad-Translators mailing list and found it was an improvement. I read it twice, and I still don’t see what the benefit for Chromium could be. Obviously, Chromium will not move to Launchpad, not even its translations. What Launchpad gets is a gettext export, using my converter as a bidirectional gateway with the native format (Grit) living in the upstream tree, and I still don’t see that tree imported into Launchpad either (dozens nested svn and git trees, controlled by a py script called gclient managing the modular dependencies). After giving it more thoughts, I realized the old colors were more useful for my very particular use case, so I needed them back, somehow.

My first idea was to use the Launchpad API, which I use in other projects, but it quickly proved a dead end. The next idea was to directly hook that up into my converter, which is seeing all the strings after all, so it was the right place to extract figures from, and, why not, create a nice dashboard.

I went on, added more Python code to my already pretty long converter, played with some CSS gradients and created this:

(click on the image to see it completely)

This page lives there and is updated daily.

A few comments:

  1. I’m not a web designer. The page looks nice to me in Chromium, but is probably ugly or broken in other browsers. If you have ideas to improve it, please ping me.
  2. This page also reports conversion errors (meaning rejected strings), which are not visible in Launchpad as Rosetta has no way of knowing there’s a problem with those strings. If you are a translator of one of those listed langs, please go fix it 🙂
  3. The numbers are taken at the end of the conversion chain, meaning all non-red strings successfully passed all the sanity checks and should end-up in the debs.
  4. Once strings are visible in this page, they will be in the next daily build. An almost instant reward for translators.
  5. I don’t have a “Need Review” category, obviously, Launchpad doesn’t export those strings.
  6. Completely new langs (declared in Launchpad but for which there’s no string yet) are not visible here (6 langs have 0 strings at the moment), you need to land at least one string.
  7. If you look closely at both screenshots, some numbers differ, like for Spanish. 0 missing in LP, 1 in my dashboard. It’s caused by the asynchronous export of Launchpad, it always arrives too late compared to the daily build, skipping a cycle. Too bad. It would be nice to be able to schedule that export (like 1h before I kick off a build). EDIT: Spanish was a bad example, that one string is in fact bogus (it’s listed at the top of the page, so it has been rejected). That’s a better example of my 2nd and 3rd points combined.

the goal remains the same, eradicate the red, and land a maximum of strings upstream (less blue and purple).

Advertisements
  1. January 3, 2011 at 09:31

    Looks great and it’s also useful!

    It helped me fixed an errot in translation so i will definetly keep an eye on it.

    Is it possible you can add also date and time of the last webpage update?

    • fta
      January 3, 2011 at 17:50

      shouldn’t be a problem to add a timestamp. I’ll see what I can do shortly.

      • fta
        January 9, 2011 at 16:21

        done

  1. January 7, 2011 at 01:46
  2. January 23, 2011 at 19:07

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: