Hello,

I would like to pick up on this question of language.

We work on Packetfence captive-portal in 7.0.0 version.

We use french language but there is still some messages in english such as :Â

 * *"Invalid login or password"* from
   /usr/local/pf/lib/pf/constants/authentication/messages.pm
 * *"Role xx has been assigned to your device with unregistration date
   : xxxxx"* from
   
/usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Root.pm
   (but there is variable in it %s ...)
 * *"Authentication"Â *as title of the authentication portal page : I
   don't know where this word comes from (which file).

How can I do ?  Does the 7.1 version translate everything ?

Thank you.

Virginie Girou

Le 31/05/2017 21:14, Fabrice Durand a écrit :

Hello George,

sorry for the delay.


In fact it suppose to be localized but our script to extract string
missed all the lines that contain showError.

I did a fix in github for the newer version but you can patch your setup
to make it work.

So do what i have modified in Email.pm
(https://github.com/inverse-inc/packetfence/commit/07cab346e13a5c9ee8e7cf56bba591aeaccb1baa)
then edit conf/locale/fr/LC_MESSAGES/packetfence.po

and add that:

# html/captive-
# portal/lib/captiveportal/PacketFence/Controller/Activate/Email.pm
msgid ""
"The activation code provided is invalid. Reasons could be: it never
existed,"
" it was already used or has expired."
msgstr "Le code d'activation entré est invalide. Les raisons pourraient
être: il n'a jamais existé, il a déja êté utilisé ou expiré. "

Then do:

for TRANSLATION in de en es fr he_IL it nl pl_PL pt_BR; do
     /usr/bin/msgfmt conf/locale/$TRANSLATION/LC_MESSAGES/packetfence.po \
       --output-file conf/locale/$TRANSLATION/LC_MESSAGES/packetfence.mo
done


Or wait for the 7.1 version.

Regards

Fabrice



Le 2017-05-30 à 04:10, Kandalaft George a écrit :
Hi Fabrice

We are running version 6.2.1 and here is a string from
/captive-portal/lib/captiveportal/PacketFence/Controller/Activate/Email.pm:

$self->showError($c,
                 "The activation code provided is invalid."
               . " Reasons could be: it never existed, it was already used or has 
expired."
         );

Thanks

George

-----Original Message-----

Date: Mon, 29 May 2017 11:22:39 -0400
From: Fabrice Durand<fdur...@inverse.ca>
To:packetfence-users@lists.sourceforge.net
Subject: Re: [PacketFence-users] Language strings in .pm files
Message-ID:<a02541ed-5156-53c9-870e-38d74479f...@inverse.ca>
Content-Type: text/plain; charset="windows-1252"

Hello George,

which version are you running and do you have any example ?

Regards

Fabrice



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

!DSPAM:67760,59550733154826258613221!



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

!DSPAM:67760,59550733154826258613221!


_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users


!DSPAM:67760,59550733154826258613221!


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to