From c2be385d0dbf3303233c1d38b6459c821e6951c6 Mon Sep 17 00:00:00 2001 From: "kujiu (@rincevent)" Date: Wed, 3 Feb 2021 00:54:33 +0100 Subject: [PATCH] Fix: locale config --- setup.cfg | 20 ++++++++++++++++++++ setup.py | 1 - 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 8ce115d..eea5cc2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,3 +5,23 @@ license-files = LICENSE-de LICENSE-fr LICENSE-nl + + +[extract_messages] +output_file = sphinx_gemini_builder/locale/sphinx.pot +keywords = _ __ l_ lazy_gettext gettext ngettext +add_comments = Translators: + +[init_catalog] +domain = sphinx +input_file = sphinx_gemini_builder/locale/sphinx.pot +output_dir = sphinx_gemini_builder/locale/ + +[update_catalog] +domain = sphinx +input_file = sphinx_gemini_builder/locale/sphinx.pot +output_dir = sphinx_gemini_builder/locale/ + +[compile_catalog] +domain = sphinx +directory = sphinx_gemini_builder/locale/ diff --git a/setup.py b/setup.py index e6c8992..59e44f6 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,6 @@ setup( "sphinx_gemini_builder": [ "locale/*/LC_MESSAGES/*.po", "locale/*/LC_MESSAGES/*.mo", - "templates/*.gmi", ] }, entry_points={