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

    Language Not Changing

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    4 Posts 2 Posters 1.2k 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.
    • N
      NOYB
      last edited by

      Language selection hasn't been working for about a week.  The config changes but everything remains in English.

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

        If I put back the line removed in this commit: https://github.com/pfsense/pfsense/commit/2eb5a0bf9d69fbedc6d4e9c1b5665ce9e6396c2a

        putenv("LANG={$lang}.{$encoding}");
        

        then when I change language the General Setup screen is displayed initially in the newly-selected language.
        Then when I navigate somewhere else the language goes back to English.
        So something else is wrong in general - that commit is OK I guess, if the general problem is fixed then that specific putenv() should not be needed.

        But at least the gettext() translations must be there still, because it can translate at least 1page.

        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
        • N
          NOYB
          last edited by

          Think I saw something in guiconfig.inc dealing with language about a week ago.

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

            https://github.com/pfsense/pfsense/commit/9ba351c17e4c85e01832e38b6ba7b6a7898a290d
            I put that code back in guiconfig.inc but it did not magically start working again.
            Renato made the change, so I guess he will know more quickly what is going on.

            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.