Hello,

 

We were also struggling to add a new language (Greek) to PacketFence.

It turns out that except adding and compiling a new packetfence.po file, you 
also need to edit the perl code.

Specifically, you need to edit the file lib/pf/web/constants.pm and add the new 
language in the Array variable LOCALES (line 201):

Readonly::Array our @LOCALES =>

  (

   qw(en_US es_ES fr_FR fr_CA de_DE he_IL it_IT nb_NO nl_NL pl_PL pt_BR tr_TR)

  );

 

The problem with changing the perl code is that any changes you make in the .pm 
perl files inside /usr/local/pf/lib have no effect, since PacketFence started 
using Docker containers (version 11.2 and later, I think). So you need to find 
the Docker mapped folders where the /usr/local/pf/lib files are copied.

Unfortunately, there is no updated information in the PacketFence documentation 
how the Docker-based PacketFence is working and what to do to edit the perl 
code or other files.

 

 

Christos Ntokos

-----------------------------------------------------------------

Network Services and Infrastructure Department

Digital Governance Unit, University of Ioannina

 

 

_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to