Skip to content

Commit

Permalink
Fix failure to find zenmap translations
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
pghmcfc committed Apr 23, 2024
1 parent e8c7e7b commit d217ab0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions zenmap/MANIFEST.in
@@ -0,0 +1 @@
include zenmapCore/data/locale/*/LC_MESSAGES/*.mo
6 changes: 3 additions & 3 deletions zenmap/pyproject.toml
Expand Up @@ -23,12 +23,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",
Expand All @@ -47,7 +48,6 @@ version = {attr = "zenmapCore.Version.VERSION"}
[tool.setuptools.package-data]
"zenmapCore.data.pixmaps" = ["*.gif", "*.png"]
"zenmapCore.data.pixmaps.radialnet" = ["*.png"]
"zenmapCore.data.locale" = ["*.mo"]
"zenmapCore.data.config" = ["zenmap.conf", "scan_profile.usp", "zenmap_version"]
"zenmapCore.data.docs" = ["*.html"]
"zenmapCore.data.misc" = ["*.xml"]

0 comments on commit d217ab0

Please sign in to comment.