File zenmap-fix-locale-install.patch of Package nmap
From d217ab017e667d536b7d43b8920b8d5700753465 Mon Sep 17 00:00:00 2001
From: Paul Howarth <paul@city-fan.org>
Date: Tue, 23 Apr 2024 14:31:18 +0100
Subject: [PATCH] Fix failure to find zenmap translations
Installation of translations hasn't worked since the conversion to
Python 3 (#2088), and was broken in a different way in the migration
from setup.py to pyproject.toml since package data files are not found
deep down in directory hierarachies.
This should address that (fixes #2718).
---
zenmap/MANIFEST.in | 1 +
zenmap/pyproject.toml | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
create mode 100644 zenmap/MANIFEST.in
Index: b/zenmap/MANIFEST.in
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ b/zenmap/MANIFEST.in 2025-09-09 11:11:39.517408683 +0200
@@ -0,0 +1 @@
+include zenmapCore/data/locale/*/LC_MESSAGES/*.mo
Index: b/zenmap/pyproject.toml
===================================================================
--- a/zenmap/pyproject.toml 2025-05-30 02:10:25.000000000 +0200
+++ b/zenmap/pyproject.toml 2025-09-09 11:11:39.517408683 +0200
@@ -24,12 +24,13 @@ Changelog = "https://nmap.org/changelog"
[project.gui-scripts]
zenmap = "zenmapGUI.App:run"
-[tool.setuptools]
-packages = [
+[tool.setuptools.packages.find]
+include = [
"zenmapCore",
"zenmapCore.data.config",
"zenmapCore.data.docs",
"zenmapCore.data.locale",
+"zenmapCore.data.locale.*.LC_MESSAGES",
"zenmapCore.data.misc",
"zenmapCore.data.pixmaps",
"zenmapCore.data.pixmaps.radialnet",