translate / pootle

Online translation tool
http://pootle.translatehouse.org
GNU General Public License v3.0
1.49k stars 287 forks source link

extension action for Mozilla langpack (XPI) generation #2872

Closed dupuy closed 11 years ago

dupuy commented 11 years ago

Depends on:

Building on architecture for creating extension actions in bug #2868, implement something a bit more ambitious (and useful) - an action to dynamically build a langpack that can be downloaded for localization deployment independent of release cycle. Initial target would probably be Mozilla langpack build (although certainly complicated enough, but could also be used for e.g. OLPC/Sugar langpacks.

Use case is something like this:

Aditya wants to generate a language pack for Indonesian Firefox. She should be able to click on a link, Pootle generates the language pack. Ideally when done it reports the URL where the language pack can be downloaded or it returns a redirect to the XPI.

    Needs: mozilla-aurora checkout, po2moz, template-enUS from mozilla-l10n
dupuy commented 11 years ago

commit 2e45d42b3b58de92f870eaef825c9398d9a653e8 Author: Alexander Dupuy alex.dupuy@mac.com Date: Fri May 24 02:59:03 2013 -0400

Generate consistent download filenames

This is probably necessary for caching to work properly

commit d702d1184fbe0a0af24750b97b31ba78ecd66e3c Author: Alexander Dupuy alex.dupuy@mac.com Date: Fri May 24 01:47:02 2013 -0400

Add more logging to Mozilla extension actions

commit 0f148596cfbee9fc3291a907eb5aa98238465b0f Author: Alexander Dupuy alex.dupuy@mac.com Date: Fri May 24 01:28:02 2013 -0400

Working XPI langpack generation

but rather slow

commit b73f75c67f7045aff1d016f2996fa36978d33e92 Author: Alexander Dupuy alex.dupuy@mac.com Date: Thu May 23 22:24:02 2013 -0400

Better exception hierarchy handling to avoid missed exceptions

commit 2487847e1a3bf509555df45406f21acb8f0097af Author: Alexander Dupuy alex.dupuy@mac.com Date: Thu May 23 21:15:40 2013 -0400

Actually copy files into existing directories

commit f693a6ec3a1105ea7177cd2bf01c780ddafd538d Author: Alexander Dupuy alex.dupuy@mac.com Date: Thu May 23 18:37:32 2013 -0400

Lord save us from the stray trailing comma!

Python is a wonderful language, but when a stray trailing comma (barely
visible on my fly-specked laptop screen) causes an inscrutable error like
"'tuple' object has no attribute 'endswith'" - and doesn't even
trigger a warning from pylint! - really, the government should pass a law!
(or, at least, there should be a pylint extension to catch this error)

[There is, in fact, a pylint ticket about this very issue, but it remains
unresolved: http://www.logilab.org/ticket/92253]

commit 86456412b958c9f3de71ac6ab1e185d8c326cd6e Author: Alexander Dupuy alex.dupuy@mac.com Date: Thu May 23 18:00:37 2013 -0400

Use set rather than mono-valued dict

for a cleaner implementation tracking directories created

commit 82c652853e67408602c5d128f36626c1f50269ad Author: Alexander Dupuy alex.dupuy@mac.com Date: Thu May 23 09:59:10 2013 -0400

Second pass at langpack action

refactor tarball action functions for reuse
handle special case files (borrowed from mozilla-l10n)

commit 69860356551bbdc6523d7c82e07c2a44c76064af Author: Alexander Dupuy alex.dupuy@mac.com Date: Wed May 22 05:57:35 2013 -0400

first pass at langpack action