Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    GUI Charset for localization

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    6 Posts 3 Posters 2.4k 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.
    • D
      dvserg
      last edited by

      In non-latin languagies (Arabic, Chinese, Cyrillic) may be need use charset=UTF-8 for correct symbol display

      /usr/local/www/head.inc

      may be replace as

      
      if isset($g['gui_charset'])
        echo "";
      else
        echo "";
      ?>
      
      

      And globals variable $g['gui_charset'], if need, can be defined as $g['gui_charset'] = "UTF-8";

      What are your opinions?

      SquidGuardDoc EN  RU Tutorial
      Localization ru_PFSense

      1 Reply Last reply
      Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        @dvserg:

        What are your opinions?

        IMO, UTF-8 should be really the default pretty much everywhere.  :D

        1 Reply Last reply
        Reply Quote 0
        • D
          dvserg
          last edited by

          @doktornotor:

          @dvserg:

          What are your opinions?

          IMO, UTF-8 should be really the default pretty much everywhere.  :D

          I do not know all the specifics of the GUI, so the question to the Guru
          I want to make it more user-friendly localization mechanism

          SquidGuardDoc EN  RU Tutorial
          Localization ru_PFSense

          1 Reply Last reply
          Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            @dvserg:

            I want to make it more user-friendly localization mechanism

            Well yes, there is no reason for the encoding to default to things like ISO-8859-1, nor any reason for similar workarounds. IOW, instead of the suggested, make it:

            
            -
            +
            
            
            1 Reply Last reply
            Reply Quote 0
            • ExolonE
              Exolon
              last edited by

              dvserg,

              Take a look at this commit, this is the Turkish Language, but the updates made should make it easier for other languages as well:

              WebGUI Auto Codeset and Language Dynamics & pfSense.pot updates

              It is not just /usr/local/www/head.inc that needs to be changed.

              1 Reply Last reply
              Reply Quote 0
              • D
                dvserg
                last edited by

                I think this approach is not the right
                To add a new language requires changing the system functions.
                Perhaps it is best to search pfsense.mo files, compiling a list of languages ​​on it.
                And MO Files Management (add / delete / replace) possible make as separate package as my old package for 2.0.х

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

                1 Reply Last reply
                Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                Privacy Policy · Cookie Policy