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!

[signature_137176493]
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 <[email protected]>
Data: giovedì, 27 gennaio 2022, 21:12
A: [email protected] 
<[email protected]>
Cc: Samuele Bistoletti <[email protected]>
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
[https://www.akamai.com/us/en/multimedia/images/custom/2019/logo-no-tag-93x45.png]
Cell: +1.613.670.8432
Akamai Technologies - Inverse
145 Broadway
Cambridge, MA 02142
Connect with Us:
[https://www.akamai.com/us/en/multimedia/images/custom/community.jpg]<https://community.akamai.com/>[https://www.akamai.com/us/en/multimedia/images/custom/rss.png]<http://blogs.akamai.com/>[https://www.akamai.com/us/en/multimedia/images/custom/twitter.png]<https://twitter.com/akamai>[https://www.akamai.com/us/en/multimedia/images/custom/fb.png]<http://www.facebook.com/AkamaiTechnologies>[https://www.akamai.com/us/en/multimedia/images/custom/in.png]<http://www.linkedin.com/company/akamai-technologies>[https://www.akamai.com/us/en/multimedia/images/custom/youtube.png]<http://www.youtube.com/user/akamaitechnologies?feature=results_main>


On Jan 27, 2022, at 12:17 PM, Samuele Bistoletti via PacketFence-users 
<[email protected]<mailto:[email protected]>>
 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
[email protected]<mailto:[email protected]>
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$>

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

Reply via email to