Skip to content

Firewall: Rules [new]: Fix action, ipprotocol and protocol translations (legacy rules). Fix Automatically generated rules category (legacy rules).#10299

Open
Monviech wants to merge 3 commits into
masterfrom
firewall-translation-fixes
Open

Firewall: Rules [new]: Fix action, ipprotocol and protocol translations (legacy rules). Fix Automatically generated rules category (legacy rules).#10299
Monviech wants to merge 3 commits into
masterfrom
firewall-translation-fixes

Conversation

@Monviech
Copy link
Copy Markdown
Member

Important notices

Before you submit a pull request, we ask you kindly to acknowledge the following:

If AI was used, please disclose:

  • Model used:
  • Extent of AI involvement:

Describe the problem

  • Add % fields to separate translated and raw value for the frontend.
  • Fix legacy_rules not getting the "Automatically generated rules" category metadata added

Related issue

Fixes: #10249

…ns. Fix Automatically generated rules category.
@Monviech Monviech requested a review from fichtner May 13, 2026 09:56
@Monviech Monviech self-assigned this May 13, 2026
@Monviech Monviech added the cleanup Low impact changes label May 13, 2026
@Monviech Monviech changed the title Firewall: Rules [new]: Fix action, ipprotocol and protocol translations. Fix Automatically generated rules category. Firewall: Rules [new]: Fix action, ipprotocol and protocol translations (legacy rules). Fix Automatically generated rules category (legacy rules). May 13, 2026
'inet' => gettext('IPv4'),
'inet6' => gettext('IPv6'),
'inet46' => '', /* XXX remove when filter.lib.inc use is removed */
'inet46' => gettext('IPv4+IPv6'), /* XXX remove when filter.lib.inc use is removed */
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was so "*" is displayed, which is a bit cleaner than cluttering IPv4+IPv6

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But then it's not the same as the MVC rules display inet46:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't have to be. inet46 is an atrocity

Comment thread src/opnsense/scripts/filter/list_non_mvc_rules.php Outdated
Comment thread src/opnsense/scripts/filter/list_non_mvc_rules.php Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Low impact changes

Development

Successfully merging this pull request may close these issues.

Existing legacy rules are not displayed correctly in the new rules (allow/block symbol). German and other translations.

2 participants