i18n: added JS extractors to work with the standard extract_messages command.

This commit is contained in:
Marcin Kuzminski 2016-07-04 00:02:14 +02:00
parent 605b26b460
commit 2fa4556f4a
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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),