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

GUI Charset for localization

Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
6 Posts 3 Posters 1.7k 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 Jun 24, 2013, 9:42 AM

    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 Jun 24, 2013, 10:38 AM

      @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 Jun 24, 2013, 10:44 AM

        @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 Jun 24, 2013, 2:42 PM

          @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
          • E
            Exolon
            last edited by Jun 24, 2013, 4:31 PM

            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 Jun 24, 2013, 5:39 PM Jun 24, 2013, 5:37 PM

              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
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received