Hello All,
it still missing some translation in the code and i am aware of that, so
if you find some missing strings then open a pull request on github in
order for us to keep a track on this.
Also if you are interested to participate to the translation then you
are welcome on https://www.transifex.com/inverse/packetfence/dashboard/
Regards
Fabrice
Le 2018-03-08 à 08:51, Ian MacDonald via PacketFence-users a écrit :
Unfortunately, I use en_US, but it did get me wondering what our
french pages look like, so at some point we may do some digging into
better locale application. I am pretty confident it works, since I
bet a good chunk of the Inverse team are fr_CA, and you know they must
be using their own tools internally.
I did find some good hints with a quick grep;
pf4:/usr/local/pf/html# grep -i "en_US" * -R | less
It includes the following lines which are likely to lead you down the
right path:
captive-portal/lib/captiveportal/PacketFence/Controller/Root.pm: #
Browser = fr_FR and portal is en_US and fr_CA then fr_CA will be used
captive-portal/lib/captiveportal/PacketFence/Controller/Root.pm:will
return qw(en_US en fr fr_CA no es)
captive-portal/lib/captiveportal/PacketFence/Controller/Root.pm: my
$s = $c->request->header('Accept-language') || 'en_US';
pfappserver/lib/pfappserver/I18N/i_default.po:msgid "en_US"
pfappserver/lib/pfappserver/I18N/fr.po:msgid "en_US"
pfappserver/lib/pfappserver/I18N/fr.po:msgstr "en_US"
pfappserver/lib/pfappserver/I18N/en.po:msgid "en_US"
pfappserver/root/static/doc/PacketFence_Developers_Guide.html:Same
goes for a browser with locale <code>en_US</code>, where creating a
template named <code>aup_text.en.html</code> will be used for English
browsers.</p>
pfappserver/root/static/doc/PacketFence_Developers_Guide.html:<p>Note
that you cannot use the full locale in the template name (i.e.
<code>aup_text.en_US.html</code>) as only the two letter prefix should
be used.</p>
cheers,
Ian
On Thu, Mar 8, 2018 at 5:07 AM, Virginie Girou via PacketFence-users
<[email protected]
<mailto:[email protected]>> wrote:
Hi,
I am interrested in your problem (/solution ;-) ), because i
encounter the same with french language.
I first though it was a translation message problem but actually
it acts as if the only active language was "en" while my profile
parameters are set to "fr" and my browser request the "fr"
language ...
I wrote the list in january (subject : No translation on "Enabling
network access" page) and i have the problem on a 7.3 version
(install directly in 7.3) but not in a 7.0.
I tried to compare different files but I am not good enough in
programming to understand the differences.
Hope that packetfence team could help us !
Regards,
Virginie Girou
Equipe systeme
DSI - UT1 Capitole
Tel :+33 (0)5.61.63.39.19 <tel:+33%205%2061%2063%2039%2019>
Le 07/03/2018 14:23, Hubert Kupper via PacketFence-users a écrit :
Hi Ian,
yes, I mean 7.3.0 to 7.4.0 sorry ;-)
mybrowserinfo.com <http://mybrowserinfo.com> shows the correct
language. When I set locale=<blank> I get the english version of
the profile preview and the preview of the html files like
layout.html. When I set the locale=de_DE in the profiles.conf
file, I get the profile preview in the german version but all
other htlm files in the english version.
cheers,
Hubert
Am 06.03.2018 um 06:19 schrieb Ian MacDonald via PacketFence-users:
Hubert,
I would assume you mean upgraded from 7.3.0 to 7.4.0;
I think by default, connection profiles support whatever locale
your browser requests. Maybe confirm your local setup using
mybrowserinfo.com <http://mybrowserinfo.com> and make sure you
are requesting the language you want.
Using locale=<blank> will let your browser select the locale.
You should probably just start with a clone of the default
connection profile with no languages specified and see if the
problem occurs there with the correct browser locale, both in
the Preview from the admin GUI as well as when you hit the
captive portal directly.
Compare different devices with your desired locale setting set
to rule out the client.
If the problem goes away with a clone of the default connection
profile, you can focus on your profile configuration and files,
opting to find the difference by direct comparison.
I am not sure, but your locale setting may also require
subtags; I'm not sure the "de" language identifier will
actually match one of the German locales. Check the notation is
correct https://www.w3.org/TR/ltli/#language-terminology
<https://www.w3.org/TR/ltli/#language-terminology>
I don't use the locale setting myself.
cheers,
Ian
On Wed, Feb 28, 2018 at 3:26 AM, Hubert Kupper via
PacketFence-users <[email protected]
<mailto:[email protected]>> wrote:
Hello,
I did a upgrade from 7.0.3 to 7.0.4. After the upgrade, the
profile language is english while in pf.conf and
profiles.conf the language is already set to "de". Any ideas?
Best regards,
Hubert
------------------------------------------------------------------------------
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]
<mailto:[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]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
<https://lists.sourceforge.net/lists/listinfo/packetfence-users>
!DSPAM:67760,5aa01758104847092754295!
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
!DSPAM:67760,5aa01758104847092754295!
_______________________________________________ PacketFence-users
mailing list [email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
<https://lists.sourceforge.net/lists/listinfo/packetfence-users>
!DSPAM:67760,5aa01758104847092754295!
------------------------------------------------------------------------------
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]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
<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
------------------------------------------------------------------------------
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