mozilla/kuma — pull request #639 by lmorchard (2012-10-03 21:11:26+00:00)
Title: fix bug 792417: Management command to repair breadcrumbs for translations without

I expected this to be more involved. But, it turned out kind of simple. With a full wiki import, try this:

./manage.py repair_translation_breadcrumbs

And, you should get output something like this:

2012-10-03 13:51:29,490 DEBUG Repairing translated breadcrumbs for 200 docs...
2012-10-03 13:51:30,252 DEBUG /fr/docs/en -> /fr/docs/BrowserID
2012-10-03 13:51:30,261 DEBUG /de/docs/BrowserID -> /de/docs/BrowserID/Quick_Setup
2012-10-03 13:51:30,269 DEBUG /pt-BR/docs/BrowserID -> /pt-BR/docs/BrowserID/Configuracao_Rapida
2012-10-03 13:51:30,279 DEBUG /pt-BR/docs/Apps -> /pt-BR/docs/Apps/Manifest
2012-10-03 13:51:30,297 DEBUG /ja/docs/JavaScript/Reference/Global_Objects/Function -> /ja/docs/JavaScript/Reference/Global_Obje
cts/Function/name
2012-10-03 13:51:30,307 DEBUG /pt-BR/docs/en -> /pt-BR/docs/JavaScript
2012-10-03 13:51:30,314 DEBUG /pt-BR/docs/Apps -> /pt-BR/docs/Apps/Platform-specific_details
2012-10-03 13:51:30,325 DEBUG /fr/docs/Mozilla -> /fr/docs/Mozilla/Boot_to_Gecko
2012-10-03 13:51:30,332 DEBUG /zh-TW/docs/Mozilla -> /zh-TW/docs/Mozilla/Boot_to_Gecko
2012-10-03 13:51:30,344 DEBUG /pt-BR/docs/Apps -> /pt-BR/docs/Apps/Submitting_an_app
2012-10-03 13:51:30,361 DEBUG /ja/docs/JavaScript/Reference/Statements -> /ja/docs/Core_JavaScript_1.5_Reference/Statements/thro
w
2012-10-03 13:51:30,376 DEBUG /pt-BR/docs/HTML/Element -> /pt-BR/docs/HTML/Element/Audio
2012-10-03 13:51:30,390 DEBUG /ja/docs/JavaScript/Reference/Global_Objects/Function -> /ja/docs/JavaScript/Reference/Global_Obje
cts/Function/caller
...