From 24f0e21319f12d2922f2e2e900e669dbadb5d0bb Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 6 Feb 2022 00:03:13 +0100 Subject: [PATCH] sandbox/update_pot.py: Also generate .pot file for the core --- sandbox/{update_plugins_messagespot.py => update_pot.py} | 3 +++ 1 file changed, 3 insertions(+) rename sandbox/{update_plugins_messagespot.py => update_pot.py} (75%) diff --git a/sandbox/update_plugins_messagespot.py b/sandbox/update_pot.py similarity index 75% rename from sandbox/update_plugins_messagespot.py rename to sandbox/update_pot.py index f0f5b5b74..8f78a41be 100644 --- a/sandbox/update_plugins_messagespot.py +++ b/sandbox/update_pot.py @@ -9,3 +9,6 @@ for plugin_path in pathlib.Path("plugins/").iterdir(): if plugin_name[0] == plugin_name[0].lower(): continue subprocess.run(["pygettext3", "-D", "config.py", "plugin.py"], cwd=plugin_path) + +core_files = pathlib.Path("src/").glob("**/*.py") +subprocess.run(["pygettext3", "-p", "locales/", *core_files])