Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NAT rule creation problem when chosing a different language

    Scheduled Pinned Locked Moved 2.4 Development Snapshots
    5 Posts 2 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      athurdent
      last edited by

      Is it just my test system, or is it impossible to see the options for Translation -> "Other Subnet (enter below)" when trying to create a NAT rule using a different language?

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        It is a real bug. The JavaScript in there compares the selection to the English strings like "Host" and "Other", so it breaks when the strings have been translated in the drop-down list.

        Raise a bug in Redmine. It needs a little bit of thought about how is the best way for the JavaScript to work out what to do on-the-fly.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by

          PR https://github.com/pfsense/pfsense/pull/3469 fixes it. You are welcome to test that. But it will need review because there might be a better way to implement the fix.

          We need to find other places in the code where JavaScript compares some (potentially translated) text to some fixed English text string. Because all those will break when the text has been translated.

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • A
            athurdent
            last edited by

            Thanks, Phil! Works fine here.

            How's en-PI progressing? :)

            1 Reply Last reply Reply Quote 0
            • P
              phil.davis
              last edited by

              PR has been merged. So this will be fixed with a gitsync or the next snapshot.

              As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
              If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.