Hi Fabrice

It works

Thanks

George

-----Original Message-----
From: Fabrice Durand [mailto:[email protected]] 
Sent: Wednesday, May 31, 2017 9:14 PM
To: [email protected]
Subject: Re: [PacketFence-users] Language strings in .pm files

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 <[email protected]>
> To: [email protected]
> Subject: Re: [PacketFence-users] Language strings in .pm files
> Message-ID: <[email protected]>
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/packetfence-users

--
Fabrice Durand
[email protected] ::  +1.514.447.4918 (x135) ::  www.inverse.ca Inverse inc. 
:: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://packetfence.org) 



------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to