diff --git a/MANIFEST.in b/MANIFEST.in index 5743f605a..1f0d6acd3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -5,3 +5,4 @@ include youtube-dl.bash-completion include youtube-dl.fish include youtube-dl.1 recursive-include docs Makefile conf.py *.rst +include share/locale/*/LC_MESSAGES/youtube_dl.mo diff --git a/setup.py b/setup.py index 97b551386..e8cc4de8c 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,7 @@ from __future__ import print_function import os.path import warnings import sys +import glob import io import zipfile @@ -64,6 +65,9 @@ else: ('share/doc/youtube_dl', ['README.txt']), ('share/man/man1', ['youtube-dl.1']) ] + for mo_file in glob.glob('share/locale/*/LC_MESSAGES/youtube_dl.mo'): + files_spec.append((os.path.dirname(mo_file), [mo_file])) + root = os.path.dirname(os.path.abspath(__file__)) data_files = [] for dirname, files in files_spec: