Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
117bc4a9
Commit
117bc4a9
authored
Aug 06, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9216 from edx/ned/speed-i18n-extract
Ignore more directories to speed up extracting i18n strings.
parents
1a251a49
2300f382
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
conf/locale/config.yaml
+20
-4
lms/djangoapps/courseware/features/video.py
+1
-2
No files found.
conf/locale/config.yaml
View file @
117bc4a9
...
@@ -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
...
...
lms/djangoapps/courseware/features/video.py
View file @
117bc4a9
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment