CTPUG / wafer

A wafer-thin web application for running small conferences. Built using Django.
ISC License
48 stars 27 forks source link

Specify folder to install the django.mo file in. #622

Closed hodgestar closed 3 years ago

hodgestar commented 3 years ago

This prevents the warning:

warning: install_data: setup script did not provide a directory for 'wafer/locale/it/LC_MESSAGES/django.mo' -- installing right in 'build/bdist.linux-x86_64/wheel/wafer-0.12.0.data/data'

when running python setup.py bdist_wheel.

See https://docs.python.org/3/distutils/setupscript.html#installing-additional-files.

However, I'm not sure what the right folder to specify is. Does anything use django.mo directly?

stefanor commented 3 years ago

Does anything use django.mo directly?

Yeah, gettext does.

I think it needs to be installed into a locale directory within a Django app, to be found.

hodgestar commented 3 years ago

@drnlm Thanks!