Search code examples
djangolocalegettext

Benefits of keeping gettext's .mo files in repo


For example, why authors of "django-cms" keep gettext's mo files in repo (and this is not just inattention, see this commit), if users always can run manage.py compilemessages? Only to save users from this step and make installation process a little bit easier?

There are lot of other examples: django-filer and even django itself!

Thanks!


Solution

  • Usually you don't keep generated files in repository, and that't right.

    But sometimes your app installed as-is, e.g. from pypi. In this case, user will not run compilemessages and it makes sense to keep precompiled .mo files in distro