Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d55d5c93
Commit
d55d5c93
authored
12 years ago
by
Steve Strassmann
Browse files
Options
Downloads
Patches
Plain Diff
addressed Don\'s comments on pull request
parent
3fd004e2
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
i18n/generate.py
+2
-2
2 additions, 2 deletions
i18n/generate.py
i18n/test/test_extract.py
+2
-8
2 additions, 8 deletions
i18n/test/test_extract.py
with
4 additions
and
10 deletions
i18n/generate.py
+
2
−
2
View file @
d55d5c93
...
...
@@ -21,7 +21,7 @@ def merge(locale, target='django.po'):
"""
For the given locale, merge django-partial.po, messages.po, mako.po -> django.po
"""
LOG
.
info
(
'
Merging locale=
%s
'
%
locale
)
LOG
.
info
(
'
Merging locale=
{0}
'
.
format
(
locale
)
)
locale_directory
=
messages_dir
(
locale
)
files_to_merge
=
(
'
django-partial.po
'
,
'
messages.po
'
,
'
mako.po
'
)
validate_files
(
locale_directory
,
files_to_merge
)
...
...
@@ -45,7 +45,7 @@ def validate_files(dir, files_to_merge):
for
path
in
files_to_merge
:
pathname
=
os
.
path
.
join
(
dir
,
path
)
if
not
os
.
path
.
exists
(
pathname
):
raise
Exception
(
"
File not found:
%s
"
%
pathname
)
raise
Exception
(
"
File not found:
{0}
"
.
format
(
pathname
)
)
def
main
():
configuration
=
get_config
()
...
...
This diff is collapsed.
Click to expand it.
i18n/test/test_extract.py
+
2
−
8
View file @
d55d5c93
...
...
@@ -22,16 +22,10 @@ class TestExtract(TestCase):
self
.
start_time
=
datetime
.
now
()
-
timedelta
(
seconds
=
1
)
super
(
TestExtract
,
self
).
setUp
()
if
not
SETUP_HAS_RUN
:
self
.
run_main
()
# Run extraction script. Warning, this takes 1 minute or more
extract
.
main
()
SETUP_HAS_RUN
=
True
def
run_main
(
self
):
# Run extraction script. Warning, this takes 1 minute or more
print
"
***********************
"
print
"
***********************
"
print
"
***********************
"
extract
.
main
()
def
get_files
(
self
):
"""
This is a generator.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment