From 2fa4556f4aa286a0a640b4a8e892a2e3d5f07800 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Mon, 4 Jul 2016 00:02:14 +0200 Subject: [PATCH] i18n: added JS extractors to work with the standard extract_messages command. --- setup.cfg | 5 ++++- setup.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index e5ecc6f5..32297f05 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,7 +17,10 @@ output_file = rhodecode/i18n/rhodecode.pot msgid-bugs-address = marcin@rhodecode.com copyright-holder = RhodeCode GmbH no-wrap = true -keywords = lazy_ugettext +keywords = + lazy_ugettext + _ngettext + _gettext [init_catalog] domain = rhodecode diff --git a/setup.py b/setup.py index 54d53901..1d449c42 100644 --- a/setup.py +++ b/setup.py @@ -204,6 +204,7 @@ setup( message_extractors={ 'rhodecode': [ ('**.py', 'python', None), + ('**.js', 'javascript', None), ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}), ('public/**', 'ignore', None),