Hello Samuele,

That would be a feature and we don’t have it currently.

Everything is possible when you know how to do it ;-)

Have a good day,

Ludovic Zammit
Product Support Engineer Principal

Cell: +1.613.670.8432
Akamai Technologies - Inverse
145 Broadway
Cambridge, MA 02142
Connect with Us:         <https://community.akamai.com/>  
<http://blogs.akamai.com/>  <https://twitter.com/akamai>  
<http://www.facebook.com/AkamaiTechnologies>  
<http://www.linkedin.com/company/akamai-technologies>  
<http://www.youtube.com/user/akamaitechnologies?feature=results_main>

> On Jan 27, 2022, at 5:13 PM, Samuele Bistoletti <samuele.bistole...@eolo.it> 
> wrote:
> 
> Hi Ludovic,
> I already managed to setup the translations for the captive portal, and 
> language detection with browser is working.
> Also, I added some translations and compiled them with the same command you 
> sent me: the portal itself is switching the language according to the browser.
> The problem is related to emails: in the template folder all email files use 
> translations with “i18n” statement inside html code, and the correspondent 
> IDs are inside conf/locale/$TRANSLATION/LC_MESSAGES/packetfence.po file, that 
> has been compiled to packetfence.po.
> Unfortunately, emails are always sent in English language, I don’t know how 
> to dynamically translate them using the correct locale. I think that if the 
> email template has originally been made with an i18n inside, and translations 
> are present for the various languages, there should be a way to change that 
> language. For example, when I create a user, after the creation process a 
> preview of the email is shown, the preview (and the email sent) is always in 
> English, but I think that the system should ask me if I want to preview and 
> send the email in English, Italian, and so on, using the correct translation 
> according to the language chosen.
> Is that possible in anyway?
>  
> Many thanks!
>  
> <image001.png>
> Samuele Bistoletti 
> Datacenter & Infrastructure Security Specialist 
> Cell. +39 378 302 8872
> 
> EOLO SpA - Via Gran S. Bernardo, 12
> 21052 Busto Arsizio (VA)
>  
>  
> Da: Zammit, Ludovic <luza...@akamai.com>
> Data: giovedì, 27 gennaio 2022, 21:12
> A: packetfence-users@lists.sourceforge.net 
> <packetfence-users@lists.sourceforge.net>
> Cc: Samuele Bistoletti <samuele.bistole...@eolo.it>
> Oggetto: Re: [PacketFence-users] Change language for user welcome email
> 
> Hello Samuele,
>  
> The language is automatically detected based on the browser/system language.
>  
> For the translation, you will need to re-compile them once modified.
>  
> Try this command :
>  
> for TRANSLATION in de en es fr he_IL it nl pl_PL pt_BR ru_RU; do
> 
> /usr/bin/msgfmt conf/locale/$TRANSLATION/LC_MESSAGES/packetfence.po \
> 
> --output-file conf/locale/$TRANSLATION/LC_MESSAGES/packetfence.mo
> 
> done
>  
> Regarding the email template, it depends which one but they all are under 
> File under the connection profile either default or your custom one.
>  
> Thanks,
>  
> Ludovic Zammit
> Product Support Engineer Principal
> 
> Cell: +1.613.670.8432
> Akamai Technologies - Inverse
> 145 Broadway
> Cambridge, MA 02142
> Connect with Us:
>  <https://community.akamai.com/> <http://blogs.akamai.com/> 
> <https://urldefense.com/v3/__https://twitter.com/akamai__;!!GjvTz_vk!F-hw1u6HPTyYjsZFCBRIoz0sa1n7_A_jiDZQ4huk7Hf0RyC9cP9_5Cbu_W8mSg$>
>  
> <https://urldefense.com/v3/__http://www.facebook.com/AkamaiTechnologies__;!!GjvTz_vk!F-hw1u6HPTyYjsZFCBRIoz0sa1n7_A_jiDZQ4huk7Hf0RyC9cP9_5CZZv55O7Q$>
>  
> <https://urldefense.com/v3/__http://www.linkedin.com/company/akamai-technologies__;!!GjvTz_vk!F-hw1u6HPTyYjsZFCBRIoz0sa1n7_A_jiDZQ4huk7Hf0RyC9cP9_5CbTTbNRhg$>
>  
> <https://urldefense.com/v3/__http://www.youtube.com/user/akamaitechnologies?feature=results_main__;!!GjvTz_vk!F-hw1u6HPTyYjsZFCBRIoz0sa1n7_A_jiDZQ4huk7Hf0RyC9cP9_5CYv8GMg5A$>
>  
> 
> 
> On Jan 27, 2022, at 12:17 PM, Samuele Bistoletti via PacketFence-users 
> <packetfence-users@lists.sourceforge.net 
> <mailto:packetfence-users@lists.sourceforge.net>> wrote:
>  
> Hi,
> I was trying to change the language for the “Guest creation information” 
> email, but I can’t find a configuration for that in the GUI. I also checked 
> italian translations in the it/LC_MESSAGES and all rows in the email body are 
> translated, but I can’t find the option to enable Italian language. I already 
> tried to change “Language of communication” to it_IT in the main 
> configuration but nothing changes in the emails.
>  
> Anyone can help me please?
>  
> Many thanks
>  
> <image001.png>
> Samuele Bistoletti
> Datacenter & Infrastructure Security Specialist
> 
> EOLO SpA - Via Gran S. Bernardo, 12
> 21052 Busto Arsizio (VA)
>  
>  
>  
> <image002.jpg>
> _______________________________________________
> PacketFence-users mailing list
> PacketFence-users@lists.sourceforge.net 
> <mailto:PacketFence-users@lists.sourceforge.net>
> https://urldefense.com/v3/__https://lists.sourceforge.net/lists/listinfo/packetfence-users__;!!GjvTz_vk!HbJVrCSMMwSSgZ2Yhl_JPCPO3ZuycmnYfmVtk8N-Dqf1cSKHg1Q6VBgd0_mBHG9z$
>  
> <https://urldefense.com/v3/__https:/lists.sourceforge.net/lists/listinfo/packetfence-users__;!!GjvTz_vk!HbJVrCSMMwSSgZ2Yhl_JPCPO3ZuycmnYfmVtk8N-Dqf1cSKHg1Q6VBgd0_mBHG9z$>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to