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

    Fixed user interface strings in config.xml - intentional?

    Scheduled Pinned Locked Moved Development
    3 Posts 2 Posters 782 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.
    • S
      stilez
      last edited by

      I'm intrigued why fixed user interface text strings, used to describe tunables in the UI, are kept in the router config files as if they are variable parts of the configuration.

      The tunables might change value, or new ones be added over time, but I'd expect the UI  description narrative for any given tunable, to be a hard coded string within any given router release, as much as gettext() values or any other UI strings which wouldn't be in $config or config.xml.

      (It also allows slightly different descriptions to co-exist for the same tunable when default_config.xml and update_config.inc don't exactly match, although very minor it's surely not desired).

      I just noticed this and I'm curious if there's some significant historical or current reason why these fixed UI strings (but none other) are kept in the config rather than migrated within the code base itself like all other fixed UI strings?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        It was added that way so the entire list could be customized by the user. The user can add their own tunables or remove defaults they do not want.

        It could be setup as a mix of default + user tunables in the future but I'm not sure if that's on anyone's todo list.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • S
          stilez
          last edited by

          Thanks Jim.
          Helpful, exactly what I needed :)

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