From e9429b85102a83d8eaace04c7cb602d4738b6479 Mon Sep 17 00:00:00 2001 From: tobes Date: Fri, 27 Jul 2012 19:45:08 +0100 Subject: [PATCH] [#2750] .js i18n ripping including translate() --- ckan/lib/extract.py | 1 - setup.cfg | 3 ++- setup.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ckan/lib/extract.py b/ckan/lib/extract.py index 729a1a3305b..7acd20fd9db 100644 --- a/ckan/lib/extract.py +++ b/ckan/lib/extract.py @@ -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) - diff --git a/setup.cfg b/setup.cfg index 3e5a8be76ac..f867f8c5387 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,6 +15,7 @@ directory = ckan/i18n statistics = true [extract_messages] +keywords = translate add_comments = TRANSLATORS: output_file = ckan/i18n/ckan.pot width = 80 @@ -31,4 +32,4 @@ output_dir = ckan/i18n previous = true [upload_sphinx] -upload-dir = build/sphinx/html \ No newline at end of file +upload-dir = build/sphinx/html diff --git a/setup.py b/setup.py index 4046df82a77..ea8d2d9678c 100644 --- a/setup.py +++ b/setup.py @@ -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),