mozilla/kuma — pull request #620 by lmorchard (2012-09-26 22:49:17+00:00)
Title: fix bug 792418: Build sensible default topic structure for translations

* If a translation doesn't have a topic parent, attempt to assign one
for it:

* If the document on which the translation is based has a topic
parent, look for the translation of that topic parent in the current
locale and use it.

* If the document on which the translation is based has a topic parent,
but that topic parent has not yet been translated, auto-clone a
stub translation in the current locale and use it.

* All the above wrapped in a utility method in anticipation of
bug 792417

* Tests