• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

FOG Project Web App Localization

Scheduled Pinned Locked Moved
FOG Problems
2
3
236
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.
  • W
    WT_101
    last edited by Feb 28, 2022, 7:17 AM

    Hi,

    I’m trying to change some wording such as “Host” to “Platform”

    I trying to change for below file to do the translation but it is not working.
    e9a1cb7b-d11b-4fff-84ad-03e59c36bfbe-image.png

    Is there any steps i missing to do the localization?

    Thank You
    WT

    1 Reply Last reply Reply Quote 0
    • W
      WT_101
      last edited by WT_101 Feb 28, 2022, 8:10 AM Feb 28, 2022, 1:20 PM

      I have use Poedit to create the message.mo into “web/management/language/en_US.UTF-8/LC_MESSAGES” then re-install FOG then the localization works.

      This bring up some question below:

      1. how can the localization(translation) works without re-installation? (i do try to just put the message.mo & message.po file into the right directory then restart the server but it is not reflecting until reinstall)
      2. How to use “web/management/language/en_US.UTF-8/LC_MESSAGES\message.po” and “packages\web\commons\text.php” ?

      an example on “FOG Configuration” i already change & reinstall but it is not reflecting
      74894bac-0ff6-44c7-8019-d21b560aaf4a-image.png

      I already change the message.po
      f19ec693-1117-4b86-a9dd-93ddc4df26d4-image.png

      I found that if those text in this file it wont be translated
      ccbb1682-7103-451e-8430-5fe3d475085a-image.png

      Therefore how actually the right way to use both of these files?

      Thank You
      Best Regards
      WT

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Feb 28, 2022, 5:02 PM

        @WT_101 said:

        I’m trying to change some wording such as “Host” to “Platform”

        Not sure it’s wise to do as we don’t understand your working here in the forums. 😉

        Take a look at what the installer does:

        msgfmt -o ".../path/to/messages.mo" ".../path/to/messages.po"
        

        How to use “web/management/language/en_US.UTF-8/LC_MESSAGES\message.po” and “packages\web\commons\text.php” ?

        The later file was initally meant to be used for a general place to define variables for most used terms and phrases that could be used throughout the code. But I think it’s not being used in each and every stop in the code. Searching the code (or github) you can find many places where this variables are used: https://github.com/FOGProject/fogproject/search?q=foglang

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          2/3
          Last post

        153

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project