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

    GUI Charset for localization

    2.1 Snapshot Feedback and Problems - RETIRED
    3
    6
    1.7k
    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
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.