Netgate Store

Author Topic: Install/activate custom language for webGUI  (Read 974 times)

0 Members and 1 Guest are viewing this topic.

Offline Exordium

  • Jr. Member
  • **
  • Posts: 97
  • Karma: +3/-0
    • View Profile
Install/activate custom language for webGUI
« on: July 24, 2016, 02:59:19 pm »
Hi.

I had created a custom language (german) pfSense.mo/pfSense.po file for german (de) translation and copied them into /usr/local/share/locale/de/LC_MESSAGES/
How do I add "German" in pfSense's webGUI localization/language selector? I can only switch between english, portuguese and turkiye.
- pfSense Gold Subscriber -

Sense 1: Shuttle DS57U3 (private)
Sense 2: Supermicro Atom Barebone (Company Test)
Sense 3: 2 x Supermicro SYS-5018D-FN8T (Company Production)

Offline Steve_B

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 421
  • Karma: +118/-0
    • View Profile
Re: Install/activate custom language for webGUI
« Reply #1 on: July 25, 2016, 08:36:51 am »
/etc/inc/pfsense-utils.inc, line 2967:

Code: [Select]
function get_locale_list() {
$locales = array(
"en_US" => gettext("English"),
"pt_BR" => gettext("Portuguese (Brazil)"),
"tr" => gettext("Turkish"),
);
asort($locales);
return $locales;
}


Offline Exordium

  • Jr. Member
  • **
  • Posts: 97
  • Karma: +3/-0
    • View Profile
Re: Install/activate custom language for webGUI
« Reply #2 on: July 25, 2016, 09:22:42 am »
Great! Works! (see attach) Now I can continue with the german translation.

Thank you.

- pfSense Gold Subscriber -

Sense 1: Shuttle DS57U3 (private)
Sense 2: Supermicro Atom Barebone (Company Test)
Sense 3: 2 x Supermicro SYS-5018D-FN8T (Company Production)

Offline harika1258

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Install/activate custom language for webGUI
« Reply #3 on: May 14, 2018, 02:39:03 am »
Hi everybody...
How can I create Language pack  ( Pfsense.mo) for custom language?

Offline Steve_B

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 421
  • Karma: +118/-0
    • View Profile
Re: Install/activate custom language for webGUI
« Reply #4 on: May 14, 2018, 06:49:21 am »
Use a tool such as https://poedit.net or http://zanata.org.

You can then copy the .po file to you firewall, or submit it to the pfSense team for inclusion in the project.

Which language do you want to use?

Offline harika1258

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Install/activate custom language for webGUI
« Reply #5 on: May 14, 2018, 11:37:32 pm »
Thank you so much  Steve....
I want to translate to Azerbaijan language...

Offline harika1258

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Install/activate custom language for webGUI
« Reply #6 on: May 15, 2018, 01:03:59 am »
Dear Steve...

How can I find Pfsense.po in English? (originally file) I'm using PoEdit

Thank you for replying.
 

Offline Steve_B

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 421
  • Karma: +118/-0
    • View Profile
Re: Install/activate custom language for webGUI
« Reply #7 on: May 15, 2018, 06:58:15 am »
The pfSense community has been using Zanata to translate text strings and Azerbaijani is already set up as one of the translations. This would be by far the best way to translate and you might even win something.

https://www.netgate.com/blog/pfsense-software-translations-with-zanata.html

If you really want to translate in a private environment, however, you can use the .po file here: /usr/local/share/locale/en_US/LC_MESSAGES/pfSense.po