mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-18 05:39:58 +00:00
firewalld: fix i18n
This commit is contained in:
@@ -54,6 +54,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patches = [
|
||||
./respect-xml-catalog-files-var.patch
|
||||
./specify-localedir.patch
|
||||
];
|
||||
|
||||
postPatch =
|
||||
|
||||
12
pkgs/by-name/fi/firewalld/specify-localedir.patch
Normal file
12
pkgs/by-name/fi/firewalld/specify-localedir.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- a/src/firewall/config/__init__.py.in
|
||||
+++ b/src/firewall/config/__init__.py.in
|
||||
@@ -19,6 +19,9 @@
|
||||
DOMAIN = "firewalld"
|
||||
import gettext
|
||||
|
||||
+locale.bindtextdomain(DOMAIN, "/usr/share/locale")
|
||||
+gettext.bindtextdomain(DOMAIN, "/usr/share/locale")
|
||||
+
|
||||
gettext.install(domain=DOMAIN)
|
||||
|
||||
from . import dbus # noqa: F401
|
||||
Reference in New Issue
Block a user