Skip to content

Commit

Permalink
[QOLDEV-955] start adding Babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrawnCA committed Nov 22, 2024
1 parent f228abf commit f3897b8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[extract_messages]
keywords = translate isPlural
add_comments = TRANSLATORS:
output_file = ckanext/qgov/common/i18n/ckanext-qgov.pot
width = 80

[init_catalog]
domain = ckanext-qgov
input_file = ckanext/qgov/common/i18n/ckanext-qgov.pot
output_dir = ckanext/qgov/common/i18n

[update_catalog]
domain = ckanext-qgov
input_file = ckanext/qgov/common/i18n/ckanext-qgov.pot
output_dir = ckanext/qgov/common/i18n
previous = true

[compile_catalog]
domain = ckanext-qgov
directory = ckanext/qgov/common/i18n
statistics = true
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
entry_points="""
[ckan.plugins]
qgovext=ckanext.qgov.common.plugin:QGOVPlugin
[babel.extractors]
ckan = ckan.lib.extract:extract_ckan
""",

# If you are changing from the default layout of your extension, you may
Expand Down

0 comments on commit f3897b8

Please sign in to comment.