Skip to content

Commit

Permalink
[#2750] .js i18n ripping including translate()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jul 27, 2012
1 parent 066bb82 commit e9429b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion ckan/lib/extract.py
Expand Up @@ -19,4 +19,3 @@ def extract_ckan(fileobj, *args, **kw):
# we've eaten the file so we need to get back to the start
fileobj.seek(0)
return extractor_function(fileobj, *args, **kw)

3 changes: 2 additions & 1 deletion setup.cfg
Expand Up @@ -15,6 +15,7 @@ directory = ckan/i18n
statistics = true

[extract_messages]
keywords = translate
add_comments = TRANSLATORS:
output_file = ckan/i18n/ckan.pot
width = 80
Expand All @@ -31,4 +32,4 @@ output_dir = ckan/i18n
previous = true

[upload_sphinx]
upload-dir = build/sphinx/html
upload-dir = build/sphinx/html
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -35,6 +35,7 @@
message_extractors = {
'ckan': [
('**.py', 'python', None),
('**.js', 'javascript', None),
('templates/importer/**', 'ignore', None),
('templates/**.html', 'ckan', None),
('templates_legacy/**.html', 'ckan', None),
Expand Down

0 comments on commit e9429b8

Please sign in to comment.