RADIUSdesk

Dynamic Login Pages - Support for Multiple Languages

Background

  • RADIUSdesk is used across the globe today.
  • In many of these places where RADIUSdesk are used, English is not the native language spoken. In fact some places might not even understand English.
  • We now allow you to specify the language that the Captive Portal will display.

How we do it

  • When you edit a Dynamic Login Page, there is a Language option under the Settings tab.

  • You can then select one of the avaialble languages.
  • If you want to add or remove from the exisitng list of languages:
sudo vi /usr/share/nginx/html/cake3/rd_cake/config/DynamicLogin.php 
  • At the bottom is a list of languages and whether they are active or not:
$config['DynamicLogin']['i18n'][0]     = array('name' => 'English',     'id' => 'en_GB',   'active' => true);
$config['DynamicLogin']['i18n'][1]     = array('name' => 'Italian',     'id' => 'it_IT',   'active' => true);
$config['DynamicLogin']['i18n'][2]     = array('name' => 'Spanish',     'id' => 'es_ES',   'active' => true);
$config['DynamicLogin']['i18n'][3]     = array('name' => 'Afrikaans',   'id' => 'af_ZA',   'active' => true);
  • Then you also have to specify the phrases in a file that match the id under the /usr/share/nginx/html/rd_login/codebase/rd_i18n/ directory.
  • Use the en_GB.js as reference.
  • The Italian file for instance will be named it_IT.js.
  • What this does is when the login page is dispalyed an extra field in the query string will be added (i18n).
  • This field will then have the value of the phrases file which must be used, e.g. i18n=it_IT to use the Italian phrases instead of the default English.