diff --git a/.gitignore b/.gitignore index b0d2f85..cbaf276 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,5 @@ dist/ *.egg-info *.mo *.prob -*.dup \ No newline at end of file +*.dup +.idea/ diff --git a/i18n/extract.py b/i18n/extract.py index 43880a5..5a05d38 100755 --- a/i18n/extract.py +++ b/i18n/extract.py @@ -103,12 +103,12 @@ def run(self, args): if ignores: makemessages += " " + ignores - # Extract strings from django source files, including .py files. - make_django_cmd = makemessages + ' --extension html' + # Extract strings from django source files (*.py, *.html, *.txt). + make_django_cmd = makemessages + ' -d django' execute(make_django_cmd, working_directory=config.BASE_DIR, stderr=stderr) - # Extract strings from Javascript source files. - make_djangojs_cmd = makemessages + ' -d djangojs --extension js' + # Extract strings from Javascript source files (*.js). + make_djangojs_cmd = makemessages + ' -d djangojs' execute(make_djangojs_cmd, working_directory=config.BASE_DIR, stderr=stderr) # makemessages creates 'django.po'. This filename is hardcoded. diff --git a/setup.py b/setup.py index ad762c4..e76adb7 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='i18n_tools', - version='0.1.3', + version='0.1.4', description='edX i18n tools', packages=[ 'i18n',