summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-11 16:51:44 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-12 11:34:59 +0100
commit9e71d383bf59573a1dd48964a2c7900a57161973 (patch)
tree8d4f2013815836ae4665825809b1f3bf8e9c4b77 /setup.cfg
parent4e46d7f7446b66e7f128169bb15b9cc88b03b3ba (diff)
downloadhydrilla-builder-9e71d383bf59573a1dd48964a2c7900a57161973.tar.gz
hydrilla-builder-9e71d383bf59573a1dd48964a2c7900a57161973.zip
internationalize using Babel
this commit also makes the sdist tarball generated by setuptools REUSE-compliant
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg30
1 files changed, 28 insertions, 2 deletions
diff --git a/setup.cfg b/setup.cfg
index b949fb6..78e384b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -35,10 +35,12 @@ include_package_data=True
install_requires =
click
jsonschema
- importlib; python_version == "2.6"
# reuse is optional:
# reuse
+[options.package_data]
+* = *.mo
+
[options.extras_require]
test = pytest
setup = setuptools_scm
@@ -50,4 +52,28 @@ exclude =
[options.entry_points]
console_scripts =
- hydrilla-builder = hydrilla.builder.__main__:perform_build
+ hydrilla-builder = hydrilla.builder.build:perform
+
+[extract_messages]
+keywords = _
+width = 80
+input_dirs = src/hydrilla
+output_file = src/hydrilla/locales/hydrilla_builder.pot
+msgid_bugs_address = koszko@koszko.org
+sort_by_file = True
+copyright_holder = Wojtek Kosior <koszko@koszko.org>
+
+[init_catalog]
+input_file = src/hydrilla/locales/hydrilla_builder.pot
+output_dir = src/hydrilla/locales/
+domain = hydrilla_builder
+
+[update_catalog]
+input_file = src/hydrilla/locales/hydrilla_builder.pot
+output_dir = src/hydrilla/locales/
+domain = hydrilla_builder
+
+[compile_catalog]
+directory = src/hydrilla/locales
+use_fuzzy = True
+domain = hydrilla_builder