translate: fix scanning the ir.models for translations
translate: fix scanning the ir.models for translations

    The loop would only consider models that have >0 records registered in
    ir.model.data.

This is merge of commits 3988ebf4dc130, 070e7d6ac717de and adapt to trunk.


akretion/openerp-server,akretion/openerp-server,akretion/openerp-server