Commit 117bc4a9 by Ned Batchelder

Merge pull request #9216 from edx/ned/speed-i18n-extract

Ignore more directories to speed up extracting i18n strings.
parents 1a251a49 2300f382
...@@ -90,12 +90,28 @@ dummy_locales: ...@@ -90,12 +90,28 @@ dummy_locales:
# Directories we don't search for strings. # Directories we don't search for strings.
ignore_dirs: ignore_dirs:
- docs
- src
- i18n
- test_root
- common/static/xmodule/modules - common/static/xmodule/modules
- common/static/xmodule/descriptors - common/static/xmodule/descriptors
# Directories with no user-facing code.
- '*/migrations'
# Directories that are not our code.
- common/static/js/vendor/mathjax-MathJax-c9db6ac
- node_modules
# Directories containing files that can't have strings in them.
- conf
- docs
- '*/fonts'
- '*/img'
- '*/images'
- '*/sass'
- '*/css'
# Directories that only contain tests.
- common/test
- test_root
- '*/terrain'
- '*/spec'
- '*/tests'
- '*/features'
# Third-party installed apps that we also extract strings from. When adding a # Third-party installed apps that we also extract strings from. When adding a
......
...@@ -8,7 +8,6 @@ import time ...@@ -8,7 +8,6 @@ import time
import requests import requests
from nose.tools import assert_equal, assert_true, assert_false from nose.tools import assert_equal, assert_true, assert_false
from common import i_am_registered_for_the_course, visit_scenario_item from common import i_am_registered_for_the_course, visit_scenario_item
from django.utils.translation import ugettext as _
from django.conf import settings from django.conf import settings
from cache_toolbox.core import del_cached_content from cache_toolbox.core import del_cached_content
from xmodule.contentstore.content import StaticContent from xmodule.contentstore.content import StaticContent
...@@ -432,7 +431,7 @@ def error_message_is_shown(_step): ...@@ -432,7 +431,7 @@ def error_message_is_shown(_step):
@step('error message has correct text$') @step('error message has correct text$')
def error_message_has_correct_text(_step): def error_message_has_correct_text(_step):
selector = '.video .video-player h3' selector = '.video .video-player h3'
text = _('ERROR: No playable video sources found!') text = 'ERROR: No playable video sources found!'
assert world.css_has_text(selector, text) assert world.css_has_text(selector, text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment