From b6d879df54205564b5d52ac22da098029a6e9ded Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Sat, 13 Jan 2024 08:33:55 +0900 Subject: [PATCH] policy: Do not specify the gettext-domain Same fix with https://github.com/elementary/switchboard-plug-locale/commit/a407f4d83448041e05e800fd735d26664f66d136 but we embeded the same message in the plug domain thus the message in the polkit dialog is shown as translated as expected. However, it is better to keep the message only in the policy file for maintainability. --- data/meson.build | 8 +------- ...ty-privacy.policy.in.in => security-privacy.policy.in} | 2 +- src/UFWHelpers.vala | 4 ---- 3 files changed, 2 insertions(+), 12 deletions(-) rename data/{security-privacy.policy.in.in => security-privacy.policy.in} (85%) diff --git a/data/meson.build b/data/meson.build index b08f1edd..17e929d0 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,11 +1,5 @@ -gettext_declaration = configure_file( - configuration: configuration_data, - input: 'security-privacy.policy.in.in', - output: '@BASENAME@' -) - i18n.merge_file( - input: gettext_declaration, + input: 'security-privacy.policy.in', output: gettext_name + '.policy', po_dir: meson.project_source_root() / 'po' / 'extra', install: true, diff --git a/data/security-privacy.policy.in.in b/data/security-privacy.policy.in similarity index 85% rename from data/security-privacy.policy.in.in rename to data/security-privacy.policy.in index e7eada06..d3171c76 100644 --- a/data/security-privacy.policy.in.in +++ b/data/security-privacy.policy.in @@ -7,7 +7,7 @@ https://elementary.io/ - Authentication is required to run the Firewall Configuration + Authentication is required to run the Firewall Configuration preferences-system-privacy no diff --git a/src/UFWHelpers.vala b/src/UFWHelpers.vala index 5f9e1bcc..230aaf60 100644 --- a/src/UFWHelpers.vala +++ b/src/UFWHelpers.vala @@ -20,10 +20,6 @@ * Authored by: Corentin Noël */ -#if TRANSLATION - _("Authentication is required to run the Firewall Configuration") -#endif - namespace SecurityPrivacy.UFWHelpers { private string get_helper_path () {