PacketFence - BTS - PacketFence
View Issue Details
0001613PacketFencecaptive portalpublic2012-12-02 07:172015-02-18 10:59
muhlig 
 
normalmajoralways
closedopen 
3.6.0 
 
0001613: no proper i18n support in some parts of captive portal
I did Polish translation of PacketFence captive portal. All is done in UTF-8. /captive-portal renders well formatted translated page. However /signup produces translated page, but all UTF-8 encoded Polish diacritic marks are malformed (replaced by "?"). So there is a difference before formatting in /captive-portal and /signup web pages.
I found there are two render_template functions in pf code and pf::web::admin::render_template is the one which works well. Instead, pf::web::render_template (imported by pf::web::guest) damages diacritic marks. Then I found https://github.com/inverse-inc/packetfence/pull/60 [^] and I thought these findings are related to each other.

Looks like you use in admin page code some functions which are not used in other pages although they should be. Namely, these functions are: web_get_locale {} and _init_i18n {}. So, basically, i18n works correctly only for languages without diacritic marks.

Because of this issue I'm not able to start deploying of PacketFence solution in my network and I'm afraid I'm not able to fix it myself so I'd like to know if you're going to change captive program code further any soon to make it behave correctly like the admin part of it.
No tags attached.
Issue History
2012-12-02 07:17muhligNew Issue
2015-02-18 10:59lmunroNote Added: 0003927
2015-02-18 10:59lmunroStatusnew => closed

Notes
(0003927)
lmunro   
2015-02-18 10:59   
Obsolete bug tracker entries.
PF 4 introduced changes that either make these irrelevant or impossible to reproduce.

New issues are moving to github issues.